/* TroupeTV slice 2 — the room. Self-contained: /tv/ is an experience you
   click INTO, not a page of the site, so this file carries the whole
   world — base, room, set, remote, on-screen displays. The seed's
   style.css is deliberately not loaded here. */

* { box-sizing: border-box; }
:root {
  --spill: 90, 130, 170;          /* ambient glow colour (r,g,b) */
  --spill-o: 0.34;                /* ambient glow strength */
  --spill-hue: 0deg;              /* tint knob reaches the room too */
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #e8e4d8;
  background: #070605;
  overflow: hidden;
}
button { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid #ffd75e; outline-offset: 2px;
}

/* ================= the room ================= */
.room {
  position: fixed; inset: 0; height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  animation: room-in 0.7s ease-out both;
}
@keyframes room-in { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
.room-wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(255, 214, 150, 0.05), transparent 60%),
    linear-gradient(180deg, #241c15 0%, #1a140f 52%, #120d09 78%, #0b0806 100%);
}
.room-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 17%;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 18%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.22) 0 2px, transparent 2px 118px),
    linear-gradient(180deg, #3a2716 0%, #2a1c0f 45%, #180f07 100%);
  border-top: 6px solid #0d0906;
  box-shadow: 0 -14px 30px rgba(0,0,0,0.35) inset;
}
.room-rug {
  position: absolute; left: 50%; bottom: 1.5%; transform: translateX(-50%);
  width: min(880px, 92vw); height: 11%;
  background: radial-gradient(ellipse at center, rgba(122, 32, 40, 0.5) 0%, rgba(84, 22, 30, 0.38) 55%, transparent 72%);
  border-radius: 50%;
  filter: blur(2px);
}
.room-glow {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: 155vmin; height: 124vmin; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--spill), var(--spill-o)) 0%, rgba(var(--spill), calc(var(--spill-o) * 0.45)) 42%, transparent 70%);
  filter: blur(28px) hue-rotate(var(--spill-hue));
  animation: spill-breathe 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes spill-breathe { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.045); } }
body[data-srctype="music"] { --spill: 138, 84, 220; }
body[data-srctype="slate"] { --spill: 84, 128, 190; }
body[data-srctype="site"]  { --spill: 62, 168, 152; }
body[data-srctype="yt"]    { --spill: 96, 128, 176; }
body[data-power="off"] .room-glow { opacity: 0.12; animation: none; }

.room-stage {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  width: min(1120px, 97vw);
  max-height: 100dvh;
  padding: 0.6rem 0 0.4rem;
}

