* {
    box-sizing: border-box;
}

:root {
    --gold: #d79c50;
    --gold-soft: #f0c884;
    --brown: #241309;
    --dark: #070604;
    --glass: rgba(12, 12, 10, .72);
    --glass-2: rgba(255, 255, 255, .055);
    --line: rgba(255, 255, 255, .12);
    --muted: rgba(255, 255, 255, .62);
    --text: #fffaf2;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 24%, rgba(106, 60, 22, .55), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(201, 143, 74, .22), transparent 25%),
        linear-gradient(135deg, #090604 0%, #160c07 42%, #030303 100%);
    overflow-x: hidden;
}

.coffee-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(44, 25, 12, .9), transparent 28%),
        radial-gradient(circle at 78% 34%, rgba(93, 52, 24, .55), transparent 22%),
        linear-gradient(90deg, rgba(0, 0, 0, .4), transparent 50%, rgba(0, 0, 0, .35));
    pointer-events: none;
}

.page-shade {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, .1) 45%, rgba(0, 0, 0, .68) 100%);
    pointer-events: none;
}

.shell {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 32px));
    margin: 18px auto 28px;
}

.hero {
    position: relative;
    min-height: 620px;
    border-radius: 34px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
        radial-gradient(circle at 78% 26%, rgba(114, 74, 35, .38), transparent 28%),
        linear-gradient(135deg, rgba(14, 14, 12, .88), rgba(5, 5, 5, .82));
    box-shadow:
        0 32px 100px rgba(0, 0, 0, .65),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(24px);
    overflow: hidden;
    padding: 42px 48px 34px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 58%, rgba(105, 65, 30, .26), transparent 27%),
        radial-gradient(circle at 72% 55%, rgba(255, 205, 129, .08), transparent 28%);
    opacity: .9;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.live-pill {
    position: absolute;
    right: 30px;
    top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .32);
    border: 1px solid rgba(255, 255, 255, .11);
    font-weight: 800;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ce463;
    box-shadow: 0 0 16px #3ce463;
}

.brand-logo {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: 30px;
    margin: 22px auto 28px;
    display: block;
    background: #f4d3a4;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}

.radio-label span {
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 999px;
    display: inline-block;
}

h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -3px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}

.equalizer {
    height: 30px;
    margin: 32px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.equalizer i {
    width: 3px;
    height: 10px;
    border-radius: 99px;
    background: linear-gradient(var(--gold-soft), var(--gold));
    opacity: .95;
    animation: bounce 1.1s infinite ease-in-out;
}

.equalizer i:nth-child(2n) { animation-delay: .12s; height: 18px; }
.equalizer i:nth-child(3n) { animation-delay: .25s; height: 24px; }
.equalizer i:nth-child(4n) { animation-delay: .38s; height: 14px; }

@keyframes bounce {
    0%, 100% { transform: scaleY(.45); opacity: .45; }
    50% { transform: scaleY(1.1); opacity: 1; }
}

.now-label {
    margin: 0 0 8px;
    color: var(--gold-soft);
    font-weight: 900;
    font-size: 19px;
}

#trackTitle {
    margin: 0 auto 22px;
    max-width: 780px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
    min-height: 38px;
}

.progress-line {
    width: min(720px, 100%);
    display: grid;
    grid-template-columns: 55px 1fr 55px;
    gap: 18px;
    align-items: center;
    margin: 0 auto 34px;
    color: rgba(255, 255, 255, .9);
    font-weight: 800;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--gold);
}

#progress {
    height: 6px;
}

.main-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    margin-bottom: 30px;
}

button {
    border: 0;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
}

.control-btn {
    width: 84px;
    height: 84px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
        rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: 28px;
    font-weight: 900;
    box-shadow:
        0 16px 34px rgba(0, 0, 0, .36),
        inset 0 1px 0 rgba(255, 255, 255, .09);
    transition: transform .18s ease, border .18s ease, background .18s ease;
}

.control-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(215, 156, 80, .45);
}

.control-btn.play {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    color: #fff;
    background:
        radial-gradient(circle at 30% 25%, #ffd58e, #c08335 72%);
    border: 3px solid rgba(0, 0, 0, .35);
    box-shadow:
        0 0 0 7px rgba(215, 156, 80, .18),
        0 28px 54px rgba(0, 0, 0, .52);
    font-size: 36px;
}

.control-btn.mini {
    color: var(--gold-soft);
}

.control-btn.mini.active {
    background:
        linear-gradient(180deg, rgba(215, 156, 80, .35), rgba(215, 156, 80, .12)),
        rgba(0, 0, 0, .26);
}

.bottom-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
}

.shuffle-state {
    min-width: 150px;
    padding: 14px 22px;
    border-radius: 999px;
    color: var(--gold-soft);
    background: rgba(0, 0, 0, .26);
    border: 1px solid rgba(255, 255, 255, .08);
    font-weight: 800;
}

