:root {
  color-scheme: dark;
  --bg: #030506;
  --panel: rgba(6, 10, 10, 0.84);
  --panel-strong: rgba(7, 12, 12, 0.95);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f7ef;
  --text-dim: rgba(244, 247, 239, 0.68);
  --text-faint: rgba(244, 247, 239, 0.38);
  --green: #93ff63;
  --green-soft: rgba(147, 255, 99, 0.18);
  --purple: #9d73ff;
  --purple-soft: rgba(157, 115, 255, 0.18);
  --amber: #ffd898;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(147, 255, 99, 0.12), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(157, 115, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(5, 16, 11, 0.86), rgba(3, 6, 7, 0.98) 46%),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at center, transparent 44%, rgba(0, 0, 0, 0.78) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 2px,
      transparent 5px
    );
  opacity: 0.28;
}

body::after {
  background:
    linear-gradient(90deg, transparent 0 51%, rgba(147, 255, 99, 0.12) 51% 52%, transparent 52% 100%),
    linear-gradient(180deg, transparent 0 58%, rgba(157, 115, 255, 0.12) 58% 59.4%, transparent 59.4% 100%);
  mix-blend-mode: screen;
  opacity: 0.32;
}

.signal-fog,
.signal-grid,
.neon-strip {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.signal-fog {
  filter: blur(120px);
  opacity: 0.32;
}

.signal-fog--left {
  background:
    radial-gradient(circle at 14% 18%, rgba(147, 255, 99, 0.22), transparent 24%),
    radial-gradient(circle at 32% 74%, rgba(255, 255, 255, 0.04), transparent 14%);
}

.signal-fog--right {
  background:
    radial-gradient(circle at 82% 16%, rgba(157, 115, 255, 0.24), transparent 24%),
    radial-gradient(circle at 72% 72%, rgba(147, 255, 99, 0.08), transparent 16%);
}

.signal-grid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 86%);
  opacity: 0.14;
}

.neon-strip--green {
  background: linear-gradient(90deg, transparent 0 53%, rgba(147, 255, 99, 0.18) 53% 54.4%, transparent 54.4% 100%);
  mix-blend-mode: screen;
  opacity: 0.24;
}

.neon-strip--purple {
  background: linear-gradient(180deg, transparent 0 56%, rgba(157, 115, 255, 0.18) 56% 57.4%, transparent 57.4% 100%);
  mix-blend-mode: screen;
  opacity: 0.24;
}

.live-layout {
  position: relative;
  z-index: 1;
  width: min(1580px, calc(100% - 28px));
  margin: 14px auto 30px;
  display: grid;
  gap: 16px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.brand-lockup,
.topbar-stack,
.guide-shell,
.lineup-shell,
.pool-shell {
  display: grid;
}

.brand-lockup,
.topbar-stack,
.guide-shell,
.lineup-shell,
.pool-shell {
  gap: 12px;
}

.eyebrow,
.section-kicker,
.live-pill__label,
.site-network__eyebrow,
.site-network__link,
.status-pill,
.deck-button,
.volume-control,
.info-pill,
.program-chip,
.program-meta,
.mini-copy,
.pool-stat,
.schedule-time,
.schedule-label,
.schedule-meta,
.rule-chip {
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-faint);
}

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

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.84;
  letter-spacing: 0.12em;
  color: #f6ffef;
  text-shadow:
    0 0 18px rgba(147, 255, 99, 0.1),
    0 0 18px rgba(157, 115, 255, 0.08);
}

.live-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 0 18px;
  border: 1px solid rgba(147, 255, 99, 0.16);
  border-radius: 999px;
  background: rgba(5, 16, 10, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 28px rgba(147, 255, 99, 0.08);
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #f2ffe8, var(--green) 70%);
  box-shadow:
    0 0 0 6px rgba(147, 255, 99, 0.08),
    0 0 18px rgba(147, 255, 99, 0.3);
}

.live-pill__body {
  display: grid;
  gap: 3px;
}

