/* StreamFusion 1-op-1 Interactive TV App (1920x1080 exact prototype stage scaled cleanly to fit).
   Zero website CSS leakage (strict reset inside .tv-canvas), zero reflow/overlap at any viewport width,
   authentic rotating startup animations ported from StartupStage.kt, compositor-only motion. */

/* --- Sleek Floating OLED TV Hardware Frame --- */
.tv-stage {
  margin-top: clamp(24px, 3.2vw, 38px);
  display: grid;
  justify-items: center;
  min-width: 0;
  width: 100%;
  --tv-accent: var(--accent, #ff9a3c);
}

.tv-ambient-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 1080px;
}

.tv-ambient-wrap::before {
  content: "";
  position: absolute;
  inset: -16px 3% -24px;
  border-radius: 36px;
  background: radial-gradient(
    ellipse 68% 58% at 50% 52%,
    color-mix(in srgb, var(--tv-accent) 20%, transparent),
    transparent 74%
  );
  filter: blur(30px);
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tv-ambient-wrap[data-power="off"]::before {
  opacity: 0.06;
}

.tv-bezel {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 10px 10px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #26231f 0%, #151311 48%, #100f0d 100%);
  box-shadow:
    0 36px 96px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* Subtle clickable hardware power LED on bottom bezel (extended 44x44 touch target via ::before) */
.tv-power-led {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 44px;
  height: 12px;
  margin-left: -22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 99px;
}

.tv-power-led::before {
  content: "";
  position: absolute;
  inset: -16px 0;
}

.tv-power-led::after {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--tv-accent) 85%, #ffffff);
  box-shadow: 0 0 10px color-mix(in srgb, var(--tv-accent) 70%, transparent);
  transition: width 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.tv-power-led:hover::after,
.tv-power-led:focus-visible::after {
  width: 34px;
  box-shadow: 0 0 14px var(--tv-accent);
}

.tv-power-led:focus-visible {
  outline: 2px solid var(--tv-accent);
  outline-offset: 2px;
}

.tv-ambient-wrap[data-power="off"] .tv-power-led::after {
  width: 6px;
  background: #ff5a52;
  box-shadow: 0 0 8px rgba(255, 90, 82, 0.8);
}

.tv-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  border-radius: 11px;
  overflow: hidden;
  background: #0e0d0b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  isolation: isolate;
  outline: none;
}

.tv-screen:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 2px #0e0d0b,
    0 0 0 4px color-mix(in srgb, var(--tv-accent) 82%, transparent);
}

/* Subtle OLED glass reflection */
.tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.025) 0%, transparent 32%);
}

/* Exact 1920x1080 virtual Android TV stage scaled proportionally by ResizeObserver */
.tv-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  transform: scale(var(--tv-scale, 0.55));
  background: #0e0d0b;
  color: #f2efe8;
  font-family: var(--font-ui);
  line-height: 1.25;
  user-select: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.14s ease;
  -webkit-font-smoothing: antialiased;
}

.tv-canvas[data-scaled="1"] {
  opacity: 1;
}

/* Zero-specificity reset inside .tv-canvas so every .tv-* class wins unconditionally */
:where(.tv-canvas button, .tv-canvas input) {
  all: unset;
  box-sizing: border-box;
}

:where(.tv-canvas button) {
  cursor: pointer;
}

:where(.tv-canvas img) {
  display: block;
}

/* Exact 24x24 SfLineIcons vector sizing */
.tv-ico {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.tv-ico-sm {
  width: 20px;
  height: 20px;
}

.tv-ico-md {
  width: 26px;
  height: 26px;
}

.tv-ico-lg {
  width: 32px;
  height: 32px;
}

/* --- TV Power-On / Power-Off Authentic OLED Beam --- */
.tv-power-curtain {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease-out;
}

.tv-screen[data-stage="off"] .tv-power-curtain,
.tv-screen[data-stage="poweron"] .tv-power-curtain,
.tv-screen[data-stage="poweroff"] .tv-power-curtain {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

.tv-power-shade {
  position: absolute;
  inset: 0;
  background: #050504;
  opacity: 1;
  will-change: opacity;
}

.tv-power-bloom {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 74% 58% at 50% 50%,
    rgba(255, 244, 224, 0.4) 0%,
    color-mix(in srgb, var(--tv-accent) 28%, transparent) 44%,
    rgba(255, 154, 60, 0) 78%
  );
  opacity: 0;
  transform: scale(0.35, 0.02);
  will-change: transform, opacity;
}

.tv-power-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: linear-gradient(
    90deg,
    rgba(255, 214, 158, 0) 0%,
    #fff7ea 15%,
    #ffffff 50%,
    #fff7ea 85%,
    rgba(255, 214, 158, 0) 100%
  );
  box-shadow:
    0 0 28px 6px rgba(255, 232, 196, 0.72),
    0 0 92px 20px color-mix(in srgb, var(--tv-accent) 44%, transparent);
  opacity: 0;
  transform: scale(0.008, 1);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: no-preference) {
  .tv-screen[data-stage="poweron"] .tv-power-shade {
    animation: sf-shade-wake 0.52s cubic-bezier(0.22, 0.85, 0.25, 1) forwards;
  }
  .tv-screen[data-stage="poweron"] .tv-power-bloom {
    animation: sf-bloom-wake 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }
  .tv-screen[data-stage="poweron"] .tv-power-line {
    animation: sf-line-wake 0.52s cubic-bezier(0.18, 0.88, 0.24, 1) forwards;
  }
  .tv-screen[data-stage="poweroff"] .tv-power-shade {
    animation: sf-shade-sleep 0.34s cubic-bezier(0.4, 0, 1, 1) forwards;
  }
  .tv-screen[data-stage="poweroff"] .tv-power-bloom {
    animation: sf-bloom-sleep 0.34s ease-in forwards;
  }
  .tv-screen[data-stage="poweroff"] .tv-power-line {
    animation: sf-line-sleep 0.34s cubic-bezier(0.45, 0, 0.85, 1) forwards;
  }
}

@keyframes sf-shade-wake {
  0%, 24% { opacity: 1; }
  78%, 100% { opacity: 0; }
}

@keyframes sf-bloom-wake {
  0%, 18% { opacity: 0; transform: scale(0.35, 0.02); }
  50% { opacity: 0.92; transform: scale(1, 0.72); }
  100% { opacity: 0; transform: scale(1.06, 1.12); }
}

@keyframes sf-line-wake {
  0% { opacity: 0; transform: scale(0.008, 1); }
  14% { opacity: 1; transform: scale(0.1, 1.15); }
  36% { opacity: 0.98; transform: scale(1, 1.35); }
  68% { opacity: 0.24; transform: scale(1.02, 22); }
  100% { opacity: 0; transform: scale(1.02, 38); }
}

@keyframes sf-shade-sleep {
  0% { opacity: 0; }
  64%, 100% { opacity: 1; }
}

@keyframes sf-bloom-sleep {
  0% { opacity: 0.32; transform: scale(1, 1); }
  52% { opacity: 0.6; transform: scale(0.96, 0.05); }
  100% { opacity: 0; transform: scale(0.06, 0.01); }
}

@keyframes sf-line-sleep {
  0% { opacity: 0.14; transform: scale(1, 34); }
  48% { opacity: 0.96; transform: scale(1, 1.1); }
  84% { opacity: 1; transform: scale(0.03, 1.1); }
  100% { opacity: 0; transform: scale(0.005, 0.8); }
}

/* --- Authentic StreamFusion Startup Stage (Exact 1920x1080 StartupDesign.kt coordinates) --- */
.tv-startup {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: #0e0d0b;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tv-startup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 38% 46% at 50% 44%, rgba(255, 128, 111, 0.1), transparent 72%);
  pointer-events: none;
}

