/* ============================================================
   Siar — TV analog. REDESAIN TOTAL (2026-10-11).
   Sistem desain: TV adalah SATU objek dengan rasio aspek terkunci
   (.tv-body: container-type:size + aspect-ratio). Semua ukuran internal
   memakai satuan container (cqw/cqh) sehingga TV diskalakan utuh di
   semua viewport — tidak ada peregangan, tidak ada tumpuk vertikal.
   ============================================================ */
:root {
  /* --- Palet halaman --- */
  --bg: #08080a;
  --panel: #121216;
  --line: #232329;
  --ink: #e8e6df;
  --dim: #8b897f;
  --osd: #8dff9e;
  --accent: #d8c690;
  --danger: #ff6b57;
  --scan-alpha: .28;

  /* --- Skala spacing & radius --- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;

  /* --- Material plastik generik --- */
  --plas-hi: rgba(255,255,255,.14);
  --plas-lo: rgba(0,0,0,.55);
  --well: rgba(0,0,0,.38);

  /* --- Bayangan standar --- */
  --sh-btn-down: 0 1px 0 #050506, 0 2px 5px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 3px rgba(0,0,0,.45);
  --sh-well: inset 0 3px 9px rgba(0,0,0,.62), inset 0 -1px 0 rgba(255,255,255,.07);
  --sh-tv: 0 30px 80px rgba(0,0,0,.65), 0 4px 14px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.07), inset 0 -3px 8px rgba(0,0,0,.45);

  /* --- Proporsi chassis (width/height badan TV) per model --- */
  --body-ar: 1.38;
  --deck-frac: 17%;
}
.shape-trinitron { --body-ar: 1.44; --deck-frac: 16.5%; }
.shape-toshiba   { --body-ar: 1.40; --deck-frac: 16.5%; }
.shape-polytron  { --body-ar: 1.46; --deck-frac: 16%; }
.shape-flatron   { --body-ar: 1.42; --deck-frac: 17.5%; }
.shape-philips   { --body-ar: 1.30; --deck-frac: 18%; }
.shape-sharp     { --body-ar: 1.32; --deck-frac: 18%; }
.shape-jvc       { --body-ar: 1.30; --deck-frac: 18.5%; }
.shape-panasonic { --body-ar: 1.32; --deck-frac: 18%; }
.shape-akari     { --body-ar: 1.32; --deck-frac: 18.5%; }
.shape-wood      { --body-ar: 1.36; --deck-frac: 16%; }

* { box-sizing: border-box; }