.live-pill__label {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.live-pill__copy {
  color: var(--text);
  font-size: 0.96rem;
}

.topbar-network.site-network {
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(9, 10, 12, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.topbar-network .site-network__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-network .site-network__link {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

.topbar-network .site-network__link::after {
  content: none;
}

.topbar-network .site-network__link[aria-current="page"] {
  color: #f8ffe5;
  background:
    linear-gradient(180deg, rgba(157, 115, 255, 0.16), rgba(147, 255, 99, 0.06)),
    rgba(10, 18, 14, 0.94);
}

.broadcast-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 420px);
  gap: 16px;
  align-items: start;
}

.screen-shell,
.panel-shell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    var(--shadow);
}

.screen-shell {
  display: grid;
  gap: 14px;
}

.screen-stage {
  position: relative;
  padding: 18px 18px 0;
}

.screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 48% 42%, rgba(18, 56, 32, 0.48), rgba(3, 5, 6, 0.98) 74%),
    #010203;
  box-shadow:
    0 0 0 14px rgba(3, 4, 6, 0.98),
    0 0 0 15px rgba(255, 255, 255, 0.04),
    inset 0 0 180px rgba(0, 0, 0, 0.86),
    inset 0 0 42px rgba(255, 255, 255, 0.02),
    0 30px 60px rgba(0, 0, 0, 0.34);
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(124deg, rgba(255, 255, 255, 0.05), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.02));
  z-index: 1;
  pointer-events: none;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(157, 115, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    inset 0 0 28px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.screen-video,
.screen-canvas,
.boot-panel,
.hud,
.screen-scanlines,
.screen-vignette {
  position: absolute;
  inset: 0;
}

.screen-video,
.screen-canvas {
  width: 100%;
  height: 100%;
}

.screen-video {
  object-fit: cover;
  opacity: 0;
  background: #000;
  filter:
    contrast(1.16)
    brightness(0.8)
    saturate(1.04)
    sepia(0.03);
  transition: opacity 260ms ease;
}

.screen-video.is-visible {
  opacity: 1;
}

.screen-canvas {
  pointer-events: none;
}

.screen-canvas--noise {
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 180ms ease;
}

.screen-canvas--noise.is-visible {
  opacity: 0.66;
}

.boot-panel {
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
  color: var(--green);
  background:
    radial-gradient(circle at center, rgba(10, 29, 17, 0.9), rgba(3, 6, 5, 0.98) 72%);
  transition: opacity 220ms ease;
}

.boot-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 2px,
      transparent 4px
    );
  opacity: 0.1;
  pointer-events: none;
}

.boot-panel.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-panel p {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  letter-spacing: 0.16em;
}

.boot-panel span {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 255, 191, 0.74);
}

.broadcast-bug {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 6;
  width: clamp(92px, 9vw, 132px);
  opacity: 0.92;
  pointer-events: none;
  filter:
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 16px rgba(147, 255, 99, 0.18));
}

.broadcast-bug__image {
  display: block;
  width: 100%;
  height: auto;
}

.hud {
  display: none;
}

.hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(202, 255, 216, 0.78);
  text-shadow: 0 0 16px rgba(168, 255, 191, 0.14);
}

.hud-row--bottom {
  margin-top: auto;
  margin-bottom: 8px;
  color: rgba(244, 224, 255, 0.84);
}

.screen-scanlines {
  z-index: 4;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 2px,
      transparent 4px
    );
  opacity: 0.14;
  pointer-events: none;
}

.screen-vignette {
  z-index: 5;
  border-radius: 34px;
  box-shadow:
    inset 0 0 52px rgba(255, 255, 255, 0.02),
    inset 0 0 130px rgba(0, 0, 0, 0.78);
  pointer-events: none;
}

.control-rack,
.guide-shell,
.lineup-shell,
.pool-shell {
  padding: 18px;
}

.control-rack {
  display: grid;
  gap: 14px;
  margin: 0 18px 18px;
}

