@font-face { font-family: "JB Serif"; src: url("fonts/serif-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "JB Sans"; src: url("fonts/sans-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "JB Sans"; src: url("fonts/sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JB Sans"; src: url("fonts/sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JB Hand"; src: url("fonts/hand.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "JB Black"; src: url("fonts/black.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #161616;
  --ink-2: rgba(22, 22, 22, 0.74);
  --ink-3: rgba(22, 22, 22, 0.42);
  --paper: #fbfaf6;
  --clip: #f3f1eb;
  --news: #e9e7e0;
  --red: #e0392d;
  --red-deep: #b62a20;
  --glass: #1a1c1b;
  --phosphor: #f2efe4;
  --serif: "JB Serif", "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "JB Sans", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --hand: "JB Hand", "Kaiti SC", "STKaiti", "KaiTi", var(--sans);
  --black: "JB Black", "Arial Black", var(--sans);
  --spring: cubic-bezier(0.34, 1.45, 0.52, 1);
  --out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --vh: 100vh;
  color-scheme: light;
}
@supports (height: 100svh) {
  :root { --vh: 100svh; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--news);
  color: var(--ink);
  font: 500 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before { background: url("img/grain.png") repeat; background-size: 512px; mix-blend-mode: multiply; opacity: 0.3; }
body::after {
  background: repeating-linear-gradient(180deg, rgba(22, 22, 22, 0.045) 0 2px, transparent 2px 10px);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 160px, transparent 160px 184px);
  mask-image: repeating-linear-gradient(90deg, #000 0 160px, transparent 160px 184px);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; touch-action: manipulation; }
.tv, .listing, .mast-row { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.tv *, .listing * { -webkit-touch-callout: none; }
body.dragging, body.dragging * { -webkit-user-select: none; user-select: none; cursor: grabbing; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }

.page { position: relative; overflow-x: clip; }

/* masthead */
.mast { width: 100%; }
.mast-row { position: relative; display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 4px solid var(--ink); }
.mast-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; border-bottom: 1.5px solid var(--ink); }
.mast-title { font: 900 56px/1 var(--serif); letter-spacing: 0.02em; white-space: nowrap; }
.ransom { display: inline-flex; align-items: center; gap: 3px; }
.ransom b { display: block; padding: 0.2em 0.24em 0.24em; font-size: 24px; line-height: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28); }
.ransom b:nth-child(1) { background: var(--ink); color: var(--paper); font-family: var(--sans); font-weight: 900; rotate: -5deg; translate: 0 2px; }
.ransom b:nth-child(2) { background: var(--red); color: #fff; font-family: var(--serif); font-weight: 900; font-size: 27px; rotate: 3deg; translate: 0 -3px; }
.ransom b:nth-child(3) { background: var(--paper); color: var(--ink); font-family: var(--hand); font-weight: 400; rotate: -2deg; translate: 0 1px; }
.mast-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 15px; font-size: 13px; color: var(--ink-2); }

.sfx { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 5px 12px 5px 9px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; font: 700 13px/1 var(--sans); cursor: pointer; transition: background 0.2s, color 0.2s; }
.sfx svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sfx .spk { fill: currentColor; stroke: none; }
.sfx .wave { display: none; }
.sfx[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sfx[aria-pressed="true"] .wave { display: block; }
.sfx[aria-pressed="true"] .mute { display: none; }
@media (hover: hover) {
  .sfx:hover { background: rgba(22, 22, 22, 0.08); }
  .sfx[aria-pressed="true"]:hover { background: #2a2a2a; }
}

/* the set */
.tv {
  --sh: min(calc((100vw - 44px) * 1.5), calc(var(--vh) - 150px), 760px);
  --u: calc(var(--sh) / 100);
  --sw: calc(var(--sh) * 9 / 16);
  --b: calc(var(--u) * 2.2);
  --r: calc(var(--u) * 3.6);
  position: relative;
  padding-top: calc(var(--u) * 8);
}
.antenna { position: absolute; top: 2px; left: calc(var(--u) * 3 + var(--sw) / 2 + var(--b)); height: calc(var(--u) * 8); width: calc(var(--u) * 16); translate: -50% 0; overflow: visible; }
.antenna .rod { transform-box: view-box; transform-origin: 60px 54px; }
.antenna line { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.antenna circle { fill: var(--ink); }
.antenna .dome { fill: var(--paper); stroke: var(--ink); stroke-width: 2.2; }
.antenna .dome-hatch { fill: none; stroke: var(--ink); stroke-width: 1; }

.cabinet {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-areas: "bezel" "tuner" "panel";
  justify-items: stretch;
  row-gap: calc(var(--u) * 1.6);
  padding: calc(var(--u) * 3);
}
.cabinet::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--r); }
.cabinet::after { content: ""; position: absolute; inset: calc(var(--u) * 1.1); z-index: -1; border: 1px solid rgba(22, 22, 22, 0.32); border-radius: calc(var(--r) - var(--u)); pointer-events: none; }
.depth { position: absolute; inset: 0; z-index: -2; translate: calc(var(--u) * 1.1) calc(var(--u) * 1.1); border: 2.5px solid var(--ink); border-radius: var(--r); background: repeating-linear-gradient(-45deg, var(--ink) 0 1.3px, var(--paper) 1.3px 3.6px); box-shadow: calc(var(--u) * 0.6) calc(var(--u) * 1.4) calc(var(--u) * 2.4) rgba(0, 0, 0, 0.3); }
.shade { position: absolute; inset: 0; z-index: -1; border-radius: var(--r); background: repeating-linear-gradient(-58deg, rgba(22, 22, 22, 0.4) 0 1px, transparent 1px 4px); -webkit-mask-image: linear-gradient(90deg, transparent 84%, #000 100%), linear-gradient(180deg, transparent 88%, #000 100%); mask-image: linear-gradient(90deg, transparent 84%, #000 100%), linear-gradient(180deg, transparent 88%, #000 100%); }
.feet { display: block; position: relative; height: calc(var(--u) * 2.2); margin: 0 calc(var(--u) * 7); }
.feet::before, .feet::after { content: ""; position: absolute; top: 0; width: calc(var(--u) * 7); height: 100%; background: var(--ink); border-radius: 0 0 calc(var(--u) * 1.2) calc(var(--u) * 1.2); clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%); }
.feet::before { left: 0; }
.feet::after { right: calc(var(--u) * -1.1); }

.bezel { grid-area: bezel; position: relative; justify-self: center; padding: var(--b); background: var(--ink); border-radius: calc(var(--u) * 3.4); box-shadow: inset 0 0 0 calc(var(--u) * 0.5) #2a2a29, inset 0 0 0 calc(var(--u) * 0.62) rgba(251, 250, 246, 0.2); }
.bezel::after { content: ""; position: absolute; inset: calc(var(--b) - 2px); border-radius: calc(var(--u) * 2.8) / calc(var(--u) * 2.4); box-shadow: 0 0 calc(var(--u) * 3) calc(var(--u) * 0.4) rgba(242, 239, 228, 0.3); opacity: 0; transition: opacity 0.8s; pointer-events: none; }
.tv.on .bezel::after { opacity: 1; }

.screen { position: relative; width: var(--sw); height: var(--sh); overflow: hidden; border-radius: calc(var(--u) * 2.8) / calc(var(--u) * 2.4); background: var(--glass); transform: translateZ(0); isolation: isolate; }
.picture { position: absolute; inset: 0; opacity: 0; transform-origin: 50% 50%; }
.tv.on .picture { opacity: 1; }
.picture video, .testcard { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: var(--glass); }
.testcard[hidden] { display: none; }
.tc-kicker { font: 900 6.2px var(--sans); fill: #fff; letter-spacing: 0.3px; }
.tc-title { font: 900 6.4px var(--serif); fill: var(--paper); }
.tc-note { font: 400 5.4px var(--hand); fill: var(--ink); }
.noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 2; pointer-events: none; }
.crt {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(130% 90% at 50% 46%, transparent 58%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(158deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 24%, transparent 40%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.085) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 calc(var(--u) * 3) rgba(0, 0, 0, 0.55);
}
.beam { position: absolute; left: 3%; right: 3%; top: 50%; height: 2px; margin-top: -1px; z-index: 4; background: #fff; border-radius: 2px; box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.85), 0 0 26px 8px rgba(225, 232, 255, 0.45); opacity: 0; transform: scaleX(0); pointer-events: none; }
.afterglow { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; z-index: 4; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.8); opacity: 0; pointer-events: none; }

.osd { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.osd-ch { position: absolute; top: calc(var(--u) * 3); right: calc(var(--u) * 3); font: 400 calc(var(--u) * 4.4) / 1 var(--black); color: var(--phosphor); letter-spacing: 0.04em; text-shadow: 0 0 2px #000, 0 0 10px rgba(0, 0, 0, 0.75), 0 0 6px rgba(242, 239, 228, 0.6), 2px 2px 0 rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.25s; }
.osd-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: calc(var(--u) * 10) calc(var(--u) * 3) calc(var(--u) * 3); background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.78)); color: var(--phosphor); opacity: 0; translate: 0 8px; transition: opacity 0.3s, translate 0.45s var(--out); }
.osd-no { font: 700 calc(var(--u) * 1.9) / 1.2 var(--sans); color: rgba(242, 239, 228, 0.8); }
.osd-title { font: 900 calc(var(--u) * 3.3) / 1.25 var(--serif); text-wrap: balance; }
.osd.show .osd-ch, .osd.show .osd-cap { opacity: 1; translate: 0 0; }

.bigplay { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; align-content: center; gap: calc(var(--u) * 2.4); background: none; border: 0; cursor: pointer; }
.bigplay:focus-visible { outline: none; }
.bigplay:focus-visible .disc { outline: 3px solid var(--phosphor); outline-offset: 4px; }
.disc { display: grid; place-items: center; width: calc(var(--u) * 15); height: calc(var(--u) * 15); border-radius: 50%; background: var(--red); border: calc(var(--u) * 0.7) solid var(--paper); box-shadow: 0 0 0 2px var(--ink), 0 calc(var(--u) * 1.2) calc(var(--u) * 3) rgba(0, 0, 0, 0.45); opacity: 0; scale: 0.7; transition: opacity 0.25s, scale 0.4s var(--spring); }
.disc svg { width: 48%; height: 48%; fill: #fff; translate: 6% 0; }
.resume { padding: 0.25em 0.7em 0.35em; background: var(--paper); color: var(--ink); font: 400 calc(var(--u) * 2.4) / 1.2 var(--hand); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); rotate: -2deg; opacity: 0; translate: 0 -6px; transition: opacity 0.25s 0.05s, translate 0.4s var(--out) 0.05s; }
.resume:empty { display: none; }
.tv.on.idle .disc { opacity: 1; scale: 1; }
.tv.on.idle .resume { opacity: 1; translate: 0 0; }
@media (hover: hover) {
  .tv.on.idle .bigplay:hover .disc { scale: 1.06; }
}
.tv.soon .bigplay { cursor: default; }

/* tuning scale = progress */
.tuner { grid-area: tuner; justify-self: center; width: calc(var(--sw) + 2 * var(--b)); }
.scale { position: relative; height: calc(var(--u) * 5.8); border: 2px solid var(--ink); border-radius: calc(var(--u) * 1.2); background: var(--paper); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.scale::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 45%, rgba(22, 22, 22, 0.06)); pointer-events: none; }
.scale-paper { position: absolute; top: 0; bottom: 0; left: calc(var(--u) * 1.4); right: calc(var(--u) * 1.4); }
.ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px var(--minor, 10%)); }
.buffered, .played { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; transform-origin: 0 50%; transform: scaleX(0); }
.buffered { background: rgba(22, 22, 22, 0.25); }
.played { height: 3px; background: var(--red); }
.marks { position: absolute; inset: 0; }
.mark { position: absolute; top: 0; bottom: 0; border-left: 1.5px solid var(--ink); }
.mark span { position: absolute; z-index: 1; top: calc(var(--u) * 0.5); left: 1.5px; padding: 0 2px 1px 1.5px; background: var(--paper); font: 700 calc(var(--u) * 1.6) / 1.1 var(--sans); white-space: nowrap; color: var(--ink-2); transition: color 0.3s; }
.mark.cur span { color: var(--red-deep); }
.mark.hide span { visibility: hidden; }
.needle { position: absolute; top: -2px; bottom: -2px; left: calc(var(--u) * 1.4); width: 2px; margin-left: -1px; background: var(--red); box-shadow: 1px 0 2px rgba(0, 0, 0, 0.25); will-change: transform; pointer-events: none; }
.needle::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; border: 5px solid transparent; border-top: 7px solid var(--red); border-bottom: 0; }
.scale-empty { position: absolute; inset: 0; display: none; place-items: center; font: 400 calc(var(--u) * 2.2) / 1 var(--hand); color: var(--ink-2); }
.tuner.empty .scale-empty { display: grid; }
.tuner.empty .ticks, .tuner.empty .needle, .tuner.empty .marks, .tuner.empty .played, .tuner.empty .buffered { display: none; }
.tuner.empty .scale { cursor: default; }
.tuner.empty .clock { visibility: hidden; }
.peek { position: absolute; bottom: calc(100% + 8px); left: 0; padding: 3px 7px 4px; background: var(--ink); color: var(--paper); font: 700 12px/1.2 var(--sans); white-space: nowrap; border-radius: 2px; translate: -50% 4px; opacity: 0; pointer-events: none; transition: opacity 0.15s, translate 0.2s var(--out); z-index: 2; }
.peek.show { opacity: 1; translate: -50% 0; }
.clock { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: calc(var(--u) * 0.7); padding: 0 2px; font: 400 calc(var(--u) * 1.7) / 1 var(--black); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chap { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 calc(var(--u) * 1.6) / 1 var(--sans); color: var(--red-deep); }

/* control panel */
.panel { grid-area: panel; position: relative; display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 1.6); padding: calc(var(--u) * 1.6) calc(var(--u) * 2.2); border: 2px solid var(--ink); border-radius: calc(var(--u) * 1.8); background: var(--paper) repeating-linear-gradient(180deg, rgba(22, 22, 22, 0.07) 0 1px, transparent 1px 3px); box-shadow: inset 2px 2px 0 rgba(22, 22, 22, 0.12); }
.screw { position: absolute; width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper) linear-gradient(45deg, transparent 42%, var(--ink) 42% 58%, transparent 58%); }
.s1 { top: calc(var(--u) * 0.8); left: calc(var(--u) * 0.8); }
.s2 { top: calc(var(--u) * 0.8); right: calc(var(--u) * 0.8); }
.s3 { bottom: calc(var(--u) * 0.8); left: calc(var(--u) * 0.8); }
.s4 { bottom: calc(var(--u) * 0.8); right: calc(var(--u) * 0.8); }

.dial-plate { --plate: calc(var(--u) * 12.4); position: relative; flex: none; width: var(--plate); height: var(--plate); border-radius: 50%; border: 1.5px solid var(--ink); background: radial-gradient(circle, var(--paper) 58%, transparent 59%), repeating-conic-gradient(from -1deg, var(--ink-3) 0 2deg, transparent 2deg 15deg) var(--paper); }
.dial-nums b { position: absolute; left: 50%; top: 50%; width: 2em; margin: -0.5em 0 0 -1em; text-align: center; font: 400 calc(var(--plate) * 0.12) / 1 var(--black); color: var(--ink); transform: rotate(var(--a)) translateY(calc(var(--plate) * -0.39)) rotate(calc(var(--a) * -1)); transition: color 0.3s; }
.dial-nums b.cur { color: var(--red); }
.dial-nums b.soon { color: var(--ink-3); }
.knob { position: absolute; left: 50%; top: 50%; width: 58%; height: 58%; margin: -29% 0 0 -29%; border-radius: 50%; border: 2px solid var(--ink); background: repeating-conic-gradient(var(--ink) 0 3deg, var(--paper) 3deg 10deg); box-shadow: 0 calc(var(--u) * 0.5) 0 -1px var(--ink), 0 calc(var(--u) * 0.9) calc(var(--u) * 1.4) rgba(0, 0, 0, 0.35); cursor: grab; touch-action: none; transition: transform 0.5s var(--spring); }
.knob::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.dial-plate, .scale { touch-action: none; }
.knob:active { cursor: grabbing; }
.knob.dragging { transition: none; }
.knob-cap { position: absolute; inset: 17%; border-radius: 50%; border: 2px solid var(--ink); background: radial-gradient(circle at 34% 30%, #fff 0 22%, transparent 23%), repeating-linear-gradient(-50deg, transparent 0 2.5px, rgba(22, 22, 22, 0.3) 2.5px 3.5px) var(--paper); }
.knob-cap::before { content: ""; position: absolute; left: 50%; top: 6%; width: 3px; height: 44%; translate: -50% 0; background: var(--ink); border-radius: 2px; }
.knob-cap::after { content: ""; position: absolute; left: 50%; top: 4%; width: 7px; height: 7px; translate: -50% 0; background: var(--red); border: 1.5px solid var(--ink); border-radius: 50%; }

.keys { display: flex; gap: calc(var(--u) * 0.6); }
.key { position: relative; display: grid; place-items: center; width: calc(var(--u) * 7.2); height: calc(var(--u) * 7.2); padding: 0; border: 2px solid var(--ink); border-radius: calc(var(--u) * 0.8); background: var(--paper); color: var(--ink); box-shadow: 0 calc(var(--u) * 0.8) 0 0 var(--ink); cursor: pointer; text-decoration: none; transition: translate 0.09s, box-shadow 0.09s, background 0.2s; }
.key svg { width: 52%; height: 52%; fill: currentColor; }
.key:active, .key[aria-pressed="true"] { translate: 0 calc(var(--u) * 0.55); box-shadow: 0 calc(var(--u) * 0.25) 0 0 var(--ink); }
.key[aria-pressed="true"] { background: #e9e6dd; }
.key-play .i-pause { display: none; }
.key-play[aria-pressed="true"] .i-play { display: none; }
.key-play[aria-pressed="true"] .i-pause { display: block; }
.key-sm span { display: none; }
@media (hover: hover) {
  .key:hover { background: #fff; }
}
.grille, .power { display: none; }
.power { position: relative; flex: none; width: calc(var(--u) * 5.6); height: calc(var(--u) * 5.6); padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 0 calc(var(--u) * 0.6) 0 0 var(--ink); cursor: pointer; transition: translate 0.09s, box-shadow 0.09s; }
.power:active { translate: 0 calc(var(--u) * 0.4); box-shadow: 0 calc(var(--u) * 0.2) 0 0 var(--ink); }
.led { position: absolute; left: 50%; top: 50%; width: 34%; height: 34%; translate: -50% -50%; border-radius: 50%; border: 1.5px solid var(--ink); background: #5a1d18; transition: background 0.3s, box-shadow 0.3s; }
.tv.on .led { background: var(--red); box-shadow: 0 0 8px 2px rgba(224, 57, 45, 0.6); }

/* listing */
.guide { position: relative; width: 100%; }
.clip { position: relative; padding: 22px 18px 18px; background: var(--clip); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 14px 26px -14px rgba(0, 0, 0, 0.35); }
.clip::before, .clip::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M0 9V3.5L5 5.5L11 2.3L16 4.9L23 1.5L28 4.5L34 2.5L40 5.7L47 2.1L52 4.5L58 2.7L65 6.1L70 3.5L76 5.5L83 2.3L88 5.7L94 3.1L100 5.3L107 2.3L114 5.1L120 3.5V9z' fill='%23f3f1eb'/%3E%3C/svg%3E") repeat-x; background-size: 120px 9px; }
.clip::before { top: -8px; }
.clip::after { bottom: -8px; rotate: 180deg; }
.tape { position: absolute; top: -14px; width: 92px; height: 28px; background: rgba(236, 232, 214, 0.82); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14); z-index: 2; }
.t1 { left: -18px; rotate: -32deg; }
.t2 { right: -18px; rotate: 30deg; }
.guide-head { display: inline-block; margin: 0 0 10px 2px; padding: 3px 12px 5px; background: var(--ink); color: var(--paper); font: 900 20px/1.2 var(--serif); letter-spacing: 0.12em; rotate: -1.2deg; }

.listing { list-style: none; }
.ep { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 66px; column-gap: 12px; align-items: start; padding: 14px 8px 14px 6px; border-top: 1px dashed rgba(22, 22, 22, 0.32); transition: background 0.3s; }
.ep:first-child { border-top: 0; }
.ep::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 8px 16px -10px rgba(0, 0, 0, 0.4); opacity: 0; scale: 0.98; transition: opacity 0.3s, scale 0.4s var(--spring); }
.listing { position: relative; z-index: 0; }
.ep.on::before { opacity: 1; scale: 1; }
.ep-no { padding-top: 3px; font: 400 26px/1 var(--black); letter-spacing: -0.02em; transition: color 0.3s; }
.ep.on .ep-no { color: var(--red); }
.ep.soon .ep-no { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.ep-body { min-width: 0; }
.ep-title { font: 900 17px/1.35 var(--serif); text-wrap: pretty; }
.ep-btn { display: inline; padding: 0; border: 0; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; font: inherit; text-align: left; cursor: pointer; transition: background-size 0.4s var(--out); }
.ep-btn::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.ep-btn:focus-visible { outline: none; }
.ep-btn:focus-visible::after { outline: 2.5px solid var(--ink); outline-offset: -2px; }
.ep.on .ep-btn { background-size: 100% 2px; }
.ep-chaps { display: flex; flex-wrap: wrap; gap: 4px; margin: 7px 0 8px; }
.chip { padding: 2px 6px 3px; background: rgba(22, 22, 22, 0.07); font: 500 12px/1.3 var(--sans); color: var(--ink-2); transition: background 0.3s, color 0.3s; }
.chip.cur { background: var(--red); color: #fff; }
.ep-meta { display: flex; align-items: center; gap: 10px; min-height: 20px; font-size: 13px; }
.ep-dur { font: 400 13px/1 var(--black); font-variant-numeric: tabular-nums; }
.ep-state { color: var(--ink-2); }
.ep-state.live { display: inline-flex; align-items: center; gap: 5px; color: var(--red-deep); font-weight: 700; }
.ep-state.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.ep-state.note { font: 400 14px/1 var(--hand); }
.ep.soon .ep-state { font: 400 15px/1 var(--hand); color: var(--red-deep); }
@media (hover: hover) {
  .ep:hover .ep-btn { background-size: 100% 2px; }
  .ep:not(.on):hover { background: rgba(255, 255, 255, 0.4); }
  .ep:hover .ep-thumb { rotate: 0deg; scale: 1.05; }
}
.ep-thumb { position: relative; z-index: 0; display: block; width: 66px; aspect-ratio: 3 / 4; padding: 3px; background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 12px -6px rgba(0, 0, 0, 0.35); rotate: 1.6deg; transition: rotate 0.4s var(--spring), scale 0.4s var(--spring); pointer-events: none; }
.ep:nth-child(even) .ep-thumb { rotate: -1.4deg; }
.ep-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; background: #d9d6ce; }
.ep-thumb.blank { display: grid; place-items: center; background: var(--paper) repeating-linear-gradient(-45deg, transparent 0 4px, rgba(22, 22, 22, 0.16) 4px 5px); }
.ep-thumb.blank span { padding: 2px 4px; background: var(--paper); font: 400 12px/1.2 var(--hand); text-align: center; }
.ep-prog { position: absolute; left: 3px; right: 3px; bottom: 3px; height: 3px; background: rgba(0, 0, 0, 0.35); }
.ep-prog::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform 0.4s var(--out); }
.ep-prog[hidden] { display: none; }
.stamp { position: absolute; top: -9px; left: -16px; padding: 1px 5px 2px; border: 2px solid var(--red); border-radius: 3px; background: rgba(243, 241, 235, 0.88); color: var(--red); font: 900 12px/1.2 var(--sans); letter-spacing: 0.12em; rotate: -12deg; }
.manicule { display: none; }
.keyhint { display: none; }
.load-error { padding: 18px 8px; font: 400 16px/1.5 var(--hand); }

@media (max-width: 899.98px) {
  .page { display: flex; flex-direction: column; align-items: center; padding: max(12px, env(safe-area-inset-top)) 16px max(36px, env(safe-area-inset-bottom)); }
  .mast { max-width: 640px; }
  .mast-row { gap: 9px; padding-bottom: 8px; border-bottom-width: 3px; }
  .mast-row::after { bottom: -7px; }
  .mast-title { font-size: 30px; }
  .ransom b { font-size: 15px; }
  .ransom b:nth-child(2) { font-size: 17px; }
  .sfx { min-height: 34px; padding: 4px 10px 4px 7px; font-size: 12px; }
  .mast-line { margin-top: 11px; font-size: 12px; }
  .tv { margin-top: 8px; }
  .guide { max-width: 640px; margin-top: 30px; }
}
/* phones: thin chrome in px so the screen gets ~92% of the width, and the whole set fits the first screen */
@media (max-width: 600px) {
  :root { --mast: calc(max(6px, env(safe-area-inset-top)) + 48px); }
  .page { padding: 0 0 max(28px, env(safe-area-inset-bottom)); }
  .mast { height: var(--mast); max-width: none; padding: max(6px, env(safe-area-inset-top)) 10px 0; }
  .mast-row { height: 40px; gap: 8px; padding-bottom: 0; border-bottom-width: 2.5px; }
  .mast-row::after { bottom: -5px; border-bottom-width: 1px; }
  .mast-title { font-size: 25px; }
  .ransom b { font-size: 13px; }
  .ransom b:nth-child(2) { font-size: 14px; }
  .mast-line { display: none; }
  .sfx { position: relative; min-height: 32px; padding: 3px 10px 3px 7px; font-size: 12px; }
  .sfx::before { content: ""; position: absolute; inset: -6px -4px; }

  .tv {
    --cp: 5px;
    --bz: 4px;
    --sh: min(calc((100vw - 29px) * 16 / 9), calc(var(--vh) - var(--mast) - 151px - env(safe-area-inset-bottom)), 760px);
    margin-top: 0;
    padding-top: 14px;
  }
  .antenna { top: 0; left: 50%; width: 32px; height: 16px; }
  .cabinet { min-width: min(300px, 100vw - 8px); padding: var(--cp); row-gap: 5px; }
  .cabinet::before { border-width: 2px; border-radius: 14px; }
  .cabinet::after { display: none; }
  .depth { translate: 3px 3px; border-width: 2px; border-radius: 14px; box-shadow: 2px 5px 9px rgba(0, 0, 0, 0.28); }
  .shade { border-radius: 14px; }
  .feet { display: none; }
  .bezel { padding: var(--bz); border-radius: 11px; box-shadow: inset 0 0 0 1.5px #2a2a29, inset 0 0 0 2px rgba(251, 250, 246, 0.2); }
  .bezel::after { inset: calc(var(--bz) - 1px); border-radius: 8px; }
  .screen { border-radius: 8px / 7px; }

  .tuner { justify-self: stretch; width: auto; }
  .scale { height: 30px; border-radius: 7px; }
  .scale-paper { left: 8px; right: 8px; }
  .needle { left: 8px; }
  .mark span { top: 3px; font-size: 10px; }
  .scale-empty { font-size: 13px; }
  .clock { margin-top: 3px; font-size: 11px; gap: 6px; }
  .chap { font-size: 11px; }

  .panel { gap: 6px; padding: 5px 8px; border-width: 1.5px; border-radius: 10px; }
  .screw { width: 6px; height: 6px; border-width: 1px; }
  .s1, .s2 { top: 3px; }
  .s3, .s4 { bottom: 3px; }
  .s1, .s3 { left: 3px; }
  .s2, .s4 { right: 3px; }
  .dial-plate { --plate: 47px; margin-left: 4px; }
  .dial-nums b { font-size: 7px; }
  .keys { flex: 1; justify-content: center; gap: 6px; }
  .keys-minor { flex: none; }
  .key { width: auto; flex: 0 1 52px; min-width: 44px; height: 44px; border-radius: 7px; box-shadow: 0 3px 0 0 var(--ink); }
  .key-play { flex-basis: 60px; }
  .key-sm { flex: none; width: 44px; }
  .key svg { width: 22px; height: 22px; }
  .key:active, .key[aria-pressed="true"] { translate: 0 2px; box-shadow: 0 1px 0 0 var(--ink); }

  .guide { margin-top: 30px; padding: 0 10px; }
  .clip { padding: 16px 10px 8px; }
  .tape { width: 70px; height: 22px; top: -11px; }
  .t1 { left: -10px; }
  .t2 { right: -10px; }
  .guide-head { font-size: 17px; margin-bottom: 4px; }
  .ep { grid-template-columns: 30px minmax(0, 1fr) 60px; column-gap: 10px; align-items: center; padding: 10px 6px 10px 4px; }
  .ep-no { align-self: start; padding-top: 2px; font-size: 21px; }
  .ep-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 16px; line-height: 1.3; }
  .ep-chaps { flex-wrap: nowrap; overflow: hidden; margin: 5px 0 4px; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
  .chip { flex: none; padding: 1px 5px 2px; font-size: 11px; }
  .ep-meta { height: 18px; gap: 8px; white-space: nowrap; }
  .ep-thumb { width: 60px; }
  .stamp { top: -7px; left: -12px; font-size: 11px; }
}

@media (min-width: 900px) {
  .page {
    display: grid;
    grid-template-columns: auto minmax(340px, 560px);
    grid-template-rows: auto 1fr;
    grid-template-areas: "tv mast" "tv guide";
    justify-content: center;
    column-gap: clamp(96px, 9vw, 150px);
    padding: 26px clamp(24px, 4vw, 64px) 48px;
    min-height: 100vh;
  }
  .mast { grid-area: mast; padding-top: 10px; }
  .guide { grid-area: guide; margin-top: 34px; align-self: start; }
  .tv {
    grid-area: tv;
    align-self: start;
    position: sticky;
    top: 26px;
    --sh: min(calc((var(--vh) - 56px) / 1.345), calc((100vw - 600px) / 0.95), 760px);
    padding-top: calc(var(--u) * 11);
  }
  .antenna { height: calc(var(--u) * 11); width: calc(var(--u) * 22); left: calc(var(--u) * 3.4 + var(--sw) / 2 + var(--b)); }
  .cabinet {
    grid-template-columns: auto calc(var(--u) * 20);
    grid-template-areas: "bezel panel" "tuner panel";
    column-gap: calc(var(--u) * 2.8);
    row-gap: calc(var(--u) * 1.6);
    padding: calc(var(--u) * 3.4) calc(var(--u) * 2.6) calc(var(--u) * 2.6) calc(var(--u) * 3.4);
  }
  .panel { flex-direction: column; justify-content: flex-start; gap: calc(var(--u) * 2.6); padding: calc(var(--u) * 3.4) calc(var(--u) * 1.4) calc(var(--u) * 2.6); }
  .dial-plate { --plate: calc(var(--u) * 16.4); margin-top: calc(var(--u) * 0.4); }
  .keys { gap: calc(var(--u) * 0.6); }
  .key { width: calc(var(--u) * 5.3); height: calc(var(--u) * 7.6); }
  .key svg { width: 66%; height: 66%; }
  .key-sm { width: calc(var(--u) * 17.1); height: calc(var(--u) * 4.8); display: flex; gap: 5px; justify-content: center; font: 700 calc(var(--u) * 1.6) / 1 var(--sans); }
  .key-sm svg { width: 1.25em; height: 1.25em; }
  .key-sm span { display: inline; }
  .grille { display: block; flex: 1; width: 100%; min-height: calc(var(--u) * 8); border: 1.5px solid var(--ink); border-radius: calc(var(--u) * 0.8); background: radial-gradient(circle, var(--ink) 0 38%, transparent 42%) 0 0 / calc(var(--u) * 1.25) calc(var(--u) * 1.25) content-box, var(--paper); padding: calc(var(--u) * 1); }
  .power { display: block; }
  .feet { margin: 0 calc(var(--u) * 9); }
  .manicule { display: block; position: absolute; left: -124px; top: 0; z-index: 3; width: 108px; height: auto; opacity: 0; translate: -30px var(--y, 0); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.25)); transition: translate 0.6s var(--spring), opacity 0.3s; pointer-events: none; will-change: translate; }
  .manicule.show { opacity: 1; translate: 0 var(--y, 0); }
  .ep { grid-template-columns: 52px minmax(0, 1fr) 78px; column-gap: 14px; padding: 16px 12px 16px 10px; }
  .ep-no { font-size: 32px; }
  .ep-title { font-size: 19px; }
  .ep-thumb { width: 78px; }
  .keyhint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(22, 22, 22, 0.32); font-size: 12.5px; color: var(--ink-2); }
  .keyhint .gap { width: 12px; }
  kbd { display: inline-block; min-width: 22px; padding: 1px 5px 2px; border: 1px solid var(--ink-3); border-bottom-width: 2px; border-radius: 3px; font: 700 11.5px/1.4 var(--sans); text-align: center; color: var(--ink); background: var(--paper); }
}
@media (min-width: 900px) and (hover: none) {
  .keyhint { display: none; }
}

.screen:fullscreen { width: 100vw; height: 100vh; border-radius: 0; background: #000; }
.screen:fullscreen video { object-fit: contain; background: #000; }
.screen:fullscreen .crt { display: none; }
.screen:-webkit-full-screen { width: 100vw; height: 100vh; border-radius: 0; background: #000; }
.screen:-webkit-full-screen video { object-fit: contain; background: #000; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