html, body {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 50% 20%, #121218 0%, var(--bg) 60%);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

/* ---------- Ikon SVG: satu bahasa visual, tidak bergantung font ---------- */
.ic {
  width: 1.15em; height: 1.15em; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.18em;
}
.ic.fill { fill: currentColor; stroke: none; }
.ic-sm { width: 1em; height: 1em; }

/* ---------- Panggung ---------- */
.room {
  max-width: 1240px; margin: 0 auto; padding: 24px 20px 48px;
  transform-origin: 50% 0; position: relative;
}
.stage { display: flex; align-items: flex-start; justify-content: center; gap: 26px; position: relative; }
.legend {
  flex: 0 0 auto; margin-top: 150px;
  font-size: 11px; letter-spacing: .06em; color: var(--dim);
  line-height: 1.5; white-space: nowrap; user-select: none;
}
.legend p { margin: 0 0 8px; }
.legend b {
  color: var(--accent); font-weight: 700; letter-spacing: .1em;
  display: inline-block; min-width: 34px;
}
@media (max-width: 1080px) { .legend { display: none; } }

/* ---------- TV sebagai satu objek: lebar terkunci dari viewport ---------- */
.tv {
  position: relative;
  flex: 0 1 auto;
  width: min(940px, 96vw, calc(max(120px, 100dvh - 215px) * var(--body-ar)));
  min-width: 250px;
  margin-top: clamp(64px, 13dvh, 128px);
}

/* ---------- Antena teleskopik (tinggi mengikuti viewport) ---------- */
.antenna { position: absolute; left: 38%; bottom: 100%; width: 0; height: 0; pointer-events: none; }
.antenna .rod {
  position: absolute; bottom: 6px; left: -2px; width: 4px; border-radius: 2px;
  transform-origin: bottom center;
  background: linear-gradient(90deg, #4c4c54, #ececf2 45%, #83838d);
  box-shadow: 1px 0 2px rgba(0,0,0,.55);
  pointer-events: auto; cursor: grab; touch-action: none;
}
.antenna .rod:active { cursor: grabbing; }
.antenna .rod::before {
  content: ""; position: absolute; top: -14px; bottom: -4px; left: 50%;
  transform: translateX(-50%); width: 38px;
}
.tv.on.sig-bad .antenna .rod::after { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.antenna .rod::after {
  content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #bcbcc6 55%, #6d6d78);
  box-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.antenna .rod-l { height: clamp(52px, 10.5dvh, 98px); transform: rotate(-27deg); }
.antenna .rod-r { height: clamp(62px, 12.5dvh, 120px); transform: rotate(17deg); }
.antenna .mount {
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 15px; border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, #33333c, #101014);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -3px 5px rgba(0,0,0,.6), 0 3px 5px rgba(0,0,0,.45);
}

/* ---------- Badan TV: material & konstruksi ---------- */
.tv-body {
  container-type: size;
  aspect-ratio: var(--body-ar);
  display: grid;
  grid-template-rows: 1fr var(--deck-frac);
  gap: 1.8cqw;
  padding: 2.4cqw;
  position: relative;
  border: 1px solid var(--f-line);
  border-radius: 26px;
  background: linear-gradient(160deg, var(--f-a), var(--f-b) 72%);
  box-shadow: var(--sh-tv);
}
/* Finishing — variabel material per warna bodi */
.finish-hitam { --f-a: #1d1d23; --f-b: #0d0d10; --f-line: #232329; --ring1: #0a0a0d; --ring2: #232329; --plate: #4c4c55; }
.finish-silver { --f-a: #dde0e6; --f-b: #878c96; --f-line: #6f747e; --ring1: #33363d; --ring2: #c3c7cf; --plate: #5b5e66; }
.finish-kayu { --f-a: #7d5a38; --f-b: #463017; --f-line: #2e1f0f; --ring1: #120b04; --ring2: #33200e; --plate: #33220f; }
.finish-ivory { --f-a: #f0e9da; --f-b: #c9bda2; --f-line: #a89a7d; --ring1: #4a4232; --ring2: #e6ddc9; --plate: #8a7c5f; }
.finish-grafit { --f-a: #3d434c; --f-b: #20242a; --f-line: #12151a; --ring1: #0a0c0f; --ring2: #4c545f; --plate: #9aa3ae; }
.finish-krem { --f-a: #e7ddc6; --f-b: #b3a586; --f-line: #8f8262; --ring1: #453c2a; --ring2: #ded2b6; --plate: #7d6f52; }
.finish-marun { --f-a: #72262f; --f-b: #3f131a; --f-line: #2a0b10; --ring1: #1a0508; --ring2: #5e2129; --plate: #d3a5a5; }
.finish-dongker { --f-a: #263a5e; --f-b: #101c31; --f-line: #0a1424; --ring1: #050a15; --ring2: #354f7c; --plate: #a8bdd9; }
/* Serat plastik molded: noise fraktal dua skala, sangat tipis */
.tv-body::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Skrup + seam cetakan */
.tv-body::after {
  content: ""; position: absolute; inset: 1.2cqw; border-radius: 20px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
  background:
    radial-gradient(circle at 1.6cqw 1.6cqw, #3c3c44 0 .32cqw, #101014 .42cqw, transparent .55cqw),
    radial-gradient(circle at calc(100% - 1.6cqw) 1.6cqw, #3c3c44 0 .32cqw, #101014 .42cqw, transparent .55cqw),
    radial-gradient(circle at 1.6cqw calc(100% - 1.6cqw), #3c3c44 0 .32cqw, #101014 .42cqw, transparent .55cqw),
    radial-gradient(circle at calc(100% - 1.6cqw) calc(100% - 1.6cqw), #3c3c44 0 .32cqw, #101014 .42cqw, transparent .55cqw);
}
.finish-kayu .tv-body {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 2px, transparent 2px 110px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 3px, transparent 3px 7px),
    linear-gradient(160deg, var(--f-a), #5b3e24 55%, var(--f-b));
}
.finish-silver .antenna .mount, .finish-ivory .antenna .mount, .finish-krem .antenna .mount { background: linear-gradient(180deg, #9ea3ad, #565b64); }
.finish-grafit .antenna .mount { background: linear-gradient(180deg, #79818c, #2c3138); }
.finish-kayu .antenna .mount { background: linear-gradient(180deg, #4b3419, #241605); }
.brand-plate { color: var(--plate); border-top-color: var(--f-line); }

/* ---------- Zona layar: layar + kolom samping ---------- */
.tv-main { display: flex; gap: 2cqw; min-height: 0; align-items: stretch; }
/* Bezel: bingkai kaca menyatu dengan zona layar */
.screen-wrap {
  flex: 1 1 0; min-width: 0; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #101014, #060608 70%);
  border-radius: 2.2cqw;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,.8),
    inset 0 -1px 0 rgba(255,255,255,.06),
    0 1px 0 rgba(255,255,255,.05);
  padding: 1.1cqw;
}
.screen {
  position: relative;
  height: 100%; max-width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(125% 105% at 50% 36%, #12151b 0%, #07090c 52%, #000 100%);
  border: 2px solid #000;
  border-radius: 1.6cqw;
  overflow: hidden;
  box-shadow:
    inset 0 0 60px rgba(0,0,0,.9),
    inset 0 0 18px rgba(0,0,0,.85),
    0 0 0 1px rgba(255,255,255,.04);
}
.ratio-169 .screen { aspect-ratio: 16 / 9; height: auto; width: 100%; max-height: 100%; }
.screen::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.38) 78%, rgba(0,0,0,.62) 100%);
}
.screen-inner { position: absolute; inset: 0; }
.screen-inner::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto;
  height: 3px; background: #eaf2ff;
  box-shadow: 0 0 30px 8px rgba(200,220,255,.75);
  opacity: 0; pointer-events: none; z-index: 6;
}
.tv.turning-on .screen-inner::after { animation: crt-on .5s ease-out; }
@keyframes crt-on {
  0% { opacity: 1; height: 3px; }
  55% { opacity: 1; height: 102%; }
  100% { opacity: 0; height: 102%; }
}
#player { position: absolute; inset: 0; overflow: hidden; background: #000; }
#player > div { position: absolute; inset: 0; }
#player iframe {
  position: absolute; border: 0;
  width: 112%; height: 124%;
  left: -6%; top: -13%;
}
#player.src-ia iframe { width: 100%; height: 100%; left: 0; top: 0; }
.screen.native-ui .click-shield { display: none; }
/* Veil jeda milik sendiri: menutupi SELURUH layar saat video dijeda agar
   chrome YouTube (title bar, tombol raksasa, logo) tidak pernah terlihat.
   pointer-events: none — klik diteruskan ke click-shield di atasnya. */
#pauseVeil {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2,2,3,.62);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .3s;
  pointer-events: none;
}
#pauseVeil.show { opacity: 1; visibility: visible; transition: opacity .25s ease; }
#pauseVeil .ic { width: 16cqh; height: 16cqh; color: rgba(255,255,255,.92);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.8)); }
#pauseVeil::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30cqh; height: 30cqh; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,.45), transparent 70%);
}
.click-shield { position: absolute; inset: 0; z-index: 4; cursor: pointer; background: transparent; }
#staticCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; z-index: 4; pointer-events: none; image-rendering: pixelated;
}
#staticCanvas.burst { opacity: .92 !important; }
.vhs-overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .3s; overflow: hidden; }
.vhs-on .vhs-overlay { opacity: 1; }
.vhs-band {
  position: absolute; left: 0; right: 0; top: -25%; height: 22%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.10) 35%, rgba(0,0,0,.28) 60%, transparent);
  animation: bandmove 6.5s linear infinite;
}
@keyframes bandmove { to { transform: translateY(560%); } }
.vhs-lines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.12) 0 1px, transparent 1px 4px);
  animation: lineshift 1.2s steps(6) infinite;
}
@keyframes lineshift { 50% { transform: translateY(1px); } }
.vhs-on .screen-inner { animation: vhs-jitter .38s steps(2) infinite; }
@keyframes vhs-jitter {
  0% { transform: translate(0, 0); }
  33% { transform: translate(.6px, -.5px); }
  66% { transform: translate(-.6px, .5px); }
  100% { transform: translate(0, 0); }
}
.vhs-on .screen::before {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  box-shadow: inset 3px 0 0 rgba(255,0,60,.16), inset -3px 0 0 rgba(0,255,255,.16);
}
#powerFlash {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: #eaffea; opacity: 0; transform: scaleY(.004);
}
#powerFlash.go { animation: crt-on .45s ease-out; }
#powerFlash.go-off { animation: crt-off .38s ease-in; }
@keyframes crt-off {
  0% { opacity: .85; transform: scaleY(1); }
  45% { opacity: .95; transform: scaleY(.008); }
  72% { opacity: .95; transform: scaleY(.008) scaleX(1); }
  100% { opacity: 0; transform: scaleY(.008) scaleX(0); }
}
#sleepBadge {
  position: absolute; top: 5%; right: 5%; z-index: 7; pointer-events: none;
  color: var(--osd); font-size: 1.7cqw; letter-spacing: .15em;
  text-shadow: 0 0 8px rgba(141,255,158,.7);
}
#sleepBadge:empty { display: none; }
/* OSD ala TV tabung asli: kecil di pojok kanan atas, muncul sebentar saat
   ganti channel lalu hilang otomatis. Tanpa glow neon, tanpa teks raksasa. */
#osd {
  position: absolute; top: 5%; right: 6%; left: auto; z-index: 7; pointer-events: none;
  max-width: 60%; text-align: right;
  color: #f0efe6; font-size: 2cqw; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  text-shadow: 1px 1px 0 rgba(0,0,0,.8), 0 0 2px rgba(0,0,0,.6);
  opacity: 0; transition: opacity .25s;
}
#osd.show { opacity: 1; }
#osd small { display: block; font-size: .66em; letter-spacing: .16em; margin-top: 3px; opacity: .92; }
#osd small.dim { font-size: .5em; opacity: .7; }
.scanlines {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    rgba(0,0,0,var(--scan-alpha)) 0, rgba(0,0,0,var(--scan-alpha)) 1px,
    transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
}
.scan-off .scanlines { display: none; }
.glass {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  --glare: 255, 255, 255;
  /* Refleksi sangat samar — bukan kilau kaca smartphone */
  background:
    radial-gradient(ellipse 130% 60% at 50% -12%, rgba(var(--glare),.05) 0%, transparent 55%),
    linear-gradient(115deg, rgba(var(--glare),.03) 0%, transparent 26%);
  animation: flicker 4.2s infinite;
}
.finish-kayu .glass, .finish-marun .glass { --glare: 255, 214, 170; }
.finish-ivory .glass, .finish-krem .glass { --glare: 255, 244, 220; }
.finish-dongker .glass, .finish-grafit .glass { --glare: 200, 214, 235; }
@keyframes flicker {
  0%, 100% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: .55; }
  94% { opacity: 1; } 97% { opacity: .75; } 98% { opacity: 1; }
}
#stationBug {
  position: absolute; top: 5.5%; right: 5%; z-index: 7; pointer-events: none;
  padding: 3px 9px; border-radius: 4px;
  font-size: 2cqw; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.92); background: rgba(8,8,12,.42);
  border: 1px solid rgba(255,255,255,.20);
  text-shadow: 0 1px 3px rgba(0,0,0,.85); opacity: .88;
}
#stationBug[hidden] { display: none; }
.tv.curve-off .screen { border-radius: .8cqw; }
.tv.curve-off .screen::after { background: none; }
.tv.flicker-off .glass { animation: none; }
.tv:not(.on) .glass { animation-play-state: paused; }
.tv.sig-bad .vhs-overlay { opacity: .55; }

/* ---------- Kolom samping: speaker + sensor ---------- */
.tv-side {
  flex: 0 0 15%; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; gap: 1.4cqw;
}
.side-l { display: none; }
.shape-polytron .side-l, .shape-flatron .side-l { display: flex; }
/* Ventilasi cetakan di atas kolom samping (model berspeaker samping) */
.tv-side::before { content: ""; display: none; }
.shape-trinitron .tv-side::before, .shape-toshiba .tv-side::before,
.shape-polytron .tv-side::before, .shape-flatron .tv-side::before {
  display: block; flex: 0 0 auto; height: 4.5cqh; border-radius: .8cqw;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.55) 0 3px, transparent 3px 8px);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.55), inset 0 -1px 0 rgba(255,255,255,.06);
}
.shape-trinitron .tv-side::before {
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.55) 0 3px, transparent 3px 8px);
}
/* Grille speaker: perforasi dua lapis dengan variasi acak samar
   (bukan grid sempurna) */
