/* Replays (2026-10-06, redesigned after the owner's "we can make this a better design"): the home page's room, its TV
   in the wood cabinet with a VCR deck, a channel-guide strip for the days, and a row of picture cards per show */
:root {
  --wallpaper: #1b2a2f;
  --wallpaper-stripe: #1f3137;
  --wood: #5a3620;
  --wood-light: #74462a;
  --wood-dark: #3a2213;
  --bezel: #17161a;
  --room-text: #d8e3df;
  --room-muted: #9fb2ad;
  --station-blue: #1747a6;
  --station-navy: #0c2a66;
  --station-red: #d8262f;
  --chrome: #f2c14e;
  --paper: #fff6dc;
  --guide-bg: #0a1a4a;
  --guide-bg-2: #0e2260;
  --guide-cell: #1c3a9e;
  --guide-line: #06112f;
  --guide-text: #b9c6ee;
  --lcd: #7dff9a;
  --pixel-font: "Pixelify Sans", system-ui, sans-serif;
  --broadcast-font: "Jersey 10", "Pixelify Sans", system-ui, sans-serif;
  --body-font: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body {
  margin: 0;
  padding: 0 16px 48px;
  color: var(--room-text);
  font: 16px/1.5 var(--body-font);
  background-color: var(--wallpaper);
  background-image: repeating-linear-gradient(90deg, transparent 0 22px, var(--wallpaper-stripe) 22px 26px);
}
a { color: var(--chrome); }
.top, main, footer { max-width: 1240px; margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font: 400 26px/1 var(--broadcast-font); }
.logo { padding: 4px 8px 6px; background: var(--station-blue); color: #fff; box-shadow: inset 0 -3px 0 var(--station-red); }
.watch-top { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font: 600 15px var(--pixel-font); color: #fff; background: var(--station-red); text-decoration: none; border: 2px solid #0b1745; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* The stage: the TV in its cabinet, and what's playing */
.stage { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 26px; align-items: stretch; margin-top: 6px; }
/* the right column runs as tall as the TV and its VCR: what's playing, then what's next on the tape */
.player { align-self: start; }
/* (it takes the player's height, never adds to it: the list scrolls inside when it's longer) */
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; height: 0; min-height: 100%; }
.upnext { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 14px 16px; background: #0a1438; border: 3px solid #1d3a9a; box-shadow: 0 0 0 3px #0b1745; }
.upnext h2 { margin: 0 0 10px; font: 400 22px/1 var(--broadcast-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--chrome); }
.upnext ol { flex: 1; display: grid; align-content: start; gap: 8px; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.upnext li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; cursor: pointer; }
.upnext li:hover, .upnext li:focus-visible { border-color: var(--chrome); outline: none; }
.upnext .mini { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 40%, #183a9a, #07112e 75%); overflow: hidden; }
.upnext .mini img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.upnext .mini span { position: absolute; bottom: 3px; right: 3px; padding: 0 4px; font: 600 10px var(--pixel-font); color: #fff; background: rgba(0, 0, 0, 0.75); }
.upnext strong { display: block; font: 400 17px/1.05 var(--broadcast-font); color: var(--paper); }
.upnext small { display: block; margin-top: 3px; font: 600 11px var(--pixel-font); color: var(--chrome); }
.tv {
  padding: clamp(10px, 1.8vw, 22px) clamp(10px, 1.8vw, 22px) 0;
  border-radius: clamp(10px, 1.6vw, 18px);
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(178deg, transparent 0 7px, rgba(0, 0, 0, 0.12) 7px 9px, transparent 9px 15px, rgba(255, 220, 180, 0.05) 15px 16px),
    linear-gradient(180deg, var(--wood-light), var(--wood) 40%, var(--wood-dark));
  box-shadow: inset 0 2px 0 rgba(255, 220, 180, 0.18), inset 0 -3px 0 rgba(0, 0, 0, 0.35), 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 90px rgba(70, 120, 230, 0.16);
}
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050608;
  border-radius: 3.5% / 6%;
  box-shadow: 0 0 0 clamp(6px, 1vw, 12px) var(--bezel), 0 0 0 calc(clamp(6px, 1vw, 12px) + 2px) #000;
}
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; font: 400 20px var(--pixel-font); color: var(--guide-text); background: radial-gradient(circle at 50% 45%, #10245e, #050a1c 70%); }
.idle-logo { padding: 6px 14px 10px; font: 400 56px/1 var(--broadcast-font); color: #fff; background: var(--station-blue); box-shadow: inset 0 -5px 0 var(--station-red); }

/* The VCR under the TV (2026-10-07, owner: "make this look more like a vcr"): a black deck with silver trim, a tape in
   its slot with the segment on the label, a glowing display, and chunky keys */
.player { display: grid; gap: 0; }
.tv { padding-bottom: clamp(10px, 1.8vw, 22px); }
.vcr {
  display: grid;
  /* the tape and its keys at their size; the display takes the rest, and gives it up first when the window narrows
     (2026-10-07, owner: "make the digital screen wider... reduce size of digital screen... we can sacrifice the real estate") */
  grid-template-columns: auto minmax(120px, 1fr);
  gap: 16px;
  align-items: stretch;
  margin: 10px 0 0; /* (as wide as the TV, owner: "so you can see the tape") */
  padding: 12px 16px;
  background: linear-gradient(180deg, #2b2b30 0%, #19191d 55%, #111114 100%);
  border-radius: 6px 6px 10px 10px;
  border-top: 2px solid #5b5b63;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -4px 0 rgba(0, 0, 0, 0.5), 0 18px 30px rgba(0, 0, 0, 0.5), 0 3px 0 #08080a;
  position: relative;
}
.vcr::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -8px; height: 8px; background: repeating-linear-gradient(90deg, #0b0b0d 0 26px, transparent 26px calc(100% - 26px), #0b0b0d calc(100% - 26px)); border-radius: 0 0 4px 4px; }
.vcr-left { display: grid; align-content: space-between; gap: 8px; min-width: 0; overflow: hidden; }
.slot { justify-self: start; width: min(100%, 330px); overflow: hidden; padding: 5px; background: #050506; border-radius: 3px; box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.08); }
.tape { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; padding: 7px 8px; background: #141416; border-top: 4px solid #2a2a2e; border-bottom: 3px solid #0c0c0e; border-radius: 2px; }
.tape-text { flex: 1; min-width: 0; display: grid; padding: 4px 8px; background: #f3ead2; border-left: 4px solid var(--station-red); }
.tape-text small { font: 600 10px/1.2 var(--pixel-font); color: #7a6a4a; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tape-brand { padding: 1px 5px 2px; font: 400 15px/1 var(--broadcast-font); color: #fff; background: var(--station-blue); box-shadow: inset 0 -2px 0 var(--station-red); }
.tape-label { min-width: 0; font: 600 13px/1.3 var(--pixel-font); color: #2a2216; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate { display: flex; align-items: baseline; gap: 5px; margin-right: 8px; font: 400 17px/1 var(--broadcast-font); letter-spacing: 0.08em; color: #c9c9d1; text-shadow: 0 1px 0 #000; }
.plate b { font-weight: 400; color: #f2f2f6; text-shadow: 0 1px 0 #000, 0 0 6px rgba(255, 255, 255, 0.15); }
.plate i { margin-left: auto; font: 600 11px var(--pixel-font); font-style: normal; letter-spacing: 0.1em; color: #7b7b85; }
.vfd { container-type: inline-size; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 4px 10px; padding: 8px 12px; background: #04110c; border: 2px solid #000; border-radius: 4px; box-shadow: inset 0 0 18px rgba(0, 255, 170, 0.08), 0 1px 0 rgba(255, 255, 255, 0.07); }
.vfd-top { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; font: 600 12px var(--pixel-font); letter-spacing: 0.08em; color: #6ff5c7; text-shadow: 0 0 6px rgba(111, 245, 199, 0.7); }
.vfd-tags { color: rgba(111, 245, 199, 0.55); }
.vfd-tags b { font-weight: 600; color: rgba(111, 245, 199, 0.85); }
.counter { font: 400 clamp(20px, 13cqw, 40px)/1 var(--broadcast-font); letter-spacing: 0.06em; color: #8dffd8; text-shadow: 0 0 10px rgba(111, 245, 199, 0.75); font-variant-numeric: tabular-nums; }
.vfd-total { align-self: end; font: 600 12px var(--pixel-font); color: rgba(111, 245, 199, 0.6); }
/* (a narrow display keeps what matters: the mode, the counter, the tape) */
@container (max-width: 230px) {
  .vfd-tags, .vfd-total { display: none; }
}
.scrub { grid-column: 1 / -1; height: 8px; background: rgba(111, 245, 199, 0.12); cursor: pointer; overflow: hidden; }
.scrub .fill { width: 0; height: 100%; background: #6ff5c7; box-shadow: 0 0 8px rgba(111, 245, 199, 0.9); }
.vcr-buttons { display: flex; align-items: center; gap: 6px; }
.key { display: grid; justify-items: center; gap: 2px; min-width: 44px; padding: 6px 6px 5px; font: 15px/1 var(--body-font); color: #e9e9ef; background: linear-gradient(180deg, #46464e, #2a2a30); border: 1px solid #000; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 3px 0 #08080a; cursor: pointer; }
.key small { font: 600 9px var(--pixel-font); letter-spacing: 0.1em; color: #a9a9b3; }
.key:hover { background: linear-gradient(180deg, #55555e, #33333a); }
.key:active, .key.on { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 #08080a; }
.key.play { color: #1a1206; background: linear-gradient(180deg, #ffd978, var(--chrome)); }
.key.play small { color: #5a4210; }
.power { width: 10px; height: 10px; margin-left: 6px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; }

/* What's playing */
.now { padding: 20px 20px 18px; background: var(--guide-bg); border: 3px solid #2f56c8; box-shadow: 0 0 0 3px #0b1745; }
.now-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 3px 10px; font: 400 18px/1 var(--broadcast-font); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--station-red); }
.rec { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.now-title { margin: 12px 0 0; font: 400 40px/1 var(--broadcast-font); color: var(--paper); text-wrap: balance; }
.now-meta { margin: 6px 0 0; font: 600 15px var(--pixel-font); color: var(--chrome); }
.now-first { margin: 12px 0 0; font-size: 16px; color: var(--guide-text); }
.now-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn { padding: 9px 16px; font: 700 15px var(--body-font); color: #1a1206; background: var(--chrome); border: 2px solid #8a6514; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: 0.65; cursor: default; }
.btn.ghost { color: var(--paper); background: transparent; border-color: rgba(255, 255, 255, 0.28); }
.clip-note { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--guide-text); }
.sources { margin-top: 6px; }
.sources summary { font: 600 15px var(--pixel-font); color: var(--paper); cursor: pointer; }
.sources ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.fine { margin: 14px 0 0; font-size: 12px; color: #8b9acb; }

/* The guide strip: the days, Music, and search */
.guide { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 34px 0 18px; background: var(--guide-bg); border: 3px solid #2f56c8; box-shadow: 0 0 0 3px #0b1745; }
.guide-title { display: grid; place-items: center; padding: 8px 18px; font: 400 30px/1 var(--broadcast-font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--chrome); background: #2347c4; border-right: 2px solid #0b1745; }
.days { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.day { flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; min-width: 92px; padding: 8px 12px; font: 600 13px var(--pixel-font); color: var(--guide-text); background: transparent; border: 0; border-right: 2px solid var(--guide-line); cursor: pointer; }
.day strong { font: 400 22px/1 var(--broadcast-font); color: #fff; }
.day small { font-size: 11px; opacity: 0.8; }
.day[aria-selected="true"] { color: #1a1206; background: var(--chrome); }
.day[aria-selected="true"] strong { color: #1a1206; }
.day.music { color: #ffd1e6; }
.search { display: flex; align-items: center; padding: 8px 12px; border-left: 2px solid var(--guide-line); }
.search input { width: min(320px, 70vw); padding: 8px 10px; font: 15px var(--body-font); color: #fff; background: #050d2a; border: 2px solid #2f56c8; }

/* Rows of cards, one per show (or act, or the search's results) */
.row { margin: 0 0 26px; }
.row-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.row-head h2 { margin: 0; font: 400 28px/1 var(--broadcast-font); letter-spacing: 0.03em; color: var(--paper); }
.row-head span { font: 600 13px var(--pixel-font); color: var(--room-muted); }
.show-all { margin-left: auto; padding: 6px 12px; font: 600 13px var(--pixel-font); color: var(--chrome); white-space: nowrap; background: none; border: 2px solid var(--chrome); cursor: pointer; }
.show-all:hover, .show-all:focus-visible { color: #1a1206; background: var(--chrome); outline: none; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 4px 2px 12px; }
.card { position: relative; display: grid; align-content: start; gap: 0; padding: 0; text-align: left; color: inherit; background: #0b1530; border: 2px solid #1b2f6e; cursor: pointer; scroll-snap-align: start; transition: transform 0.12s, border-color 0.12s; }
.card:hover, .card:focus-visible { border-color: var(--chrome); transform: translateY(-2px); outline: none; }
.card.playing { border-color: var(--station-red); box-shadow: 0 0 0 2px var(--station-red); }
.card.removed { opacity: 0.4; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 40%, #183a9a, #07112e 75%); overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 400 30px/1 var(--broadcast-font); color: rgba(255, 255, 255, 0.85); }
.badge { position: absolute; bottom: 6px; right: 6px; padding: 1px 6px; font: 600 12px var(--pixel-font); color: #fff; background: rgba(0, 0, 0, 0.75); }
.badge.left { left: 6px; right: auto; background: var(--station-red); }
.badge.pick { top: 6px; bottom: auto; left: 6px; right: auto; color: #1a1206; background: var(--chrome); }
.card-body { display: grid; gap: 3px; padding: 9px 11px 11px; }
.card-title { font: 400 20px/1.05 var(--broadcast-font); color: var(--paper); }
.card-when { font: 600 12px var(--pixel-font); color: var(--chrome); }
.card-first { display: -webkit-box; margin: 2px 0 0; font-size: 13px; line-height: 1.35; color: var(--guide-text); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.owner-strip { display: flex; align-items: center; gap: 6px; padding: 0 11px 10px; font: 600 12px var(--body-font); color: var(--room-muted); }
.owner-strip .up { color: #7fd38a; }
.owner-strip .down { color: #f08a8a; }
.mark { margin-left: auto; padding: 1px 7px; font: 700 13px var(--body-font); color: var(--paper); background: transparent; border: 1px solid rgba(255, 255, 255, 0.28); cursor: pointer; }
.mark + .mark { margin-left: 0; }
.mark[aria-pressed="true"] { color: #1a1206; background: var(--chrome); border-color: var(--chrome); }
.owner-bar { margin: -6px 0 18px; padding: 8px 12px; font-size: 14px; background: rgba(216, 38, 47, 0.16); border: 1px solid rgba(216, 38, 47, 0.45); }
.empty { color: var(--room-muted); }

footer { margin-top: 44px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: var(--room-muted); }
.link { padding: 0; font: inherit; color: var(--chrome); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.owner-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.owner-form input { padding: 7px 10px; font: 15px var(--body-font); }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .side { height: auto; min-height: 0; }
  .upnext ol { overflow: visible; }
  .now-title { font-size: 32px; }
  .vcr { margin: 10px 0 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .guide-title { width: 100%; border-right: 0; border-bottom: 2px solid #0b1745; }
  .days { flex: 1 1 100%; } /* (its own line: squeezed between the title and the search, it was 0 wide) */
  .search { width: 100%; border-left: 0; border-top: 2px solid var(--guide-line); }
  .search input { width: 100%; }
  .cards { gap: 10px; }
  .row-head { flex-wrap: wrap; }
  .vcr { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .slot { width: 100%; }
  .plate { display: none; }
  .counter { font-size: 28px; }
  .key { min-width: 0; flex: 1; }
}
