/* CHANNELROAM — TV / Radio / Tube viewer styles. */

:root {
  --bg-room: #0e0c0a;
  --bg-room-2: #1a1612;
  --ink: #efe6d6;
  --ink-dim: rgba(239, 230, 214, 0.6);
  --warm-glow: oklch(0.78 0.13 70);
  --led-red: oklch(0.7 0.21 25);
  --led-green: oklch(0.78 0.18 145);
}

* { box-sizing: border-box; }

html, body, #root {
  margin: 0;
  padding: 0;
  background: var(--bg-room);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 50% 0%, #221c14 0%, #0e0c0a 70%) fixed;
  min-height: 100vh;
}

/* ───────────── App shell ──────────────────────── */

.app-shell {
  min-height: 100vh;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.app-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  max-width: 1280px;
  padding: 0 8px;
}

.app-wordmark {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.app-wordmark .dot { color: var(--warm-glow); }

.app-tagline {
  font-size: 13px;
  color: var(--ink-dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* Mode chunky toggle */
.mode-switch {
  display: inline-flex;
  background: #1d1815;
  border: 1px solid #2b231d;
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.4);
  margin-left: auto;
}

.mode-pill {
  padding: 10px 22px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  cursor: pointer;
  border: 0;
  background: transparent;
  transition: all 0.18s ease;
}
.mode-pill.on {
  color: #1a120a;
  background: var(--warm-glow);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 6px 20px rgba(230, 175, 80, 0.25);
}
.mode-pill:hover:not(.on) { color: var(--ink); }

/* Language filter — sub-header chip row that scopes TV/Radio/Tube to
   a single source language. Useful for "I'm studying French today"
   and persists across mode switches. */
.lang-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 16px 14px;
  width: 100%;
  max-width: 1280px;
}
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.lang-chip:hover:not(.on) {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}
.lang-chip.on {
  color: #1a120a;
  background: var(--warm-glow);
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 4px 14px rgba(230, 175, 80, 0.22);
}
.lang-chip-flag {
  font-size: 12px;
  line-height: 1;
}
.lang-chip-flag:empty { display: none; }
.lang-chip-count {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  opacity: 0.55;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
}
.lang-chip.on .lang-chip-count {
  background: rgba(0, 0, 0, 0.14);
  opacity: 0.7;
}

/* Stage holds the current mode and constrains width */
.stage {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: center;
}

.help-strip {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  gap: 22px;
  margin-top: 4px;
}
.help-strip kbd {
  background: #2a221c;
  border: 1px solid #3a2f25;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
  font-family: inherit;
}

/* ───────────── TV SET ─────────────────────────── */

.tv-set {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tv-antenna {
  position: relative;
  width: 360px;
  height: 110px;
  margin-bottom: -8px;
}
.tv-antenna-rod {
  position: absolute;
  bottom: 12px;
  width: 2px;
  height: 100px;
  background: linear-gradient(180deg, #b6a994 0%, #4a4036 100%);
  transform-origin: bottom center;
}
.tv-antenna-left  { left: calc(50% - 6px); transform: rotate(-32deg); }
.tv-antenna-right { left: calc(50% + 4px); transform: rotate(32deg); }
.tv-antenna-base {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 38px;
  height: 14px;
  background: linear-gradient(180deg, #3a2f25 0%, #1d1814 100%);
  border-radius: 5px 5px 2px 2px;
  box-shadow: 0 4px 0 #0b0905;
}

.tv-cabinet {
  position: relative;
  width: 940px;
  background:
    radial-gradient(ellipse at 50% 10%, #5a4632 0%, #3a2b1d 60%, #281c11 100%);
  border-radius: 24px 24px 30px 30px;
  padding: 28px 28px 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 170, 0.15),
    inset 0 -8px 30px rgba(0,0,0,0.5),
    0 30px 60px rgba(0,0,0,0.55);
}
.tv-skin-walnut .tv-cabinet { background: radial-gradient(ellipse at 50% 10%, #4a3320 0%, #2c1e12 70%, #1b1209 100%); }
.tv-skin-cream  .tv-cabinet { background: radial-gradient(ellipse at 50% 10%, #d8c9af 0%, #b39c7e 70%, #7d6a4f 100%); }

/* Faux wood grain — repeating subtle gradient lines */
.tv-cabinet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 220, 170, 0.04) 0 1px,
      transparent 1px 6px,
      rgba(0,0,0,0.08) 6px 7px,
      transparent 7px 14px
    );
  pointer-events: none;
  mix-blend-mode: overlay;
}

.tv-bezel {
  position: relative;
  background: #0d0a07;
  border-radius: 18px;
  padding: 22px;
  box-shadow:
    inset 0 0 0 2px #1a130d,
    inset 0 0 18px rgba(0,0,0,0.9),
    0 2px 0 rgba(255, 220, 170, 0.05);
}

.tv-badge {
  position: absolute;
  bottom: 6px;
  right: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #6a5a45;
  letter-spacing: 0.18em;
}

/* CRT screen */
.crt-screen-outer {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 32px;
  padding: 12px;
  box-shadow:
    inset 0 0 0 1px #2a2018,
    inset 0 0 24px rgba(0,0,0,0.9);
}
.crt-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  position: relative;
  /* fake CRT bulge with mask + transform */
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.9),
    inset 0 0 100px rgba(0,0,0,0.5);
}
.crt-screen-inner {
  position: absolute;
  inset: 0;
  transform: perspective(900px) rotateX(0.3deg);
  border-radius: inherit;
  overflow: hidden;
}

.crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.18) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 8;
}
.crt-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 9;
}
.crt-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255, 230, 200, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 10;
}

