/* =========================================================
   MTV — Music Television Simulator
   A big black 90s set in a dark room.
   ========================================================= */

:root {
  --room: #09090b;
  --plastic: #1b1b1f;
  --plastic-hi: #2b2b31;
  --plastic-lo: #0c0c0e;
  --silver: #9a9aa4;
  --lime: #b6ff3b;
  --magenta: #ff3ea5;
  --cyan: #2ee6ff;
  --violet: #7b3fff;
  --orange: #ff7a1a;
  --osd-green: #3dff6a;
  --osd-shadow: #063a11;
  --guide-blue: #0a0a9c;
  --guide-blue-2: #04046a;
  --guide-yellow: #ffe94a;
  --guide-grey: #6c6c8a;
  --guide-white: #f4f4ff;
  --text: #f1f1f4;
  --muted: #8d8d99;
  --font-osd: 'VT323', 'Courier New', monospace;
  --font-block: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font-scrawl: 'Permanent Marker', 'Comic Sans MS', cursive;
  --font-card: 'Josefin Sans', 'Kabel', 'Century Gothic', 'Futura', sans-serif; /* Kabel is the real thing; this is the closest free face */
  --font-ui: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--room);
  font-family: var(--font-ui); font-size: 18px; line-height: 1.4; overflow-x: hidden;
}
@media (min-width: 901px) and (min-height: 560px) { body { height: 100vh; overflow: hidden; } }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #000; padding: 6px 10px; z-index: 100; }

