:root {
  color-scheme: dark;

  /* The Sound Room */
  --wallpaper: #0d1217;
  --wallpaper-stripe: #121921;
  --tv-glow: rgba(0, 240, 255, 0.18);
  --wood: #2c1a11;
  --wood-light: #44281a;
  --wood-dark: #1b100a;
  --bezel: #121418;
  --room-text: #e2eaf0;
  --room-muted: #8b9bb4;

  /* Soundclash Spectrum Colors */
  --station-cyan: #00f0ff;
  --station-purple: #b026ff;
  --station-amber: #ffaa00;
  --station-green: #39ff14;
  --station-red: #ff0055;
  --station-yellow: #ffe600;

  --chrome: #f2c14e;
  --paper: #fff6dc;
  --ink: #11141a;

  --pixel-font: "Pixelify Sans", monospace, sans-serif;
  --broadcast-font: "Jersey 10", "Pixelify Sans", monospace, sans-serif;
  --body-font: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;

  /* Channel guide */
  --guide-bg: #070d18;
  --guide-bg-2: #0c1527;
  --guide-cell: #13233f;
  --guide-line: #050912;
  --guide-text: #a8bee6;
}

* {
  box-sizing: border-box;
}

[hidden],
.bumper[hidden],
.bubble[hidden],
.lower-third[hidden],
.standby[hidden],
.tip-toast[hidden],
#videoPlayer[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--wallpaper);
  background-image:
    radial-gradient(ellipse 65% 50% at 50% 30%, var(--tv-glow), transparent 75%),
    repeating-linear-gradient(90deg, transparent 0 24px, var(--wallpaper-stripe) 24px 28px);
  color: var(--room-text);
  font-family: var(--pixel-font);
  -webkit-font-smoothing: none;
}

p {
  margin: 0;
}

a {
  color: var(--station-cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.room {
  width: min(1140px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 40px) 0 64px;
}

/* ------------------------------------------------------------------ */
/* Masthead                                                           */
/* ------------------------------------------------------------------ */

.masthead {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  font-family: var(--broadcast-font);
  font-size: 2.2rem;
  line-height: 1;
  background: linear-gradient(135deg, #ffaa00, #ff0055);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 0 16px rgba(255, 170, 0, 0.4);
}

.brand-name {
  font-family: var(--broadcast-font);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, #ffffff 40%, #b0c6e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-family: var(--body-font);
  font-size: 1.05rem;
  color: var(--room-muted);
}

.tagline small {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: #7b8fa3;
}

/* ------------------------------------------------------------------ */
/* The TV / Soundclash Cabinet                                        */
/* ------------------------------------------------------------------ */

.tv {
  padding: clamp(12px, 2.5vw, 28px) clamp(12px, 2.5vw, 28px) 0;
  border-radius: clamp(12px, 2.2vw, 24px);
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(
      178deg,
      transparent 0 8px,
      rgba(0, 0, 0, 0.18) 8px 10px,
      transparent 10px 18px,
      rgba(255, 200, 150, 0.04) 18px 19px
    ),
    linear-gradient(180deg, var(--wood-light), var(--wood) 45%, var(--wood-dark));
  box-shadow:
    inset 0 2px 0 rgba(255, 220, 180, 0.2),
    inset 0 -3px 0 rgba(0, 0, 0, 0.4),
    0 30px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  overflow: hidden;
  background: #040608;
  border-radius: 3.5% / 6%;
  box-shadow:
    0 0 0 clamp(8px, 1.4vw, 16px) var(--bezel),
    0 0 0 calc(clamp(8px, 1.4vw, 16px) + 2px) #000,
    inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.picture {
  position: absolute;
  inset: 0;
}

.screen[data-state="off"] .picture {
  visibility: hidden;
}

.screen[data-state="on"] .picture {
  animation: power-on 700ms steps(14) both;
}

@keyframes power-on {
  0% {
    transform: scale(1, 0.003);
    filter: brightness(8);
  }
  35% {
    transform: scale(1, 0.02);
    filter: brightness(4);
  }
  70% {
    transform: scale(1, 1.05);
    filter: brightness(1.7);
  }
  100% {
    transform: none;
    filter: none;
  }
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
}

#videoPlayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  z-index: 2;
}

#videoPlayer[hidden] {
  display: none;
}

.glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.65));
}