.volume-box {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 300px;
    color: var(--muted);
}

.library {
    margin-top: 28px;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 170px;
    gap: 20px;
    margin-bottom: 28px;
}

.search-box {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 28px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
        rgba(15, 15, 13, .74);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

.search-box span {
    color: rgba(255, 255, 255, .55);
    font-size: 30px;
}

#searchInput {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-size: 17px;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, .58);
}

.view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 7px;
    border-radius: 22px;
    background: rgba(15, 15, 13, .78);
    border: 1px solid rgba(255, 255, 255, .1);
}

.view-toggle button {
    border-radius: 17px;
    background: transparent;
    color: rgba(255,255,255,.55);
    font-size: 24px;
}

.view-toggle button.active {
    color: var(--gold-soft);
    background: rgba(255,255,255,.08);
}

.playlist {
    overflow: hidden;
    border-radius: 26px 26px 0 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)),
        rgba(7, 7, 6, .78);
    border: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 0;
}

.track {
    display: grid;
    grid-template-columns: 58px 64px 1fr 70px 34px;
    gap: 18px;
    align-items: center;
    min-height: 88px;
    padding: 14px 28px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    transition: background .18s ease;
}

.track:hover {
    background: rgba(255,255,255,.045);
}

.track.active {
    background:
        linear-gradient(90deg, rgba(215, 156, 80, .24), rgba(215, 156, 80, .09)),
        rgba(255,255,255,.03);
}

.track-playing {
    color: var(--gold-soft);
    font-size: 27px;
    text-align: center;
    font-weight: 900;
}

.cover {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #1b1008;
    font-weight: 950;
    background: linear-gradient(135deg, #f3d49c, #b67633);
    box-shadow: 0 12px 28px rgba(0,0,0,.26);
}

.track-title {
    font-size: 18px;
    font-weight: 850;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.track-artist {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}

.track-duration {
    color: rgba(255,255,255,.82);
    text-align: right;
    font-weight: 700;
}

.track-menu {
    text-align: right;
    color: rgba(255,255,255,.7);
    font-size: 25px;
}

.playlist-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: rgba(255, 255, 255, .58);
    background: rgba(8, 8, 7, .78);
    border: 1px solid rgba(255, 255, 255, .1);
    border-top: 0;
    border-radius: 0 0 26px 26px;
    font-size: 17px;
}

.site-footer {
    margin-top: 26px;
    min-height: 88px;
    padding: 18px 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(8, 8, 7, .63);
}

.site-footer strong {
    display: block;
    margin-bottom: 5px;
}

.site-footer span,
.site-footer p {
    color: rgba(255,255,255,.62);
    margin: 0;
}

.site-footer p {
    text-align: right;
}

.socials {
    display: flex;
    gap: 12px;
}

.socials span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--gold-soft);
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    font-weight: 900;
}

@media (max-width: 820px) {
    .shell {
        width: min(100% - 24px, 1120px);
        margin-top: 12px;
    }

    .hero {
        min-height: auto;
        padding: 30px 22px;
        border-radius: 28px;
    }

    .live-pill {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto 18px;
    }

    .brand-logo {
        width: 104px;
        height: 104px;
        margin-top: 0;
    }

    .radio-label {
        letter-spacing: 5px;
        font-size: 11px;
        gap: 10px;
    }

    h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .main-controls {
        gap: 10px;
        flex-wrap: wrap;
    }

    .control-btn {
        width: 60px;
        height: 60px;
        border-radius: 20px;
        font-size: 21px;
    }

    .control-btn.play {
        width: 78px;
        height: 78px;
        font-size: 28px;
    }

    .bottom-tools {
        gap: 16px;
        flex-direction: column;
    }

    .volume-box {
        width: 100%;
        max-width: 320px;
    }

    .search-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .view-toggle {
        display: none;
    }

    .track {
        grid-template-columns: 38px 52px 1fr 44px;
        gap: 12px;
        min-height: 78px;
        padding: 12px 14px;
    }

    .cover {
        width: 52px;
        height: 52px;
    }

    .track-title {
        font-size: 15px;
    }

    .track-artist,
    .track-duration {
        font-size: 13px;
    }

    .track-menu {
        display: none;
    }

    .site-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer p {
        text-align: center;
    }

    .socials {
        justify-content: center;
    }
}

@media (max-width: 460px) {
    h1 {
        font-size: 34px;
    }

    #trackTitle {
        font-size: 19px;
    }

    .progress-line {
        grid-template-columns: 42px 1fr 42px;
        gap: 9px;
        font-size: 13px;
    }

    .search-box {
        height: 62px;
        padding: 0 18px;
    }
}