/* Broadcast content */
.crt-broadcast {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.32 0.06 var(--ch-hue)) 0%, oklch(0.18 0.05 var(--ch-hue)) 100%);
  overflow: hidden;
  animation: crt-on 280ms ease-out;
}
.crt-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      oklch(0.4 0.08 var(--ch-hue) / 0.18) 0 12px,
      transparent 12px 24px
    ),
    radial-gradient(circle at 70% 30%, oklch(0.5 0.12 var(--ch-hue) / 0.35) 0%, transparent 55%);
}

/* Live YouTube iframe stack — multiple feeds (prev / current / next) stay
   mounted and muted-autoplaying so a channel switch reveals an already
   buffered stream. Only the .active one is visible + clickable; the rest
   sit at opacity 0 (kept playing, *not* display:none, so the player keeps
   buffering in the background). All live beneath the CRT overlays. */
.crt-feed-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.crt-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}
.crt-feed.active {
  opacity: 1;
  pointer-events: auto;
}
/* When a live feed is showing, the overlay-only .crt-broadcast wrapper
   shouldn't paint its gradient or re-run the "CRT power-on" flash. */
.crt-broadcast.crt-has-feed {
  background: transparent;
  animation: none;
}

/* Whisper caption lower-third — rendered above the existing news ticker
   when the user enables CC on an HLS channel. Sits at z-index 7 so it's
   above the ticker (z-index 5) but below banners (7) and the scanlines
   (8). The status badge in the top-left shows model loading progress. */