/* Power overlay */
.power {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2cqw;
  text-align: center;
  color: var(--room-muted);
  font-size: clamp(13px, 1.8cqw, 19px);
  background: rgba(4, 6, 9, 0.95);
  z-index: 50;
}

.screen[data-state="on"] .power {
  display: none;
}

#powerBtn {
  font-family: var(--broadcast-font);
  font-size: clamp(1.4rem, 3cqw, 2.2rem);
  padding: 0.6em 1.4em;
  background: linear-gradient(180deg, #ffaa00, #ff5500);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 170, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

#powerBtn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 35px rgba(255, 170, 0, 0.7);
}

#powerBtn:active {
  transform: scale(0.98);
}

/* Overlays on Screen */
.bug-live {
  position: absolute;
  top: 3cqw;
  right: 3.5cqw;
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  font-family: var(--broadcast-font);
  font-size: clamp(14px, 2.2cqw, 24px);
  background: rgba(0, 0, 0, 0.7);
  padding: 0.3cqw 1.2cqw;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
  color: #fff;
}

.bug-live .live {
  background: var(--station-red);
  color: #fff;
  padding: 0.1cqw 0.7cqw;
  border-radius: 3px;
  font-size: 0.85em;
  animation: pulse-live 1.2s infinite alternate ease-in-out;
}

@keyframes pulse-live {
  0% { opacity: 0.7; }
  100% { opacity: 1; box-shadow: 0 0 10px rgba(255, 0, 85, 0.8); }
}

.tip-toast {
  position: absolute;
  top: 10cqw;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 170, 0, 0.95);
  color: #000;
  font-family: var(--broadcast-font);
  font-size: clamp(14px, 2.4cqw, 26px);
  padding: 0.6cqw 1.8cqw;
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 0 0 25px rgba(255, 170, 0, 0.8);
  z-index: 20;
  animation: slide-toast 0.4s ease-out;
}

@keyframes slide-toast {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.bubble {
  position: absolute;
  bottom: 22cqw;
  left: 5cqw;
  max-width: 65cqw;
  background: rgba(10, 16, 26, 0.9);
  border: 2px solid var(--station-cyan);
  padding: 0.8cqw 1.4cqw;
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
  z-index: 10;
}

.bubble p {
  font-family: var(--broadcast-font);
  font-size: clamp(14px, 2.5cqw, 28px);
  color: #fff;
  line-height: 1.15;
}

/* Lower Third */
.lower-third {
  position: absolute;
  left: 3cqw;
  bottom: 8.5cqw;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.lt-tab {
  display: inline-block;
  align-self: flex-start;
  background: var(--station-amber);
  color: #000;
  font-family: var(--broadcast-font);
  font-size: clamp(11px, 1.8cqw, 20px);
  font-weight: 800;
  padding: 0.1cqw 0.8cqw;
  border-radius: 3px 3px 0 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lt-name {
  background: rgba(8, 12, 20, 0.88);
  border-left: 4px solid var(--station-cyan);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.3cqw 1cqw;
  display: flex;
  align-items: baseline;
  gap: 1.2cqw;
}

.lt-name strong {
  font-family: var(--broadcast-font);
  font-size: clamp(15px, 2.8cqw, 30px);
  color: #fff;
  letter-spacing: 0.02em;
}

.lt-name span {
  font-family: var(--body-font);
  font-size: clamp(10px, 1.6cqw, 18px);
  color: var(--station-cyan);
}

/* Bumper Transition Screen */
.bumper {
  position: absolute;
  inset: 0;
  background: #060910;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 15;
}

.bumper-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 170, 0, 0.12) 0 25px,
    transparent 25px 50px
  );
  animation: scroll-stripes 6s linear infinite;
}

