@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

html, body {
    background: #04120b;
}

body {
    color: #e3f5e9;
    font-family: "Inter", serif;
    margin: 0;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: #04120b url("bg.jpg") center / cover no-repeat fixed;
    filter: brightness(0.55);
    transition: filter 0.6s ease;
}

body.locked::before {
    filter: brightness(0.55) blur(18px);
}

.page {
    display: flex;
    align-items: stretch;
    gap: 1.5em;
    width: 60%;
    max-width: 1000px;
    filter: blur(0);
    transition: filter 0.6s ease;
}

body.locked .page {
    filter: blur(18px);
    pointer-events: none;
}

#intro {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.6s ease;
}

#intro.hidden {
    opacity: 0;
    pointer-events: none;
}

#intro span {
    font-family: "Figtree", serif;
    font-size: 3em;
    color: #e3f5e9;
}

#roddyricchesbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    border-radius: 16px;
    padding: 2em;
    animation: fadeSlideUp 1s ease-out forwards;
}

#roddyricchesbox .pfp {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #1f3d2e;
    margin-bottom: 1em;
}

h1, h2, h3, h4 {
    font-family: "Figtree", serif;
    color: #e3f5e9;
}

#roddyricchesbox p {
    color: #9fcdb0;
}

.linkholder {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5em;
}

.linkholder a {
    text-decoration: none;
    color: #d7f5e0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.1em;
    transition: transform 0.15s ease;
}

.linkholder a:hover {
    transform: scale(1.15);
}

.linkholder a i {
    font-size: 1.8em;
    color: #d7f5e0;
}

#player {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 16px;
    padding: 1.5em;
    animation: fadeSlideUp 1s ease-out forwards;
}

#player.expanded {
    justify-content: flex-start;
}

.player-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    background: #123024;
    border: 1px solid #1f3d2e;
    border-radius: 10px;
    padding: 0.8em 1em;
    margin-bottom: 1em;
}

.player-bar input[type="range"] {
    width: 100%;
    accent-color: #34d399;
}

.player-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
}

.player-buttons button {
    background: none;
    border: none;
    color: #e3f5e9;
    font-size: 1.1em;
    cursor: pointer;
}

.player-buttons button:hover {
    color: #34d399;
}

.volume-holder {
    position: relative;
    display: flex;
    align-items: center;
}

.volume-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.6em;
    background: #123024;
    border: 1px solid #1f3d2e;
    border-radius: 8px;
    padding: 0.8em 0.5em;
    display: none;
}

.volume-dropdown.open {
    display: block;
}

.volume-dropdown input[type="range"] {
    accent-color: #34d399;
    writing-mode: vertical-lr;
    direction: rtl;
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    width: 6px;
    height: 80px;
}

#queueToggle {
    background: none;
    border: none;
    color: #9fcdb0;
    font-size: 0.9em;
    text-align: left;
    cursor: pointer;
    padding: 0.4em 0;
    margin-bottom: 0.4em;
}

#queueToggle i {
    transition: transform 0.2s ease;
    margin-left: 0.3em;
}

#queueToggle.open i {
    transform: rotate(180deg);
}

.song-list {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    transition: max-height 0.3s ease;
}

.song-list.open {
    max-height: 260px;
    overflow-y: auto;
}

.song-row {
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.5em;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.song-row:hover {
    background: #123024;
}

.song-row.active {
    background: #1a4433;
}

.song-cover {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.song-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.song-title {
    font-size: 0.9em;
    font-weight: 600;
    color: #e3f5e9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.8em;
    color: #7fae90;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #1f3d2e;
}

.now-cover {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.6em;
}

.now-playing h3 {
    margin: 0;
    font-size: 1em;
}

.now-playing p {
    margin: 0.2em 0 0;
    color: #7fae90;
    font-size: 0.85em;
}

@media only screen and (max-width: 800px) {
    .page {
        flex-direction: column;
        width: 90%;
    }

    body {
        overflow-y: auto;
        padding: 2em 1em;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #1f3d2e;
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background-color: #0b2318;
}