.speaker {
  flex: 1 1 auto; min-height: 0; border-radius: .9cqw;
  background-color: rgba(0,0,0,.26);
  /* Perforasi halus tidak dominan: lubang kecil redup, highlight nyaris tak terlihat */
  background-image:
    radial-gradient(circle at center, rgba(0,0,0,.7) 1px, transparent 1.5px),
    radial-gradient(circle at center, rgba(255,255,255,.05) 1px, transparent 1.7px);
  background-size: 6px 6px, 6px 6px;
  background-position: 0 0, 0 1px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.55), inset 0 -1px 0 rgba(255,255,255,.04);
}
.finish-silver .speaker, .finish-ivory .speaker, .finish-krem .speaker {
  background-color: rgba(0,0,0,.13);
}
.finish-kayu .speaker { background-color: rgba(0,0,0,.30); }
/* Sensor: SATU jendela smoked simetris dengan satu LED di tengah.
   LED = status power (merah standby / hijau nyala) + berkedip saat terima IR. */
.ir-zone {
  display: flex; align-items: center; justify-content: center;
  padding: .5cqh .3cqw; flex: 0 0 auto;
}
.ir-win {
  display: flex; align-items: center; justify-content: center;
  width: 5cqw; height: 2.4cqh; min-width: 34px; min-height: 15px; max-width: 46px; max-height: 21px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b0b0d, #050506);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.9), inset 0 -1px 0 rgba(255,255,255,.05),
    0 1px 0 rgba(255,255,255,.05);
}
.pwr-led {
  width: 1.15cqh; height: 1.15cqh; min-width: 7px; min-height: 7px; max-width: 11px; max-height: 11px;
  border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 38% 32%, #ff8a7a, #b02318 62%, #5d0f0a);
  box-shadow: 0 0 7px 1px rgba(255,80,60,.55), inset 0 1px 1px rgba(255,255,255,.35);
  transition: background .25s, box-shadow .25s;
}
.tv.on .pwr-led {
  background: radial-gradient(circle at 38% 32%, #c8ffb8, #3fae52 62%, #14501f);
  box-shadow: 0 0 8px 2px rgba(90,255,130,.55), inset 0 1px 1px rgba(255,255,255,.35);
}
.pwr-led.flash { animation: pwr-flash .28s ease-out; }
@keyframes pwr-flash {
  0% { background: radial-gradient(circle at 50% 50%, #ffd9d2, #ff5a4d 70%); box-shadow: 0 0 12px 3px rgba(255,90,70,.8); }
  100% { }
}
.brand-plate {
  margin-top: auto; text-align: center;
  font-size: 1.15cqw; letter-spacing: .18em; white-space: nowrap;
  padding-top: 1cqh; border-top: 1px dashed;
}
/* TV kecil: sembunyikan pelat merek; sensor tetap simetris */
@container (max-width: 520px) {
  .brand-plate { display: none; }
  .tv-side::before { display: none; }
}

/* ---------- Dek kontrol: satu baris, tidak pernah wrap ---------- */
.statusbar {
  display: flex; align-items: center; gap: 1.5cqw;
  height: 100%; min-height: 0;
  padding: 0 1.2cqw;
  background: linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.14));
  border: 1px solid rgba(0,0,0,.40); border-radius: 1.6cqw;
  box-shadow: inset 0 3px 9px rgba(0,0,0,.55), inset 0 -1px 0 rgba(255,255,255,.07);
}
.finish-silver .statusbar, .finish-ivory .statusbar, .finish-krem .statusbar {
  background: linear-gradient(180deg, rgba(0,0,0,.20), rgba(255,255,255,.06));
}
.btn-well {
  display: inline-flex; padding: .8cqh; border-radius: 1.4cqw; flex: 0 0 auto;
  background: var(--well);
  box-shadow: inset 0 3px 8px rgba(0,0,0,.75), inset 0 -1px 0 rgba(255,255,255,.07), 0 1px 0 rgba(255,255,255,.05);
}
/* Tombol power: plastik molded — highlight tipis di tepi atas saja,
   tanpa kubah mengkilap. */
.btn.power {
  height: 12.5cqh; aspect-ratio: 1;
  border-radius: 2.6cqw;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4cqh;
  color: #ff7a63;
  background: linear-gradient(180deg, #2c2c34 0%, #1b1b21 100%);
  border: 1px solid #3a3a45;
  box-shadow:
    0 .7cqh 0 #050506,
    0 1.2cqh 2cqh rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -.6cqh 1cqh rgba(0,0,0,.45);
}
.btn.power .ic { width: 4.6cqh; height: 4.6cqh; stroke-width: 2.2; }
.btn.power span { font-size: 1.5cqh; letter-spacing: .22em; color: var(--dim); }
.btn.power:hover { filter: brightness(1.12); }
.btn.power:active, .btn.power.struck {
  transform: translateY(.5cqh);
  box-shadow: 0 .15cqh 0 #050506, inset 0 .4cqh 1cqh rgba(0,0,0,.6);
  filter: brightness(.94);
}
.btn.power.on { color: var(--osd); }
/* Latching ala saklar TV asli: saat menyala tombol terlihat "masuk" terkunci. */
.btn.power.on {
  transform: translateY(.5cqh);
  box-shadow: 0 .15cqh 0 #050506, inset 0 .4cqh 1cqh rgba(0,0,0,.6);
  filter: none;
}
.btn.power.on .ic { filter: drop-shadow(0 0 6px rgba(141,255,158,.8)); }
/* Display channel: jendela smoked + LED 7-segmen ala panel TV tabung asli.
   Segmen yang tidak menyala samar terlihat ("88" di belakang digit). */
.ch-display {
  flex: 0 0 auto; height: 10.5cqh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 1.8cqw;
  background: linear-gradient(180deg, #0b0906, #060504);
  border: 1px solid #2b2118; border-radius: 1cqw;
  box-shadow: inset 0 4px 14px rgba(0,0,0,.95), inset 0 0 26px rgba(255,80,30,.05),
    inset 0 1px 0 rgba(255,255,255,.04), 0 1px 0 rgba(255,255,255,.05);
}
.ch-display .ch-label { font-size: 1.5cqh; letter-spacing: .3em; color: #6b5a44; text-shadow: none; }
.ch-display #chNum {
  position: relative; font-size: 4.6cqh; font-weight: 700; line-height: 1.1;
  color: #ff5a26;
  text-shadow: 0 0 6px rgba(255,90,38,.7), 0 0 20px rgba(255,90,38,.3);
}
.ch-display #chNum::before {
  content: "88"; position: absolute; inset: 0;
  color: rgba(255,90,38,.08); text-shadow: none; pointer-events: none;
}
/* Indikator sinyal analog: titik LED kecil. Makin buruk sinyal makin redup
   (dan memerah). TV tabung asli tidak punya meter % — sinyal buruk
   divisualkan lewat static/snow di layar. */
.sig-led {
  flex: 0 0 auto; width: 1.7cqh; height: 1.7cqh; min-width: 8px; min-height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c8ffa8, #46b558 55%, #1d5c28);
  box-shadow: 0 0 7px rgba(120,255,140,.45), inset 0 -1px 2px rgba(0,0,0,.55),
    0 1px 0 rgba(255,255,255,.06);
  transition: opacity .3s;
}
.sig-led.bad {
  background: radial-gradient(circle at 35% 30%, #ffb59e, #b05240 55%, #5c1d1d);
  box-shadow: 0 0 7px rgba(255,120,100,.45), inset 0 -1px 2px rgba(0,0,0,.55),
    0 1px 0 rgba(255,255,255,.06);
}
.statusbar .front-ctrls { margin-left: auto; }
/* Tombol favorit: key molded kecil, konsisten dengan klaster CH/VOL */
.statusbar .fav-mini {
  flex: 0 0 auto; height: 9.5cqh; aspect-ratio: 1;
  border-radius: .9cqw;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--dim);
  background: linear-gradient(180deg, #303038 0%, #1d1d24 55%, #141419 100%);
  border: 1px solid #43434e;
  box-shadow: 0 2px 0 #060607, 0 4px 8px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.14), inset 0 -3px 5px rgba(0,0,0,.45);
}
.statusbar .fav-mini .ic { width: 3.4cqh; height: 3.4cqh; }
.statusbar .fav-mini:active, .statusbar .fav-mini.struck { transform: translateY(2px); box-shadow: 0 0 0 #060607, inset 0 3px 7px rgba(0,0,0,.6); }
.statusbar .fav-mini.on, .statusbar .btn.fav.on { color: var(--accent); border-color: var(--accent); }
.statusbar .fav-mini.on .ic { filter: drop-shadow(0 0 5px rgba(216,198,144,.7)); }
/* Klaster CH/VOL: empat key molded dalam satu cetakan — bevel tegas,
   label seperti engraved, bukan pil datar. */
.front-ctrls {
  flex: 0 0 auto; height: 10.5cqh;
  display: inline-flex; gap: .7cqw; padding: .7cqh .8cqw; border-radius: 1.2cqw;
  background: var(--well);
  box-shadow: inset 0 2px 7px rgba(0,0,0,.7), inset 0 -1px 0 rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.05);
}
.statusbar .btn.mini {
  height: 100%; aspect-ratio: 1.45;
  font-size: 2.2cqh; letter-spacing: .08em; border-radius: .7cqw;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  color: #d7d7de; text-shadow: 0 1px 1px rgba(0,0,0,.85);
  background: linear-gradient(180deg, #303038 0%, #1d1d24 55%, #141419 100%);
  border: 1px solid #43434e;
  box-shadow: 0 2px 0 #060607, 0 5px 9px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.14), inset 0 -3px 5px rgba(0,0,0,.45);
  transition: transform .04s, box-shadow .04s, filter .15s;
}
.statusbar .btn.mini:active, .statusbar .btn.mini.struck {
  transform: translateY(2px);
  box-shadow: 0 0 0 #060607, inset 0 3px 7px rgba(0,0,0,.6);
  filter: brightness(.94);
}
/* Tombol fisik generik: plastik molded kusam — highlight tepi atas tipis,
   tanpa gradien tiga lapis yang terlihat "basah". */
.btn {
  background: linear-gradient(180deg, #26262d 0%, #17171c 100%);
  color: var(--ink); border: 1px solid #36363f; border-radius: 1cqw;
  padding: 10px 6px; font: inherit; font-size: 12px; letter-spacing: .08em; cursor: pointer;
  box-shadow: 0 2px 0 #050506, 0 5px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .04s, box-shadow .04s, filter .15s;
}
.btn:hover { filter: brightness(1.14); }
.btn:active {
  transform: translateY(3px);
  box-shadow: var(--sh-btn-down);
}
.btn.struck {
  transform: translateY(4px) !important;
  box-shadow: 0 0 0 #050506, 0 1px 3px rgba(0,0,0,.6),
    inset 0 3px 8px rgba(0,0,0,.65), inset 0 -1px 2px rgba(0,0,0,.5) !important;
  filter: brightness(.92);
}
.finish-kayu .btn {
  background: linear-gradient(180deg, #5b422a 0%, #3e2b16 52%, #2c1e0e 100%);
  border-color: #6b4e2e;
}
.finish-silver .btn, .finish-ivory .btn {
  background: linear-gradient(180deg, #3a3d45 0%, #26282e 52%, #191b1f 100%);
  border-color: #45484f;
}
.btn.small { padding: 7px 9px; font-size: 11px; }
.btn.wide { width: 100%; }
.statusbar .block-badge { flex: 0 0 auto; }
.block-badge {
  font-size: 10px; letter-spacing: .18em; color: #0b0f0a; background: var(--osd);
  border-radius: 999px; padding: 3px 10px; font-weight: 700; white-space: nowrap;
}
.sleep-left { font-size: 1.6cqh; letter-spacing: .18em; color: var(--osd); text-align: center; flex: 0 0 auto; }
@container (max-width: 520px) {
  .statusbar .block-badge, .statusbar .sleep-left { display: none; }
}

/* ---------- Kaki & bayangan ---------- */
.tv-stand { display: flex; justify-content: space-between; padding: 0 12%; }
.tv-stand .foot {
  width: 11%; height: 3.2cqh; min-height: 12px;
  background: linear-gradient(180deg, #26262e, #0c0c0f);
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.10);
}
.finish-kayu .tv-stand .foot { background: linear-gradient(180deg, #4b3419, #241605); }
.finish-silver .tv-stand .foot, .finish-ivory .tv-stand .foot, .finish-krem .tv-stand .foot { background: linear-gradient(180deg, #9ea3ad, #565b64); }
.finish-grafit .tv-stand .foot { background: linear-gradient(180deg, #79818c, #2c3138); }
.tv::after {
  content: ""; display: block; height: 5cqh; min-height: 22px;
  background:
    radial-gradient(ellipse 44% 52% at 50% 6%, rgba(0,0,0,.80), transparent 70%),
    radial-gradient(ellipse 80% 100% at 50% 22%, rgba(0,0,0,.40), transparent 72%);
}
/* Cahaya layar memantul halus ke bodi saat TV menyala */
.tv.on .tv-body {
  box-shadow: var(--sh-tv), 0 0 110px rgba(126,156,255,.10);
}

/* ---------- Karakter fisik per model ---------- */
/* Speaker bawah: kolom samping jadi strip bawah */
.shape-philips .tv-main, .shape-sharp .tv-main, .shape-jvc .tv-main,
.shape-panasonic .tv-main, .shape-akari .tv-main { flex-direction: column; }
.shape-philips .tv-side, .shape-sharp .tv-side, .shape-jvc .tv-side,
.shape-panasonic .tv-side, .shape-akari .tv-side {
  flex: 0 0 auto; height: 7.5cqh; flex-direction: row; align-items: center; gap: 1.5cqw;
}
.shape-philips .speaker, .shape-sharp .speaker, .shape-jvc .speaker,
.shape-panasonic .speaker, .shape-akari .speaker { height: 100%; }
.shape-philips .brand-plate, .shape-sharp .brand-plate, .shape-jvc .brand-plate,
.shape-panasonic .brand-plate, .shape-akari .brand-plate {
  margin-top: 0; border-top: 0; padding-top: 0; white-space: nowrap; margin-left: auto;
}
.shape-philips .ir-zone, .shape-sharp .ir-zone, .shape-jvc .ir-zone,
.shape-panasonic .ir-zone, .shape-akari .ir-zone { flex: 0 0 auto; height: 100%; }
/* Siluet & detail per model */
.shape-philips .tv-body { border-radius: 4.5cqw; }
.shape-philips .screen-wrap { border-radius: 3.4cqw; }
.shape-philips .screen { border-radius: 2.6cqw; }
.shape-sharp .tv-body { border-radius: 1.4cqw; }
.shape-sharp .screen-wrap { border-radius: 1cqw; }
.shape-sharp .screen { border-radius: .7cqw; }
.shape-sharp .tv-stand .foot { height: 2.2cqh; }
.shape-jvc .tv-body { border-radius: 1.8cqw; }
.shape-jvc .screen { border-radius: 1.1cqw; }
.shape-jvc .speaker {
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.55) 0 3px, transparent 3px 8px);
}
.shape-jvc .tv-stand .foot { height: 2.4cqh; border-radius: 0 0 6px 6px; }
.shape-panasonic .tv-body { border-radius: 1.5cqw; padding: 2cqw; }
.shape-panasonic .screen { border-radius: .6cqw; }
.shape-panasonic .tv-stand .foot { height: 2cqh; }
.shape-akari .tv-body { border-radius: 2.6cqw; }
.shape-akari .screen { border-radius: 1.5cqw; }
.shape-akari .speaker {
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.6) 0 3px, transparent 3px 9px);
}
.shape-akari .tv-stand .foot { height: 3cqh; clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); }
.shape-philips .tv-stand .foot { height: 2.6cqh; border-radius: 0 0 10px 10px; }
.shape-trinitron .tv-body { border-radius: 2.6cqw; }
.shape-trinitron .screen { border-radius: 3.4cqw / 1.2cqw; }
.shape-trinitron .tv-side { flex-basis: 13.5%; }
.shape-trinitron .tv-stand .foot { height: 4cqh; clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); }
.shape-toshiba .tv-body { border-radius: 4cqw; padding: 3cqw; }
.shape-toshiba .screen { border-radius: 3.2cqw; }
.shape-toshiba .tv-side { flex-basis: 17%; }
.shape-toshiba .speaker { background-size: 9px 9px, 9px 9px, 15px 13px; }
.shape-toshiba .tv-stand .foot { height: 2.4cqh; border-radius: 0 0 12px 12px; }
.shape-polytron .tv-side { flex-basis: 15%; }
.shape-polytron .speaker { background-size: 9px 9px, 9px 9px, 15px 13px; }
.shape-polytron .tv-body { padding: 2.6cqw; }
/* LG Flatron: mesh perak rapat di kedua sisi, titik logo, strip kontrol */
.shape-flatron .tv-side { flex-basis: 11%; }
.shape-flatron .tv-body { border-radius: 1.8cqw; padding: 2.2cqw; }
.shape-flatron .screen { border-radius: 1.2cqw; }
.shape-flatron .speaker { background-size: 5px 5px, 5px 5px, 9px 8px; }
.shape-flatron .screen-wrap { position: relative; }
.shape-flatron .screen-wrap::after {
  content: ""; position: absolute; left: 50%; bottom: -1.9cqw; transform: translateX(-50%);
  width: 1.4cqw; height: 1.4cqw; min-width: 8px; min-height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #f5f6f8, #9aa0a9 58%, #52575f);
  box-shadow: 0 1px 2px rgba(0,0,0,.55), inset 0 -1px 2px rgba(0,0,0,.35);
}
.shape-flatron .statusbar {
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.20));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -3px 6px rgba(0,0,0,.28);
}
.shape-flatron .tv-stand .foot {
  height: 2.4cqh; width: 8%;
  background: linear-gradient(180deg, #cdd2da, #646a74 70%, #3c4048);
  clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.35);
}
/* Kayu 80-an: kabinet tebal, kain speaker, kaki balok */
.shape-wood .tv-body { border-radius: 1.6cqw; padding: 2.8cqw; }
.shape-wood .screen { border-radius: 1cqw; }
.shape-wood .speaker {
  background-size: 9px 9px;
  background-image: radial-gradient(circle at center, rgba(0,0,0,.5) 1.8px, transparent 2.4px);
}
.shape-wood .tv-stand .foot {
  height: 3.6cqh; width: 14%; clip-path: none; border-radius: 3px;
  background: linear-gradient(180deg, #5f4426, #2a1c0d);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.14), inset 0 -5px 7px rgba(0,0,0,.55), 0 4px 8px rgba(0,0,0,.5);
}

/* ---------- Remote: perangkat ergonomis ---------- */
.remote-veil {
  position: fixed; inset: 0; z-index: 44;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.remote-veil.on { opacity: 1; pointer-events: auto; }
.remote {
  position: fixed; left: 50%; bottom: 0; z-index: 46;
  width: min(340px, 94vw);
  max-height: min(80dvh, 740px); overflow-y: auto; overscroll-behavior: contain;
  /* Housing: siluet meruncing ke bawah, kontur samping */
  border-radius: 46px 46px 60px 60px / 34px 34px 60px 60px;
  background:
    linear-gradient(165deg, #26262e 0%, #141419 55%, #0b0b0e 100%);
  border: 1px solid #33333d; border-bottom: 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  box-shadow:
    0 -18px 60px rgba(0,0,0,.55),
    0 30px 80px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 3px 0 6px rgba(0,0,0,.35),
    inset -3px 0 6px rgba(0,0,0,.35),
    inset 0 -6px 14px rgba(0,0,0,.55);
  transform: translate(-50%, 112%) perspective(1100px) rotateX(18deg);
  transform-origin: 50% 100%;
  opacity: 0; visibility: hidden;
  transition: transform .46s cubic-bezier(.55, .06, .68, .19), opacity .34s ease .1s, visibility 0s .5s;
}
.remote.open {
  transform: translate(-50%, 0) perspective(1100px) rotateX(5deg);
  opacity: 1; visibility: visible; will-change: transform;
  transition: transform .55s cubic-bezier(.22, 1.18, .36, 1), opacity .3s ease;
}
.remote.point { transform: translate(-50%, 112%) perspective(950px) rotateX(30deg); }
.remote.point.open {
  transform: translate(-50%, 0) perspective(950px) rotateX(34deg) scale(.97);
  transform-origin: 50% 100%;
}
.remote-grip {
  width: 44px; height: 4px; border-radius: 2px;
  background: #33333d; margin: 0 auto 10px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.06);
}
/* Jendela IR: plastik merah gelap + LED di dalamnya */
.remote-led-wrap { display: flex; justify-content: center; margin-bottom: 10px; position: relative; }
.remote-led-wrap::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 20px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(120,20,12,.85), rgba(60,8,6,.9));
  box-shadow: inset 0 2px 4px rgba(0,0,0,.7), inset 0 -1px 0 rgba(255,120,100,.15), 0 1px 0 rgba(255,255,255,.06);
}
.ir-led {
  position: relative; z-index: 1;
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #5a2320, #230b09 72%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.22), 0 1px 3px rgba(0,0,0,.6);
}
.ir-led.flash { animation: ir-flash .28s ease-out; }
.ir-beam {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 130px; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(255,74,52,.38), rgba(255,74,52,0) 75%);
  clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0);
}
.ir-beam.flash { animation: beam-flash .3s ease-out; }
@keyframes beam-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.remote-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.remote-top-btns { display: flex; gap: 8px; align-items: center; }
.remote-brand {
  font-size: 10px; letter-spacing: .3em; color: var(--dim);
  text-shadow: 0 1px 0 rgba(0,0,0,.8), 0 -1px 0 rgba(255,255,255,.06);
}
/* Alur pemisah antar seksi */
.numpad { position: relative; }
.numpad::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: -7px;
  height: 1px; background: rgba(0,0,0,.5); box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.rbtn {
  background: linear-gradient(180deg, #2a2a32 0%, #17171c 100%);
  color: var(--ink); border: 1px solid #3a3a45; border-radius: 12px;
  padding: 11px 4px; font: inherit; font-size: 13px; letter-spacing: .05em; cursor: pointer;
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 3px 0 #050506, 0 5px 9px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .04s, box-shadow .04s, filter .15s;
}
.rbtn:hover { filter: brightness(1.15); }
.rbtn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #050506, 0 2px 4px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.rbtn .ic { width: 1.25em; height: 1.25em; }
/* Tombol karet: kubah matte kusam, highlight sangat tipis */
.rbtn.rubber {
  background: linear-gradient(180deg, #33333c 0%, #1e1e25 100%);
  border-color: #2b2b33;
  border-radius: 999px;
  box-shadow: 0 3px 0 #060607, 0 4px 7px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.07), inset 0 -3px 6px rgba(0,0,0,.5);
}
.rbtn.rubber:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #060607, 0 2px 4px rgba(0,0,0,.55), inset 0 2px 6px rgba(0,0,0,.55);
}
/* Power remote: cincin merah, ikon SVG */
.rbtn.rpower {
  color: #ff7a63; width: 46px; height: 46px; padding: 0; border-radius: 50%;
  background: linear-gradient(180deg, #33333b 0%, #1a1a20 100%);
  border: 2px solid #5a2a24;
  box-shadow: 0 3px 0 #050506, 0 5px 10px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.10), inset 0 -4px 8px rgba(0,0,0,.5);
}
.rbtn.rpower .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.rbtn.rpower.on { color: var(--osd); border-color: #2c4a28; }
.rbtn.rpower.on .ic { filter: drop-shadow(0 0 6px rgba(141,255,158,.8)); }
.rbtn.rclose { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.rbtn.rclose .ic { width: 16px; height: 16px; }
.rbtn.on { color: var(--accent); border-color: var(--accent); }
/* Matras keypad cekung */
.numpad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 7px;
  padding: 12px 10px; border-radius: 18px; margin-top: 14px;
  background: rgba(0,0,0,.34);
  box-shadow: inset 0 3px 10px rgba(0,0,0,.7), inset 0 -1px 0 rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.05);
}
.numpad .rbtn { font-size: 15px; font-weight: 700; padding: 9px 4px; min-height: 48px; }
.numpad .rwide { font-size: 10px; letter-spacing: .12em; }
.numpad .rwide .ic { width: 1.1em; height: 1.1em; }
.rockers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.rocker {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 16px;
  border: 1px solid #3a3a45; background: #101014;
  box-shadow: 0 3px 0 #050506, inset 0 1px 0 rgba(255,255,255,.08);
}
.rocker .rbtn { border: 0; box-shadow: none; padding: 11px 4px; font-size: 12px; font-weight: 700; min-height: 48px; border-radius: 0; }
.rocker .rbtn:first-child { border-radius: 15px 15px 5px 5px; background: linear-gradient(180deg, #34343e, #1e1e26 70%, #141419); }
.rocker .rbtn:last-child { border-radius: 5px 5px 15px 15px; background: linear-gradient(0deg, #34343e, #1e1e26 70%, #141419); }
.rocker .rbtn:active { transform: none; background: #26262f; }
.rocker-label {
  text-align: center; font-size: 8px; letter-spacing: .3em; color: var(--dim);
  padding: 4px 0; border-top: 1px solid #23232b; border-bottom: 1px solid #23232b; background: #0b0b0e;
}
.remote-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.remote-row .rbtn { font-size: 10px; letter-spacing: .1em; padding: 10px 2px; }
.remote-row.one { grid-template-columns: 1fr; }
#muteBtn.rubber { color: #ff9a86; }
#remBlock.rubber { color: var(--accent); }
#remFav.rubber { color: var(--accent); }
.rbtn.rjam { color: var(--accent); }
.rsleep {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 7px;
  font-size: 9px; letter-spacing: .18em; color: var(--dim);
  padding: 0 6px; min-width: 0; min-height: 44px;
}
.rsleep select {
  background: linear-gradient(180deg, #2b2b34, #141419); color: var(--ink);
  border: 1px solid #36363f; border-radius: 8px;
  padding: 7px 2px; font: inherit; font-size: 11px; letter-spacing: .03em; cursor: pointer;
  box-shadow: 0 3px 0 #050506, inset 0 1px 0 rgba(255,255,255,.13);
  max-width: 100%;
}
.rvol { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 10px; letter-spacing: .25em; color: var(--dim); text-align: center; }
.rhelp {
  width: 100%; margin-top: 12px; padding: 9px 4px; min-height: 44px;
  background: none; border: 1px dashed #2c2c34; border-radius: 10px;
  color: var(--dim); font: inherit; font-size: 10px; letter-spacing: .14em; cursor: pointer;
}
.rhelp:hover { color: var(--accent); border-color: var(--accent); }
/* FAB remote */
.remote-fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #26262f, #101014);
  color: var(--accent);
  border: 1px solid #3a3a45;
  box-shadow: 0 10px 26px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -4px 8px rgba(0,0,0,.55);
  cursor: pointer;
  transition: transform .25s ease, color .2s, border-color .2s;
}
.remote-fab svg { width: 26px; height: 26px; }
/* Remote lebih kompak di HP: tetap muat tanpa mendominasi layar.
   Touch target utama tetap >=44px (dijaga min-height .rbtn). */
@media (max-width: 520px) {
  .remote { width: min(300px, 94vw); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .remote-led-wrap { margin-bottom: 6px; }
  .remote-top { margin-bottom: 8px; }
  .rbtn { padding: 8px 4px; font-size: 12px; }
  .remote-row { gap: 6px; margin-top: 8px; }
  .numpad::before { top: -5px; }
}
.remote-fab:hover { color: var(--ink); transform: translateY(-2px); }
.remote-fab.on { color: var(--osd); border-color: #35502f; }
.remote-fab:not(.seen) { animation: fab-pulse 2.8s ease-out infinite; }
@keyframes fab-pulse {
  0% { box-shadow: 0 10px 26px rgba(0,0,0,.6), 0 0 0 0 rgba(216,198,144,.40), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -4px 8px rgba(0,0,0,.55); }
  70% { box-shadow: 0 10px 26px rgba(0,0,0,.6), 0 0 0 15px rgba(216,198,144,0), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -4px 8px rgba(0,0,0,.55); }
  100% { box-shadow: 0 10px 26px rgba(0,0,0,.6), 0 0 0 0 rgba(216,198,144,0), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -4px 8px rgba(0,0,0,.55); }
}

/* ---------- Slider & select generik ---------- */
.vol { display: flex; flex-direction: column; gap: 6px; font-size: 10px; letter-spacing: .25em; color: var(--dim); text-align: center; }
.vol input[type="range"], .set-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background-color: transparent; cursor: pointer;
}
.vol input[type="range"] {
  background-image: repeating-linear-gradient(90deg, rgba(232,230,223,.30) 0 1px, transparent 1px 10%);
  background-size: calc(100% - 14px) 5px;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.vol input[type="range"]::-webkit-slider-runnable-track, .set-row input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(180deg, #000000, #20202a);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.95), 0 1px 0 rgba(255,255,255,.06);
}
.vol input[type="range"]::-webkit-slider-thumb, .set-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; margin-top: -5.5px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f5edd6, var(--accent) 55%, #877647);
  border: 1px solid rgba(0,0,0,.65);
  box-shadow: 0 2px 5px rgba(0,0,0,.65), inset 0 -2px 3px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.5);
}
.vol input[type="range"]::-moz-range-track, .set-row input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(180deg, #000000, #20202a);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.95), 0 1px 0 rgba(255,255,255,.06);
}
.vol input[type="range"]::-moz-range-thumb, .set-row input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f5edd6, var(--accent) 55%, #877647);
  border: 1px solid rgba(0,0,0,.65);
  box-shadow: 0 2px 5px rgba(0,0,0,.65), inset 0 -2px 3px rgba(0,0,0,.35);
}
.sleep select {
  background: linear-gradient(180deg, #2b2b34, #141419); color: var(--ink); border: 1px solid #36363f; border-radius: 8px;
  padding: 7px 4px; font: inherit; font-size: 11px; letter-spacing: .05em; cursor: pointer;
  box-shadow: 0 3px 0 #050506, inset 0 1px 0 rgba(255,255,255,.13), inset 0 -2px 4px rgba(0,0,0,.5);
  transition: transform .04s, box-shadow .04s;
}
.sleep select:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #050506, inset 0 1px 0 rgba(255,255,255,.10);
}

/* ---------- Overlay: panduan & pengaturan ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; backdrop-filter: blur(2px); }
.sheet {
  position: fixed; top: 0; right: 0; z-index: 50;
  width: min(430px, 96vw); height: 100dvh; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #0e0d10; border-left: 1px solid var(--line);
  padding: 20px; transform: translateX(105%); visibility: hidden;
  transition: transform .28s ease, visibility 0s .28s;
}
.sheet.open { transform: none; visibility: visible; transition: transform .28s ease; }
.sheet > .sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: -20px -20px 16px; padding: 18px 20px 14px;
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(180deg, #0e0d10 78%, rgba(14,13,16,0));
}
.sheet-head h2 { margin: 0; font-size: 13px; letter-spacing: .3em; }
.sheet-head .btn.small { display: inline-flex; align-items: center; gap: 6px; }
.sheet input[type="search"], .sheet input[type="text"] {
  width: 100%; background: #121218; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); padding: 11px 12px; font: inherit; font-size: 13px; margin-bottom: 10px;
}
.sheet input:focus { outline: 1px solid var(--accent); }

/* ---------- Panduan siaran ---------- */
.guide-progress { font-size: 11px; letter-spacing: .12em; color: var(--dim); margin: 2px 0 10px; }
.guide-progress b { color: var(--osd); font-weight: 700; }
.chips {
  display: flex; flex-wrap: nowrap; gap: 6px; margin-bottom: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: thin; padding-bottom: 4px;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
}
.chips .chip { flex: 0 0 auto; }
.chip {
  background: #121218; color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 11px; font: inherit; font-size: 11px; letter-spacing: .06em; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--accent); }
.chip.sel { background: #22331f; border-color: #35502f; color: var(--osd); }
.chip.blk { border-color: var(--accent); color: var(--accent); }
.block-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #101410; border: 1px solid #22331f; border-radius: 10px;
  padding: 9px 11px; margin-bottom: 12px;
}
.block-label { flex: 1; font-size: 11px; letter-spacing: .08em; color: var(--osd); line-height: 1.5; }
.guide-list .cat { margin: 18px 0 8px; font-size: 11px; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; }
.guide-list ul { list-style: none; margin: 0; padding: 0; }
.guide-list li {
  display: flex; gap: 10px; align-items: center; padding: 8px;
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.guide-list li:hover { background: #111116; }
.guide-list li.active { background: #101410; border-color: #22331f; }
.guide-list .th { width: 84px; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: #000; flex: 0 0 auto; }
.guide-list .num { color: var(--osd); font-weight: 700; min-width: 3ch; }
.guide-list .ttl { flex: 1; font-size: 13px; line-height: 1.35; }
.guide-list li.active .ttl::after { content: " ◀ TAYANG"; color: var(--osd); font-size: 9px; letter-spacing: .12em; }
.guide-list .stn { display: block; font-size: 10px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; margin-top: 2px; }
.guide-list .seen { color: var(--osd); font-size: 12px; flex: 0 0 auto; }
.guide-list li.watched .ttl { color: #b9b6aa; }
.guide-list .th-none {
  background: linear-gradient(160deg, #18181f, #0b0b0f);
  border: 1px solid var(--line); border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.guide-list .th-none::before { content: "▶"; font-size: 15px; color: #43434e; text-shadow: 0 1px 0 #000; }
.guide-list .th-none::after {
  content: attr(data-cat); position: absolute; right: 5px; bottom: 3px;
  font-size: 9px; letter-spacing: .08em; color: #55555f;
}
.star, .del {
  background: none; border: 0; color: var(--dim); cursor: pointer;
  padding: 6px; line-height: 1; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
}
.star .ic { width: 17px; height: 17px; }
.star.on { color: var(--accent); }
.star.on .ic { filter: drop-shadow(0 0 4px rgba(216,198,144,.6)); }
.del { font-size: 13px; }
.del:hover { color: #ff6b57; }
.empty { color: var(--dim); font-size: 13px; padding: 14px 4px; }
.more-btn { margin: 14px 0 8px; letter-spacing: .12em; }
.addbox { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.addbox summary { cursor: pointer; font-size: 12px; letter-spacing: .18em; color: var(--accent); }
.addbox form { margin-top: 14px; }
.form-msg { font-size: 12px; min-height: 1em; }
.form-msg.err { color: #ff6b57; }
.form-msg.ok { color: var(--osd); }
.jam-btn { margin-bottom: 10px; letter-spacing: .12em; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- Pengaturan: sistem desain panel perangkat ---------- */
.set-group {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: linear-gradient(180deg, #131318, #0e0e12);
  padding: 14px 14px 8px; margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 4px 14px rgba(0,0,0,.35);
}
.set-group > h3 {
  margin: 0 0 10px; font-size: 11px; letter-spacing: .22em; color: var(--ink);
  text-transform: uppercase; display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
}
.set-group > h3::before {
  content: ""; width: 4px; height: 14px; border-radius: 2px; flex: 0 0 auto;
  background: linear-gradient(180deg, var(--accent), #7a6c42);
  box-shadow: 0 0 6px rgba(216,198,144,.35);
}
.set-group > h3:not(.sub)::after {
  content: "▾"; margin-left: auto; color: var(--accent); font-size: 12px;
}
.set-group.closed > h3:not(.sub)::after { content: "▸"; }
.set-group.closed > :not(:first-child) { display: none; }
.set-group > h3:not(.sub):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.set-group h3.sub { margin-top: 14px; }
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 2px; font-size: 13px; cursor: pointer;
  border-top: 1px solid rgba(255,255,255,.04);
}
.set-row:first-of-type { border-top: 0; }
.set-row.column { flex-direction: column; align-items: stretch; gap: 8px; cursor: default; }
.set-row.column > span { display: flex; justify-content: space-between; align-items: baseline; }
.set-row input[type="range"] { width: 100%; }
.set-row input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
/* Sakelar: rel geser dengan LED */
.set-row i {
  flex: 0 0 auto; width: 46px; height: 24px; border-radius: 999px; position: relative;
  background: linear-gradient(180deg, #1b1b21, #26262e);
  border: 1px solid #34343e; transition: background .2s, border-color .2s;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.05);
}
.set-row i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8a8a95, #55555f 70%);
  box-shadow: 0 2px 4px rgba(0,0,0,.6), inset 0 1px 1px rgba(255,255,255,.3);
  transition: left .2s;
}
.set-row input[type="checkbox"]:checked + i { background: #22331f; border-color: #35502f; }
.set-row input[type="checkbox"]:checked + i::after {
  left: 24px;
  background: radial-gradient(circle at 35% 30%, #d6ffb8, #4caf5d 70%);
  box-shadow: 0 0 8px rgba(141,255,158,.6), 0 2px 4px rgba(0,0,0,.6);
}
.set-row input[type="checkbox"]:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.set-note { color: var(--dim); font-size: 11px; line-height: 1.5; margin: 6px 2px 8px; }
.set-desc { color: var(--dim); font-size: 11px; line-height: 1.5; margin: -6px 0 12px; }
.model-row { display: flex; gap: 8px; margin-bottom: 10px; }
.model-row.wrap { flex-wrap: wrap; }
.model-row.wrap .model-card { flex: 1 1 30%; }
.model-grid { display: grid; gap: 10px; margin-bottom: 12px; }
.model-grid.shapes { grid-template-columns: repeat(3, 1fr); }
.model-grid.finishes { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.model-card {
  position: relative;
  flex: 1; background: linear-gradient(180deg, #15151b, #0f0f13); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font: inherit; font-size: 11px; padding: 11px 7px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: border-color .18s, transform .18s, box-shadow .18s, background .18s;
}
.model-card:hover { border-color: #3d3d48; transform: translateY(-1px); }
.model-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.model-card.sel {
  border-color: var(--accent); color: var(--ink);
  background: linear-gradient(180deg, #1c1a12, #12120c);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 4px 14px rgba(0,0,0,.45);
}
.model-card.sel::after { content: "✓"; position: absolute; top: 5px; right: 8px; font-size: 11px; font-weight: 700; color: var(--accent); }
.model-card.disabled { opacity: .35; pointer-events: none; }
.card-name { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.model-card.sel .card-name { color: var(--accent); }
.card-sub { font-size: 9px; color: var(--dim); letter-spacing: .05em; text-align: center; line-height: 1.35; }
.model-card .sw { width: 100%; height: 20px; border-radius: 5px; border: 1px solid rgba(0,0,0,.5); }
.model-card.fin .sw { height: 26px; border-radius: 7px; }
.model-card.fin.sel .sw { box-shadow: 0 0 0 2px rgba(216,198,144,.85); border-color: transparent; }
.model-card .swp {
  width: 100%; height: 24px; border: 1px solid rgba(0,0,0,.5); border-radius: 6px;
  background: linear-gradient(160deg, #2a2a33, #101014);
}
.swp.rpoint { transform: perspective(70px) rotateX(38deg); transform-origin: 50% 100%; background: linear-gradient(180deg, #3a3a44, #141419); }
.swp.rflat { background: linear-gradient(180deg, #2e2e38, #131318); }
.swp.tex-real {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='24'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='40' height='24' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #2a2a33, #101014);
}
.swp.tex-clean { background: linear-gradient(160deg, #232329, #101014); }
/* Gaya tekstur Clean: grain & micro-noise disembunyikan, permukaan diratakan */
body.tex-clean .tv-body::before { display: none; }
body.tex-clean .btn { background: #1e1e24; }
body.tex-clean .btn.power { background: #232329; }
body.tex-clean .rbtn { background: #202027; }
body.tex-clean .rbtn.rubber { background: #26262d; }
.sw.hitam { background: linear-gradient(160deg, #1b1b20, #0e0e11); }
.sw.silver { background: linear-gradient(160deg, #dde0e6, #878c96); }
.sw.kayu { background: linear-gradient(160deg, #7d5a38, #463017); }
.sw.ivory { background: linear-gradient(160deg, #f0e9da, #c9bda2); }
.sw.grafit { background: linear-gradient(160deg, #4c545f, #22262d); }
.sw.krem { background: linear-gradient(160deg, #efe3cc, #b5a888); }
.sw.marun { background: linear-gradient(160deg, #83303c, #42161e); }
.sw.dongker { background: linear-gradient(160deg, #2e4876, #111f38); }
/* Preview mini bentuk TV */
.pv {
  display: block; position: relative;
  width: 100%; max-width: 92px; height: 58px; margin: 0 auto 8px;
  border-radius: 9px; border: 1px solid var(--f-line);
  background: linear-gradient(160deg, var(--f-a), var(--f-b) 75%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 5px rgba(0,0,0,.45);
}
.pv-screen {
  position: absolute; inset: 7px 27px 7px 7px; border-radius: 5px / 6px;
  background: radial-gradient(120% 90% at 30% 18%, #41544a 0%, #111711 55%, #050705 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.65), inset 0 2px 7px rgba(0,0,0,.75), inset 0 -3px 6px rgba(255,255,255,.05);
}
.pv-spk {
  position: absolute; border-radius: 3px;
  background-color: rgba(0,0,0,.24);
  background-image: radial-gradient(circle at center, rgba(0,0,0,.66) 1px, transparent 1.5px);
  background-size: 5px 5px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
}
.pv-spk.spk-r { top: 7px; bottom: 7px; right: 6px; width: 14px; }
.pv-spk.spk-l { top: 7px; bottom: 7px; left: 6px; width: 14px; }
.pv-spk.spk-b { left: 6px; right: 6px; bottom: 6px; height: 10px; }
.pv-spk.spk-fabric { background-size: 7px 7px; background-image: radial-gradient(circle at center, rgba(0,0,0,.55) 1.6px, transparent 2.2px); }
.pv-spk.spk-slat { background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.55) 0 2px, transparent 2px 5px); }
.pv-spk.spk-slot { background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.6) 0 2px, transparent 2px 5px); }
.pv-feet { position: absolute; left: 9px; right: 9px; bottom: -6px; height: 6px; display: flex; justify-content: space-between; }
.pv-feet i {
  width: 17px; height: 100%;
  background: linear-gradient(180deg, var(--f-b), rgba(0,0,0,.45));
  border-radius: 0 0 3px 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.pv-feet.block i { width: 26px; border-radius: 0 0 2px 2px; }
.pv-philips { border-radius: 18px; } .pv-philips .pv-screen { inset: 6px 6px 21px; border-radius: 11px / 13px; }
.pv-sharp { border-radius: 6px; } .pv-sharp .pv-screen { inset: 6px 6px 21px; border-radius: 3px / 4px; }
.pv-jvc { border-radius: 7px; } .pv-jvc .pv-screen { inset: 6px 6px 21px; border-radius: 5px / 6px; }
.pv-panasonic { border-radius: 6px; } .pv-panasonic .pv-screen { inset: 5px 5px 18px; border-radius: 2px / 3px; }
.pv-akari { border-radius: 11px; } .pv-akari .pv-screen { inset: 6px 6px 21px; border-radius: 7px / 5px; }
.pv-trinitron .pv-screen { border-radius: 12px / 5px; }
.pv-toshiba { border-radius: 15px; } .pv-toshiba .pv-screen { border-radius: 14px / 11px; }
.pv-polytron .pv-screen { inset: 7px 21px; }
.pv-strip {
  position: absolute; left: 6px; right: 6px; bottom: 5px; height: 5px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(0,0,0,.16));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.35);
}
.pv-flatron { border-radius: 8px; }
.pv-flatron .pv-screen { inset: 6px 22px 17px; border-radius: 6px / 7px; }
.pv-wood { border-radius: 5px; } .pv-wood .pv-screen { inset: 11px 27px 11px 11px; border-radius: 4px; }

/* ---------- Modal bantuan ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(0,0,0,.65); }
.modal[hidden] { display: none; }
.modal-card { background: #0e0d10; border: 1px solid var(--line); border-radius: 16px; padding: 22px; width: min(480px, 94vw); max-height: 86dvh; overflow-y: auto; }
.keys { width: 100%; border-collapse: collapse; font-size: 13px; }
.keys td { padding: 7px 6px; border-bottom: 1px solid #17171c; color: var(--ink); }
.keys td:first-child { width: 110px; color: var(--dim); }
kbd {
  background: #1b1b21; border: 1px solid #34343e; border-bottom-width: 2px; border-radius: 5px;
  padding: 1px 7px; font: inherit; font-size: 12px; color: var(--accent);
}

/* ---------- Layar penuh: TV utuh pillarbox ---------- */
.tv:fullscreen {
  margin: 0; width: 100vw; height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 100% at 50% 20%, #101014 0%, #000 70%);
  padding: 2vmin;
}
.tv:fullscreen .antenna { display: none; }
.tv:fullscreen .tv-body,
.tv:fullscreen .tv-stand { width: min(96vw, calc(94vh * var(--body-ar))); flex: 0 0 auto; }
.tv:fullscreen::after { display: none; }

/* ============================================================
/* ---------- Penyesuaian viewport kecil (komposisi TV tetap sama) ---------- */
@media (max-width: 720px) {
  .room { padding: 14px 10px 30px; }
  .stage { display: flex; }
  .remote { padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); }
  .remote-grip { margin-bottom: 6px; }
  .remote-top { margin-bottom: 8px; }
  .remote-led-wrap { margin-bottom: 4px; }
  .numpad { padding: 8px; gap: 6px; }
  .rockers { margin-top: 6px; gap: 6px; }
  .remote-row { margin-top: 6px; gap: 6px; }
  .rvol { margin-top: 4px; }
  .rhelp { display: none; }
  .sheet { width: 100vw; border-left: 0; padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); }
  .guide-list .th { width: 64px; }
  .guide-list li { min-height: 52px; }
  .chip { padding: 9px 13px; min-height: 44px; display: inline-flex; align-items: center; }
  .remote-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
}
@media (max-height: 560px) {
  .room { padding: 10px 16px 16px; }
  .tv { margin-top: 64px; }
}

/* ---------- Aksesibilitas ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rbtn:focus-visible, .btn:focus-visible, .chip:focus-visible, .star:focus-visible {
  outline: 2px solid var(--osd); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .vhs-on .screen-inner, .vhs-band, .vhs-lines { animation: none !important; }
  .remote-fab:not(.seen) { animation: none !important; }
  .glass { animation: none !important; }
}
