:root {
  color-scheme: light dark;
  --bg: #edf8ff;
  --panel: rgba(10, 15, 24, .88);
  --panel-solid: #0d1320;
  --text: #f7fbff;
  --muted: #aeb9c9;
  --line: rgba(255, 255, 255, .14);
  --accent: #0ea5e9;
  --accent-strong: #1d4ed8;
  --cyan: #47d7ff;
  --gold: #f3b45c;
  --red: #f05252;
  --green: #34d399;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.broadcast-page {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}

.broadcast-page::before,
.broadcast-page::after {
  position: absolute;
  inset: 0;
  content: "";
}

.broadcast-page::before {
  z-index: -3;
  background:
    linear-gradient(100deg, #fbfdff 0%, #e8f8ff 24%, #bfeaff 48%, #4f9ed3 72%, #071421 100%);
}

.broadcast-page::after {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .08) 40%, rgba(3, 12, 22, .16) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .34) 0%, rgba(218, 244, 255, .16) 44%, rgba(4, 12, 22, .66) 100%);
}

.broadcast-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1540px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 22px 0 30px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(150px, 14vw, 220px);
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

.broadcast-grid {
  display: grid;
  grid-template-columns: minmax(260px, .45fr) minmax(760px, 1.55fr);
  gap: clamp(22px, 3vw, 56px);
  align-items: center;
  padding: 36px 0 18px;
}

.broadcast-copy {
  position: relative;
  min-width: 0;
}

.hero-logo {
  display: block;
  width: min(100%, 520px);
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: left center;
  filter:
    drop-shadow(0 22px 46px rgba(18, 76, 114, .18))
    drop-shadow(0 0 1px rgba(255, 255, 255, .72));
}

.broadcast-copy p {
  max-width: 520px;
  margin: 24px 0 0;
  color: #d8e3f2;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(176, 39, 49, .82);
  color: #fff6f6;
  box-shadow: 0 12px 30px rgba(91, 22, 31, .18);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-pill span,
.card-kicker span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(240, 82, 82, .16);
}

.players-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
  backdrop-filter: blur(18px);
  border-radius: 8px;
  padding: clamp(16px, 2vw, 22px);
}

.players-header {
  margin-bottom: 14px;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.video-card {
  min-width: 0;
}

.video-card h2 {
  margin: 0 0 9px;
  color: #f5f9ff;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  background:
    linear-gradient(135deg, rgba(71, 215, 255, .08), transparent),
    #05070b;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

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

.video-state {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 9, 13, .76);
  backdrop-filter: blur(14px);
  border-radius: 8px;
  padding: 9px 10px;
  color: #d8dfeb;
  font-size: 13px;
}

.video-state p {
  flex: 1 1 210px;
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.video-state.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #7f8a9a;
}

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

.status-dot.playing {
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(52, 211, 153, .12);
}

.status-dot.error {
  background: var(--red);
}

.sound-button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 11px;
  background: var(--cyan);
  color: #07101a;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.sound-button[hidden] {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

@media (max-width: 1180px) {
  .broadcast-grid {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .broadcast-copy {
    display: grid;
    grid-template-columns: minmax(190px, 360px) minmax(220px, 1fr);
    gap: 22px;
    align-items: center;
  }

  .broadcast-copy p {
    margin: 0;
  }
}

@media (max-width: 720px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .broadcast-page {
    min-height: auto;
    overflow: visible;
  }

  .broadcast-shell {
    width: min(100% - 28px, 900px);
    min-height: auto;
    padding: 16px 0 24px;
  }

  .brand-logo {
    width: min(46vw, 170px);
    max-height: 58px;
  }

  .broadcast-grid {
    padding-top: 28px;
    align-items: start;
  }

  .broadcast-copy {
    display: block;
    text-align: center;
  }

  .hero-logo {
    width: min(78vw, 320px);
    max-height: 260px;
    margin: 0 auto;
    object-position: center;
  }

  .broadcast-copy p {
    margin-top: 16px;
    font-size: 16px;
  }

  .players-grid {
    grid-template-columns: 1fr;
  }

  .players-panel {
    padding: 14px;
  }

  .video-state {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
  }
}