/* ---------- the room: dark, quiet, lit mostly by the set ---------- */
.wall {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 700px at 50% 42%, #1c1c21, transparent 70%),
    radial-gradient(1400px 900px at 50% 110%, #0f0f12, transparent 60%),
    var(--room);
}
.floor {
  position: fixed; left: 0; right: 0; bottom: 0; height: 22vh; z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}
.lamp { display: none; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.wordmark { display: inline-flex; align-items: flex-end; line-height: 1; filter: drop-shadow(0 3px 0 #000); }
.wordmark-m { font-family: var(--font-block); font-size: 44px; color: #fff; letter-spacing: -1px; }
.wordmark-tv { font-family: var(--font-scrawl); font-size: 22px; color: var(--lime); margin-left: -9px; transform: rotate(-6deg); }
.manual-btn {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-family: var(--font-ui); font-weight: 700; font-size: 18px;
  color: #000; background: var(--lime); border: 0; box-shadow: 0 3px 0 #4f7a0f, 0 6px 12px rgba(0,0,0,.5);
  transition: transform .07s, box-shadow .07s;
}
.manual-btn:hover { filter: brightness(1.08); }
.manual-btn:active { transform: translateY(3px); box-shadow: 0 0 0 #4f7a0f, 0 2px 4px rgba(0,0,0,.5); }

/* ---------- stage ---------- */
.room {
  position: relative; z-index: 1; min-height: 100vh;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: center;
  gap: 2vw; padding: 64px 3vw 5vh;
}

/* =========================================================
   THE TELEVISION — a big black 90s set
   ========================================================= */
.tv { position: relative; width: min(100%, calc((100vh - 170px) * 1.28)); min-width: 0; }

/* the light the tube throws into the room */
.tv::before {
  content: ""; position: absolute; inset: -16% -12% 0 -12%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 42%, rgba(150,200,255,.30), rgba(150,200,255,.07) 45%, transparent 70%);
  opacity: 0; transition: opacity .6s;
}
body[data-tv="on"] .tv::before { opacity: 1; animation: tube-hue 22s linear infinite; }
body[data-tv="static"] .tv::before, body[data-tv="nosignal"] .tv::before { opacity: .8; animation: tube-flicker .12s steps(2) infinite; }
@keyframes tube-hue { 0% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(160deg); } 100% { filter: hue-rotate(360deg); } }
@keyframes tube-flicker { 0% { opacity: .55; } 100% { opacity: .85; } }

.set {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), transparent 8%, transparent 92%, rgba(0,0,0,.4)),
    linear-gradient(90deg, var(--plastic-lo), var(--plastic) 12%, var(--plastic-hi) 50%, var(--plastic) 88%, var(--plastic-lo));
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.10), inset 0 -3px 0 rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.6),
    0 40px 80px rgba(0,0,0,.75), 0 0 0 1px #000;
  padding: 2.4% 2.4% 1.4%;
}
.set-face { display: grid; grid-template-columns: 6.5% minmax(0, 1fr) 6.5%; gap: 2%; align-items: stretch; }
.speaker {
  border-radius: 6px;
  background: repeating-linear-gradient(0deg, #060607 0 2px, #202024 2px 5px);
  box-shadow: inset 0 0 0 1px #000, inset 0 6px 14px rgba(0,0,0,.8);
}

.bezel {
  background: linear-gradient(180deg, #121215, #08080a); padding: 2.2%; border-radius: 12px;
  box-shadow: inset 0 0 0 2px #000, inset 0 10px 26px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.07);
}
.screen {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 4% / 5%; background: #050507; overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,.95), 0 0 0 2px #000;
}
.screen-inner { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #000; }

.video-layer {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: #000;
  transition: transform .3s ease, opacity .2s; transform-origin: 3.5% 6%;
}
.video-layer iframe, .video-layer #yt {
  position: absolute; width: 178%; height: 100%; left: 50%; top: 0; transform: translateX(-50%);
  pointer-events: none; border: 0;
}
.screen[data-state="off"] .video-layer { opacity: 0; }

.snow { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; pointer-events: none; transition: opacity .08s; }
.screen[data-state="static"] .snow { opacity: 1; }
.screen[data-state="nosignal"] .snow { opacity: .55; }

.nosignal { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 3; }
.nosignal-text { font-family: var(--font-osd); font-size: clamp(28px, 6vw, 60px); color: var(--osd-green); text-shadow: 0 0 8px var(--osd-green), 2px 2px 0 var(--osd-shadow); letter-spacing: 4px; }
.nosignal-sub { font-family: var(--font-osd); font-size: clamp(14px, 2.4vw, 22px); color: #bfe; margin-top: 8px; opacity: .8; }
.screen[data-state="off"] .nosignal-text { color: #34403a; text-shadow: none; opacity: .8; animation: breathe 3s ease-in-out infinite; }
.screen[data-state="off"] .nosignal-sub { color: #34403a; }
@keyframes breathe { 50% { opacity: .35; } }

.crt-scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 8; mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.26) 0 1px, transparent 1px 3px);
}
.crt-scanlines::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,0,0,.05) 0 1px, rgba(0,255,0,.04) 1px 2px, rgba(0,0,255,.05) 2px 3px);
}
.crt-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 9;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.5) 100%);
  box-shadow: inset 0 0 50px rgba(0,0,0,.6);
}
.crt-glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 10;
  background:
    linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 28%, transparent 45%),
    radial-gradient(60% 30% at 20% 8%, rgba(255,255,255,.10), transparent 70%);
}
.screen[data-state="on"] .screen-inner, .screen[data-state="static"] .screen-inner { animation: flicker 4s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: .96; } 94% { opacity: 1; } 97% { opacity: .98; } }

.screen.is-powering-off .screen-inner { animation: crt-off .45s ease-in forwards; }
.screen.is-powering-on .screen-inner { animation: crt-on .5s ease-out; }
@keyframes crt-off {
  0% { transform: scale(1, 1); filter: brightness(1); }
  55% { transform: scale(1, .006); filter: brightness(3); }
  80% { transform: scale(.02, .006); filter: brightness(6); }
  100% { transform: scale(0, 0); filter: brightness(0); }
}
@keyframes crt-on {
  0% { transform: scale(1, .005); filter: brightness(8); }
  40% { transform: scale(1, .005); filter: brightness(8); }
  70% { transform: scale(1, 1); filter: brightness(2.4); }
  100% { transform: scale(1, 1); filter: brightness(1); }
}

