:root {
    --bg: #070a0f;
    --surface: #101620;
    --surface2: #161e2b;
    --surface3: #1c2635;
    --text: #f7f9fc;
    --muted: #9da9b8;
    --accent: #57b7ff;
    --success: #45d58f;
    --danger: #ff6375;
    --warning: #ffd166;
    --border: rgba(255,255,255,.09);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(
            circle at 12% -10%,
            rgba(87,183,255,.16),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #0b1018 0%,
            var(--bg) 72%
        );
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

.shell {
    width: min(1180px,92vw);
    margin: 0 auto;
}

.topbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    font-weight: 850;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            var(--accent),
            #fff
        );
    box-shadow:
        0 12px 35px
        rgba(87,183,255,.20);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.portal-link:hover {
    color: var(--text);
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(0,0,0,.25);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .03em;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #728095;
}

.live-status.online .status-dot {
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
}

.live-status.offline .status-dot {
    background: var(--danger);
}

.live-status.loading .status-dot {
    background: var(--warning);
}

.hero {
    padding: 52px 0 32px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1 {
    margin: 12px 0;
    max-width: 980px;
    font-size: clamp(38px,7vw,76px);
    line-height: .98;
    letter-spacing: -.055em;
}

.lead {
    max-width: 740px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px,2vw,20px);
    line-height: 1.6;
}

.player-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #000;
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(
            circle at center,
            #171d26,
            #000 70%
        );
}

video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.start-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.10),
            rgba(0,0,0,.72)
        );
}

.start-layer.hidden {
    display: none;
}

.start-box {
    text-align: center;
}

.start-box p {
    margin: 12px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.start-button,
.action-button {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.start-button {
    min-width: 190px;
    padding: 15px 24px;
    border-radius: 999px;
    color: #06101a;
    background: var(--accent);
    box-shadow:
        0 16px 45px
        rgba(87,183,255,.30);
}

.start-button:hover {
    filter: brightness(1.08);
}

.player-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    background: var(--surface);
}

.player-meta {
    min-width: 0;
}

.player-name {
    font-size: 14px;
    font-weight: 850;
}

.player-detail {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.player-actions {
    display: flex;
    gap: 8px;
}

.action-button {
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--text);
    background: var(--surface3);
}

.action-button:hover {
    background: #263348;
}

.notice {
    margin: 22px 0;
    padding: 17px 19px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--muted);
    background: rgba(255,255,255,.035);
    line-height: 1.55;
}

.info-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit,minmax(210px,1fr));
    gap: 12px;
    margin-top: 18px;
}

.info-card {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
}

.info-card small {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
}

.info-card strong {
    font-size: 15px;
}

.portal-hero {
    padding: 68px 0 18px;
}

.station-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit,minmax(245px,1fr));
    gap: 15px;
    padding: 30px 0 70px;
}

.station-card {
    position: relative;
    min-height: 175px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(
            145deg,
            var(--surface2),
            var(--surface)
        );
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.station-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: var(--card-accent,var(--accent));
}

.station-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-accent,var(--accent));
    background:
        linear-gradient(
            145deg,
            #1b2534,
            #121923
        );
}

.station-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .10em;
}

.station-card strong {
    max-width: 200px;
    font-size: 21px;
    line-height: 1.15;
}

.card-live {
    align-self: flex-start;
    margin-top: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--success);
    background: rgba(69,213,143,.09);
    font-size: 11px;
    font-weight: 850;
}

.section-title {
    margin-top: 30px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

footer {
    margin-top: 46px;
    padding: 26px 0 36px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 720px) {
    .topbar {
        min-height: 64px;
    }

    .portal-link {
        display: none;
    }

    .hero {
        padding-top: 34px;
    }

    .portal-hero {
        padding-top: 45px;
    }

    .player-card {
        border-radius: 16px;
    }

    .player-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-actions {
        width: 100%;
    }

    .action-button {
        flex: 1;
    }
}