.crt-caption-track {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 28%;
  z-index: 7;
  display: flex;
  justify-content: center;
  pointer-events: none;
  animation: caption-in 0.2s ease-out;
}
.crt-caption-text {
  display: inline-block;
  max-width: 100%;
  padding: 8px 16px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.01em;
}
@keyframes caption-in {
  from { transform: translateY(6px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

/* Captioner status pill — small badge top-left of the CRT, shows the
   model-load progress, "Listening…", or an error. */
.crt-caption-status {
  position: absolute;
  top: 6%;
  left: 4%;
  z-index: 6;
  padding: 4px 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  color: #f5f5f5;
  backdrop-filter: blur(2px);
}
.crt-caption-status-loading {
  background: rgba(60, 70, 100, 0.7);
  border-color: rgba(120, 140, 200, 0.4);
  color: #d0d8ee;
}
.crt-caption-status-error {
  background: rgba(110, 35, 35, 0.7);
  border-color: rgba(200, 80, 80, 0.4);
  color: #f4d2d2;
}

/* CC button on the control panel — same chunky button vibe as the
   keypad / rocker. Lights up green when captions are active, dims
   when the current channel can't be captioned (YT iframe). */
.tv-cc-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.tv-cc-btn {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(180deg, #5a3520 0%, #3d2515 100%);
  border: 1px solid #2a1a0e;
  color: #c8b08a;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    0 2px 0 #1c0f06 inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
}
.tv-cc-btn:hover:not(.tv-cc-btn-disabled) {
  background: linear-gradient(180deg, #6a3f25 0%, #482a18 100%);
  color: #e8d4ad;
}
.tv-cc-btn.on {
  background: linear-gradient(180deg, oklch(0.65 0.18 145) 0%, oklch(0.55 0.16 145) 100%);
  color: #061a08;
  box-shadow:
    0 2px 0 oklch(0.35 0.12 145) inset,
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 0 14px oklch(0.65 0.18 145 / 0.5);
}
.tv-cc-btn-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* Source badge — pinned bottom-right inside the CRT, tells the viewer
   whether the stream is direct broadcaster HLS (preferred) or a YouTube
   live embed, plus the language + region. Mono font, small caps. */
.crt-source-bug {
  position: absolute;
  bottom: 8%;
  right: 4%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f5f5f5;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  backdrop-filter: blur(2px);
  text-transform: uppercase;
}
.crt-source-bug .crt-source-type {
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.crt-source-hls .crt-source-type {
  background: oklch(0.65 0.18 145);
  color: #061;
}
.crt-source-yt .crt-source-type {
  background: oklch(0.62 0.22 25);
  color: #500;
}
.crt-source-sep {
  opacity: 0.4;
}
.crt-source-lang,
.crt-source-region {
  opacity: 0.85;
}

.crt-anchor-block {
  position: absolute;
  left: 12%;
  top: 14%;
  right: 12%;
  bottom: 35%;
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: 6px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.04) 0 8px,
      transparent 8px 16px
    );
}
.crt-placeholder-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

.crt-bug {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.55);
  border-left: 3px solid oklch(0.78 0.18 var(--ch-hue));
  padding: 6px 10px 6px 8px;
  border-radius: 2px;
  font-family: "Space Grotesk", sans-serif;
  z-index: 5;
}
.crt-bug-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #fff;
}
.crt-bug-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: oklch(0.55 0.21 25);
  color: #fff;
  padding: 2px 5px;
  border-radius: 1px;
}
.crt-bug-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}

.crt-time {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 16px;
  color: rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.45);
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 5;
}

.crt-channel-bug {
  position: absolute;
  bottom: 96px;
  right: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 3px 8px;
  z-index: 5;
}

.crt-lower-third {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}
.crt-lower-tag {
  display: inline-block;
  margin: 0 0 -2px 16px;
  background: oklch(0.55 0.21 25);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 9px;
  letter-spacing: 0.18em;
}
.crt-lower-headline {
  background: rgba(8, 18, 36, 0.85);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 18px;
  padding: 10px 18px;
  border-top: 2px solid oklch(0.78 0.18 var(--ch-hue));
}
.crt-ticker {
  background: oklch(0.78 0.18 var(--ch-hue));
  color: #0a0a0a;
  overflow: hidden;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 4px 0;
}
.crt-ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 28s linear infinite;
}
@keyframes ticker { to { transform: translateX(-100%); } }

/* Channel banner overlay */
.crt-banner {
  position: absolute;
  left: 24px;
  bottom: 130px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(20, 14, 6, 0.92) 0%, rgba(40, 30, 16, 0.92) 100%);
  border: 1px solid oklch(0.6 0.13 70);
  padding: 10px 16px 10px 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border-radius: 3px;
  animation: banner-in 0.3s ease-out;
  z-index: 7;
}
.crt-banner-num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 32px;
  color: oklch(0.85 0.16 70);
  line-height: 1;
}
.crt-banner-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.crt-banner-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
}