/* Stay opaque during BOTH poweron (empty dark stage) and startup so Home UI can NEVER flash through */
.tv-screen[data-stage="poweron"] .tv-startup,
.tv-screen[data-stage="startup"] .tv-startup {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

.tv-screen[data-stage="fading"] .tv-startup {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sf-su-scene {
  position: relative;
  width: 1920px;
  height: 1080px;
}

/* Exact StartupDesign: LOGO_LEFT=800, LOGO_TOP=288, LOGO_W=320, LOGO_H=384 */
.sf-su-logo-box {
  position: absolute;
  left: 800px;
  top: 288px;
  width: 320px;
  height: 384px;
}

.sf-su-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

/* Exact StartupDesign: LINE_LEFT=830, LINE_TOP=776, LINE_W=260, LINE_H=4 */
.sf-su-track {
  position: absolute;
  left: 830px;
  top: 776px;
  width: 260px;
  height: 4px;
  border-radius: 99px;
  background: rgba(242, 239, 232, 0.1);
  overflow: hidden;
}

.sf-su-bar {
  width: 104px;
  height: 4px;
  border-radius: 99px;
  background: #ff806f;
  translate: -110% 0;
}

@media (prefers-reduced-motion: no-preference) {
  .sf-su-scene .sf-su-bar {
    animation: sf-su-load 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
}

@keyframes sf-su-load {
  from { translate: -110% 0; }
  to { translate: 260% 0; }
}

/* Wordmark clip box: top 648px, height 96px, padding-top 16px => NAME_TOP=664px, 64px Bricolage 800 */
.sf-su-wordmark {
  position: absolute;
  left: 0;
  right: 0;
  top: 648px;
  height: 96px;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  font: 800 64px/1 var(--font-ui);
  letter-spacing: -0.04em;
}

.sf-su-letter {
  display: inline-block;
  color: #f2efe8;
  translate: 0 0;
  opacity: 1;
}

.sf-su-letter.g1 { color: #ffbd29; }
.sf-su-letter.g2 { color: #ffa232; }
.sf-su-letter.g3 { color: #ff873a; }
.sf-su-letter.g4 { color: #ff653e; }
.sf-su-letter.g5 { color: #ff4a4f; }
.sf-su-letter.g6 { color: #ff245e; }

/* Variant 01: Vouwen (Exact Variant01Fold.kt — per-part wrappers + flash + calm wave) */
.sf-su-flash {
  position: absolute;
  left: 650px;
  top: 170px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 128, 111, 0.32), transparent 70%);
  opacity: 0;
}

.sf-fold-part {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}
.sf-fold-upper { transform-origin: 51.3% 30.5%; }
.sf-fold-middle { transform-origin: 54.5% 57.8%; }
.sf-fold-lower { transform-origin: 45.1% 74.4%; }
.sf-fold-play { transform-origin: 53.2% 52.0%; }

@media (prefers-reduced-motion: no-preference) {
  .sf-v-fold .sf-fold-upper {
    animation:
      sf-fold-u 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) both,
      sf-rib-wave 2.4s ease-in-out 1.65s infinite none;
  }
  .sf-v-fold .sf-fold-middle {
    animation:
      sf-fold-m 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) both,
      sf-rib-wave 2.4s ease-in-out 1.81s infinite none;
  }
  .sf-v-fold .sf-fold-lower {
    animation:
      sf-fold-l 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) both,
      sf-rib-wave 2.4s ease-in-out 1.97s infinite none;
  }
  .sf-v-fold .sf-fold-play {
    animation:
      sf-fold-p 2.4s ease-out both,
      sf-rib-play 2.4s ease-in-out 2.13s infinite none;
  }
  .sf-v-fold .sf-su-flash {
    animation: sf-fold-flash 2.4s ease both;
  }
}

@keyframes sf-fold-u {
  0% { opacity: 0; transform: translate(118px, -106px) rotate(10deg); }
  20%, 100% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
}
@keyframes sf-fold-m {
  0%, 9% { opacity: 0; transform: translate(156px, 11px) rotate(-6deg); }
  30%, 100% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
}
@keyframes sf-fold-l {
  0%, 19% { opacity: 0; transform: translate(-134px, 106px) rotate(-10deg); }
  40%, 100% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
}
@keyframes sf-fold-p {
  0%, 38% { opacity: 0; transform: scale(0); }
  49% { opacity: 1; transform: scale(1.3); }
  57% { opacity: 1; transform: scale(0.94); }
  63%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes sf-fold-flash {
  0%, 40% { opacity: 0; }
  52% { opacity: 1; }
  72%, 100% { opacity: 0.4; }
}
@keyframes sf-rib-wave {
  0%, 34%, 100% { transform: scale(1); }
  12% { transform: scale(1.045); }
}
@keyframes sf-rib-play {
  0%, 34%, 100% { transform: scale(1); }
  12% { transform: scale(1.14); }
}

/* Variant 03: Hartslag (Exact Variant03Heartbeat.kt — glow + dual rings + centered play beat) */
.sf-hb-glow {
  position: absolute;
  left: 610px;
  top: 130px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 128, 111, 0.28) 0%, transparent 70%);
  opacity: 0.35;
}
.sf-hb-ring {
  position: absolute;
  left: 756px;
  top: 276px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 3px solid rgba(255, 128, 111, 0.78);
  opacity: 0;
  transform: scale(0.55);
}
.sf-hb-ring.r2 { border-color: rgba(255, 191, 75, 0.62); }
.sf-hb-play-wrap {
  position: absolute;
  inset: 0;
  transform-origin: 53.2% 52.0%;
}

@media (prefers-reduced-motion: no-preference) {
  .sf-v-heartbeat .sf-hb-glow { animation: sf-hb-glow 1.6s ease-in-out infinite; }
  .sf-v-heartbeat .sf-hb-play-wrap { animation: sf-hb-beat 1.6s ease-in-out infinite; }
  .sf-v-heartbeat .sf-hb-ring.r1 { animation: sf-hb-ring 1.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite both; }
  .sf-v-heartbeat .sf-hb-ring.r2 { animation: sf-hb-ring 1.6s cubic-bezier(0.2, 0.6, 0.3, 1) 0.58s infinite backwards; }
}
@keyframes sf-hb-glow { 0%, 100% { opacity: 0.35; } 12% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes sf-hb-beat { 0%, 50%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } 36% { transform: scale(1.12); } }
@keyframes sf-hb-ring { 0% { opacity: 0; transform: scale(0.55); } 10% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }

/* Variant 06: Baan (Exact Variant06Orbit.kt — 500px outer CW + comet, 420px inner CCW, logo breath) */
.sf-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(242, 239, 232, 0.06);
  transform: rotate(0deg);
}
.sf-orbit-outer { left: 710px; top: 230px; width: 500px; height: 500px; }
.sf-orbit-inner { left: 750px; top: 270px; width: 420px; height: 420px; }
.sf-orbit-arc {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 200deg, rgba(255, 128, 111, 0.75) 320deg, #ffbf4b 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
}
.sf-orbit-inner .sf-orbit-arc {
  background: conic-gradient(from 0deg, rgba(255, 36, 94, 0.82) 0deg, transparent 110deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}
.sf-orbit-dot {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #ffe3a8;
  box-shadow: 0 0 18px 6px rgba(255, 191, 75, 0.56);
}
@media (prefers-reduced-motion: no-preference) {
  .sf-v-orbit .sf-orbit-outer { animation: sf-spin-cw 1.6s linear infinite; }
  .sf-v-orbit .sf-orbit-inner { animation: sf-spin-ccw 2.4s linear infinite; }
  .sf-v-orbit .sf-su-logo-box { animation: sf-breath 3.2s ease-in-out infinite; }
}
@keyframes sf-spin-cw { to { transform: rotate(360deg); } }
@keyframes sf-spin-ccw { to { transform: rotate(-360deg); } }
@keyframes sf-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

/* Variant 08: Stromen (Exact Variant08Streams.kt — gradient fade streams + center mask disc) */
.sf-streams-svg { position: absolute; inset: 0; width: 1920px; height: 1080px; }
.sf-stream-track { fill: none; stroke: rgba(242, 239, 232, 0.05); stroke-width: 8; stroke-linecap: round; }
.sf-stream-track.is-out { stroke-width: 10; }
.sf-stream-flow { fill: none; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 48 28; }
.sf-stream-out { stroke-width: 10; }
.sf-streams-disc {
  position: absolute;
  left: 730px;
  top: 250px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, #0e0d0b 0%, #0e0d0b 62%, rgba(14, 13, 11, 0) 100%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .sf-v-streams .sf-stream-flow { animation: sf-stream-dash 0.9s linear infinite; }
  .sf-v-streams .sf-stream-orange { animation-delay: -0.3s; }
  .sf-v-streams .sf-stream-gold { animation-delay: -0.6s; }
  .sf-v-streams .sf-su-logo-box { animation: sf-breath 2.7s ease-in-out infinite; }
}
@keyframes sf-stream-dash { from { stroke-dashoffset: 76; } to { stroke-dashoffset: 0; } }

/* Variant 10: Woordmerk (Exact Variant10Wordmark.kt — logo pop + letter rise + ripple wave) */
@media (prefers-reduced-motion: no-preference) {
  .sf-v-wordmark .sf-su-logo-box {
    animation:
      sf-wm-logo 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) both,
      sf-breath 3.2s ease-in-out 2.2s infinite none;
  }
  .sf-v-wordmark .sf-su-letter {
    animation:
      sf-wm-letter 1.65s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i, 0) * 35ms) 1 both,
      sf-wm-wave 2.4s ease-in-out calc(1.55s + var(--i, 0) * 55ms) infinite none;
  }
}
@keyframes sf-wm-logo {
  0% { opacity: 0; transform: scale(0.6); }
  22% { opacity: 1; transform: scale(1.06); }
  32%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes sf-wm-letter {
  0%, 22% { opacity: 0; translate: 0 80px; }
  54%, 100% { opacity: 1; translate: 0 0; }
}
@keyframes sf-wm-wave {
  0%, 40%, 100% { translate: 0 0; }
  16% { translate: 0 -10px; }
}

/* Variant 17: Lagen (Exact Variant17Layers.kt — inline perspective(1600px) + inner glass plates) */
.sf-layers-stage {
  position: absolute;
  left: 800px;
  top: 288px;
  width: 320px;
  height: 384px;
}
.sf-layer-card {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  will-change: transform;
}
.sf-layer-plate {
  position: absolute;
  left: 14%;
  right: 11%;
  top: 6%;
  bottom: 9%;
  border-radius: 18px;
  background: rgba(242, 239, 232, 0.028);
  box-shadow: inset 0 0 0 1.5px rgba(242, 239, 232, 0.17);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .sf-v-layers .sf-layer-card {
    animation: sf-layer-tilt 3s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
  .sf-v-layers .sf-layer-plate {
    animation: sf-layer-plate-vis 3s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
}
@keyframes sf-layer-tilt {
  0%, 10% { transform: perspective(1600px) rotateX(0deg) rotateZ(0deg) translateZ(0px); }
  38%, 64% { transform: perspective(1600px) rotateX(55deg) rotateZ(-35deg) translateZ(var(--lz, 0px)); }
  92%, 100% { transform: perspective(1600px) rotateX(0deg) rotateZ(0deg) translateZ(0px); }
}
@keyframes sf-layer-plate-vis {
  0%, 12% { opacity: 0; }
  38%, 64% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

/* Variant 20: Carrousel (Exact Variant20Carousel.kt — 18 stepping posters + pulsing focus card) */
.sf-car-window {
  position: absolute;
  left: 0;
  top: 323px;
  width: 1920px;
  height: 315px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
}
.sf-car-track {
  position: absolute;
  left: -561px;
  top: 0;
  height: 315px;
  display: flex;
  gap: 26px;
  will-change: transform;
}
.sf-car-poster {
  width: 210px;
  height: 315px;
  flex: none;
  border-radius: 6px;
  border: 1px solid rgba(242, 239, 232, 0.08);
}
.sf-car-poster.c0 { background: linear-gradient(165deg, rgba(255, 23, 102, 0.5) 0%, #191714 70%); }
.sf-car-poster.c1 { background: linear-gradient(165deg, rgba(255, 151, 48, 0.5) 0%, #191714 70%); }
.sf-car-poster.c2 { background: linear-gradient(165deg, rgba(255, 189, 41, 0.5) 0%, #191714 70%); }

.sf-car-focus {
  position: absolute;
  left: 800px;
  top: 240px;
  width: 320px;
  height: 480px;
  border-radius: 8px;
  background: #191714;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.62),
    0 0 0 5px #0e0d0b,
    0 0 0 9px rgba(255, 128, 111, 1);
  overflow: hidden;
}
.sf-car-focus::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 45%, rgba(255, 128, 111, 0.16), transparent 70%);
  pointer-events: none;
}
.sf-car-focus-logo {
  position: absolute;
  left: 0;
  top: 48px;
  width: 320px;
  height: 384px;
}
@media (prefers-reduced-motion: no-preference) {
  .sf-v-carousel .sf-car-track {
    animation: sf-car-step 3s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
  .sf-v-carousel .sf-car-focus {
    animation: sf-car-pulse 1s ease infinite;
  }
}
@keyframes sf-car-step {
  0% { transform: translateX(0); }
  22%, 33% { transform: translateX(-236px); }
  55%, 66% { transform: translateX(-472px); }
  88%, 100% { transform: translateX(-708px); }
}
@keyframes sf-car-pulse {
  0%, 100% {
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.62),
      0 0 0 5px #0e0d0b,
      0 0 0 9px rgba(255, 128, 111, 1);
  }
  50% {
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.62),
      0 0 0 5px #0e0d0b,
      0 0 0 16px rgba(255, 128, 111, 0.45);
  }
}

/* Variant 22: Neon (Exact Variant22Neon.kt — spNeon1 double flicker + backdrop + idle stutter) */
.sf-neon-bg {
  position: absolute;
  left: 640px;
  top: 160px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 128, 111, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.sf-v-neon .sf-neon-g { opacity: 0.08; }
.sf-v-neon .sf-neon-tube { fill: none; stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.sf-v-neon .sf-neon-u { stroke: #ffbd29; filter: drop-shadow(0 0 6px #ffbd29) drop-shadow(0 0 22px #ffbd29); }
.sf-v-neon .sf-neon-m { stroke: #ff1766; filter: drop-shadow(0 0 6px #ff1766) drop-shadow(0 0 22px #ff1766); }
.sf-v-neon .sf-neon-l { stroke: #ff653e; filter: drop-shadow(0 0 6px #ff653e) drop-shadow(0 0 22px #ff653e); }
.sf-v-neon .sf-neon-p { stroke: #ffd27a; filter: drop-shadow(0 0 6px #ffd27a) drop-shadow(0 0 22px #ffd27a); }
.sf-v-neon .sf-neon-core { fill: none; stroke: rgba(255, 245, 238, 0.78); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.sf-v-neon .sf-su-wordmark {
  overflow: visible;
  color: #ffd9cf;
  text-shadow: 0 0 10px #ff806f, 0 0 26px rgba(255, 128, 111, 0.75), 0 0 48px rgba(255, 128, 111, 0.4);
  opacity: 0.08;
}
.sf-v-neon .sf-su-letter { color: inherit; }

@media (prefers-reduced-motion: no-preference) {
  .sf-v-neon .sf-neon-g-u {
    animation:
      sf-neon-on 0.64s linear 0ms 1 both,
      sf-neon-idle 3.6s linear 1.2s infinite none;
  }
  .sf-v-neon .sf-neon-g-m {
    animation:
      sf-neon-on 0.64s linear 250ms 1 both,
      sf-neon-idle 4.4s linear 1.45s infinite none;
  }
  .sf-v-neon .sf-neon-g-l {
    animation:
      sf-neon-on 0.64s linear 500ms 1 both,
      sf-neon-idle 5.2s linear 1.7s infinite none;
  }
  .sf-v-neon .sf-neon-g-p {
    animation:
      sf-neon-on 0.64s linear 800ms 1 both,
      sf-neon-idle 3.9s linear 2s infinite none;
  }
  .sf-v-neon .sf-su-wordmark {
    animation:
      sf-neon-on 0.64s linear 1.1s 1 both,
      sf-neon-hum 2.4s ease-in-out 2s infinite none;
  }
}
@keyframes sf-neon-on {
  0% { opacity: 0.08; }
  37.5% { opacity: 1; }
  50% { opacity: 0.15; }
  68.75% { opacity: 1; }
  81.25% { opacity: 0.3; }
  100% { opacity: 1; }
}
@keyframes sf-neon-idle {
  0%, 70%, 73.5%, 77%, 100% { opacity: 1; }
  72% { opacity: 0.55; }
  75% { opacity: 0.7; }
}
@keyframes sf-neon-hum {
  0%, 100% { text-shadow: 0 0 10px #ff806f, 0 0 26px rgba(255, 128, 111, 0.75), 0 0 48px rgba(255, 128, 111, 0.4); }
  50% { text-shadow: 0 0 7px #ff806f, 0 0 16px rgba(255, 128, 111, 0.5), 0 0 28px rgba(255, 128, 111, 0.22); }
}

/* Variant 24: Glitch (Exact Variant24Glitch.kt — steps(1), full-width bars, fringes, jumping slices, scanlines) */
.sf-gl-bar {
  position: absolute;
  left: 0;
  width: 1920px;
  opacity: 0;
  pointer-events: none;
}
.sf-gl-bar.c { top: 430px; height: 6px; background: rgba(94, 230, 255, 0.32); }
.sf-gl-bar.p { top: 560px; height: 14px; background: rgba(255, 23, 102, 0.24); }

.sf-glitch-fringe,
.sf-glitch-slice {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.sf-glitch-fringe { mix-blend-mode: screen; }
.sf-glitch-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(14, 13, 11, 0.28) 0 2px, transparent 2px 5px);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .sf-v-glitch .sf-gl-bar.c { animation: sf-gl-bar 2.4s steps(1) infinite; }
  .sf-v-glitch .sf-gl-bar.p { animation: sf-gl-bar 2.4s steps(1) 60ms infinite; }
  .sf-v-glitch .sf-glitch-main { animation: sf-gl-main 2.4s steps(1) infinite; }
  .sf-v-glitch .sf-glitch-c { animation: sf-gl-cyan 2.4s steps(1) infinite; }
  .sf-v-glitch .sf-glitch-p { animation: sf-gl-pink 2.4s steps(1) infinite; }
  .sf-v-glitch .sf-glitch-s1 { animation: sf-gl-s1 2.4s steps(1) infinite; }
  .sf-v-glitch .sf-glitch-s2 { animation: sf-gl-s2 2.4s steps(1) infinite; }
}
@keyframes sf-gl-bar {
  0% { opacity: 1; transform: translateY(0); }
  3% { opacity: 1; transform: translateY(-40px); }
  6% { opacity: 1; transform: translateY(22px); }
  9% { opacity: 0; transform: translateY(22px); }
  50% { opacity: 1; transform: translateY(60px); }
  54%, 100% { opacity: 0; transform: translateY(60px); }
}
@keyframes sf-gl-main {
  0%, 12%, 56%, 100% { transform: translateX(0) skewX(0deg); }
  3% { transform: translateX(6px) skewX(-6deg); }
  6% { transform: translateX(0) skewX(4deg); }
  9% { transform: translateX(-4px) skewX(0deg); }
  50% { transform: translateX(0) skewX(8deg); }
  53% { transform: translateX(0) skewX(-3deg); }
}
@keyframes sf-gl-cyan {
  0% { opacity: 0.8; transform: translate(-10px, 0); }
  3% { opacity: 0.8; transform: translate(-16px, 4px); }
  6% { opacity: 0.8; transform: translate(-6px, -3px); }
  9% { opacity: 0.8; transform: translate(-12px, 2px); }
  12%, 100% { opacity: 0; transform: translate(0, 0); }
  50% { opacity: 0.8; transform: translate(-14px, -2px); }
  53% { opacity: 0.8; transform: translate(-8px, 3px); }
  56% { opacity: 0; transform: translate(0, 0); }
}
@keyframes sf-gl-pink {
  0% { opacity: 0.7; transform: translate(10px, 0); }
  3% { opacity: 0.7; transform: translate(14px, -3px); }
  6% { opacity: 0.7; transform: translate(7px, 4px); }
  9% { opacity: 0.7; transform: translate(12px, -2px); }
  12%, 100% { opacity: 0; transform: translate(0, 0); }
  50% { opacity: 0.7; transform: translate(12px, 2px); }
  53% { opacity: 0.7; transform: translate(9px, -3px); }
  56% { opacity: 0; transform: translate(0, 0); }
}
@keyframes sf-gl-s1 {
  0% { opacity: 1; clip-path: inset(18% 0 70% 0); transform: translateX(-26px); }
  3% { opacity: 1; clip-path: inset(52% 0 30% 0); transform: translateX(20px); }
  6% { opacity: 1; clip-path: inset(76% 0 12% 0); transform: translateX(-12px); }
  9% { opacity: 1; clip-path: inset(34% 0 52% 0); transform: translateX(28px); }
  12%, 100% { opacity: 0; clip-path: inset(34% 0 52% 0); transform: translateX(0); }
  50% { opacity: 1; clip-path: inset(60% 0 26% 0); transform: translateX(-32px); }
  53% { opacity: 1; clip-path: inset(8% 0 80% 0); transform: translateX(16px); }
  56% { opacity: 0; clip-path: inset(8% 0 80% 0); transform: translateX(0); }
}
@keyframes sf-gl-s2 {
  0% { opacity: 1; clip-path: inset(64% 0 22% 0); transform: translateX(18px); }
  3% { opacity: 1; clip-path: inset(28% 0 60% 0); transform: translateX(-22px); }
  6% { opacity: 1; clip-path: inset(44% 0 44% 0); transform: translateX(30px); }
  9% { opacity: 1; clip-path: inset(84% 0 6% 0); transform: translateX(-16px); }
  12%, 100% { opacity: 0; clip-path: inset(84% 0 6% 0); transform: translateX(0); }
  50% { opacity: 1; clip-path: inset(30% 0 58% 0); transform: translateX(24px); }
  53% { opacity: 1; clip-path: inset(70% 0 18% 0); transform: translateX(-20px); }
  56% { opacity: 0; clip-path: inset(70% 0 18% 0); transform: translateX(0); }
}

/* Variant 25: Lamellen (Exact Variant25Blinds.kt — 6 vertical blades 53.33px, perspective 1200px, BlindOpen + Venetian wave) */
.sf-blinds-box {
  position: absolute;
  left: 800px;
  top: 288px;
  width: 320px;
  height: 384px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}
.sf-blind-strip {
  position: absolute;
  top: 0;
  left: calc(var(--bi, 0) * 53.3333px);
  width: 53.6px;
  height: 384px;
  overflow: hidden;
  transform-origin: 50% 50%;
  backface-visibility: visible;
  will-change: transform, filter;
}
.sf-blind-inner {
  position: absolute;
  top: 0;
  left: calc(var(--bi, 0) * -53.3333px);
  width: 320px;
  height: 384px;
}
@media (prefers-reduced-motion: no-preference) {
  .sf-v-blinds .sf-blind-strip {
    animation:
      sf-blind-open 0.864s cubic-bezier(0.3, 0.7, 0.3, 1) calc(var(--bi, 0) * 70ms) 1 both,
      sf-blind-idle 3s ease-in-out calc(1.55s + var(--bi, 0) * 90ms) infinite none;
  }
}
@keyframes sf-blind-open {
  0% { transform: rotateY(90deg); filter: brightness(0.3); }
  100% { transform: rotateY(0deg); filter: brightness(1); }
}
@keyframes sf-blind-idle {
  0%, 40%, 100% { transform: rotateY(0deg); filter: brightness(1); }
  18% { transform: rotateY(28deg); filter: brightness(0.72); }
}

/* =========================================================================
   1-OP-1 STREAMFUSION ANDROID TV APP UI (EXACT 1920x1080 PROTOTYPE PIXELS)
   ========================================================================= */
.tv-app {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  z-index: 10;
  background: #0e0d0b;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Only reveal the TV UI once the startup animation begins fading out (zero flash before boot!) */
.tv-screen[data-stage="fading"] .tv-app,
.tv-screen[data-stage="ready"] .tv-app {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Full-bleed dark cinematic backdrop matching focused poster (500ms smooth crossfade, SfMotion.BACKDROP_FADE) */
.tv-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tv-backdrop-img {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  filter: blur(4px) saturate(0.95);
  scale: 1.04;
  transition: opacity 0.5s ease;
}

.tv-backdrop-img.is-active {
  opacity: 0.26;
}

.tv-backdrop-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 64% 58% at 50% 44%, rgba(14, 13, 11, 0.14), rgba(14, 13, 11, 0.9) 76%, #0e0d0b 100%),
    linear-gradient(180deg, rgba(14, 13, 11, 0.72) 0%, rgba(14, 13, 11, 0.16) 24%, rgba(14, 13, 11, 0.84) 80%, #0e0d0b 100%);
}

/* Authentic SfKeyframes: sfRise (450ms), sfCardIn (55ms stagger), sfDrumPress/Glint/Deal, sfWord, sfDevelop, sfLiveGrow */
.tv-screen-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  transition: opacity 0.3s ease;
}

.tv-screen-layer.is-menu-dim {
  opacity: 0.4;
}

@media (prefers-reduced-motion: no-preference) {
  .tv-anim-rise {
    animation: sf-tv-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .tv-anim-word-roll {
    display: inline-block;
    animation: sf-word-roll 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .tv-anim-drum-deal {
    animation: sf-drum-deal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(120ms + var(--stagger, 0) * 55ms);
  }
  .tv-mode-card.is-turning {
    animation: sf-drum-press 0.38s ease-out both;
  }
  .tv-mode-card.is-turning .tv-mode-active {
    animation: sf-drum-glint 0.8s ease-out both;
  }
  .tv-player-screen.is-connecting .tv-player-bg {
    animation: sf-develop 1.4s cubic-bezier(0.3, 0.6, 0.2, 1) both;
  }
  .tv-player-screen.is-live-enter {
    transform-origin: 96px 214px;
    animation: sf-live-grow 0.55s cubic-bezier(0.32, 0.72, 0.2, 1) both;
  }
  .tv-toast-pill {
    animation: sf-toast-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}

@keyframes sf-tv-rise {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes sf-word-roll {
  from { opacity: 0; translate: 0 28px; filter: blur(6px); }
  to { opacity: 1; translate: 0 0; filter: blur(0px); }
}

@keyframes sf-drum-deal {
  from { opacity: 0; translate: 0 46px; filter: blur(6px) brightness(0.4); }
  to { opacity: 1; translate: 0 0; filter: blur(0px) brightness(1); }
}

@keyframes sf-drum-press {
  0% { scale: 1; }
  35% { scale: 0.965; }
  100% { scale: 1; }
}

@keyframes sf-drum-glint {
  0% { background: color-mix(in srgb, var(--tv-accent) 36%, transparent); border-color: var(--tv-accent); }
  100% { background: rgba(242, 239, 232, 0.06); border-color: rgba(242, 239, 232, 0.08); }
}

@keyframes sf-develop {
  from { filter: grayscale(1) brightness(0.22) contrast(0.75) blur(8px); scale: 1.08; }
  to { filter: grayscale(0) brightness(1) contrast(1) blur(0px); scale: 1.04; }
}

@keyframes sf-live-grow {
  from { opacity: 0.6; scale: 0.34; }
  to { opacity: 1; scale: 1; }
}

@keyframes sf-toast-in {
  from { opacity: 0; translate: -50% 14px; scale: 0.96; }
  to { opacity: 1; translate: -50% 0; scale: 1; }
}

/* --- TOP NAVIGATION BAR (exact match to tour_home.png / tour_discover.png) --- */
.tv-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 112px;
  padding: 40px 96px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  transition: opacity 0.3s ease;
}

.tv-topbar-left {
  display: flex;
  align-items: center;
  gap: 38px;
}

.tv-avatar-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #191714;
  flex-shrink: 0;
  scale: 1;
  transition: scale 0.16s ease, box-shadow 0.16s ease;
}

.tv-avatar-btn:hover,
.tv-avatar-btn:focus-visible,
.tv-avatar-btn.is-kb-focus {
  scale: 1.1;
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 6px var(--tv-accent);
}

.tv-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tv-nav-btn {
  position: relative;
  padding: 12px 22px;
  border-radius: 7px;
  color: #c9c3b8;
  font: 600 24px/1 var(--font-ui);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tv-nav-btn[aria-selected="true"] {
  color: #f2efe8;
  font-weight: 700;
}

.tv-nav-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 2px;
  height: 3.5px;
  border-radius: 2px;
  background: var(--tv-accent);
}

/* Exact solid accent pill on hover/focus (tour_discover.png / tour_settings.png!) */
.tv-nav-btn:hover,
.tv-nav-btn:focus-visible,
.tv-nav-btn.is-kb-focus {
  background: var(--tv-accent);
  color: #0e0d0b;
  font-weight: 800;
}

.tv-nav-btn:hover::after,
.tv-nav-btn:focus-visible::after,
.tv-nav-btn.is-kb-focus::after {
  opacity: 0;
}

.tv-topbar-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.tv-clock {
  font: 500 23px/1 var(--font-mono);
  color: #c9c3b8;
  letter-spacing: 0.02em;
}

.tv-logo-tile {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #1b1b1d;
  border: 1px solid rgba(242, 239, 232, 0.08);
  display: grid;
  place-items: center;
}

.tv-logo-tile img {
  width: 28px;
  height: 28px;
}

/* Shared bottom hint bar (left 96px, bottom 34px) */
.tv-bottom-hint {
  position: absolute;
  left: 96px;
  bottom: 34px;
  font: 500 17px/1 var(--font-mono);
  letter-spacing: 0.11em;
  color: rgba(242, 239, 232, 0.45);
  text-transform: uppercase;
  z-index: 15;
}

/* Shared 4-source Rating Badges (exact SfRatingColors 10x10px squares) */
.tv-ratings-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font: 600 19px/1 var(--font-mono);
  color: #c9c3b8;
}

.tv-ratings-row.is-left {
  justify-content: flex-start;
}

.tv-rate-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 5px;
  background: rgba(242, 239, 232, 0.08);
  color: #f2efe8;
  font-size: 18px;
}

.tv-rate-sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.tv-rate-sq.imdb { background: #f5c518; }
.tv-rate-sq.tmdb { background: #01b4e4; }
.tv-rate-sq.rt { background: #fa320a; }
.tv-rate-sq.mc { background: #66cc33; }

/* --- HORIZONTAL DIAL CONTAINER (exact SfDialMath geometry centered on x=960) --- */
.tv-dial-stage {
  position: absolute;
  left: 0;
  right: 0;
  overflow: visible;
  z-index: 8;
}

.tv-dial-item {
  position: absolute;
  left: 960px;
  top: 50%;
  transform-origin: center center;
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .tv-dial-item,
  .tv-set-row,
  .tv-backdrop-img,
  .tv-rating-slot {
    transition-duration: 0.01ms;
  }
}

/* Poster card (300x450 base, clean artwork — ZERO overlaid text or tags!) */
.tv-poster-card {
  width: 300px;
  height: 450px;
  margin-left: -150px;
  margin-top: -225px;
  border-radius: 8px;
  overflow: hidden;
  background: #191714;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
}

.tv-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-poster-card.is-focused,
.tv-poster-card.is-kb-focus {
  box-shadow:
    0 0 0 4px #0e0d0b,
    0 0 0 9px var(--tv-accent),
    0 28px 72px rgba(0, 0, 0, 0.78);
}

.tv-poster-card.is-dim-focus {
  box-shadow:
    0 0 0 2px rgba(242, 239, 232, 0.22),
    0 22px 60px rgba(0, 0, 0, 0.6);
}

.tv-poster-card:focus-visible {
  box-shadow:
    0 0 0 4px #0e0d0b,
    0 0 0 9px var(--tv-accent),
    0 28px 72px rgba(0, 0, 0, 0.78);
}

/* Library status SVG icon badge (exact SfIcons.Line.Library / SfIcons.Line.Eye) */
.tv-lib-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(14, 13, 11, 0.88);
  color: var(--tv-accent);
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 239, 232, 0.12);
}

.tv-lib-badge .tv-ico {
  width: 20px;
  height: 20px;
}

/* Iconic Media-Type Dial Card (#0 on Aanbevolen row — exact tour2_home_rec.png!) */
.tv-mode-card {
  width: 300px;
  height: 450px;
  margin-left: -150px;
  margin-top: -225px;
  border-radius: 10px;
  background: #13110f;
  border: 1.5px solid rgba(242, 239, 232, 0.1);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
}

.tv-mode-card.is-focused {
  box-shadow:
    0 0 0 4px #0e0d0b,
    0 0 0 9px var(--tv-accent),
    0 28px 72px rgba(0, 0, 0, 0.78);
}

.tv-mode-kicker {
  font: 600 16px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: #8f897e;
  text-transform: uppercase;
}

.tv-mode-stack {
  display: grid;
  gap: 14px;
}

.tv-mode-dim {
  font: 800 32px/1 var(--font-ui);
  color: rgba(242, 239, 232, 0.18);
  padding-left: 6px;
}

.tv-mode-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  margin-inline: -26px;
  background: rgba(242, 239, 232, 0.06);
  border-block: 1px solid rgba(242, 239, 232, 0.08);
  font: 800 44px/1 var(--font-ui);
  color: #f2efe8;
}

.tv-mode-notch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tv-mode-notch::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 99px;
  background: var(--tv-accent);
}

.tv-mode-notch::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(242, 239, 232, 0.35);
}

.tv-mode-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 16px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--tv-accent);
  text-transform: uppercase;
}

.tv-mode-ok {
  display: inline-grid;
  place-items: center;
  padding: 7px 11px;
  border-radius: 6px;
  background: var(--tv-accent);
  color: #0e0d0b;
  font-weight: 800;
}

/* Pill dial item (Discover sorts, Settings categories, Search filters — exact 310x76!) */
.tv-pill-card {
  width: 310px;
  height: 76px;
  margin-left: -155px;
  margin-top: -38px;
  border-radius: 8px;
  background: #171512;
  border: 1.5px solid rgba(242, 239, 232, 0.1);
  display: grid;
  place-items: center;
  font: 700 24px/1 var(--font-ui);
  color: #c9c3b8;
  white-space: nowrap;
}

.tv-pill-card.is-selected {
  background: #23201c;
  border: 2.5px solid var(--tv-accent);
  color: #f2efe8;
}

.tv-pill-card:hover,
.tv-pill-card:focus-visible {
  border-color: var(--tv-accent);
  color: #f2efe8;
}

.tv-pill-card.is-kb-focus {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #0e0d0b;
  font-weight: 800;
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 6px var(--tv-accent);
}

/* Genre sub-pill (210x54) */
.tv-subpill-card {
  width: 210px;
  height: 54px;
  margin-left: -105px;
  margin-top: -27px;
  border-radius: 6px;
  background: #161411;
  border: 1.5px solid rgba(242, 239, 232, 0.09);
  display: grid;
  place-items: center;
  font: 600 20px/1 var(--font-ui);
  color: #999387;
  white-space: nowrap;
}

.tv-subpill-card.is-selected {
  background: #23201c;
  border: 2px solid var(--tv-accent);
  color: #f2efe8;
  font-weight: 700;
}

.tv-subpill-card.is-kb-focus {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #0e0d0b;
  font-weight: 800;
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 6px var(--tv-accent);
}

/* --- SCREEN 1: HOME & LIBRARY (exact tour_home.png / tour2_home_rec.png) --- */
.tv-row-rail {
  position: absolute;
  left: 52px;
  top: 492px;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 15;
}

.tv-rail-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(242, 239, 232, 0.28);
  transition: height 0.2s ease, background-color 0.2s ease;
}

.tv-rail-dot[aria-pressed="true"] {
  height: 44px;
  background: var(--tv-accent);
}

.tv-rail-dot:hover {
  background: rgba(242, 239, 232, 0.7);
}

.tv-row-top-peek {
  position: absolute;
  top: 126px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 12;
}

.tv-row-peek-btn {
  padding: 6px 18px;
  font: 500 17px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.44);
  transition: color 0.15s ease;
}

.tv-row-peek-btn:hover,
.tv-row-peek-btn:focus-visible {
  color: #f2efe8;
}

.tv-row-heading {
  position: absolute;
  top: 158px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font: 800 46px/1.1 var(--font-ui);
  letter-spacing: -0.025em;
  color: #f2efe8;
  z-index: 12;
}

.tv-home-dial {
  top: 472px;
  height: 420px;
  margin-top: -210px;
}

.tv-home-info {
  position: absolute;
  top: 716px;
  left: 160px;
  right: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  z-index: 12;
}

.tv-info-kicker {
  font: 600 18px/1 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--tv-accent);
  text-transform: uppercase;
}

.tv-info-title {
  margin: 0;
  font: 800 58px/1.05 var(--font-ui);
  letter-spacing: -0.03em;
  color: #f2efe8;
}

.tv-info-sub {
  font: 500 22px/1.2 var(--font-ui);
  color: #c9c3b8;
}

.tv-cw-bar {
  width: 280px;
  height: 6px;
  border-radius: 99px;
  background: rgba(242, 239, 232, 0.18);
  overflow: hidden;
  margin-top: 6px;
}

.tv-cw-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--tv-accent);
}

.tv-row-bot-peek {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 12;
}

/* Empty Library state (exact tour_library.png!) */
.tv-empty-center {
  position: absolute;
  inset: 112px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.tv-empty-center h2 {
  margin: 0;
  font: 800 44px/1.1 var(--font-ui);
}

.tv-empty-center p {
  margin: 0;
  max-width: 720px;
  font: 400 23px/1.45 var(--font-ui);
  color: #c9c3b8;
}

.tv-sf-btn {
  padding: 18px 34px;
  border-radius: 8px;
  background: #23201c;
  border: 1.5px solid rgba(242, 239, 232, 0.16);
  color: #f2efe8;
  font: 700 22px/1 var(--font-ui);
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.tv-sf-btn:hover,
.tv-sf-btn:focus-visible,
.tv-sf-btn.primary {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #0e0d0b;
}

/* --- SCREEN 2: DISCOVER (exact tour_discover.png) --- */
.tv-disc-types {
  position: absolute;
  top: 126px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 54px;
  z-index: 12;
}

.tv-disc-type {
  position: relative;
  padding: 8px 18px 14px;
  border-radius: 7px;
  font: 700 27px/1 var(--font-ui);
  color: #8f897e;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.tv-disc-type[aria-pressed="true"] {
  color: #f2efe8;
}

.tv-disc-type[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3.5px;
  border-radius: 2px;
  background: var(--tv-accent);
}

.tv-disc-type.is-kb-focus {
  background: var(--tv-accent);
  color: #0e0d0b;
  font-weight: 800;
}

.tv-disc-type.is-kb-focus::after {
  opacity: 0;
}

.tv-disc-sort-dial {
  top: 238px;
  height: 82px;
  margin-top: -41px;
}

.tv-disc-genre-dial {
  top: 332px;
  height: 58px;
  margin-top: -29px;
}

.tv-disc-poster-dial {
  top: 584px;
  height: 396px;
  margin-top: -198px;
}

.tv-disc-info {
  position: absolute;
  top: 804px;
  left: 160px;
  right: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  z-index: 12;
}

.tv-disc-info .tv-info-title {
  font-size: 50px;
}

/* --- SCREEN 3: LIVE TV & EPG (exact tv-live.webp!) --- */
.tv-live-group-dial {
  top: 158px;
  height: 60px;
  margin-top: -30px;
}

.tv-live-top {
  position: absolute;
  top: 214px;
  left: 96px;
  right: 96px;
  height: 344px;
  display: flex;
  gap: 44px;
  align-items: center;
  z-index: 12;
}

.tv-live-preview {
  position: relative;
  width: 612px;
  height: 344px;
  border-radius: 10px;
  overflow: hidden;
  background: #141210;
  border: 1.5px solid rgba(242, 239, 232, 0.14);
  flex-shrink: 0;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.6);
}

.tv-live-preview:hover,
.tv-live-preview:focus-visible,
.tv-live-preview.is-kb-focus {
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 7px var(--tv-accent);
}

.tv-live-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.04;
  translate: 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .tv-live-preview-img {
    animation: sf-live-drift 18s ease-in-out infinite alternate;
  }
}
@keyframes sf-live-drift {
  from { scale: 1.04; translate: -14px 0; }
  to { scale: 1.1; translate: 14px -8px; }
}

.tv-live-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(14, 13, 11, 0.84);
  font: 700 16px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: #f2efe8;
}

.tv-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5a52;
}

.tv-live-wm {
  position: absolute;
  top: 18px;
  right: 20px;
  padding: 6px 12px;
  border-radius: 5px;
  background: rgba(14, 13, 11, 0.62);
  font: 800 16px/1 var(--font-mono);
  color: rgba(242, 239, 232, 0.88);
}

.tv-live-hero {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 8px;
  gap: 12px;
}

.tv-live-prog-title {
  margin: 0;
  font: 800 54px/1.06 var(--font-ui);
  letter-spacing: -0.03em;
  color: #f2efe8;
}

.tv-live-time {
  font: 500 22px/1 var(--font-mono);
  color: #c9c3b8;
}

.tv-live-progbar {
  width: 460px;
  height: 6px;
  border-radius: 99px;
  background: rgba(242, 239, 232, 0.14);
  overflow: hidden;
  margin-block: 4px;
}

.tv-live-progbar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--tv-accent);
}

.tv-live-rem {
  font: 500 22px/1 var(--font-ui);
  color: #c9c3b8;
}

.tv-live-next {
  margin-top: auto;
  padding-bottom: 6px;
  font: 500 20px/1 var(--font-mono);
  color: #999387;
}

/* EPG Timeline Grid (exact match to tv-live.webp) */
.tv-epg-area {
  position: absolute;
  top: 590px;
  left: 96px;
  right: 96px;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 12;
}

.tv-epg-head {
  display: grid;
  grid-template-columns: 300px repeat(4, 1fr);
  gap: 16px;
  font: 600 17px/1 var(--font-mono);
  color: #8f897e;
  letter-spacing: 0.06em;
}

.tv-epg-rows {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.tv-epg-nowline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 508px;
  width: 3px;
  background: var(--tv-accent);
  z-index: 6;
  pointer-events: none;
  box-shadow: 0 0 10px color-mix(in srgb, var(--tv-accent) 65%, transparent);
}

.tv-epg-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  height: 58px;
}

.tv-ch-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-radius: 7px;
  border-left: 5px solid var(--ch-color, #ff9a3c);
  background: #191714;
  color: #f2efe8;
  overflow: hidden;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.tv-ch-btn:hover {
  background: #23201c;
}

.tv-ch-btn[aria-selected="true"] {
  background: var(--tv-accent);
  color: #0e0d0b;
  border-left-color: #0e0d0b;
}

.tv-ch-num {
  font: 700 18px/1 var(--font-mono);
  opacity: 0.72;
}

.tv-ch-name {
  font: 700 20px/1 var(--font-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.tv-ch-tag {
  font: 700 13px/1 var(--font-mono);
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(242, 239, 232, 0.1);
}

.tv-ch-btn[aria-selected="true"] .tv-ch-tag {
  background: rgba(14, 13, 11, 0.18);
  color: #0e0d0b;
}

.tv-epg-slots {
  display: grid;
  grid-template-columns: 1.55fr 1.15fr 1.1fr 1.2fr;
  gap: 8px;
}

.tv-epg-cell {
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 6px;
  background: #161512;
  border: 1px solid rgba(242, 239, 232, 0.05);
  font: 500 19px/1 var(--font-ui);
  color: #999387;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-epg-cell.is-now {
  background: #1f1d1a;
  color: #e6e0d6;
}

.tv-epg-row.is-active .tv-epg-cell.is-now {
  background: #2b2721;
  border-color: color-mix(in srgb, var(--tv-accent) 42%, transparent);
  color: #f2efe8;
  font-weight: 700;
}

/* --- SCREEN 4: SEARCH (EXACT tour_search.png & tour_search_results.png!) --- */
.tv-search-bar-wrap {
  position: absolute;
  top: 128px;
  left: 274px;
  right: 274px;
  height: 76px;
  border-bottom: 2px solid rgba(242, 239, 232, 0.82);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 15;
}

.tv-search-query-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  height: 100%;
}

.tv-search-text {
  font: 800 58px/1 var(--font-ui);
  letter-spacing: -0.03em;
  color: #f2efe8;
}

.tv-search-text.is-empty {
  color: #8f897e;
}

.tv-search-caret {
  width: 5px;
  height: 58px;
  border-radius: 2px;
  background: var(--tv-accent);
  display: inline-block;
  margin-left: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .tv-search-caret {
    animation: sf-caret-blink 1.1s step-end infinite;
  }
}
@keyframes sf-caret-blink {
  50% { opacity: 0.15; }
}

.tv-search-status {
  font: 600 18px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: #c9c3b8;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Exact 4x10 centered TV on-screen keyboard from tour_search.png */
.tv-kb-grid {
  position: absolute;
  top: 230px;
  left: 50%;
  translate: -50% 0;
  display: grid;
  grid-template-columns: repeat(10, 96px);
  gap: 10px;
  z-index: 14;
}

.tv-kb-key {
  width: 96px;
  height: 68px;
  border-radius: 7px;
  background: #171512;
  border: 1.5px solid rgba(242, 239, 232, 0.1);
  display: grid;
  place-items: center;
  font: 600 28px/1 var(--font-mono);
  color: #e6e0d6;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.tv-kb-key:hover,
.tv-kb-key:focus-visible,
.tv-kb-key.is-kb-focus {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #0e0d0b;
  font-weight: 800;
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 5px var(--tv-accent);
}

.tv-kb-key.is-word {
  font-family: var(--font-ui);
  font-size: 23px;
}

.tv-quick-search-wrap {
  position: absolute;
  top: 560px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 14;
}

.tv-quick-search-title {
  margin: 0;
  font: 800 32px/1 var(--font-ui);
  color: #999387;
}

.tv-quick-chips {
  margin-top: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.tv-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 36px;
  border-radius: 8px;
  background: #1c1916;
  border: 1.5px solid rgba(242, 239, 232, 0.08);
  color: #c9c3b8;
  font: 700 22px/1 var(--font-ui);
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.tv-quick-chip:hover,
.tv-quick-chip:focus-visible,
.tv-quick-chip.is-kb-focus {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #0e0d0b;
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 6px var(--tv-accent);
}

/* Search Results View (exact tour_search_results.png!) */
.tv-search-filter-dial {
  top: 254px;
  height: 62px;
  margin-top: -31px;
}

.tv-search-hero {
  position: absolute;
  top: 304px;
  left: 96px;
  width: 960px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 12;
}

.tv-search-hero-title {
  margin: 0;
  font: 800 72px/1.02 var(--font-ui);
  letter-spacing: -0.035em;
  color: #f2efe8;
}

.tv-search-hero-syn {
  margin: 4px 0 0;
  font: 400 23px/1.42 var(--font-ui);
  color: #e6e0d6;
  max-width: 820px;
}

.tv-search-result-dial {
  top: 766px;
  height: 310px;
  margin-top: -155px;
}

/* --- SCREEN 5: SETTINGS (EXACT tour_settings_focused.png & SfVerticalDialSpec.Settings!) --- */
.tv-set-cat-dial {
  top: 196px;
  height: 82px;
  margin-top: -41px;
}

.tv-set-meta-bar {
  position: absolute;
  top: 286px;
  left: 410px;
  width: 1100px;
  display: flex;
  justify-content: space-between;
  font: 500 20px/1 var(--font-mono);
  color: #8f897e;
  z-index: 12;
}

.tv-set-wheel {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.tv-set-row {
  position: absolute;
  left: 410px;
  width: 1100px;
  height: 78px;
  margin-top: -39px;
  border-radius: 8px;
  background: #171512;
  border: 1.5px solid rgba(242, 239, 232, 0.09);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
  transform-origin: center center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease, background-color 0.16s ease, color 0.16s ease;
}

.tv-set-row.is-focused {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #0e0d0b;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.58);
}

.tv-set-row-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  min-width: 0;
}

.tv-set-row-title {
  font: 800 24px/1.1 var(--font-ui);
  color: #f2efe8;
}

.tv-set-row-desc {
  font: 400 17px/1.15 var(--font-mono);
  color: #999387;
}

.tv-set-row.is-focused .tv-set-row-title {
  color: #0e0d0b;
}

.tv-set-row.is-focused .tv-set-row-desc {
  color: rgba(14, 13, 11, 0.82);
}

/* Tactile [ AAN | UIT ] segment pill (exact tour_settings_focused.png!) */
.tv-seg {
  display: inline-flex;
  border-radius: 6px;
  padding: 3px;
  background: rgba(14, 13, 11, 0.45);
  border: 1.5px solid rgba(242, 239, 232, 0.14);
  font: 700 17px/1 var(--font-mono);
  flex-shrink: 0;
}

.tv-set-row.is-focused .tv-seg {
  background: transparent;
  border: 2px solid #0e0d0b;
}

.tv-seg span {
  padding: 9px 18px;
  border-radius: 4px;
  color: #959086;
}

.tv-seg span.is-on {
  background: var(--tv-accent);
  color: #0e0d0b;
}

.tv-set-row.is-focused .tv-seg span {
  color: #0e0d0b;
}

.tv-set-row.is-focused .tv-seg span.is-on {
  background: #0e0d0b;
  color: var(--tv-accent);
}

.tv-set-val {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 21px/1 var(--font-ui);
  color: #c9c3b8;
  flex-shrink: 0;
}

.tv-set-row.is-focused .tv-set-val {
  color: #0e0d0b;
}

.tv-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dot-c, #ff9a3c);
  border: 2px solid rgba(14, 13, 11, 0.65);
}

/* --- SCREEN 6: DETAIL (Zero seam full-bleed masked artwork + Episodes/Info/Cast/Reviews/More) --- */
.tv-detail-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.tv-detail-art img {
  position: absolute;
  top: 0;
  right: 0;
  width: 1320px;
  height: 1080px;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 10%, rgba(0, 0, 0, 0.35) 28%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 10%, rgba(0, 0, 0, 0.35) 28%, #000 58%);
}

.tv-detail-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0e0d0b 0%, rgba(14, 13, 11, 0.94) 38%, rgba(14, 13, 11, 0.28) 72%, rgba(14, 13, 11, 0.36) 100%),
    linear-gradient(180deg, rgba(14, 13, 11, 0.25) 0%, transparent 28%, rgba(14, 13, 11, 0.92) 74%, #0e0d0b 100%);
}

.tv-detail-top {
  position: absolute;
  top: 50px;
  left: 96px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 12;
}

.tv-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 24px/1 var(--font-ui);
  color: #f2efe8;
  padding: 10px 18px 10px 12px;
  border-radius: 7px;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.tv-back-btn:hover,
.tv-back-btn:focus-visible,
.tv-back-btn.is-kb-focus {
  background: var(--tv-accent);
  color: #0e0d0b;
}

.tv-crumb {
  font: 500 17px/1 var(--font-mono);
  letter-spacing: 0.11em;
  color: #8f897e;
  text-transform: uppercase;
}

.tv-detail-hero {
  position: absolute;
  top: 124px;
  left: 96px;
  width: 960px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 12;
}

.tv-detail-title {
  margin: 0;
  font: 800 72px/1.02 var(--font-ui);
  letter-spacing: -0.035em;
  color: #f2efe8;
}

.tv-detail-syn {
  margin: 6px 0 0;
  font: 400 23px/1.44 var(--font-ui);
  color: #e6e0d6;
  max-width: 860px;
}

.tv-detail-actions {
  position: absolute;
  top: 454px;
  left: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 14;
}

.tv-act-btn {
  height: 62px;
  padding: 0 30px;
  border-radius: 7px;
  border: 1.5px solid rgba(242, 239, 232, 0.14);
  background: rgba(242, 239, 232, 0.06);
  color: #f2efe8;
  font: 700 22px/1 var(--font-ui);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.16s ease;
}

.tv-act-btn.primary {
  background: rgba(242, 239, 232, 0.14);
  font-weight: 800;
}

.tv-act-btn .tv-ico-tint {
  color: #999387;
  transition: color 0.16s ease;
}

.tv-act-btn.is-on .tv-ico-tint {
  color: var(--tv-accent);
}

.tv-act-btn:hover,
.tv-act-btn:focus-visible,
.tv-act-btn.is-kb-focus {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #0e0d0b;
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 6px var(--tv-accent);
}

.tv-act-btn:hover .tv-ico-tint,
.tv-act-btn:focus-visible .tv-ico-tint,
.tv-act-btn.is-kb-focus .tv-ico-tint {
  color: #0e0d0b;
}

/* Exact PlayHoldRing inside Afspelen button (DetailActionRow.kt) */
.tv-play-slot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tv-play-slot .tv-hold-ring {
  display: none;
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
}

.tv-play-slot.is-holding .tv-ico {
  display: none;
}

.tv-play-slot.is-holding .tv-hold-ring {
  display: block;
}

.tv-hold-ring-track {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.28;
  stroke-width: 3;
}

.tv-hold-ring-arc {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 56.55;
  stroke-dashoffset: 56.55;
}

/* Exact DetailRatingButton (DetailRating.kt: 3 thumbs widening in place + centered label under row) */
.tv-rating-slot {
  position: relative;
  width: 62px;
  height: 62px;
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tv-rating-slot.is-open {
  width: 214px;
}

.tv-rating-rest {
  position: absolute;
  inset: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1.5px solid rgba(242, 239, 232, 0.14);
  background: rgba(242, 239, 232, 0.06);
  color: #999387;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 0.24s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.16s ease;
}

.tv-rating-rest.is-rated {
  color: var(--tv-accent);
  border-color: color-mix(in srgb, var(--tv-accent) 55%, transparent);
}

.tv-rating-rest:hover,
.tv-rating-rest:focus-visible,
.tv-rating-rest.is-kb-focus {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #0e0d0b;
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 6px var(--tv-accent);
}

.tv-rating-slot.is-open .tv-rating-rest {
  opacity: 0;
  pointer-events: none;
}

.tv-rating-choices {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tv-rating-slot.is-open .tv-rating-choices {
  opacity: 1;
  pointer-events: auto;
}

.tv-rating-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1.5px solid rgba(242, 239, 232, 0.14);
  background: rgba(242, 239, 232, 0.06);
  color: #f2efe8;
  display: grid;
  place-items: center;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.tv-rating-circle.is-chosen {
  color: var(--tv-accent);
  border-color: color-mix(in srgb, var(--tv-accent) 60%, transparent);
}

.tv-rating-circle:hover,
.tv-rating-circle:focus-visible,
.tv-rating-circle.is-kb-focus {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #0e0d0b;
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 6px var(--tv-accent);
}

.tv-rating-label {
  position: absolute;
  top: 70px;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font: 700 18px/1 var(--font-ui);
  color: #c9c3b8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.tv-rating-slot.is-open .tv-rating-label {
  opacity: 1;
}

.tv-detail-subtabs {
  position: absolute;
  top: 554px;
  left: 96px;
  right: 96px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(242, 239, 232, 0.1);
  z-index: 12;
}

.tv-subtab {
  padding: 12px 24px;
  border-radius: 6px;
  font: 700 22px/1 var(--font-ui);
  color: #999387;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.tv-subtab:hover {
  color: #f2efe8;
}

.tv-subtab[aria-selected="true"] {
  background: rgba(242, 239, 232, 0.12);
  color: #f2efe8;
  font-weight: 800;
}

.tv-subtab.is-kb-focus,
.tv-subtab[aria-selected="true"].is-kb-focus,
.tv-subtab:focus-visible {
  background: var(--tv-accent);
  color: #0e0d0b;
  font-weight: 800;
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 6px var(--tv-accent);
}

.tv-subtab[aria-selected="true"]:not(.is-kb-focus) {
  background: color-mix(in srgb, var(--tv-accent) 22%, #191714);
  color: var(--tv-accent);
  box-shadow: inset 0 -3px 0 var(--tv-accent);
}

/* Exact Afleveringen / Episodes tab (EpisodeList.kt: Season boxes at y=618 + Wide 480x270 k=0.6 dial) */
.tv-season-row {
  position: absolute;
  top: 622px;
  left: 96px;
  right: 96px;
  display: flex;
  align-items: stretch;
  gap: 14px;
  z-index: 13;
}

.tv-season-box {
  min-width: 174px;
  padding: 12px 18px 14px;
  border-radius: 6px;
  background: rgba(242, 239, 232, 0.045);
  border: 1.5px solid rgba(242, 239, 232, 0.1);
  color: #c9c3b8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.16s ease;
}

.tv-season-box[aria-selected="true"] {
  background: rgba(242, 239, 232, 0.12);
  border-color: var(--tv-accent);
  color: #f2efe8;
}

.tv-season-box:hover,
.tv-season-box:focus-visible,
.tv-season-box.is-kb-focus {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #0e0d0b;
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 6px var(--tv-accent);
}

.tv-season-title {
  font: 800 20px/1 var(--font-ui);
  color: inherit;
}

.tv-season-meta {
  font: 600 15px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.78;
}

.tv-season-bar {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(242, 239, 232, 0.14);
  overflow: hidden;
  margin-top: 2px;
}

.tv-season-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--tv-accent);
}

.tv-season-box:hover .tv-season-bar,
.tv-season-box.is-kb-focus .tv-season-bar {
  background: rgba(14, 13, 11, 0.25);
}

.tv-season-box:hover .tv-season-bar-fill,
.tv-season-box.is-kb-focus .tv-season-bar-fill {
  background: #0e0d0b;
}

.tv-ep-dial {
  top: 816px;
  height: 196px;
  margin-top: -98px;
}

.tv-ep-card {
  width: 480px;
  height: 270px;
  margin-left: -240px;
  margin-top: -135px;
  border-radius: 8px;
  overflow: hidden;
  background: #191714;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.62);
}

.tv-ep-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--ep-pos, 32%);
  filter: hue-rotate(var(--ep-hue, 0deg)) brightness(var(--ep-br, 0.96));
}

.tv-ep-card.is-focused {
  box-shadow:
    0 0 0 5px #0e0d0b,
    0 0 0 11px var(--tv-accent),
    0 24px 64px rgba(0, 0, 0, 0.78);
}

.tv-ep-card.is-dim-focus {
  box-shadow:
    0 0 0 3px rgba(242, 239, 232, 0.24),
    0 20px 54px rgba(0, 0, 0, 0.62);
}

.tv-ep-prog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: rgba(14, 13, 11, 0.65);
}

.tv-ep-prog-fill {
  height: 100%;
  background: var(--tv-accent);
}

.tv-ep-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 13, 11, 0.86);
  border: 1.5px solid color-mix(in srgb, var(--tv-accent) 70%, transparent);
  color: var(--tv-accent);
  display: grid;
  place-items: center;
}

.tv-ep-info {
  position: absolute;
  top: 924px;
  left: 160px;
  right: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  z-index: 12;
}

.tv-ep-info .tv-info-title {
  font-size: 36px;
}

/* Info 4x3 grid (exact tour3_episodes.png!) */
.tv-info-grid {
  position: absolute;
  top: 644px;
  left: 96px;
  right: 96px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 42px;
  z-index: 12;
}

.tv-info-cell {
  border-bottom: 1px solid rgba(242, 239, 232, 0.08);
  padding-bottom: 18px;
}

.tv-info-k {
  font: 600 16px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: #8f897e;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tv-info-v {
  font: 700 22px/1.28 var(--font-ui);
  color: #f2efe8;
}

/* Cast horizontal circle dial */
.tv-cast-dial {
  top: 790px;
  height: 240px;
  margin-top: -120px;
}

.tv-cast-circle-card {
  width: 220px;
  margin-left: -110px;
  margin-top: -110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.tv-cast-orb {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: #23201c;
  border: 2px solid rgba(242, 239, 232, 0.14);
  display: grid;
  place-items: center;
  font: 800 38px/1 var(--font-mono);
  color: var(--tv-accent);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tv-cast-circle-card.is-focused .tv-cast-orb {
  box-shadow: 0 0 0 4px #0e0d0b, 0 0 0 8px var(--tv-accent);
}

.tv-cast-name {
  font: 700 21px/1.15 var(--font-ui);
  color: #f2efe8;
}

.tv-cast-role {
  font: 500 17px/1.15 var(--font-ui);
  color: #999387;
}

/* Review card horizontal dial */
.tv-review-dial {
  top: 816px;
  height: 260px;
  margin-top: -130px;
}

.tv-review-card {
  width: 460px;
  height: 240px;
  margin-left: -230px;
  margin-top: -120px;
  border-radius: 8px;
  background: #171512;
  border: 1.5px solid rgba(242, 239, 232, 0.12);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.tv-review-card.is-focused {
  border-color: var(--tv-accent);
  background: #1d1a16;
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 6px var(--tv-accent);
}

.tv-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 18px/1 var(--font-mono);
}

.tv-review-src {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tv-review-badge {
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(242, 239, 232, 0.08);
  color: #c9c3b8;
}

.tv-review-score {
  color: var(--tv-accent);
}

.tv-review-author {
  color: #8f897e;
  font-family: var(--font-ui);
  font-weight: 500;
}

.tv-review-body {
  margin: 0;
  font: 400 20px/1.45 var(--font-ui);
  color: #c9c3b8;
}

/* More like this horizontal poster dial */
.tv-more-dial {
  top: 760px;
  height: 280px;
  margin-top: -140px;
}

.tv-more-info {
  position: absolute;
  top: 906px;
  left: 160px;
  right: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  z-index: 12;
}

.tv-more-info .tv-info-title {
  font-size: 36px;
}

/* --- SCREEN 7: PROFILE SWITCHER ("Wie gaat er kijken?") --- */
.tv-profiles-screen {
  position: absolute;
  inset: 0;
  background: #0e0d0b;
  z-index: 25;
}

.tv-profiles-logo {
  position: absolute;
  top: 108px;
  left: 50%;
  translate: -50% 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #1b1b1d;
  border: 1px solid rgba(242, 239, 232, 0.09);
  display: grid;
  place-items: center;
}

.tv-profiles-logo img {
  width: 36px;
  height: 36px;
}

.tv-profiles-title {
  position: absolute;
  top: 196px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font: 800 70px/1.05 var(--font-ui);
  letter-spacing: -0.03em;
}

.tv-profiles-dial {
  top: 576px;
  height: 340px;
  margin-top: -170px;
}

.tv-profile-circle {
  width: 286px;
  height: 286px;
  margin-left: -143px;
  margin-top: -143px;
  border-radius: 50%;
  background: #1f1d1a;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.tv-profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-profile-circle.is-focused {
  box-shadow:
    0 0 0 8px #0e0d0b,
    0 0 0 15px var(--prof-c, var(--tv-accent));
}

.tv-profile-plus {
  color: #c9c3b8;
  display: grid;
  place-items: center;
}

.tv-profile-plus .tv-ico {
  width: 72px;
  height: 72px;
}

.tv-profiles-info {
  position: absolute;
  top: 760px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.tv-profiles-name {
  margin: 0;
  font: 800 54px/1 var(--font-ui);
}

.tv-profiles-hint {
  margin-top: 18px;
  font: 400 22px/1 var(--font-ui);
  color: #c9c3b8;
}

/* =========================================================================
   SCREEN 8: EXACT 1-OP-1 STREAMFUSION MEDIA3 VIDEO PLAYER (PlayerControls.kt + PlayerTopInfo.kt)
   ========================================================================= */
.tv-player-screen {
  position: absolute;
  inset: 0;
  z-index: 35;
  background: #0e0d0b;
  overflow: hidden;
}

.tv-player-stage-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tv-player-bg {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  object-fit: cover;
  object-position: center 26%;
  opacity: 0.92;
  scale: 1.05;
  translate: 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .tv-player-screen:not(.is-paused) .tv-player-bg {
    animation: sf-player-pan 28s ease-in-out infinite alternate;
  }
}

@keyframes sf-player-pan {
  0% { scale: 1.04; translate: -18px -6px; }
  50% { scale: 1.1; translate: 12px 6px; }
  100% { scale: 1.06; translate: 22px -10px; }
}

/* Exact PlayerBarScrim from PlayerTopInfo.kt */
.tv-player-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 13, 11, 0.8) 0%, rgba(14, 13, 11, 0) 30%),
    linear-gradient(0deg, rgba(14, 13, 11, 0.96) 0%, rgba(14, 13, 11, 0.5) 26%, rgba(14, 13, 11, 0) 50%);
  pointer-events: none;
}

.tv-player-screen.is-connecting .tv-player-scrim {
  background: linear-gradient(180deg, rgba(14, 13, 11, 0.42) 0%, rgba(14, 13, 11, 0.25) 38%, rgba(14, 13, 11, 0.92) 82%, #0e0d0b 100%);
}

/* Connecting overlay (exact Develop loading state) */
.tv-player-loading {
  position: absolute;
  left: 96px;
  right: 96px;
  bottom: 92px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 6;
}

.tv-player-load-title {
  margin: 0;
  font: 800 76px/1.02 var(--font-ui);
  letter-spacing: -0.03em;
  color: #f2efe8;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.tv-player-load-meta {
  font: 500 22px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: #e6e0d6;
}

.tv-player-load-status {
  font: 500 23px/1 var(--font-ui);
  color: #c9c3b8;
}

.tv-player-load-bar {
  width: 440px;
  height: 5px;
  border-radius: 99px;
  background: rgba(242, 239, 232, 0.22);
  overflow: hidden;
  margin-top: 6px;
}

.tv-player-load-fill {
  width: 180px;
  height: 100%;
  background: var(--tv-accent);
  border-radius: 99px;
}

@media (prefers-reduced-motion: no-preference) {
  .tv-player-load-fill {
    animation: sf-player-sweep 1.3s cubic-bezier(0.3, 0.6, 0.2, 1) infinite;
  }
}

@keyframes sf-player-sweep {
  from { translate: -180px 0; }
  to { translate: 460px 0; }
}

/* Exact PlayerTopInfo.kt Header */
.tv-pl-top-left {
  position: absolute;
  left: 96px;
  top: 96px;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 8;
}

.tv-pl-title {
  margin: 0;
  font: 800 84px/1 var(--font-ui);
  letter-spacing: -0.035em;
  color: #f2efe8;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-pl-meta {
  font: 500 21px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: #e6e0d6;
  text-transform: uppercase;
}

.tv-pl-top-right {
  position: absolute;
  right: 96px;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 8;
}

.tv-pl-clock-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.tv-pl-clock {
  font: 700 32px/1 var(--font-mono);
  color: #f2efe8;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.tv-pl-ends {
  font: 500 18px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: #c9c3b8;
  text-transform: uppercase;
}

.tv-pl-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.tv-pl-badge {
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(14, 13, 11, 0.78);
  border: 1px solid rgba(242, 239, 232, 0.16);
  font: 700 15px/1 var(--font-mono);
  letter-spacing: 0.07em;
  color: #f2efe8;
}

.tv-pl-badge.is-accent {
  color: var(--tv-accent);
  border-color: color-mix(in srgb, var(--tv-accent) 45%, transparent);
}

.tv-pl-badge.is-live {
  background: rgba(255, 90, 82, 0.22);
  border-color: #ff5a52;
  color: #ff8a7a;
}

/* Exact PausedLabel from PlayerTopInfo.kt (y=470px, rgba(14,13,11,.8), mono 24 W700 +.1em) */
.tv-pl-paused-pill {
  position: absolute;
  top: 446px;
  left: 50%;
  translate: -50% 0;
  padding: 16px 30px;
  border-radius: 6px;
  background: rgba(14, 13, 11, 0.82);
  border: 1px solid rgba(242, 239, 232, 0.12);
  font: 700 24px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: #f2efe8;
  text-transform: uppercase;
  z-index: 9;
}

/* Live interactive subtitle caption above PlayerControls */
.tv-pl-subs {
  position: absolute;
  left: 220px;
  right: 220px;
  bottom: 296px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  pointer-events: none;
  z-index: 7;
}

.tv-pl-sub-line {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  background: rgba(14, 13, 11, 0.78);
  font: 600 32px/1.32 var(--font-ui);
  color: #f2efe8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.tv-pl-sub-tag {
  font: 600 14px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--tv-accent);
  text-transform: uppercase;
}

/* Exact PlayerControls.kt Bottom Block (y=800..1080px, height=280px) */
.tv-pl-controls {
  position: absolute;
  left: 0;
  right: 0;
  top: 800px;
  height: 280px;
  z-index: 10;
  transition: opacity 0.28s ease;
}

.tv-pl-controls.is-ghost {
  opacity: 0.36;
}

.tv-pl-explainer {
  position: absolute;
  top: 0;
  left: 96px;
  right: 96px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.tv-pl-exp-title {
  font: 700 26px/1 var(--font-ui);
  color: #f2efe8;
}

.tv-pl-exp-meta {
  font: 500 18px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: #c9c3b8;
  text-transform: uppercase;
}

.tv-pl-panel {
  position: absolute;
  top: 50px;
  left: 96px;
  right: 96px;
  height: 194px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(25, 23, 20, 0.9), rgba(16, 15, 13, 0.94));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.44), inset 0 0 0 1px rgba(242, 239, 232, 0.08);
}

.tv-pl-timeline-row {
  position: absolute;
  top: 76px;
  left: 130px;
  right: 130px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.tv-pl-time {
  min-width: 118px;
  font: 700 22px/1 var(--font-mono);
  color: #f2efe8;
  font-variant-numeric: tabular-nums;
}

.tv-pl-dur {
  min-width: 118px;
  text-align: right;
  font: 500 22px/1 var(--font-mono);
  color: #c9c3b8;
  font-variant-numeric: tabular-nums;
}

.tv-pl-track-btn {
  position: relative;
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.tv-pl-track-rail {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(242, 239, 232, 0.22);
  transition: height 0.2s ease;
}

.tv-pl-track-btn.is-kb-focus .tv-pl-track-rail,
.tv-pl-track-btn:hover .tv-pl-track-rail {
  height: 10px;
  border-radius: 5px;
}

.tv-pl-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: var(--tv-accent);
}

.tv-pl-track-knob {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  border-radius: 50%;
  background: #f2efe8;
  box-shadow: 0 0 0 4px var(--tv-accent), 0 4px 14px rgba(0, 0, 0, 0.55);
  opacity: 0;
  scale: 0.7;
  transition: opacity 0.2s ease, scale 0.2s ease;
}

.tv-pl-track-btn.is-kb-focus .tv-pl-track-knob,
.tv-pl-track-btn:hover .tv-pl-track-knob {
  opacity: 1;
  scale: 1;
}

.tv-pl-btn-row {
  position: absolute;
  top: 138px;
  left: 130px;
  right: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tv-pl-tile {
  width: 108px;
  height: 78px;
  border-radius: 7px;
  background: rgba(242, 239, 232, 0.06);
  border: 1.5px solid rgba(242, 239, 232, 0.12);
  color: #f2efe8;
  display: grid;
  place-items: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.16s ease;
}

.tv-pl-tile:hover,
.tv-pl-tile:focus-visible,
.tv-pl-tile.is-kb-focus {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #0e0d0b;
  box-shadow: 0 0 0 3px #0e0d0b, 0 0 0 6px var(--tv-accent);
}

/* =========================================================================
   EXACT SfSidePanel (SfOverlays.kt: 680px right-docked sheet, #191714, scrim .62)
   ========================================================================= */
.tv-panel-layer {
  position: absolute;
  inset: 0;
  z-index: 46;
  display: flex;
  justify-content: flex-end;
}

.tv-panel-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.62);
}

@media (prefers-reduced-motion: no-preference) {
  .tv-panel-scrim {
    animation: sf-panel-scrim-in 0.24s ease both;
  }
  .tv-side-panel {
    animation: sf-side-panel-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}

@keyframes sf-panel-scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sf-side-panel-in {
  from { translate: 120px 0; opacity: 0; }
  to { translate: 0 0; opacity: 1; }
}

.tv-side-panel {
  position: relative;
  z-index: 2;
  width: 680px;
  height: 1080px;
  background: #191714;
  box-shadow: -40px 0 90px rgba(0, 0, 0, 0.54);
  border-left: 1px solid rgba(242, 239, 232, 0.08);
  padding: 64px 48px 48px;
  display: flex;
  flex-direction: column;
}

.tv-panel-kicker {
  font: 600 18px/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--tv-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tv-panel-title {
  margin: 0 0 28px;
  font: 800 50px/1.04 var(--font-ui);
  letter-spacing: -0.035em;
  color: #f2efe8;
}

.tv-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.tv-panel-section {
  font: 700 16px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: #999387;
  text-transform: uppercase;
  padding: 18px 4px 8px;
  border-bottom: 1px solid rgba(242, 239, 232, 0.1);
  margin-bottom: 4px;
}

.tv-panel-row {
  width: 100%;
  min-height: 76px;
  padding: 16px 24px;
  border-radius: 7px;
  background: rgba(242, 239, 232, 0.045);
  border: 1.5px solid rgba(242, 239, 232, 0.08);
  color: #f2efe8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.tv-panel-row-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.tv-panel-row-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.tv-panel-row-label {
  font: 700 23px/1.15 var(--font-ui);
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-panel-row-sub {
  font: 500 16px/1.2 var(--font-mono);
  color: #999387;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-panel-row-tag {
  font: 700 16px/1 var(--font-mono);
  color: var(--tv-accent);
  flex-shrink: 0;
}

.tv-panel-row.is-destructive {
  color: #ff8a7a;
}

.tv-panel-row.is-active {
  border-color: color-mix(in srgb, var(--tv-accent) 48%, transparent);
}

.tv-panel-row:hover,
.tv-panel-row:focus-visible,
.tv-panel-row.is-kb-focus {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #0e0d0b;
}

.tv-panel-row:hover .tv-panel-row-sub,
.tv-panel-row:focus-visible .tv-panel-row-sub,
.tv-panel-row.is-kb-focus .tv-panel-row-sub,
.tv-panel-row:hover .tv-panel-row-tag,
.tv-panel-row:focus-visible .tv-panel-row-tag,
.tv-panel-row.is-kb-focus .tv-panel-row-tag {
  color: rgba(14, 13, 11, 0.85);
}

.tv-panel-info-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 6px 4px;
}

.tv-panel-info-syn {
  margin: 0;
  font: 400 21px/1.48 var(--font-ui);
  color: #e6e0d6;
}

.tv-panel-info-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 239, 232, 0.1);
}

.tv-panel-hint {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 239, 232, 0.08);
  font: 500 17px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  color: #999387;
  text-transform: uppercase;
}

/* Subtle in-TV toast matching SfToast */
.tv-toast-pill {
  position: absolute;
  left: 50%;
  bottom: 92px;
  translate: -50% 0;
  z-index: 48;
  padding: 16px 28px;
  border-radius: 8px;
  background: #23201c;
  border: 1.5px solid color-mix(in srgb, var(--tv-accent) 60%, transparent);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.65);
  font: 700 22px/1 var(--font-ui);
  color: #f2efe8;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .tv-ambient-wrap::before {
    inset: -8px 2% -12px;
    filter: blur(18px);
  }
  .tv-bezel {
    padding: 6px 6px 14px;
    border-radius: 14px;
  }
  .tv-screen {
    border-radius: 8px;
  }
}