.control-head,
.section-head,
.section-head--tight {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.info-pill,
.status-pill,
.program-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.info-pill,
.status-pill {
  color: var(--green);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-pill--muted {
  color: var(--text-dim);
}

.mini-copy {
  align-self: center;
  color: var(--text-faint);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.deck-button,
.guide-stat,
.program-card,
.schedule-card,
.pool-card,
.rules-card,
.volume-control {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(7, 10, 12, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.deck-button {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.deck-button:hover,
.deck-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  outline: none;
}

.deck-button--accent {
  background:
    linear-gradient(180deg, rgba(147, 255, 99, 0.18), rgba(147, 255, 99, 0.05)),
    rgba(10, 18, 11, 0.94);
}

.deck-button--utility {
  background:
    linear-gradient(180deg, rgba(157, 115, 255, 0.16), rgba(157, 115, 255, 0.05)),
    rgba(11, 10, 18, 0.94);
}

.volume-control {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  min-height: 56px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-dim);
}

.volume-control span {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.volume-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.volume-track input {
  width: 100%;
  accent-color: var(--green);
}

.guide-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guide-stat,
.program-card,
.rules-card,
.schedule-card,
.pool-card {
  padding: 16px;
  border-radius: 22px;
  display: grid;
  gap: 10px;
}

.guide-stat span,
.pool-card span,
.pool-stat {
  color: var(--text-faint);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.guide-stat strong {
  font-size: 1.08rem;
  line-height: 1.1;
}

.program-card h3 {
  font-size: 1.18rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.program-card--live {
  background:
    radial-gradient(circle at top right, rgba(147, 255, 99, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(7, 10, 12, 0.86);
}

.program-card--tonight {
  background:
    radial-gradient(circle at top right, rgba(157, 115, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(9, 9, 13, 0.88);
}

.program-meta {
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.65;
}

.program-chip-row,
.rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.program-chip {
  color: var(--text-dim);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rule-chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.schedule-list,
.pool-grid {
  display: grid;
  gap: 12px;
}

.schedule-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-card.is-live {
  border-color: rgba(147, 255, 99, 0.26);
  background:
    radial-gradient(circle at top right, rgba(147, 255, 99, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(9, 12, 12, 0.9);
}

.schedule-card.is-feature {
  border-color: rgba(157, 115, 255, 0.22);
}

.schedule-time,
.schedule-label,
.schedule-meta {
  color: var(--text-dim);
}

.schedule-time {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.schedule-card h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.schedule-label {
  font-size: 0.72rem;
  line-height: 1.55;
}

.schedule-meta {
  font-size: 0.74rem;
  line-height: 1.65;
}

.pool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pool-card h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.pool-card p {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.65;
}

.pool-card .program-chip-row {
  margin-top: auto;
}

.screen:fullscreen,
.screen:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.screen:fullscreen .screen-video,
.screen:-webkit-full-screen .screen-video {
  object-fit: contain;
}

.screen:fullscreen .screen-vignette,
.screen:fullscreen .screen-scanlines,
.screen:-webkit-full-screen .screen-vignette,
.screen:-webkit-full-screen .screen-scanlines {
  border-radius: 0;
}

.screen:fullscreen::backdrop,
.screen:-webkit-full-screen::backdrop {
  background: #000;
}

@media (max-width: 1220px) {
  .topbar,
  .broadcast-grid,
  .schedule-list,
  .pool-grid {
    grid-template-columns: 1fr;
  }

  .topbar-network .site-network__links {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .live-layout {
    width: min(100%, calc(100% - 18px));
    margin: 10px auto 22px;
  }

  .controls,
  .guide-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(3.4rem, 18vw, 4.9rem);
  }

  .screen-stage,
  .control-rack,
  .guide-shell,
  .lineup-shell,
  .pool-shell {
    padding: 14px;
  }

  .control-rack {
    margin: 0 14px 14px;
  }

  .controls,
  .guide-stats {
    grid-template-columns: 1fr;
  }

  .screen {
    border-radius: 24px;
  }

  .broadcast-bug {
    top: 14px;
    right: 14px;
    width: clamp(78px, 18vw, 108px);
  }
}