/* Static (tuning) */
.crt-static {
  position: absolute;
  inset: 0;
  background: #111;
  overflow: hidden;
}
.crt-static-noise {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, #d8d8d8 1px, transparent 1px),
    radial-gradient(circle at 80% 50%, #aaa 1px, transparent 1px),
    radial-gradient(circle at 30% 70%, #666 1px, transparent 1px),
    radial-gradient(circle at 60% 90%, #fff 1px, transparent 1px),
    radial-gradient(circle at 90% 10%, #888 1px, transparent 1px);
  background-size: 5px 5px, 7px 7px, 4px 4px, 6px 6px, 8px 8px;
  filter: contrast(1.2) brightness(0.95);
  animation: static-shift 80ms steps(2) infinite;
}
.crt-static-band {
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: static-band-move 1.4s linear infinite;
}
.crt-tuning-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 0 8px rgba(0,0,0,0.9);
  letter-spacing: 0.2em;
  z-index: 2;
}

@keyframes static-shift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(2px, -1px); }
}
@keyframes static-band-move {
  0%   { top: -50px; }
  100% { top: 100%; }
}
@keyframes crt-on {
  0%   { opacity: 0; transform: scaleY(0.02); filter: brightness(2); }
  20%  { opacity: 0.6; transform: scaleY(0.4); }
  100% { opacity: 1; transform: scaleY(1);    filter: brightness(1); }
}
@keyframes banner-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes pulse {
  50% { opacity: 0.35; }
}

/* TV control panel */
.tv-control-panel {
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 26px;
  padding: 20px 26px;
  background:
    linear-gradient(180deg, rgba(255, 220, 170, 0.06), transparent 30%),
    #1a120a;
  border-radius: 14px;
  border: 1px solid rgba(255, 220, 170, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,220,170,0.1), inset 0 -8px 16px rgba(0,0,0,0.5);
}

.tv-led-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 16px;
  background: #0a0604;
  border-radius: 6px;
  border: 1px solid #2a1c10;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.9);
  min-width: 80px;
}
.tv-led-num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 30px;
  color: var(--led-red);
  text-shadow: 0 0 8px oklch(0.7 0.21 25 / 0.7);
  letter-spacing: 0.05em;
}
.tv-led-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: oklch(0.55 0.16 25 / 0.7);
  letter-spacing: 0.2em;
}

.tv-keypad {
  display: grid;
  grid-template-columns: repeat(5, 36px);
  gap: 6px;
}
.tv-key {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: linear-gradient(180deg, #3a2d20 0%, #1f160e 100%);
  border: 1px solid #4a3a2a;
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,220,170,0.15), 0 2px 0 #0a0604;
  transition: transform 0.06s ease;
}
.tv-key:hover { background: linear-gradient(180deg, #4a3a28 0%, #281c10 100%); }
.tv-key:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,220,170,0.15); }

.tv-rocker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tv-rocker-btn {
  width: 44px;
  height: 28px;
  background: linear-gradient(180deg, #3a2d20 0%, #1f160e 100%);
  border: 1px solid #4a3a2a;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,220,170,0.12);
}
.tv-rocker-btn svg { width: 14px; height: 14px; }
.tv-rocker-btn:hover { color: var(--warm-glow); }
.tv-rocker-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.18em;
  padding: 1px 0;
}

.tv-knob-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tv-knob {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #5a4632 0%, #2a1d11 80%);
  border: 1px solid #3a2b1d;
  position: relative;
  cursor: ns-resize;
  box-shadow:
    inset 0 -2px 4px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,220,170,0.18),
    0 4px 8px rgba(0,0,0,0.5);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.12s ease;
}
.tv-knob-tick {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 12px;
  background: var(--warm-glow);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 6px var(--warm-glow);
}
.tv-knob-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.18em;
}

.tv-legs {
  width: 600px;
  height: 50px;
  display: flex;
  justify-content: space-between;
  padding: 0 80px;
  margin-top: -2px;
}
.tv-leg {
  width: 18px;
  height: 50px;
  background: linear-gradient(180deg, #2a1d11 0%, #0a0604 100%);
  border-radius: 0 0 8px 8px;
  transform: skewX(8deg);
  box-shadow: inset 1px 0 0 rgba(255,220,170,0.1);
}
.tv-legs .tv-leg:last-child { transform: skewX(-8deg); }
