:root {
    --blue: #2456d8;
    --blue-dark: #1d49bd;
    --green: #00a86b;
    --ink: #14213d;
    --text: #182433;
    --muted: #667085;
    --bg: #f4f6fa;
    --border: #dce3ec;
    --white: #fff;
    --shadow: 0 16px 44px rgba(20, 33, 61, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
button { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.live-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}
.header-inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.live-brand { display: inline-flex; align-items: center; gap: 10px; }
.live-brand img { width: 166px; height: 50px; object-fit: contain; }
.brand-badge {
    padding: 4px 9px;
    border-radius: 999px;
    background: #eaf0ff;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.live-header nav { display: flex; align-items: center; gap: 24px; font-weight: 700; }
.live-header nav a { color: #344054; }
.live-header nav a:hover { color: var(--blue); }
.online,
.offline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.online { background: #e9f8f2; color: #008f5a; }
.offline { background: #eef2f6; color: #667085; }
.online i,
.offline i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.online i { background: var(--green); box-shadow: 0 0 0 4px rgba(0, 168, 107, .12); }
.offline i { background: #98a2b3; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 64px;
    background:
        radial-gradient(circle at 86% 6%, rgba(0, 168, 107, 0.11), transparent 28%),
        radial-gradient(circle at 4% 0%, rgba(36, 86, 216, 0.1), transparent 30%),
        var(--bg);
    flex: 1;
}
.stream-page .hero-copy,
.stream-page .feed-section,
.stream-page .register-cta {
    display: none;
}
.stream-page .hero {
    padding-top: 36px;
}
html:not(.stream-page) .hero {
    flex: 0 0 auto;
    padding-bottom: 40px;
}
.eyebrow {
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.hero-copy { margin-bottom: 28px; }
.hero-copy h1 {
    margin: 12px 0 12px;
    color: var(--ink);
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.08;
    letter-spacing: -.045em;
}
.hero-copy p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.player-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(20, 33, 61, .12);
}
.player-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0d1728;
}
.player-stage video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 70% 20%, rgba(0, 168, 107, 0.18), transparent 32%),
        radial-gradient(circle at 20% 80%, rgba(36, 86, 216, 0.22), transparent 36%),
        #14213d;
    color: #fff;
    text-align: center;
}
.placeholder-logo {
    width: min(220px, 48%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .22);
}
.placeholder-logo img {
    width: 86%;
    height: 86%;
    object-fit: contain;
}
.placeholder h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: -.03em;
}
.placeholder p { margin: 0; color: #9fb0c4; max-width: 420px; }
.placeholder[hidden],
.player-stage video[hidden] { display: none !important; }

.player-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}
.player-meta h2 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 18px;
}
.player-meta p { margin: 0; color: var(--muted); font-size: 13px; }
.button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s, background .15s, border-color .15s;
}
.button:hover { transform: translateY(-1px); }
.button.secondary {
    border-color: var(--border);
    background: #fff;
    color: #344054;
}
.button.secondary:hover { border-color: #b8c5d6; background: #f8fafc; }
.button.copied { border-color: #b8ead7; background: #effaf6; color: #008f5a; }

.share-row { margin-top: 18px; color: var(--muted); font-size: 13px; }
.share-row code {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ink);
    font-size: 12px;
}

footer { padding: 30px 0; background: var(--ink); color: #9fb0c4; }
.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.footer-inner > img {
    width: 130px;
    height: 44px;
    object-fit: contain;
    padding: 2px;
    border-radius: 7px;
    background: #fff;
}
.footer-inner p { margin: 0; }
.footer-inner div { display: flex; align-items: center; gap: 18px; }
.footer-inner a { color: #d8e3f0; font-weight: 700; }

@media (max-width: 860px) {
    .live-header nav a { display: none; }
    .footer-inner { grid-template-columns: auto 1fr; }
    .footer-inner div { grid-column: 1 / 3; }
}
@media (max-width: 620px) {
    .shell { width: min(100% - 28px, 1180px); }
    .header-inner { height: 66px; }
    .live-brand img { width: 142px; height: 44px; }
    .brand-badge { display: none; }
    .hero { padding: 28px 0 40px; }
    .hero-copy h1 { font-size: 32px; }
    .placeholder { padding: 16px; }
    .placeholder-logo { width: 88px; margin-bottom: 10px; border-radius: 14px; }
    .placeholder h2 { font-size: 18px; }
    .placeholder p { display: none; }
    .player-meta { flex-direction: column; align-items: stretch; }
    .player-meta .button { width: 100%; }
    .footer-inner { display: flex; align-items: flex-start; flex-direction: column; }
}