/* ----- OSD ----- */
.osd {
  position: absolute; z-index: 6; font-family: var(--font-osd); color: var(--osd-green); pointer-events: none;
  text-shadow: 0 0 6px rgba(61,255,106,.7), 2px 2px 0 var(--osd-shadow); letter-spacing: 2px;
}
.osd-channel { top: 5%; left: 6%; line-height: .9; }
.osd-num { font-size: clamp(34px, 9vw, 96px); }
.osd-name { font-size: clamp(14px, 2.6vw, 26px); margin-top: 4px; }
.osd-volume { bottom: 8%; left: 6%; right: 6%; display: flex; align-items: center; gap: 14px; font-size: clamp(16px, 3vw, 30px); }
.osd-vol-bar { display: flex; gap: 3px; flex: 1; }
.osd-vol-bar i { display: block; height: 14px; flex: 1; background: var(--osd-green); box-shadow: 0 0 6px var(--osd-green); opacity: .25; }
.osd-vol-bar i.on { opacity: 1; }
.osd-mute { top: 5%; right: 6%; font-size: clamp(18px, 3.4vw, 36px); }

.bug { position: absolute; top: 4%; right: 5%; z-index: 5; display: flex; align-items: flex-end; opacity: .85; pointer-events: none; filter: drop-shadow(1px 2px 0 rgba(0,0,0,.8)); }
.bug-m { font-family: var(--font-block); font-size: clamp(22px, 5vw, 52px); line-height: .85; color: #fff; }
.bug-tv { font-family: var(--font-scrawl); font-size: clamp(11px, 2.4vw, 24px); color: #fff; margin-left: -9px; transform: rotate(-8deg); }
.bug-sub { font-family: var(--font-ui); font-weight: 700; font-size: clamp(8px, 1.4vw, 13px); color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-left: 8px; opacity: .9; }

/* The classic MTV title card: four stacked lines, bottom-left, white Kabel-style type with a hard black shadow.
   Artist, then the song in quotes, then the album, then the record label. */
.lower-third {
  position: absolute; left: 7%; bottom: 10%; z-index: 5; pointer-events: none; max-width: 80%;
  font-family: var(--font-card); font-weight: 700; color: #fff; line-height: 1.25;
  text-shadow: 2px 2px 0 #000, 3px 3px 0 rgba(0,0,0,.55), 0 0 10px rgba(0,0,0,.6);
  animation: lt-in .5s ease-out;
}
.lower-third.is-leaving { animation: lt-out .5s ease-in forwards; }
.lt-line { font-size: clamp(12px, 2.6vw, 27px); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-title::before { content: "\201C"; } .lt-title::after { content: "\201D"; }
.lt-label:empty, .lt-album:empty { display: none; }
@keyframes lt-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lt-out { from { opacity: 1; } to { opacity: 0; } }

/* ----- guide (Prevue homage) ----- */
.guide { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; font-family: var(--font-osd); color: var(--guide-white); }
.guide-top { display: flex; height: 40%; }
.guide-preview-hole { width: 44%; }
.guide-info { flex: 1; background: var(--guide-blue-2); padding: 3% 3% 2%; display: flex; flex-direction: column; gap: 4px; border-left: 3px solid #000; }
.guide-clock { color: var(--guide-yellow); font-size: clamp(11px, 2.1vw, 22px); letter-spacing: 1px; }
.guide-tabs { display: flex; gap: 6px; }
.guide-tab { font: inherit; font-size: clamp(11px, 2vw, 19px); letter-spacing: 1px; cursor: pointer; background: #222266; color: #aab; border: 2px solid #000; padding: 1px 8px; }
.guide-tab.is-active { background: var(--guide-yellow); color: #000; }
.guide-now { font-size: clamp(10px, 1.9vw, 18px); line-height: 1.15; color: #dde; overflow: hidden; }
.guide-now b { color: #fff; }
.guide-body { flex: 1; background: var(--guide-blue); border-top: 3px solid #000; overflow: hidden; position: relative; }
.guide-panel { position: absolute; inset: 0; display: none; overflow-y: auto; scrollbar-width: none; }
.guide-panel::-webkit-scrollbar { display: none; }
.guide-panel.is-active { display: block; }
.guide-grid { display: flex; flex-direction: column; }
.guide-row { display: grid; grid-template-columns: 9% 26% 1fr; gap: 3px; padding: 3px 1.2%; font-size: clamp(10px, 2vw, 19px); line-height: 1.1; cursor: pointer; border-bottom: 2px solid #000; }
.guide-row > div { padding: 3px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gr-num { background: var(--guide-grey); color: #000; text-align: center; font-weight: 700; }
.gr-name { background: var(--guide-grey); color: #000; }
.gr-prog { background: #1414b8; color: #fff; }
.gr-prog small { display: block; color: #bbc; font-size: .85em; }
.guide-row.is-current .gr-num, .guide-row.is-current .gr-name { background: var(--guide-yellow); }
.guide-row.is-selected .gr-prog { background: #fff; color: #000; }
.guide-row.is-selected .gr-prog small { color: #444; }
.guide-ticker { background: #000; color: var(--guide-yellow); height: 9%; overflow: hidden; display: flex; align-items: center; border-top: 3px solid #000; }
.guide-ticker-inner { white-space: nowrap; font-size: clamp(10px, 2vw, 19px); letter-spacing: 1px; animation: ticker 28s linear infinite; padding-left: 100%; }
@keyframes ticker { to { transform: translateX(-100%); } }

.taste { padding: 2% 3%; font-size: clamp(10px, 2vw, 19px); line-height: 1.2; }
.taste h3 { margin: 6px 0 2px; color: var(--guide-yellow); font-weight: 400; font-size: 1em; letter-spacing: 2px; }
.taste .meter { display: grid; grid-template-columns: 34% 1fr 12%; gap: 6px; align-items: center; }
.meter .bar { height: .7em; background: #05053a; border: 1px solid #000; position: relative; }
.meter .bar i { position: absolute; top: 0; bottom: 0; background: var(--osd-green); }
.meter .bar i.neg { background: #ff5a5a; }
.meter .val { text-align: right; color: #aab; }
.taste .stat { display: flex; justify-content: space-between; border-bottom: 1px dotted #446; }
.taste .empty { color: #cce; padding: 6px 0; }
.taste .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.taste .chip { background: #1414b8; padding: 0 6px; border: 1px solid #000; }

/* ----- the strip along the bottom of the set ----- */
.set-bottom { display: flex; align-items: center; gap: 2.5%; padding: 1.6% 1% 0.6%; min-width: 0; }
.brandplate { font-family: var(--font-ui); font-weight: 600; font-size: clamp(9px, 1.1vw, 15px); letter-spacing: 4px; color: var(--silver); text-shadow: 0 1px 0 #000; white-space: nowrap; }
.brandplate small { font-size: .7em; letter-spacing: 2px; color: #6d6d78; margin-left: 4px; }
.set-status { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ir-window { width: clamp(16px, 2vw, 28px); height: clamp(6px, .8vw, 10px); border-radius: 3px; background: linear-gradient(180deg, #2a0a10, #0a0304); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px #000; }
.led { width: clamp(6px, .7vw, 9px); height: clamp(6px, .7vw, 9px); border-radius: 50%; background: #2a0808; box-shadow: inset 0 0 2px #000; transition: background .2s, box-shadow .2s; }
.led.standby { background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; }
.led.on { background: var(--osd-green); box-shadow: 0 0 8px var(--osd-green); }
.set-buttons { display: flex; gap: 6px; }
.push {
  font-family: var(--font-ui); font-weight: 700; font-size: clamp(7px, .8vw, 11px); letter-spacing: 1.5px; color: #c9c9d1; cursor: pointer;
  background: linear-gradient(180deg, #34343a, #1c1c20); border: 0; border-radius: 4px; padding: 5px 9px; white-space: nowrap;
  box-shadow: 0 3px 0 #050506, 0 4px 6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .06s, box-shadow .06s, filter .12s;
}
.push:hover { filter: brightness(1.2); }
.push:active, .push.is-pressed { transform: translateY(3px); box-shadow: 0 0 0 #050506, 0 1px 2px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05); }

/* ----- the stand and the VCR ----- */
.stand { margin: 0 4%; padding: 10px 2% 0; border-top: 3px solid #0b0b0d; }
.vcr {
  position: relative; display: flex; align-items: center; gap: 3%; height: clamp(26px, 3.6vw, 46px); padding: 0 3%;
  background: linear-gradient(180deg, #24242a, #101013); border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -2px 0 rgba(0,0,0,.8), 0 14px 26px rgba(0,0,0,.6), 0 0 0 1px #000;
}
.vcr-brand { font-family: var(--font-ui); font-weight: 600; font-size: clamp(7px, .8vw, 11px); letter-spacing: 2px; color: #6d6d78; white-space: nowrap; }
.vcr-slot { flex: 1; height: 28%; max-width: 34%; border-radius: 2px; background: #050506; box-shadow: inset 0 2px 4px #000, 0 1px 0 rgba(255,255,255,.06); }
.vcr-clock { margin-left: auto; font-family: var(--font-osd); font-size: clamp(14px, 1.9vw, 26px); color: #8ff7d8; text-shadow: 0 0 6px rgba(143,247,216,.8); letter-spacing: 2px; animation: vcr-blink 1s steps(1) infinite; }
@keyframes vcr-blink { 50% { opacity: 0; } }
.vcr-buttons { display: flex; gap: 4px; }
.vcr-buttons i { width: clamp(8px, 1vw, 14px); height: clamp(5px, .6vw, 8px); border-radius: 2px; background: linear-gradient(180deg, #3a3a40, #1c1c20); box-shadow: 0 1px 0 #000; }

/* =========================================================
   THE REMOTE — chunky rubber buttons that actually push down
   ========================================================= */
.remote {
  position: relative; width: 196px; align-self: end; margin-bottom: 4vh;
  background: linear-gradient(180deg, #2c2c31, #17171a 14%, #0f0f11);
  border-radius: 22px; padding: 16px 12px 24px; transform: rotate(-4deg);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.12), inset 0 -4px 0 rgba(0,0,0,.7), 0 34px 44px rgba(0,0,0,.7), 0 0 0 1px #000;
}
.remote-ir { position: absolute; top: -6px; left: 50%; width: 48px; height: 10px; margin-left: -24px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #2a0a10, #0a0304); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.remote-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.remote-brand { font-family: var(--font-ui); font-weight: 600; font-size: 10px; letter-spacing: 3px; color: #6d6d78; }

.rbtn {
  position: relative; font-family: var(--font-ui); font-weight: 700; letter-spacing: 1px; font-size: 13px; color: #e8e8ee;
  background: linear-gradient(180deg, #3e3e45, #232328); border: 0; border-radius: 9px; padding: 9px 6px; cursor: pointer; user-select: none;
  box-shadow: 0 5px 0 #08080a, 0 7px 8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.16);
  transition: transform .07s ease-out, box-shadow .07s ease-out, filter .15s;
  -webkit-tap-highlight-color: transparent;
}
.rbtn:hover { filter: brightness(1.22); transform: translateY(-1px); box-shadow: 0 6px 0 #08080a, 0 9px 10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.2); }
.rbtn:active, .rbtn.is-pressed { transform: translateY(4px); filter: brightness(.9); box-shadow: 0 1px 0 #08080a, 0 1px 2px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04); }
.rbtn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.rbtn-power { background: radial-gradient(circle at 40% 35%, #ff6b6b, #b51212 70%); color: #fff; width: 42px; height: 42px; border-radius: 50%; padding: 0; font-size: 16px; }
.rbtn-small { font-size: 11px; padding: 7px 6px; }
.remote-numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }
.rbtn.num { font-family: var(--font-ui); font-weight: 600; font-size: 20px; padding: 6px 0; line-height: 1; }
.remote-rockers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 14px; }
.rocker { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.rocker-btn { padding: 11px 0; }
.rocker-label { text-align: center; font-size: 11px; letter-spacing: 2px; color: #8d8d99; padding: 3px 0; }
.rbtn-guide { align-self: center; background: linear-gradient(180deg, #d4ff5c, #86c41c); color: #0b1a02; border-radius: 50%; width: 58px; height: 58px; padding: 0; margin: 0 auto; font-size: 11px; box-shadow: 0 5px 0 #3f6a08, 0 7px 8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.rbtn-guide:hover { box-shadow: 0 6px 0 #3f6a08, 0 9px 10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.rbtn-guide:active, .rbtn-guide.is-pressed { box-shadow: 0 1px 0 #3f6a08, 0 1px 2px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1); }
.remote-taste { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rbtn-love { background: linear-gradient(180deg, #ff62b8, #b3146a); color: #fff; box-shadow: 0 5px 0 #5a0a35, 0 7px 8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.rbtn-love:hover { box-shadow: 0 6px 0 #5a0a35, 0 9px 10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.rbtn-love:active, .rbtn-love.is-pressed { box-shadow: 0 1px 0 #5a0a35, 0 1px 2px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1); }
.rbtn-nope { background: linear-gradient(180deg, #55555e, #26262c); }

/* =========================================================
   MANUAL
   ========================================================= */
.manual { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0,0,0,.78); padding: 20px; overflow: auto; }
.manual-card {
  position: relative; max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; padding: 28px 30px 24px;
  background: #121215; color: #e8e8ee; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08);
  font-size: 17px; line-height: 1.45;
}
.manual-card h2 { margin: 0 0 4px; font-family: var(--font-ui); font-weight: 700; font-size: 32px; color: var(--lime); letter-spacing: 1px; text-transform: uppercase; }
.manual-card h3 { margin: 20px 0 6px; font-family: var(--font-ui); font-weight: 700; font-size: 14px; letter-spacing: 3px; color: var(--magenta); text-transform: uppercase; }
.manual-lede { margin: 0; color: var(--muted); }
.manual-table { width: 100%; border-collapse: collapse; }
.manual-table td { padding: 6px 6px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
.manual-table td:first-child { width: 34%; font-weight: 700; color: #fff; }
.manual-card kbd { font-family: var(--font-ui); font-weight: 700; font-size: 14px; background: #2a2a31; color: #fff; padding: 1px 7px; border-radius: 4px; box-shadow: 0 2px 0 #000; }
.manual-card p { margin: 6px 0; }
.manual-fine { font-size: 13px; color: var(--muted); margin-top: 16px !important; }
.manual-fine a { color: var(--cyan); }
.manual-close { position: absolute; top: 10px; right: 12px; font-size: 28px; line-height: 1; background: none; border: 0; color: var(--muted); cursor: pointer; }

/* =========================================================
   small screens: everything stacks, the remote sits flat
   ========================================================= */
@media (max-width: 900px) {
  .room { grid-template-columns: 1fr; gap: 28px; padding: 74px 12px 40px; }
  .tv { width: 100%; }
  .tv::before { display: none; }
  .set { padding: 3% 3% 2%; border-radius: 12px; }
  .set-face { grid-template-columns: 1fr; gap: 0; }
  .speaker { display: none; }
  .set-bottom { flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; }
  .set-status { margin-left: auto; }
  .set-buttons { width: 100%; justify-content: space-between; gap: 6px; }
  .push { flex: 1; font-size: 12px; padding: 12px 4px; min-height: 44px; border-radius: 6px; }
  .push[data-action="power"] { flex: 1.3; }
  .stand { margin: 0 6%; }
  .remote { transform: none; align-self: center; margin: 0 auto; width: 100%; max-width: 300px; padding: 12px 10px 16px; border-radius: 18px; }
  .remote-top { margin-bottom: 10px; }
  .rbtn { font-size: 12px; padding: 7px 4px; border-radius: 8px; }
  .rbtn.num { font-size: 17px; padding: 5px 0; }
  .rbtn-power { width: 36px; height: 36px; font-size: 14px; }
  .rbtn-small { font-size: 10px; padding: 6px 4px; }
  .remote-numpad { gap: 7px; margin-bottom: 10px; }
  .remote-rockers { gap: 6px; margin-bottom: 10px; }
  .rocker-btn { padding: 8px 0; }
  .rocker-label { font-size: 10px; padding: 2px 0; }
  .rbtn-guide { width: 48px; height: 48px; font-size: 10px; }
  .remote-taste { gap: 7px; }
  .wordmark-m { font-size: 36px; } .wordmark-tv { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .screen[data-state="on"] .screen-inner, .screen[data-state="static"] .screen-inner, .tv::before, .vcr-clock { animation: none; }
  .guide-ticker-inner { animation: none; padding-left: 8px; }
}