@keyframes scroll-stripes {
  from { background-position: 0 0; }
  to { background-position: 100px 0; }
}

.bumper-brand {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5cqw;
}

.bumper-logo {
  font-family: var(--broadcast-font);
  font-size: clamp(2.5rem, 8cqw, 5.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffaa00, #ff0055);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.bumper-slogan {
  font-family: var(--pixel-font);
  font-size: clamp(11px, 1.8cqw, 20px);
  color: #b0c6e8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bumper-card {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid var(--station-amber);
  padding: 1cqw 3cqw;
  border-radius: 6px;
  max-width: 70cqw;
}

.bumper-label {
  font-family: var(--broadcast-font);
  font-size: clamp(12px, 1.8cqw, 20px);
  color: var(--station-amber);
  text-transform: uppercase;
}

.bumper-title {
  font-family: var(--broadcast-font);
  font-size: clamp(16px, 3.2cqw, 34px);
  color: #fff;
}

.bumper-tease {
  font-family: var(--body-font);
  font-size: clamp(11px, 1.6cqw, 18px);
  color: var(--station-cyan);
}

/* Standby SMPTE Bars */
.standby {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #000;
  z-index: 5;
}

.standby .bars {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.standby .bars div:nth-child(1) { background: #c0c0c0; }
.standby .bars div:nth-child(2) { background: #c0c000; }
.standby .bars div:nth-child(3) { background: #00c0c0; }
.standby .bars div:nth-child(4) { background: #00c000; }
.standby .bars div:nth-child(5) { background: #c000c0; }
.standby .bars div:nth-child(6) { background: #c00000; }
.standby .bars div:nth-child(7) { background: #0000c0; }

.standby p {
  position: relative;
  z-index: 2;
  font-family: var(--broadcast-font);
  font-size: clamp(16px, 3.5cqw, 36px);
  background: #000;
  color: #fff;
  padding: 0.5cqw 2cqw;
  border-radius: 4px;
}

/* Ticker Crawl */
.ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6cqw;
  background: #080c14;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  z-index: 10;
  overflow: hidden;
}

.ticker-label {
  background: var(--station-red);
  color: #fff;
  font-family: var(--broadcast-font);
  font-size: clamp(11px, 2cqw, 22px);
  padding: 0 1.5cqw;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-text {
  display: inline-block;
  font-family: var(--body-font);
  font-size: clamp(10px, 1.7cqw, 18px);
  color: #e2eaf0;
  padding-left: 100%;
  animation: ticker-crawl 28s linear infinite;
}

@keyframes ticker-crawl {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ------------------------------------------------------------------ */
/* Captions / Teleprompter                                             */
/* ------------------------------------------------------------------ */

.captions {
  background: #0c121d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  color: #d1dde8;
}

.cap-name {
  font-family: var(--broadcast-font);
  color: var(--station-amber);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cap-text {
  font-family: var(--body-font);
  font-size: 0.95rem;
  line-height: 1.4;
  color: #fff;
}

/* ------------------------------------------------------------------ */
/* Cabinet Plate & Controls                                           */
/* ------------------------------------------------------------------ */

.cabinet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.9rem 0.4rem 1.4rem;
}

.plate {
  font-family: var(--broadcast-font);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: #a4b3c4;
  text-shadow: 1px 1px 0 #000;
}

.cab-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #8c9dae;
}

.cab-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--station-green);
  box-shadow: 0 0 8px var(--station-green);
  animation: pulse-dot 1.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.cab-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cab-btn {
  font-family: var(--broadcast-font);
  font-size: 1rem;
  padding: 0.35rem 0.75rem;
  background: #171d28;
  color: #cfdbeb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 120ms ease;
}

.cab-btn:hover {
  background: #232b3b;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.cab-btn[aria-pressed="true"] {
  background: var(--station-cyan);
  color: #000;
  border-color: var(--station-cyan);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* ------------------------------------------------------------------ */
/* Sections Layout                                                    */
/* ------------------------------------------------------------------ */

.sec {
  margin-top: 2rem;
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
}

.sec-head {
  margin-bottom: 1.2rem;
}

.sec-head h2 {
  font-family: var(--broadcast-font);
  font-size: 1.8rem;
  margin: 0;
  text-transform: uppercase;
  color: #fff;
}

.sec-head p {
  font-family: var(--body-font);
  font-size: 0.95rem;
  color: var(--room-muted);
  margin-top: 0.2rem;
}

/* ------------------------------------------------------------------ */
/* Channel Guide                                                      */
/* ------------------------------------------------------------------ */

/* Channel Tuning Static Overlay */
.channel-static-overlay {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 50% 50%, #fff 0, #000 2px, #222 4px);
  opacity: 0.65;
  mix-blend-mode: hard-light;
  z-index: 25;
  pointer-events: none;
  animation: static-flicker 0.04s infinite;
}

@keyframes static-flicker {
  0% { transform: scale(1.02) translate(1px, -1px); filter: contrast(150%) brightness(120%); }
  50% { transform: scale(0.98) translate(-1px, 2px); filter: contrast(130%) brightness(90%); }
  100% { transform: scale(1.01) translate(0, 0); filter: contrast(160%) brightness(110%); }
}

/* Cabinet Channel Controls */
.active-channel-pill {
  font-family: var(--broadcast-font);
  font-size: 0.85rem;
  background: #111a28;
  color: #00ff9d;
  border: 1px solid #1f2f45;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Channel Quick Switcher Bar */
.channel-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chan-quick-btn {
  font-family: var(--broadcast-font);
  font-size: 0.75rem;
  background: #121824;
  color: #a0aec0;
  border: 1px solid #233044;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chan-quick-btn:hover {
  color: #fff;
  border-color: #4a5568;
}

.chan-quick-btn.active {
  background: #00ff9d;
  color: #050811;
  border-color: #00ff9d;
  font-weight: bold;
}

/* Multi-Channel Grid & Cards */
.channel-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 1rem;
}

.channel-card {
  background: #090e17;
  border: 1px solid #1c2738;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.channel-card:hover {
  transform: translateY(-2px);
  border-color: #3b4e6b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.channel-card.active {
  border-color: var(--chan-color, #00ff9d);
  background: linear-gradient(180deg, rgba(14, 22, 35, 0.95), rgba(8, 12, 18, 0.98));
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.25);
}

.channel-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chan-badge {
  font-family: var(--broadcast-font);
  font-size: 0.8rem;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  color: #000;
}

.chan-status-badge {
  font-size: 0.72rem;
  font-family: monospace;
  color: #718096;
}

.channel-card.active .chan-status-badge {
  color: #00ff9d;
  font-weight: bold;
}

.chan-info h3 {
  font-family: var(--broadcast-font);
  font-size: 1.1rem;
  color: #fff;
  margin: 6px 0 2px 0;
  letter-spacing: 0.04em;
}

.chan-host {
  font-size: 0.8rem;
  color: #a0aec0;
  margin-bottom: 6px;
}

.chan-sonic-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 6px 8px;
  font-family: monospace;
  font-size: 0.72rem;
  color: #cbd5e0;
  line-height: 1.35;
}

.chan-now-playing {
  font-size: 0.75rem;
  color: #e2e8f0;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chan-now-playing strong {
  color: var(--chan-color, #00f0ff);
}

.chan-tune-btn {
  width: 100%;
  font-family: var(--broadcast-font);
  font-size: 0.85rem;
  padding: 7px 10px;
  border-radius: 4px;
  border: 1px solid #2d3d54;
  background: #101622;
  color: #cbd5e0;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}

.channel-card.active .chan-tune-btn {
  background: var(--chan-color, #00ff9d);
  color: #050811;
  border-color: var(--chan-color, #00ff9d);
  font-weight: bold;
}

.guide-timeline {
  display: none;
}

/* Now & Up Next */
.nownext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 700px) {
  .nownext { grid-template-columns: 1fr; }
}

.nn-cell {
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.nn-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--station-cyan);
}

.nn-cell:nth-child(2)::before {
  background: var(--station-purple);
}

.nn-label {
  font-family: var(--broadcast-font);
  font-size: 1.1rem;
  color: var(--station-amber);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.nn-show {
  font-family: var(--body-font);
  font-size: 0.85rem;
  color: var(--room-muted);
}

.nn-title {
  font-family: var(--broadcast-font);
  font-size: 1.5rem;
  color: #fff;
  margin: 0.2rem 0 0.5rem;
}

.nn-meta {
  font-family: var(--body-font);
  font-size: 0.88rem;
  color: var(--station-cyan);
}

/* Stems Breakdown List */
.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.source-item {
  background: #0a0f18;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.source-tag {
  font-family: var(--broadcast-font);
  font-size: 0.9rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--station-cyan);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.source-desc {
  font-family: var(--body-font);
  font-size: 0.95rem;
  color: #fff;
  flex: 1;
}

/* Resident MCs / Archetypes */
.onair {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.onair-card {
  background: #0a0f18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.onair-badge {
  font-family: var(--broadcast-font);
  font-size: 0.95rem;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  color: #000;
  font-weight: 800;
  align-self: flex-start;
}

.onair-name {
  font-family: var(--broadcast-font);
  font-size: 1.4rem;
  color: #fff;
  margin-top: 0.2rem;
}

.onair-title {
  font-family: var(--body-font);
  font-size: 0.85rem;
  color: var(--station-cyan);
}

.onair-desc {
  font-family: var(--body-font);
  font-size: 0.88rem;
  color: var(--room-muted);
  line-height: 1.4;
  margin-top: 0.4rem;
}

/* ------------------------------------------------------------------ */
/* Viewer Services                                                    */
/* ------------------------------------------------------------------ */

.tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.2rem;
}

.tab {
  font-family: var(--broadcast-font);
  font-size: 1.15rem;
  background: transparent;
  color: var(--room-muted);
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 120ms ease;
}

.tab:hover {
  color: #fff;
}

.tab[aria-selected="true"] {
  color: #fff;
  border-bottom-color: var(--station-amber);
}

.tabpanel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tabpanel[hidden] {
  display: none;
}

.mail-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mail-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 650px) {
  .mail-form .row { grid-template-columns: 1fr; }
}

.mail-form label {
  font-family: var(--body-font);
  font-size: 0.85rem;
  color: var(--room-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mail-form input,
.mail-form select,
.mail-form textarea {
  font-family: var(--body-font);
  background: #060910;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.mail-form input:focus,
.mail-form select:focus,
.mail-form textarea:focus {
  outline: none;
  border-color: var(--station-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.fine {
  font-family: var(--body-font);
  font-size: 0.82rem;
  color: #68798e;
  max-width: 500px;
}

.gold-btn {
  font-family: var(--broadcast-font);
  font-size: 1.15rem;
  background: linear-gradient(180deg, #ffaa00, #ff6600);
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
  transition: transform 120ms ease;
}

.gold-btn:hover {
  transform: scale(1.03);
}

.ghost-btn {
  font-family: var(--broadcast-font);
  font-size: 1.05rem;
  background: #172030;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
}

.form-status {
  font-family: var(--body-font);
  font-size: 0.9rem;
  color: var(--station-green);
  min-height: 1.2rem;
}

/* Treasury Box */
.treasury {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 750px) {
  .treasury { grid-template-columns: 1fr; }
}

.t-label {
  font-family: var(--broadcast-font);
  font-size: 1.1rem;
  color: var(--room-muted);
}

.t-amount {
  font-family: var(--broadcast-font);
  font-size: 3rem;
  color: var(--station-amber);
  font-weight: 800;
  line-height: 1;
}

.address {
  font-family: monospace;
  font-size: 0.85rem;
  background: #050810;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  word-break: break-all;
  color: var(--station-cyan);
  margin: 0.5rem 0;
}

/* Footer About */
.about {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: #728498;
  font-family: var(--body-font);
  font-size: 0.9rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about h2 {
  font-family: var(--broadcast-font);
  font-size: 1.6rem;
  color: #fff;
}

/* AI DJ Brain & Autoregressive Predictor Section */
.dj-brain-sec {
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.95) 0%, rgba(5, 8, 16, 0.98) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.dj-grid {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 1024px) {
  .dj-grid {
    grid-template-columns: 1fr;
  }
}

.dj-card {
  background: #090e1a;
  border: 1px solid rgba(35, 50, 80, 0.8);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dj-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(35, 50, 80, 0.6);
  padding-bottom: 0.5rem;
}

.dj-tag {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00f0ff;
  letter-spacing: 0.05em;
}

.dj-status-dot {
  font-family: monospace;
  font-size: 0.75rem;
  color: #00ff9d;
  font-weight: 600;
}

.dj-stat-row {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 0.8rem;
}

.dj-label {
  color: #718096;
}

.dj-val {
  color: #e2e8f0;
  font-weight: 600;
}

.candidate-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.candidate-row {
  background: #060911;
  border: 1px solid rgba(40, 55, 85, 0.6);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  position: relative;
  overflow: hidden;
}

.candidate-row.selected {
  border-color: #00ff9d;
  background: rgba(0, 255, 157, 0.05);
}

.cand-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 240, 255, 0.12);
  pointer-events: none;
  transition: width 0.3s ease;
}

.candidate-row.selected .cand-bar {
  background: rgba(0, 255, 157, 0.22);
}

.cand-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 0.8rem;
}

.cand-prob {
  font-weight: 700;
  color: #00f0ff;
  margin-right: 0.5rem;
}

.candidate-row.selected .cand-prob {
  color: #00ff9d;
}

.cand-title {
  color: #cbd5e1;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 0.5rem;
}

.cand-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: #1a2438;
  color: #a0aec0;
}

.candidate-row.selected .cand-badge {
  background: #00ff9d;
  color: #040810;
  font-weight: 700;
}

.dj-crossfader-meter {
  background: #060911;
  border: 1px solid rgba(40, 55, 85, 0.8);
  border-radius: 4px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.xf-labels {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 0.75rem;
  color: #718096;
}

.xf-track {
  height: 12px;
  background: #03050a;
  border-radius: 3px;
  position: relative;
  border: 1px solid #1a2538;
}

.xf-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.xf-handle {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 10px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
  left: 50%;
  transition: left 0.1s linear;
}

.sub-kill-status {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.kill-badge {
  flex: 1;
  text-align: center;
  font-family: monospace;
  font-size: 0.7rem;
  padding: 4px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: #718096;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kill-badge.active {
  background: rgba(0, 255, 157, 0.15);
  color: #00ff9d;
  border-color: #00ff9d;
}

.kill-badge.cut {
  background: rgba(255, 0, 85, 0.2);
  color: #ff0055;
  border-color: #ff0055;
  font-weight: 700;
}

/* Flywheel Live Console Strip */
.flywheel-console {
  margin-top: 1.25rem;
  background: #060911;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fw-console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
}

.fw-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00ff9d;
  letter-spacing: 0.04em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff9d;
  box-shadow: 0 0 8px #00ff9d;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.fw-counts {
  font-family: monospace;
  font-size: 0.8rem;
  color: #8b9bb4;
  display: flex;
  gap: 0.5rem;
}

.fw-counts strong {
  color: #ffe600;
}

.fw-task-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: monospace;
  font-size: 0.8rem;
}

.fw-task-label {
  color: #718096;
}

.fw-task-val {
  color: #00f0ff;
  font-weight: 600;
}

.fw-log-ticker {
  font-family: monospace;
  font-size: 0.75rem;
  color: #a0aec0;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border-left: 2px solid #00f0ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
