:root {
  color-scheme: dark;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --surface: #18181b;
  --line: rgba(255, 255, 255, 0.12);
  --red: #e11d48;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 8%, rgba(225, 29, 72, 0.14), transparent 28rem),
    linear-gradient(145deg, #09090b 20%, #111114 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.masthead {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.bbc-boxes { display: flex; gap: 3px; }
.bbc-boxes b {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: #09090b;
  background: white;
  font: 800 21px/1 Arial, sans-serif;
}
.brand-channel { font-size: 23px; font-weight: 300; letter-spacing: .17em; }

.live-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(225, 29, 72, 0.45);
  border-radius: 999px;
  color: #fecdd3;
  background: rgba(225, 29, 72, 0.09);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(225,29,72,.15); }

.hero { padding: 68px 0 36px; }
.eyebrow { margin-bottom: 9px; color: #fb7185; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(44px, 8vw, 88px); font-weight: 700; letter-spacing: -.055em; line-height: .95; }
.hero p { max-width: 580px; margin: 22px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }

.player-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
video { display: block; width: 100%; height: 100%; background: #000; }

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle, #18181b, #050505 65%);
  transition: opacity .35s ease, visibility .35s ease;
}
.overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.overlay strong { margin-top: 12px; font-size: 19px; }
.overlay span { max-width: 620px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.overlay.ready .spinner { display: none; }
.overlay.error .spinner { display: none; }
.overlay.error strong { color: #fda4af; }
.spinner { width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.14); border-top-color: var(--red); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

button { margin-top: 15px; padding: 11px 18px; border: 0; border-radius: 8px; color: white; background: var(--red); font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #be123c; }
button[hidden] { display: none; }

.player-meta { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-top: 1px solid var(--line); }
.meta-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.player-meta strong { font-size: 16px; }
.signal { height: 22px; display: flex; align-items: end; gap: 3px; }
.signal i { display: block; width: 3px; border-radius: 3px; background: #4ade80; }
.signal i:nth-child(1) { height: 6px; }.signal i:nth-child(2) { height: 10px; }.signal i:nth-child(3) { height: 15px; }.signal i:nth-child(4) { height: 21px; }

footer { display: flex; justify-content: space-between; padding: 28px 2px 45px; color: #71717a; font-size: 12px; letter-spacing: .04em; }

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1160px); }
  .masthead { min-height: 70px; }
  .bbc-boxes b { width: 24px; height: 24px; font-size: 17px; }
  .brand-channel { font-size: 19px; }
  .hero { padding: 45px 2px 28px; }
  .player-card { border-radius: 12px; }
  .player-meta { padding: 16px; }
  .overlay strong { font-size: 16px; }
}
