:root {
    color-scheme: dark;
    --ink: #f8fbff;
    --muted: #a9b4c3;
    --quiet: #6d7989;
    --line: rgba(255, 255, 255, .14);
    --panel: rgba(11, 17, 24, .68);
    --panel-solid: #101720;
    --cyan: #26d7e8;
    --rose: #ff6f86;
    --amber: #f4c542;
    --green: #77df9c;
    --shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #05070a;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 7, 10, .94) 0%, rgba(5, 7, 10, .76) 42%, rgba(5, 7, 10, .44) 100%),
        linear-gradient(180deg, rgba(5, 7, 10, .08), #05070a 92%),
        url("/assets/img/hero-radio.png") center / cover no-repeat;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.station {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 36px;
}

.hero {
    min-height: calc(100vh - 140px);
    display: grid;
    align-content: space-between;
    gap: 28px;
    padding: 26px 0 18px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #061018;
    background: conic-gradient(from 160deg, var(--cyan), var(--rose), var(--amber), var(--cyan));
    box-shadow: 0 0 36px rgba(38, 215, 232, .28);
    font-weight: 950;
}

.eyebrow,
.label {
    margin: 0;
    color: var(--cyan);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(2.6rem, 8vw, 7rem);
    line-height: .9;
    letter-spacing: 0;
}

h2 {
    letter-spacing: 0;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(119, 223, 156, .38);
    border-radius: 999px;
    background: rgba(119, 223, 156, .08);
    color: #d9ffe6;
}

.live-pill span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 7px rgba(119, 223, 156, .12);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(310px, 440px) minmax(0, 1fr);
    align-items: end;
    gap: 24px;
}

.listen-stage,
.now-panel,
.program-card,
.list-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.listen-stage {
    display: grid;
    justify-items: center;
    gap: 22px;
    padding: 28px;
}

.art-wrap {
    position: relative;
    width: min(320px, 72vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.artwork {
    width: 78%;
    height: 78%;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: inset 0 0 0 12px rgba(0, 0, 0, .28), 0 22px 60px rgba(0, 0, 0, .34);
    animation: slowSpin 18s linear infinite paused;
}

.is-playing .artwork {
    animation-play-state: running;
}

.vinyl-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 32%, rgba(255, 255, 255, .16) 33%, transparent 34%),
        conic-gradient(from 120deg, var(--cyan), rgba(255,255,255,.15), var(--rose), var(--amber), var(--cyan));
    mask: radial-gradient(circle, transparent 0 50%, black 51% 58%, transparent 59%);
    opacity: .94;
}

@keyframes slowSpin {
    to { transform: rotate(360deg); }
}

.bars {
    position: absolute;
    left: 50%;
    bottom: 12px;
    display: flex;
    align-items: end;
    gap: 6px;
    transform: translateX(-50%);
}

.bars span {
    width: 9px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--amber));
    opacity: .5;
}

.is-playing .bars span {
    animation: bar 0.8s ease-in-out infinite alternate;
}

.is-playing .bars span:nth-child(2) { animation-delay: .12s; }
.is-playing .bars span:nth-child(3) { animation-delay: .24s; }
.is-playing .bars span:nth-child(4) { animation-delay: .36s; }
.is-playing .bars span:nth-child(5) { animation-delay: .48s; }

@keyframes bar {
    to { height: 54px; opacity: 1; }
}

.listen-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(340px, 100%);
    min-height: 68px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cyan), var(--amber));
    color: #061018;
    font-size: 1.08rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(38, 215, 232, .2);
}

.listen-button:disabled {
    opacity: .72;
    cursor: progress;
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #061018;
}

.status,
.muted {
    color: var(--muted);
}

.status {
    min-height: 24px;
    margin-bottom: 0;
}

.now-panel {
    padding: clamp(24px, 5vw, 42px);
}

.panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.listener-badge {
    min-width: 126px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    text-align: right;
}

.listener-badge span {
    display: block;
    font-size: 2.2rem;
    line-height: .9;
    font-weight: 950;
}

.listener-badge small {
    color: var(--muted);
    text-transform: uppercase;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: 0;
}

.now-panel h2 {
    max-width: 780px;
    margin: 18px 0 8px;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    line-height: .92;
}

.now-panel .muted {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.progress-row {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}

.progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--rose), var(--amber));
}

.details {
    display: grid;
    grid-template-columns: .9fr 1.05fr 1.05fr;
    gap: 16px;
    padding: 18px 0 0;
}

.program-card,
.list-card {
    padding: 22px;
}

.program-card h2 {
    margin: 12px 0 10px;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.track-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.track-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.track-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.track-list strong {
    overflow-wrap: anywhere;
}

.track-list span {
    color: var(--quiet);
    text-align: right;
}

@media (max-width: 920px) {
    .hero {
        min-height: auto;
    }

    .topbar,
    .brand {
        align-items: flex-start;
    }

    .hero-grid,
    .details {
        grid-template-columns: 1fr;
    }

    .listen-stage {
        order: 2;
    }

    .now-panel {
        order: 1;
    }
}

@media (max-width: 620px) {
    .station {
        width: min(100% - 22px, 1180px);
        padding-top: 14px;
    }

    .topbar {
        flex-direction: column;
    }

    h1 {
        font-size: clamp(2.4rem, 17vw, 4.2rem);
    }

    .panel-head {
        display: grid;
    }

    .listener-badge {
        width: 100%;
        text-align: left;
    }

    .now-panel h2 {
        font-size: clamp(2.1rem, 15vw, 3.6rem);
    }

    .progress-row {
        grid-template-columns: 44px 1fr 44px;
    }

    .track-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .track-list span {
        text-align: left;
    }
}
