:root {
    color-scheme: dark;
    --background: #0a0c11;
    --surface: #121721;
    --surface-raised: #171e2a;
    --border: rgba(255, 255, 255, 0.09);
    --text: #f4f7fb;
    --muted: #98a4b5;
    --accent: #ffb547;
    --accent-soft: rgba(255, 181, 71, 0.12);
    --active: #69d9aa;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 181, 71, 0.11), transparent 34rem),
        radial-gradient(circle at 100% 30%, rgba(70, 111, 178, 0.1), transparent 28rem),
        var(--background);
}

.page-shell {
    width: min(920px, calc(100% - 36px));
    margin: 0 auto;
    padding: 72px 0 32px;
}

.hero {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 64px;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(255, 181, 71, 0.28);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 181, 71, 0.18), rgba(255, 181, 71, 0.04));
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
}

.brand-mark span {
    width: 7px;
    border-radius: 99px;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(255, 181, 71, 0.3);
}

.brand-mark span:nth-child(1),
.brand-mark span:nth-child(4) {
    height: 24px;
}

.brand-mark span:nth-child(2) {
    height: 48px;
}

.brand-mark span:nth-child(3) {
    height: 35px;
}

.eyebrow {
    margin: 0 0 9px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 12px;
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.intro {
    max-width: 610px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.count {
    color: var(--muted);
    font-size: 0.84rem;
}

.station-list {
    display: grid;
    gap: 12px;
}

.station-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: rgba(18, 23, 33, 0.88);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.16);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.station-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 181, 71, 0.24);
    background: var(--surface-raised);
}

.station-card.is-playing {
    border-color: rgba(105, 217, 170, 0.4);
    background: linear-gradient(110deg, rgba(105, 217, 170, 0.09), var(--surface) 45%);
}

.track-number {
    padding-top: 2px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    letter-spacing: -0.05em;
}

.track-details {
    min-width: 0;
}

.track-details h3 {
    margin-bottom: 7px;
    overflow-wrap: anywhere;
    font-size: 1.15rem;
    line-height: 1.25;
}

.track-link {
    color: inherit;
    text-decoration: none;
}

.track-link:hover,
.track-link:focus-visible {
    color: var(--accent);
}

.track-details p {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 0.78rem;
}

audio {
    display: block;
    width: min(100%, 560px);
    height: 42px;
    accent-color: var(--accent);
}

.channel-link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-top: 13px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

.channel-link:hover,
.channel-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.live-state {
    min-width: 74px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.is-playing .live-state {
    border-color: rgba(105, 217, 170, 0.32);
    color: var(--active);
    background: rgba(105, 217, 170, 0.08);
}

.empty-state {
    padding: 72px 24px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: rgba(18, 23, 33, 0.5);
}

.empty-state h2 {
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    margin-bottom: 0;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 1.5rem;
}

footer {
    padding-top: 52px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    text-align: center;
}

footer p {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 24px, 920px);
        padding-top: 36px;
    }

    .hero {
        grid-template-columns: 64px 1fr;
        gap: 16px;
        margin-bottom: 46px;
    }

    .brand-mark {
        width: 64px;
        height: 64px;
        border-radius: 19px;
        gap: 4px;
    }

    .brand-mark span {
        width: 5px;
    }

    .brand-mark span:nth-child(2) {
        height: 34px;
    }

    .brand-mark span:nth-child(3) {
        height: 25px;
    }

    .brand-mark span:nth-child(1),
    .brand-mark span:nth-child(4) {
        height: 17px;
    }

    .intro {
        font-size: 0.94rem;
    }

    .station-card {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
        padding: 18px 14px;
    }

    .track-number {
        font-size: 1.15rem;
    }

    .live-state {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