.exit-link {
  position: absolute; z-index: 5; top: 14px; left: 16px;
  color: rgba(232, 228, 216, 0.66); text-decoration: none;
  font-family: "Courier New", monospace; font-size: 0.82rem; letter-spacing: 0.06em;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.14);
  padding: 0.42rem 0.75rem; border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.exit-link:hover { color: #ffd75e; border-color: rgba(255,215,94,0.55); background: rgba(0,0,0,0.55); }
.staged-marker {
  position: absolute; z-index: 5; top: 18px; right: 18px; margin: 0;
  font-family: "Courier New", monospace; font-size: 0.68rem; letter-spacing: 0.14em;
  color: rgba(232, 228, 216, 0.38); text-transform: uppercase; pointer-events: none;
}

/* ================= the set ================= */
.tv-assembly { width: min(1020px, 96vw); }
.tv-antenna { position: relative; height: 46px; }
.tv-antenna .ant { position: absolute; bottom: 10px; left: 50%; width: 3px; height: 58px; background: linear-gradient(#cfd4dd, #6d727c); border-radius: 2px; transform-origin: bottom center; }
.tv-antenna .ant-l { transform: rotate(-32deg); }
.tv-antenna .ant-r { transform: rotate(28deg); }
.tv-antenna .ant-base { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 64px; height: 13px; background: #22242a; border-radius: 8px 8px 0 0; }
.tv-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 138px; gap: 0.85rem;
  background: linear-gradient(145deg, #3d404a, #23252c 58%, #17181d);
  border-radius: 24px; padding: 18px;
  box-shadow: 0 34px 70px rgba(0,0,0,0.65), 0 18px 28px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.09), inset 0 -3px 0 rgba(0,0,0,0.45);
}
.tv-screen-bezel { background: #0a0b0e; border-radius: 18px; padding: 12px; box-shadow: inset 0 0 0 2px #33363f, inset 0 6px 18px rgba(0,0,0,0.9); display: flex; flex-direction: column; }
.screen { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; background: #000; box-shadow: inset 0 0 60px rgba(0,0,0,0.85); }
.screen-inner { position: absolute; inset: 0; transform: scale(1.03); }
.screen-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
#site-frame { display: none; background: #0d0f14; }
.tv-now { margin: 0.65rem 0.2rem 0; font-family: "Courier New", monospace; font-size: 0.82rem; letter-spacing: 0.04em; color: #9fe870; min-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the stand the set sits on */
.tv-stand { position: relative; height: 40px; }
.tv-stand .stand-neck { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 150px; height: 14px; background: linear-gradient(#26272e, #14151a); border-radius: 0 0 8px 8px; }
.tv-stand .stand-shelf { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: min(560px, 74%); height: 9px; background: linear-gradient(#2c2d34, #17181d); border-radius: 5px; box-shadow: 0 10px 22px rgba(0,0,0,0.55); }
.tv-stand .stand-leg { position: absolute; top: 19px; width: 8px; height: 20px; background: #101116; border-radius: 0 0 4px 4px; }
.tv-stand .stand-leg.leg-l { left: calc(50% - 240px); }
.tv-stand .stand-leg.leg-r { left: calc(50% + 232px); }
@media (max-width: 640px) { .tv-stand .stand-leg.leg-l { left: 12%; } .tv-stand .stand-leg.leg-r { left: auto; right: 12%; } }

/* slates + music screen (carried from slice 1) */
.layer-slate, .layer-music { position: absolute; inset: 0; padding: 7% 8%; color: #e8e4d8; }
.layer-slate { background: radial-gradient(ellipse at 50% 38%, #274156 0%, #101c2a 62%, #060a10 100%); text-align: center; display: flex; flex-direction: column; justify-content: center; }
.layer-slate[hidden] { display: none; }
.slate-ch { font-family: "Courier New", monospace; color: #ffd75e; letter-spacing: 0.3em; margin: 0; }
.layer-slate h2 { font-size: clamp(1.2rem, 3.4vw, 2rem); margin: 0.5rem 0; color: #fff; }
.layer-slate p { max-width: 46ch; margin: 0.4rem auto; }
.slate-tag { font-family: "Courier New", monospace; letter-spacing: 0.22em; color: #7fa6c9; font-size: 0.78rem; margin-top: 1.2rem !important; }
.layer-music { background: radial-gradient(ellipse at 30% 20%, #3b1d5e 0%, #1c1038 52%, #07040f 100%); display: flex; flex-direction: column; }
.layer-music[hidden] { display: none; }
.mc-top { display: flex; gap: 1rem; flex-wrap: wrap; font-family: "Courier New", monospace; font-size: 0.78rem; letter-spacing: 0.14em; color: #cdbcf5; }
.mc-brand { color: #ffd75e; font-weight: bold; }
.mc-eq { display: flex; gap: 3px; align-items: flex-end; height: 30px; margin: 0.8rem 0 0.2rem; }
.mc-eq span { flex: 1; background: linear-gradient(#ffd75e, #f06030); animation: mc-bounce 0.9s ease-in-out infinite alternate; }
.mc-eq span:nth-child(3n) { animation-duration: 0.7s; } .mc-eq span:nth-child(4n) { animation-duration: 1.15s; } .mc-eq span:nth-child(5n) { animation-duration: 0.55s; }
@keyframes mc-bounce { from { height: 18%; } to { height: 100%; } }
.mc-card { background: rgba(0,0,0,0.42); border: 1px solid rgba(255,215,94,0.35); border-radius: 10px; padding: 0.9rem 1.1rem; margin-top: 0.7rem; }
.mc-now { margin: 0; font-family: "Courier New", monospace; letter-spacing: 0.3em; font-size: 0.72rem; color: #ffd75e; }
.mc-card h2 { margin: 0.25rem 0; color: #fff; font-size: clamp(1.3rem, 3.6vw, 2.1rem); }
.mc-meta { margin: 0.2rem 0; color: #e8e4d8; }
.mc-next { margin: 0.35rem 0 0; color: #bdb2e8; font-size: 0.92rem; }
.mc-controls { margin-top: 0.7rem; display: flex; gap: 0.5rem; }
.mc-controls button { background: #26262e; color: #f2ead8; border: 1px solid #4a4a55; border-radius: 8px; padding: 0.45rem 0.8rem; cursor: pointer; }
.mc-controls button:hover { border-color: #ffd75e; color: #ffd75e; }
.mc-popup { margin-top: 0.8rem; background: #ffd75e; color: #191410; border-radius: 8px; padding: 0.55rem 0.85rem; font-weight: 600; max-width: 52ch; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.mc-foot { margin-top: auto; font-size: 0.78rem; color: #9c8fc7; }

/* screen FX layers (carried from slice 1) */
#fx-static { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.1; pointer-events: none; mix-blend-mode: screen; }
.fx-tracking { position: absolute; left: 0; right: 0; height: 16%; top: -20%; background: linear-gradient(rgba(255,255,255,0.14), rgba(255,255,255,0)); pointer-events: none; animation: tracking-roll 7s linear infinite; opacity: 0.5; }
@keyframes tracking-roll { from { top: -20%; } to { top: 110%; } }
.fx-scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(rgba(0,0,0,0.22) 0 1px, transparent 1px 3px); }
.fx-vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px 30px rgba(0,0,0,0.75); border-radius: 26px; }
.fx-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0) 42%); }
.ch-overlay { position: absolute; z-index: 6; top: 5%; right: 6%; font-family: "Courier New", monospace; font-weight: bold; font-size: clamp(1.4rem, 4vw, 2.4rem); color: #39ff5e; text-shadow: 3px 3px 0 rgba(0,0,0,0.65); opacity: 0; pointer-events: none; letter-spacing: 0.08em; }
.ch-overlay.show { opacity: 1; }
.play-stamp { position: absolute; z-index: 6; top: 5%; left: 6%; font-family: "Courier New", monospace; font-size: clamp(0.9rem, 2.4vw, 1.3rem); color: #e8e4d8; text-shadow: 2px 2px 0 rgba(0,0,0,0.7); opacity: 0; pointer-events: none; letter-spacing: 0.2em; }
.play-stamp.show { opacity: 1; }
.cc-stamp { position: absolute; z-index: 6; bottom: 5%; right: 6%; font-family: "Courier New", monospace; font-size: 0.8rem; background: #000; color: #ffe93c; border: 1px solid #ffe93c; padding: 0.1rem 0.45rem; display: none; pointer-events: none; }
.cc-stamp.show { display: block; }

/* ================= on-screen displays ================= */
.osd {
  position: absolute; inset: 0; z-index: 8;
  background: linear-gradient(180deg, rgba(4, 10, 24, 0.93), rgba(3, 6, 16, 0.96));
  padding: 5.5% 6%; overflow-y: auto;
  animation: osd-in 0.18s ease-out both;
}
.osd[hidden] { display: none; }
@keyframes osd-in { from { opacity: 0; } to { opacity: 1; } }
.osd-title { margin: 0 0 0.9rem; font-family: "Courier New", monospace; font-weight: bold; letter-spacing: 0.22em; color: #ffd75e; font-size: clamp(0.95rem, 2.4vw, 1.25rem); }
.osd-hint { letter-spacing: 0.04em; font-weight: normal; color: #7fa6c9; font-size: 0.72em; margin-left: 0.8rem; }
.osd-guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.osd-close { background: #171d2e; color: #e8e4d8; border: 1px solid #3c4a6b; border-radius: 8px; width: 38px; height: 38px; cursor: pointer; font-size: 1rem; flex: 0 0 auto; }
.osd-close:hover { border-color: #ffd75e; color: #ffd75e; }
.ch-list { display: grid; gap: 0.45rem; }
.ch-btn { display: flex; gap: 0.7rem; align-items: baseline; text-align: left; background: rgba(16, 24, 44, 0.85); color: #e8e4d8; border: 1px solid #2c3c5e; border-radius: 9px; padding: 0.62rem 0.8rem; cursor: pointer; width: 100%; transition: border-color 0.15s, background 0.15s; }
.ch-btn:hover { border-color: #7fa6c9; }
.ch-btn .ch-num { font-family: "Courier New", monospace; color: #39ff5e; font-size: 0.85rem; }
.ch-btn .ch-name { font-weight: 700; }
.ch-btn .ch-on { margin-left: auto; font-size: 0.76rem; color: #ffd75e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48%; }
.ch-btn.active { border-color: #ffd75e; background: rgba(52, 44, 10, 0.55); box-shadow: 0 0 0 1px #ffd75e inset; }
.guide-note { color: #9db4cc; font-size: 0.86rem; margin: 0 0 0.6rem; }
.guide-note code { color: #ffd75e; }
.guide-row { display: grid; grid-template-columns: 52px 168px 1fr; gap: 0.8rem; padding: 0.5rem 0.2rem; border-top: 1px solid rgba(127, 166, 201, 0.22); align-items: baseline; font-size: 0.94rem; }
.guide-row .g-ch { font-family: "Courier New", monospace; color: #39ff5e; }
.guide-row .g-name { font-weight: 700; }
.guide-row .g-now b { color: #ffd75e; font-family: "Courier New", monospace; font-size: 0.76rem; letter-spacing: 0.12em; }
.guide-row .g-next { color: #9db4cc; }
@media (max-width: 700px) { .guide-row { grid-template-columns: 44px 1fr; } .guide-row .g-what { grid-column: 2; } }

/* power off */
.screen-off {
  position: absolute; inset: 0; z-index: 9;
  background: radial-gradient(ellipse at 42% 34%, #15161a 0%, #060607 62%, #000 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  text-align: center; padding: 8%;
}
.screen-off[hidden] { display: none; }
.off-glyph { margin: 0; font-size: 2.2rem; color: rgba(232,228,216,0.35); }
.off-note { margin: 0; font-family: "Courier New", monospace; font-size: 0.8rem; letter-spacing: 0.1em; color: rgba(232,228,216,0.42); }

/* ================= the side of the set ================= */
.tv-side { display: flex; flex-direction: column; gap: 0.8rem; align-items: stretch; min-width: 0; }
.speaker-grille { flex: 0 0 74px; border-radius: 10px; background: repeating-linear-gradient(rgba(0,0,0,0.55) 0 3px, rgba(255,255,255,0.05) 3px 6px), #2a2c33; box-shadow: inset 0 2px 8px rgba(0,0,0,0.7); }
.dial-block, .tune-block { background: #14151a; border-radius: 12px; padding: 0.65rem 0.5rem 0.7rem; box-shadow: inset 0 2px 8px rgba(0,0,0,0.8); }
.dial-label { margin: 0 0 0.45rem; font-family: "Courier New", monospace; letter-spacing: 0.26em; font-size: 0.66rem; color: #b9bdc9; text-align: center; }
.dial-btns { display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.dial-btns button { cursor: pointer; color: #f2ead8; }
#ch-down, #ch-up {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 35% 30%, #5b606c, #22242a 72%);
  border: 1px solid #5b606c; font-size: 1.15rem; line-height: 1;
  box-shadow: 0 3px 7px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.07s, box-shadow 0.07s;
}
#ch-down:active, #ch-up:active { transform: translateY(2px) scale(0.94); box-shadow: 0 1px 3px rgba(0,0,0,0.6), inset 0 2px 6px rgba(0,0,0,0.55); }
.dial-read {
  font-family: "Courier New", monospace; font-size: 1.45rem; font-weight: bold;
  color: #39ff5e; background: #05070a; border: 1px solid #2c3524; border-radius: 7px;
  min-width: 52px; padding: 0.14rem 0.2rem; text-align: center;
  text-shadow: 0 0 9px rgba(57,255,94,0.55);
  transition: transform 0.07s;
}
.dial-read:hover { border-color: #ffd75e; }
.dial-read:active { transform: scale(0.95); }
.knobs { display: grid; gap: 0.42rem; }
.knobs label { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-family: "Courier New", monospace; letter-spacing: 0.03em; color: #c8ccd6; }
.knobs input[type="range"] { width: 100%; accent-color: #f06030; height: 18px; cursor: pointer; margin: 0; }
.pill-toggles { display: flex; flex-wrap: wrap; gap: 0.32rem; margin-top: 0.55rem; justify-content: center; }
.pill {
  font-family: "Courier New", monospace; font-size: 0.64rem; letter-spacing: 0.1em;
  background: #1d1f26; color: #8b8fa0; border: 1px solid #3a3d47; border-radius: 999px;
  padding: 0.28rem 0.5rem; cursor: pointer; transition: all 0.12s;
}
.pill:active { transform: scale(0.93); }
.pill.on { color: #ffe93c; border-color: rgba(255,233,60,0.6); background: #2a2410; box-shadow: 0 0 8px rgba(255,233,60,0.18) inset; }
.side-note { font-size: 0.66rem; color: #777d8d; text-align: center; line-height: 1.5; margin: 0.55rem 0 0; }

/* ================= the remote ================= */
.remote {
  margin-top: 0.9rem;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.45rem;
  background: linear-gradient(180deg, #26262e, #17181d);
  border: 1px solid #3a3d47; border-radius: 999px;
  padding: 0.55rem 0.9rem;
  box-shadow: 0 16px 34px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: rotate(-0.6deg);
  max-width: 96vw;
}
.rbtn {
  background: #2e2f38; color: #e8e4d8; border: 1px solid #4a4d59; border-radius: 999px;
  font-family: "Courier New", monospace; font-size: 0.78rem; letter-spacing: 0.08em;
  padding: 0.5rem 0.85rem; cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.07s, box-shadow 0.07s, border-color 0.15s, color 0.15s;
}
.rbtn:hover { border-color: #ffd75e; color: #ffd75e; }
.rbtn:active { transform: translateY(2px); box-shadow: 0 1px 2px rgba(0,0,0,0.5), inset 0 2px 5px rgba(0,0,0,0.5); }
.rbtn-power { color: #ff7a5e; border-color: rgba(255,122,94,0.5); font-size: 0.95rem; padding: 0.42rem 0.8rem; }
body[data-power="off"] .rbtn-power { color: #39ff5e; border-color: rgba(57,255,94,0.6); box-shadow: 0 0 10px rgba(57,255,94,0.25); }
.remote-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,0.14); margin: 0 0.2rem; }
.remote-presets { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; }
.rbtn-preset { font-size: 0.7rem; padding: 0.48rem 0.65rem; }
/* the stereo section of the remote: its own device-within-the-remote —
   a deep-purple inset band, gold label, so the hand learns it is NOT
   the TV: it runs the room's soundtrack whether the set is on or off */
.remote-stereo {
  display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: nowrap;
  background: linear-gradient(180deg, rgba(59, 29, 94, 0.55), rgba(28, 16, 56, 0.55));
  border: 1px solid rgba(160, 120, 255, 0.4); border-radius: 999px;
  padding: 0.32rem 0.6rem 0.32rem 0.75rem;
  box-shadow: inset 0 2px 7px rgba(0,0,0,0.55), inset 0 1px 0 rgba(205, 188, 245, 0.14);
}
.stereo-label { font-family: "Courier New", monospace; font-size: 0.64rem; font-weight: bold; letter-spacing: 0.26em; color: #ffd75e; }
.rbtn-stereo { padding: 0.36rem 0.6rem; font-size: 0.82rem; background: #241a3d; border-color: rgba(160, 120, 255, 0.45); }
.rbtn-stereo:hover { border-color: #ffd75e; color: #ffd75e; }
.rbtn-stereo.playing { color: #cdbcf5; border-color: rgba(255, 215, 94, 0.65); box-shadow: 0 0 9px rgba(138, 84, 220, 0.4); }
.stereo-vol { width: 84px; accent-color: #a678ff; height: 18px; cursor: pointer; margin: 0; }
.stereo-read {
  font-family: "Courier New", monospace; font-size: 0.68rem; letter-spacing: 0.03em;
  color: #cdbcf5; max-width: 265px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.remote-hint { font-family: "Courier New", monospace; font-size: 0.64rem; color: rgba(232,228,216,0.4); letter-spacing: 0.06em; margin-left: 0.4rem; }

/* ================= small screens ================= */
@media (max-width: 760px) {
  .room-stage { width: 100vw; padding: 2.4rem 0.35rem 0.5rem; justify-content: center; }
  .tv-body > *, .tune-block, .dial-block { min-width: 0; }
  .knobs input[type="range"] { min-width: 0; }
  .tv-assembly { width: 100%; }
  .tv-antenna { height: 30px; }
  .tv-antenna .ant { height: 38px; }
  .tv-body { grid-template-columns: 1fr; padding: 10px; gap: 0.6rem; border-radius: 18px; }
  .tv-screen-bezel { padding: 8px; }
  .tv-side { flex-direction: row; flex-wrap: nowrap; gap: 0.55rem; }
  .speaker-grille { display: none; }
  .dial-block { flex: 0 1 132px; }
  .tune-block { flex: 1 1 196px; }
  .side-note { display: none; }
  .knobs { grid-template-columns: 1fr 1fr; gap: 0.3rem 0.6rem; }
  .knobs label { grid-template-columns: 1fr; gap: 0.05rem; }
  .tv-stand { height: 28px; }
  .remote { border-radius: 22px; transform: none; margin-top: 0.6rem; padding: 0.5rem 0.6rem; }
  .remote-hint { display: none; }
  .remote-stereo { flex-wrap: wrap; justify-content: center; border-radius: 18px; max-width: 100%; }
  .stereo-vol { width: 64px; }
  .stereo-read { max-width: 150px; }
  .staged-marker { display: none; }
  .exit-link { top: 8px; left: 8px; font-size: 0.74rem; }
  .layer-slate, .layer-music { padding: 5% 6%; }
  .mc-foot { display: none; }
}
/* height-bound viewports: keep the whole room — set, stand, remote —
   on one screen by shrinking the set against viewport height. At 1080p
   the 108vh cap never bites; at 768px tall it keeps the remote visible
   instead of clipped under the fold of a fixed room. */
@media (max-height: 900px) and (min-width: 761px) {
  .tv-assembly { width: min(1020px, 96vw, 108vh); }
}
/* short viewports (landscape phones, small TV browsers) */
@media (max-height: 560px) and (min-width: 761px) {
  .tv-assembly { width: min(1020px, 96vw, 118vh); }
  .tv-antenna { height: 26px; }
  .tv-antenna .ant { height: 34px; }
  .remote { margin-top: 0.45rem; padding: 0.4rem 0.8rem; }
}
