/* Radio Days — colors and fonts from the approved mockup (see CLAUDE.md) */
:root {
  --bg: #1E1712;
  --panel: #2A2019;
  --border: #4A3B2E;
  --text: #F3EAD8;
  --muted: #B8AA92;
  --amber: #E8A33D;
  --amber-hover: #F5C46E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

.radio {
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  text-align: center;
}

.brand h1 {
  font-family: "Limelight", serif;
  font-weight: 400;
  font-size: 2.4rem;
  margin: 0;
  color: var(--amber);
  text-shadow: 0 0 18px rgba(232, 163, 61, 0.35);
}
.tagline { margin: 4px 0 0; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem; }
.now-serving {
  display: inline-block; margin: 12px 0 0; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--amber); font-size: 0.9rem; letter-spacing: 0.02em;
}
.now-serving-label { display: block; color: var(--muted); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }
.now-serving[hidden] { display: none; }

.on-air-label {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 24px 0 8px; padding: 4px 12px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.playing .lamp { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

/* Art deco frame (Dennis, 2026-10-10): a brass bezel with a dark inner line and a fine brass
   hairline, stepped deco corners at the top, streamline bars beside the magic eye (in the SVG)
   and a stepped brass base under the network buttons. */
.dial {
  --brass: #D4AE62; --brass-hi: #F2D898; --brass-lo: #7A5A2A;
  position: relative;
  border: 5px solid transparent;
  border-radius: 22px 22px 10px 10px;
  padding: 14px 14px 0;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23D4AE62%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22square%22%3E%20%3Cpath%20d%3D%22M3%2046V12a9%209%200%200%201%209-9h34%22/%3E%20%3Cpath%20d%3D%22M9%2040V16h7V9h24%22%20opacity%3D%22.85%22/%3E%20%3Cpath%20d%3D%22M15%2034V22h7v-7h12%22%20opacity%3D%22.65%22/%3E%20%3Cpath%20d%3D%22M21%2028h7v-7%22%20opacity%3D%22.5%22/%3E%20%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%221.8%22%20fill%3D%22%23F2D898%22%20stroke%3D%22none%22/%3E%20%3C/svg%3E") top 7px left 7px / 40px 40px no-repeat,
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, var(--brass-hi), var(--brass) 25%, var(--brass-lo) 50%, var(--brass) 75%, var(--brass-hi)) border-box;
  box-shadow: inset 0 0 0 2px #120D0A, inset 0 0 0 3px rgba(212,174,98,0.55), 0 6px 18px rgba(0,0,0,0.5);
}
/* Mirror the right-hand corner: a second layer can't be flipped, so draw it with a pseudo-element. */
.dial::after {
  content: ""; position: absolute; top: 7px; right: 7px; width: 40px; height: 40px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23D4AE62%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22square%22%3E%20%3Cpath%20d%3D%22M3%2046V12a9%209%200%200%201%209-9h34%22/%3E%20%3Cpath%20d%3D%22M9%2040V16h7V9h24%22%20opacity%3D%22.85%22/%3E%20%3Cpath%20d%3D%22M15%2034V22h7v-7h12%22%20opacity%3D%22.65%22/%3E%20%3Cpath%20d%3D%22M21%2028h7v-7%22%20opacity%3D%22.5%22/%3E%20%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%221.8%22%20fill%3D%22%23F2D898%22%20stroke%3D%22none%22/%3E%20%3C/svg%3E") center / 40px 40px no-repeat; transform: scaleX(-1); pointer-events: none;
}
.dial .presets { position: relative; margin: 0; padding: 16px 4px 14px; border-top: 0;
  background: linear-gradient(var(--brass-lo), var(--brass-lo)) top 0 center / 60% 1px no-repeat,
              linear-gradient(var(--brass), var(--brass)) top 4px center / 80% 2px no-repeat,
              linear-gradient(var(--brass-lo), var(--brass-lo)) top 9px center / 100% 1px no-repeat; }
.dial svg { display: block; width: 100%; height: auto; }
#needle { transition: transform 0.5s linear; transform-origin: 150px 150px; }
.tick { stroke: var(--muted); stroke-width: 1.5; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 4px 14px; border-top: 1px solid var(--border); }
.preset {
  position: relative; min-height: 31px; height: 31px; padding: 0 2px; border-radius: 5px; cursor: pointer;
  font: 600 0.8rem/1.1 "Josefin Sans", sans-serif; letter-spacing: 0.04em; text-transform: uppercase;
  color: #3A2C1E; background: linear-gradient(#F3EAD8, #D9C9A8); border: 1px solid #8C7556;
  box-shadow: 0 2px 0 #6B5640, 0 3px 4px rgba(0,0,0,0.45); transition: transform 0.08s, box-shadow 0.08s;
}
.preset:active, .preset.pressed { transform: translateY(1px); box-shadow: 0 1px 0 #6B5640, 0 2px 3px rgba(0,0,0,0.45); background: linear-gradient(#E3D6BA, #CDBB97); }
.preset:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }
/* Hover and lit buttons (Dennis, 2026-10-11): the mouse brightens a button; the network playing
   glows amber, like a backlit push-button on an old set. Hover only where there's a mouse. */
.preset { transition: transform 0.08s, box-shadow 0.15s, background 0.15s, color 0.15s; }
@media (hover: hover) {
  .preset:hover { background: linear-gradient(#FFF8E8, #EBDCBC); border-color: var(--amber-hover); color: #1E1712; }
}
.preset.pressed, .preset.pressed:hover {
  color: #2A1A08; border-color: #F5C46E;
  background: radial-gradient(ellipse at 50% 40%, #FFE3A3 0%, #F5C46E 45%, #E8A33D 100%);
  box-shadow: 0 1px 0 #6B5640, 0 0 10px 2px rgba(245,196,110,0.75), 0 0 22px 4px rgba(232,163,61,0.35);
}
/* The buttons look 31px tall (Dennis, 2026-10-11: 30% shorter), but each keeps a 44px tap area. */
.preset::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; bottom: -7px; }
.magic-eye .eye-face, .magic-eye .eye-halo { transition: opacity 0.6s ease; }
.magic-eye .eye-face { opacity: 0.4; }
.magic-eye .eye-halo { opacity: 0; }
.magic-eye.lit .eye-face { opacity: 1; }
.magic-eye.lit .eye-halo { opacity: 0.55; }
.tick-label { fill: var(--muted); font-size: 11px; font-family: "Josefin Sans", sans-serif; }

.now-playing { margin: 20px 0 8px; min-height: 96px; }
.series { margin: 0; color: var(--amber); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; font-weight: 600; }
.title { font-family: "Limelight", serif; font-weight: 400; font-size: 1.4rem; margin: 6px 0; }
.meta { margin: 0; color: var(--muted); font-size: 0.95rem; }

.progress input[type="range"] {
  width: 100%; height: 44px; margin: 0;
  accent-color: var(--amber);
  background: transparent; cursor: pointer;
}
.progress input[type="range"]:disabled { cursor: default; opacity: 0.85; }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

.controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin: 20px 0; }
.ctl {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer;
}
.ctl svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ctl.play { width: 76px; height: 76px; background: var(--amber); color: var(--bg); border-color: var(--amber); }
.ctl.play svg { width: 30px; height: 30px; }
.ctl:hover { border-color: var(--amber-hover); color: var(--amber-hover); }
.ctl.play:hover { background: var(--amber-hover); color: var(--bg); }
.ctl:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; }
.ctl:disabled { opacity: 0.4; cursor: default; }

.source a { color: var(--amber); display: inline-block; padding: 12px 4px; min-height: 44px; }
.source a:hover { color: var(--amber-hover); }
.status { color: var(--muted); font-size: 0.9rem; min-height: 1.4em; }

/* ---------- Stations screen ---------- */
[hidden] { display: none !important; }

.section-title {
  font-family: "Limelight", serif; font-weight: 400;
  font-size: 1.5rem; margin: 28px 0 4px; color: var(--text);
}
.hint { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }
.back.install { padding: 0 16px; margin: -4px 0 16px; }

.station-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.station {
  width: 100%; min-height: 72px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px;
  font: inherit; text-align: left; cursor: pointer;
}
.station:hover { border-color: var(--amber-hover); }
.station:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; }
.station-dial {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--amber); display: grid; place-items: center;
  box-shadow: 0 0 12px rgba(232, 163, 61, 0.25);
}
.station-dial svg { width: 22px; height: 22px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }
.station-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.station-name { font-family: "Limelight", serif; font-size: 1.15rem; }
.station-meta { color: var(--muted); font-size: 0.85rem; }
.station.all .station-dial { background: var(--amber); }
.station.all .station-dial svg { stroke: var(--bg); }

/* ---------- On Air top bar ---------- */
.onair-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 0 12px; }
.onair-top .on-air-label { margin: 0; max-width: 60%; }
#station-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 0 12px 0 6px;
  background: none; color: var(--amber);
  border: 1px solid var(--border); border-radius: 999px;
  font: inherit; font-size: 0.95rem; cursor: pointer;
}
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { color: var(--amber-hover); border-color: var(--amber-hover); }
.back:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; }

/* ---------- Thumbs ---------- */
.thumbs { display: flex; justify-content: center; gap: 40px; margin: 4px 0 8px; }
.thumb {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; color: var(--muted);
  border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer;
}
.thumb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thumb:hover { color: var(--amber-hover); border-color: var(--amber-hover); }
.thumb:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; }
.thumb.up[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--bg); }
.why { color: var(--amber); font-size: 0.9rem; min-height: 1.3em; margin: 4px 0 0; }

/* ---------- Liner Notes ---------- */
.notes-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin: 8px 0; padding: 0 16px;
  background: none; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  font: inherit; font-size: 0.95rem; cursor: pointer;
}
.notes-toggle svg { width: 20px; height: 20px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notes-toggle[aria-expanded="true"], .notes-toggle:hover { border-color: var(--amber-hover); color: var(--amber-hover); }
.notes-toggle:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; }

.liner-notes {
  text-align: left; margin: 4px 0 16px; padding: 18px 18px 8px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  line-height: 1.55;
}
.liner-notes h3 { font-family: "Limelight", serif; font-weight: 400; font-size: 1.15rem; margin: 0 0 6px; color: var(--amber); }
.liner-notes h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; font-weight: 600; }
.liner-notes p { margin: 0 0 10px; }
.liner-notes dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 10px; font-size: 0.95rem; }
.liner-notes dt { color: var(--muted); }
.liner-notes dd { margin: 0; }
.liner-notes .curator { border-left: 3px solid var(--amber); padding: 4px 0 4px 12px; font-style: italic; }
.liner-notes .pending { color: var(--muted); font-style: italic; }
.liner-notes .sources { font-size: 0.85rem; color: var(--muted); padding-left: 18px; margin: 0 0 10px; }
.liner-notes a { color: var(--amber); }
.liner-notes a:hover { color: var(--amber-hover); }

/* ---------- Genre groups on the Stations screen ---------- */
.station-list > li.genre { margin-top: 14px; }
.genre-heading {
  font-family: "Limelight", serif; font-weight: 400; font-size: 1.2rem;
  color: var(--amber); margin: 0 0 8px; padding-left: 4px;
}
.station.genre-station { border-color: var(--amber); }
.station.genre-station .station-name { color: var(--amber); font-size: 1.25rem; }
.station.special .station-dial { border-style: dashed; }
.show-list {
  list-style: none; margin: 10px 0 0 14px; padding: 0 0 0 12px;
  border-left: 2px solid var(--border);
  display: grid; gap: 10px;
}
.station.show { min-height: 60px; padding: 10px 14px; }
.station.show .station-dial { width: 36px; height: 36px; }
.station.show .station-dial svg { width: 18px; height: 18px; }
.station.show .station-name { font-size: 1.05rem; }

/* ---------- Collapsible genres ---------- */
.genre-row { display: flex; align-items: stretch; gap: 8px; }
.genre-toggle {
  flex: 1; min-height: 56px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--panel); color: var(--amber);
  border: 1px solid var(--border); border-radius: 14px;
  font: inherit; text-align: left; cursor: pointer;
}
.genre-toggle .genre-name { font-family: "Limelight", serif; font-size: 1.2rem; }
.genre-toggle .genre-count { margin-left: auto; color: var(--muted); font-size: 0.85rem; }
.genre-toggle .chevron { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.genre-toggle[aria-expanded="true"] .chevron { transform: rotate(90deg); }
.genre-toggle:hover, .genre-play:hover { border-color: var(--amber-hover); }
.genre-toggle:focus-visible, .genre-play:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; }
.genre-play {
  flex: none; min-width: 56px; min-height: 56px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 10px;
  background: var(--amber); color: var(--bg);
  border: 1px solid var(--amber); border-radius: 14px;
  font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.genre-play svg { width: 18px; height: 18px; fill: currentColor; }
.genre-play:hover { background: var(--amber-hover); }
.station-list > li.genre { margin-top: 10px; }

/* ---------- Start your own station ---------- */
.finder { text-align: left; margin: 0 0 16px; }
.finder-label { display: block; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 4px; }
#finder-input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  font: inherit; font-size: 1rem;
}
#finder-input::placeholder { color: var(--muted); }
#finder-input:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }
.finder-results { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.finder-result {
  width: 100%; min-height: 52px; padding: 8px 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font: inherit; text-align: left; cursor: pointer;
}
.finder-result:hover { border-color: var(--amber-hover); }
.finder-result:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }
.finder-name { font-weight: 600; }
.finder-meta { color: var(--muted); font-size: 0.85rem; }
.finder-none { color: var(--muted); font-size: 0.9rem; padding: 8px 4px; }

.my-heading { font-family: "Limelight", serif; font-weight: 400; font-size: 1.2rem; color: var(--amber); margin: 14px 0 0 4px; text-align: left; }
.station-list > li.custom { display: flex; gap: 8px; align-items: stretch; }
.station-list > li.custom .station { flex: 1; }
.remove-station {
  flex: none; width: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; color: var(--muted);
  border: 1px solid var(--border); border-radius: 14px; cursor: pointer;
}
.remove-station svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.remove-station:hover { color: var(--amber-hover); border-color: var(--amber-hover); }
.remove-station:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; }

/* ---------- Picks (recommended stars) ---------- */
.picks { text-align: left; margin: 0 0 18px; }
.picks-heading { font-family: "Limelight", serif; font-weight: 400; font-size: 1.2rem; color: var(--text); margin: 0 0 10px 4px; }
.pick-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.pick {
  flex: 0 0 132px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 0; background: none; border: none; color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.pick-art {
  width: 132px; height: 132px; border-radius: 12px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 110%, rgba(232,163,61,0.55), rgba(232,163,61,0) 70%), var(--panel);
  border: 1px solid var(--border);
}
.pick-initials {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--amber); color: var(--amber);
  font-family: "Limelight", serif; font-size: 1.6rem;
  box-shadow: 0 0 14px rgba(232,163,61,0.3);
}
.pick:hover .pick-art { border-color: var(--amber-hover); }
.pick:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; border-radius: 12px; }
.pick-name { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.pick-meta { color: var(--muted); font-size: 0.78rem; line-height: 1.25; }

/* ---------- Evening stations ---------- */
.station.evening { border-color: var(--amber); background: linear-gradient(135deg, rgba(232,163,61,0.12), rgba(232,163,61,0) 60%), var(--panel); }
.station.evening .station-dial { border-style: solid; background: var(--bg); }

/* On This Day */
.station.today .station-dial { border-style: solid; border-color: var(--amber); }

/* ---------- All Shows on This Station ---------- */
.episode-list {
  text-align: left; margin: 4px 0 16px; padding: 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
}
.episode-list .list-note { color: var(--muted); font-size: 0.85rem; margin: 2px 6px 10px; }
.episode-list ol { list-style: none; margin: 0; padding: 0; }
.episode-list li + li { border-top: 1px solid var(--border); }
.episode-list .ep-row, .preview-view .ep-row {
  display: block; width: 100%; text-align: left; padding: 10px 8px; min-height: 44px;
  background: none; border: 0; border-radius: 8px; color: var(--text); font: inherit; cursor: pointer;
}
.episode-list .ep-row:hover, .preview-view .ep-row:hover { background: rgba(245, 196, 110, 0.08); }
.episode-list .ep-row:focus-visible, .preview-view .ep-row:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: -3px; }
.episode-list .ep-title, .preview-view .ep-title { display: block; font-weight: 600; }
.episode-list .ep-meta, .preview-view .ep-meta { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.episode-list .ep-summary, .preview-view .ep-summary { display: block; font-size: 0.9rem; margin-top: 4px; }
.episode-list .ep-row[aria-current="true"] .ep-title { color: var(--amber); }
.episode-list .now { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--amber); color: var(--bg); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; vertical-align: 2px; }
.episode-list .ep-row.gap { cursor: default; color: var(--muted); }
.episode-list .more { margin: 10px 6px 4px; }

/* Long-running shows are listed year by year */
.episode-list .year-toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px;
  margin: 4px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.episode-list .year-toggle:hover { background: rgba(245, 196, 110, 0.08); }
.episode-list .year-toggle:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }
.episode-list .year-name { font-weight: 700; }
.episode-list .year-name::before { content: "\25B8"; display: inline-block; width: 1.2em; color: var(--amber); }
.episode-list .year-toggle[aria-expanded="true"] .year-name::before { content: "\25BE"; }
.episode-list .year-count { color: var(--muted); font-size: 0.85rem; white-space: nowrap; margin-left: 10px; }
.episode-list .year-toggle + ol { margin-bottom: 8px; }
.episode-list .group-switch { display: flex; gap: 8px; margin: 0 0 8px; }
.episode-list .group-switch button {
  flex: 1; min-height: 44px; border: 1px solid var(--border); border-radius: 999px; background: transparent;
  color: inherit; font: inherit; cursor: pointer;
}
.episode-list .group-switch button[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); font-weight: 600; }
.episode-list .group-switch button:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }

/* Mini player: pinned to the bottom while browsing Stations */
.mini {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  max-width: 440px; margin: 0 auto;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--panel); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45);
}
.mini[hidden] { display: none; }
body.has-mini { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.mini-open {
  flex: 1; min-width: 0; min-height: 52px;
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0; color: var(--text); text-align: left; cursor: pointer;
  font: inherit;
}
.mini-text { min-width: 0; display: flex; flex-direction: column; }
.mini-series { color: var(--amber); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-title { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-play {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber); color: var(--bg); border: 1px solid var(--amber); cursor: pointer;
}
.mini-play svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.mini-play:hover { background: var(--amber-hover); border-color: var(--amber-hover); }

/* "On Air" tip-jar sign and pop-up (Dennis, 2026-10-03) */
.brand { position: relative; padding-top: 40px; }
.tip-sign {
  position: absolute; top: -16px; right: 0;
  min-height: 44px; padding: 0 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--border); border-radius: 6px;
  color: #E25B45; font: 600 0.7rem "Josefin Sans", sans-serif;
  letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer;
}
.tip-sign:hover, .tip-sign:focus-visible { border-color: var(--amber); }
/* Only the light blinks, so the words stay readable (accessibility check, 2026-10-05) */
.tip-light { width: 8px; height: 8px; border-radius: 50%; background: #E25B45; box-shadow: 0 0 8px #E25B45; animation: tip-blink 1.6s ease-in-out infinite; }
@keyframes tip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .tip-light { animation: none; } }
.tip-dialog {
  max-width: 400px; width: calc(100% - 32px);
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; padding: 20px;
  text-align: left; line-height: 1.5; font-size: 1rem;
}
.tip-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.tip-dialog h2 { font-family: "Limelight", serif; font-weight: 400; color: var(--amber); margin: 0 0 12px; font-size: 1.5rem; text-align: center; }
.tip-dialog p { margin: 0 0 12px; }
.tip-give, .tip-close {
  display: block; width: 100%; min-height: 44px; margin-top: 8px;
  border-radius: 8px; font: 600 1rem "Josefin Sans", sans-serif; text-align: center; cursor: pointer;
}
.tip-give { background: var(--amber); color: var(--bg); text-decoration: none; line-height: 44px; }
.tip-give[hidden] { display: none; }
.tip-close { background: transparent; color: var(--muted); border: 1px solid var(--border); }

/* Editor's Picks folder at the top of a show's list */
.episode-list .picks-toggle { border-color: var(--amber); }
.episode-list .picks-toggle .year-name { color: var(--amber); }
.episode-list .pick-note, .preview-view .pick-note { display: block; color: var(--amber-hover); font-size: 0.85rem; margin-top: 4px; font-style: italic; }
.episode-list .story-toggle .ep-title::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 12px 2px 2px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); transition: transform 0.2s; vertical-align: middle; }
.episode-list .story-toggle[aria-expanded="true"] .ep-title::before { transform: rotate(45deg); }
.episode-list .story-parts { margin: 0 0 6px 14px; border-left: 2px solid var(--border); padding-left: 6px; }
.episode-list ol.picks { margin-bottom: 12px; }

/* Photos from Dennis's collection (data/photos.json) */
.station-photo { overflow: hidden; padding: 0; background: var(--bg); }
.station-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(0.15); }
.pick-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; display: block; filter: sepia(0.15); }
.notes-photo { margin: 4px 0 14px; }
.notes-photo img { width: 100%; max-width: 360px; height: auto; border-radius: 10px; border: 1px solid var(--border); display: block; filter: sepia(0.15); }
.notes-photo figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
.premium-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.premium-row img { flex: 1 1 140px; max-width: 360px; min-width: 0; object-fit: contain; background: #F3EAD8; filter: none; }
.premium-row img:only-child { flex-basis: 100%; }

/* Back-to-top button (Dennis asked 2026-10-05): appears after scrolling down, sits above the mini player */
.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 21;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel); color: var(--amber); border: 1px solid var(--amber); cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.to-top[hidden] { display: none; }
body.has-mini .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
/* With Ask Albert in the corner, the back-to-top button sits just above him. */
body:has(#albert-btn:not([hidden])) .to-top { bottom: calc(76px + env(safe-area-inset-bottom)); }
body.has-mini:has(#albert-btn:not([hidden])) .to-top { bottom: calc(144px + env(safe-area-inset-bottom)); }
body.albert-open .to-top { display: none; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { border-color: var(--amber-hover); color: var(--amber-hover); }
.to-top:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }

/* "NEW" badge on recently added shows and episodes (data/new.json) */
.new-badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--amber); color: var(--amber); font-family: system-ui, sans-serif; font-size: 0.66rem;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 3px; }

/* Save show / Save episode / Share (2026-10-07) */
.keep-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.keep {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  background: none; color: var(--text); border: 1px solid var(--border); border-radius: 999px;
  font: inherit; font-size: 0.9rem; cursor: pointer;
}
.keep svg { width: 18px; height: 18px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.keep[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); }
.keep[aria-pressed="true"] svg { fill: var(--amber); }
.keep:hover { border-color: var(--amber-hover); }
.keep:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; }
.keep[hidden] { display: none; }
a.keep { text-decoration: none; }
.share-panel { margin: 8px auto 4px; max-width: 520px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.share-panel[hidden] { display: none; }
.share-panel label { display: block; font-size: 0.85rem; margin-bottom: 6px; }
.share-panel input { width: 100%; box-sizing: border-box; min-height: 40px; padding: 0 10px; font: inherit; font-size: 0.85rem;
  color: var(--text); background: rgba(0,0,0,0.25); border: 1px solid var(--border); border-radius: 8px; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.share-msg { min-height: 1.2em; margin: 8px 0 0; font-size: 0.85rem; color: var(--amber); }

/* "Back to" the show you were listening to before you changed stations. */
.go-back {
  display: flex; align-items: center; gap: 6px; margin: 8px auto 0; max-width: 100%; min-height: 40px; padding: 0 14px;
  background: none; color: var(--text); border: 1px solid var(--border); border-radius: 999px;
  font: inherit; font-size: 0.85rem; cursor: pointer;
}
.go-back[hidden] { display: none; }
.go-back svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.go-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-back:hover { border-color: var(--amber-hover); }
.go-back:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; }

/* Footer links (Dennis asked 2026-10-08) and the Help, FAQ and Privacy pages */
.site-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--amber-hover); text-decoration: underline; }
.site-footer a:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; border-radius: 6px; }
.sfx-toggle { min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.95rem; cursor: pointer; }
.sfx-toggle:hover, .sfx-toggle:focus-visible { color: var(--amber-hover); text-decoration: underline; }
.sfx-toggle:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; border-radius: 6px; }
.doc-page { text-align: left; }
.doc-page .brand { text-align: center; }
.doc-home { margin: 0; }
.doc-home a { font-family: "Limelight", serif; font-size: 2rem; color: var(--amber); text-decoration: none; text-shadow: 0 0 18px rgba(232, 163, 61, 0.35); }
.doc-back { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 8px; text-decoration: none; }
.doc-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doc-title { font-family: "Limelight", serif; font-weight: 400; color: var(--amber); font-size: 1.8rem; margin: 12px 0 8px; }
.doc-page h2 { font-size: 1.05rem; color: var(--amber); margin: 24px 0 6px; }
.doc-page p, .doc-page li { font-size: 1rem; line-height: 1.5; }
.doc-page ul { padding-left: 20px; }
.doc-page li { margin: 6px 0; }
.doc-page a { color: var(--amber-hover); }
.doc-page strong { color: var(--text); font-weight: 600; }
.doc-date { color: var(--muted); font-size: 0.9rem; }
/* Help and FAQ accordions (Dennis, 2026-10-11): question titles only; tap one to open its answer. */
.doc-accordion { display: grid; gap: 8px; margin: 16px 0 0; }
.doc-item { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; scroll-margin-top: 12px; }
.doc-item > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px;
  cursor: pointer; color: var(--amber); font-weight: 600; font-size: 1.05rem; line-height: 1.3; border-radius: 12px;
}
.doc-item > summary::-webkit-details-marker { display: none; }
.doc-item > summary::marker { content: ""; }
.doc-item > summary .chevron { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.doc-item[open] > summary .chevron { transform: rotate(90deg); }
.doc-item > summary:hover { color: var(--amber-hover); }
.doc-item > summary:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }
.doc-item[open] { border-color: var(--amber); }
.doc-answer { padding: 0 16px 8px 44px; }
.doc-answer > :first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .doc-item > summary .chevron { transition: none; } }
.doc-contact { margin-top: 32px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }

/* Not for me / Choose Shows for This Station (2026-10-08) */
.notes-toggle[hidden] { display: none; }
.choose-panel ul { list-style: none; margin: 0; padding: 0; }
.choose-panel li { border-top: 1px solid var(--border); }
.choose-panel label { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 6px; cursor: pointer; }
.choose-panel input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--amber); flex: none; }
.choose-panel .choose-count { margin-left: auto; color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.choose-panel .choose-hidden { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 6px; color: var(--muted); }
.choose-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 6px 10px; }
.bring-back { margin-left: auto; min-height: 44px; padding: 0 14px; background: none; color: var(--amber); border: 1px solid var(--border);
  border-radius: 999px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.bring-back:hover { border-color: var(--amber-hover); }
.bring-back:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; }
li.hidden-show { display: flex; align-items: center; gap: 8px; }
li.hidden-show > :first-child { flex: 1; min-width: 0; }
.choose-panel h4 { font-family: "Limelight", serif; font-weight: 400; color: var(--amber); font-size: 1.05rem; margin: 14px 6px 4px; text-align: left; }
#myshows-toggle { margin-top: 14px; }

/* Help, FAQ and Privacy open over the app (2026-10-08); the mini player stays on top. */
.doc-overlay { position: fixed; inset: 0; z-index: 15; overflow-y: auto; background: var(--bg, #1E1712); }
.doc-overlay[hidden] { display: none; }
.doc-sheet { max-width: 440px; margin: 0 auto; padding: 8px 16px 32px; }
body.has-mini .doc-sheet { padding-bottom: 110px; }
body.doc-open { overflow: hidden; }
button.doc-back { background: none; border: none; color: var(--amber-hover); font: inherit; cursor: pointer; min-height: 44px; padding: 0; }

/* Albert, the Radio Days helper (2026-10-08). The button and his chat are pinned to the bottom of the app
   (the 440px column), just above the mini player when it shows. */
/* Sticky (Dennis, 2026-10-08): always visible at the bottom of the screen, and settles under the footer links at the end of the page. */
/* Ask Albert sits in the bottom-right corner, just below the round back-to-top button (Dennis, 2026-10-14). */
.albert-dock { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 21; display: flex; justify-content: flex-end; margin: 0; pointer-events: none; }
.albert-dock .albert-btn { pointer-events: auto; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55); }
body.has-mini .albert-dock { bottom: calc(84px + env(safe-area-inset-bottom)); }
.albert-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px;
  background: var(--panel); color: var(--amber); border: 1px solid var(--amber); border-radius: 999px;
  font: inherit; font-size: 0.95rem; cursor: pointer;
}
.albert-btn[hidden] { display: none; }
body.albert-open .albert-btn { visibility: hidden; }
.albert-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.albert-btn:hover { border-color: var(--amber-hover); color: var(--amber-hover); }
.albert-btn:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; }
.albert-panel {
  position: fixed; z-index: 19; left: 50%; transform: translateX(-50%); width: min(440px, 100%); box-sizing: border-box;
  bottom: env(safe-area-inset-bottom); height: min(70vh, 620px);
  display: flex; flex-direction: column; padding: 10px 14px 10px;
  background: var(--bg); border: 1px solid var(--amber); border-bottom: none; border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}
.albert-panel[hidden] { display: none; }
body.has-mini .albert-panel { bottom: calc(68px + env(safe-area-inset-bottom)); height: min(62vh, 560px); }
.albert-head { display: flex; align-items: center; gap: 8px; }
.albert-head h2 { flex: 1; margin: 0; font-family: "Limelight", serif; font-weight: 400; font-size: 1.25rem; color: var(--amber); text-align: left; }
.albert-tool { min-height: 44px; min-width: 44px; padding: 0 12px; background: none; color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.albert-tool:hover { border-color: var(--amber-hover); }
.albert-tool:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }
.albert-x { padding: 0; display: grid; place-items: center; }
.albert-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.albert-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin: 8px 0; padding-right: 2px; }
.albert-msg { padding: 10px 12px; border-radius: 12px; line-height: 1.45; text-align: left; white-space: pre-wrap; }
.albert-msg.user { align-self: flex-end; max-width: 85%; background: rgba(232, 163, 61, 0.15); border: 1px solid var(--border); }
.albert-msg.albert { align-self: flex-start; max-width: 95%; background: var(--panel); border: 1px solid var(--border); }
.albert-msg.albert .who { display: block; color: var(--amber); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.albert-msg.error { color: var(--muted); }
.albert-plays { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; white-space: normal; }
.albert-play { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; text-align: left;
  background: none; color: var(--text); border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 0.9rem; cursor: pointer; }
a.albert-play { text-decoration: none; }
.albert-play:hover { border-color: var(--amber-hover); }
.albert-play svg { width: 18px; height: 18px; flex: none; fill: var(--amber); stroke: none; }
.albert-form { display: flex; gap: 8px; align-items: flex-end; }
.albert-form textarea { flex: 1; min-height: 48px; padding: 10px; font: inherit; color: var(--text); background: rgba(0,0,0,0.25);
  border: 1px solid var(--border); border-radius: 10px; resize: none; }
.albert-form textarea:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }
.albert-form button { min-height: 48px; }
.albert-fine { color: var(--muted); font-size: 0.72rem; margin: 6px 0 0; text-align: left; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Teaser line under a folder name (Special Programs), 2026-10-08 */
.folder-teaser { margin: 6px 4px 2px 40px; color: var(--muted); font-size: 0.9rem; line-height: 1.4; cursor: pointer; text-align: left; }
.folder-heading { font-size: 1rem; margin: 10px 4px 4px; text-align: left; }
.picks-fold { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin-top: 6px; padding: 0 4px; background: none; border: 0; border-bottom: 1px solid var(--border); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.picks-fold .folder-heading { margin: 0; flex: 1; }
.picks-fold-count { color: var(--muted); font-size: 0.85rem; }
.picks-fold-chev { width: 9px; height: 9px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); transition: transform 0.15s; margin-right: 6px; }
.picks-fold[aria-expanded="true"] .picks-fold-chev { transform: rotate(45deg); }
.picks-fold:hover .folder-heading, .picks-fold:focus-visible .folder-heading { color: var(--amber-hover); }
/* Clapboard on radio versions of movies (Movie Stars stations), 2026-10-09 */
.film-mark { color: var(--amber); margin-right: 6px; display: inline-block; vertical-align: -0.15em; }
.film-mark svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.film-key { text-align: left; }

/* Radio Premiums slide show (2026-10-09) */
.premium-show { margin: 0 0 14px; padding: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; outline: none; }
.slide-frame { margin: 0; height: min(62vw, 360px); display: flex; align-items: center; justify-content: center; background: #F3EAD8; border-radius: 8px; overflow: hidden; touch-action: pan-y; user-select: none; }
.slide-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; }
.slide-caption { min-height: 2.6em; margin: 10px 2px 6px; font-size: 0.95rem; line-height: 1.3; }
.slide-controls { display: flex; align-items: center; gap: 10px; }
.slide-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--amber); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.slide-btn:hover, .slide-btn:focus-visible { border-color: var(--amber); }
.slide-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slide-btn .ic-play { display: none; fill: currentColor; }
.slide-btn.paused .ic-play { display: block; }
.slide-btn.paused .ic-pause { display: none; }
.slide-count { margin-left: auto; color: var(--muted); font-size: 0.85rem; }
.slide-source { margin: 8px 2px 0; color: var(--muted); font-size: 0.75rem; }

/* Look before you switch (2026-10-10): another station's page while a show keeps playing */
.preview-view { padding-bottom: 24px; text-align: left; }
.preview-note { text-align: center; }
.preview-head { display: flex; gap: 14px; align-items: center; margin: 8px 0 14px; }
.preview-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); flex: none; }
.preview-name { font-family: "Limelight", serif; color: var(--amber); font-weight: normal; font-size: 1.5rem; margin: 0 0 4px; }
.preview-meta, .preview-note { color: var(--muted); margin: 0; font-size: 0.9rem; }
.preview-note { margin: 8px 0 14px; }
.preview-play { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px;
  background: var(--amber); color: var(--bg); border: 0; border-radius: 999px; font: inherit; font-size: 1.05rem; font-weight: 600; cursor: pointer; }
.preview-play:hover { background: var(--amber-hover); }
.preview-play svg { width: 20px; height: 20px; fill: currentColor; }
.preview-history { line-height: 1.55; margin: 0 0 16px; }
.preview-heading { color: var(--amber); font-weight: 600; font-size: 1rem; margin: 18px 0 8px; }
.preview-view ol { list-style: none; margin: 0; padding: 0; }
.preview-view ol { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 6px; }
.preview-view li + li { border-top: 1px solid var(--border); }

/* Preview page: big shows listed by year or sponsor, like All Shows on This Station (2026-10-11) */
.preview-view .year-toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px;
  margin: 4px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.preview-view .year-toggle:hover { background: rgba(245, 196, 110, 0.08); }
.preview-view .year-toggle:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }
.preview-view .year-name { font-weight: 700; }
.preview-view .year-name::before { content: "\25B8"; display: inline-block; width: 1.2em; color: var(--amber); }
.preview-view .year-toggle[aria-expanded="true"] .year-name::before { content: "\25BE"; }
.preview-view .year-count { color: var(--muted); font-size: 0.85rem; white-space: nowrap; margin-left: 10px; }
.preview-view .year-toggle + ol { margin-bottom: 8px; }
.preview-view .group-switch { display: flex; gap: 8px; margin: 6px 0 8px; }
.preview-view .group-switch button {
  flex: 1; min-height: 44px; border: 1px solid var(--border); border-radius: 999px; background: transparent;
  color: inherit; font: inherit; cursor: pointer;
}
.preview-view .group-switch button[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); font-weight: 600; }
.preview-view .group-switch button:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }

/* Fold-up headings in the original drop-down look (boxed, amber, a triangle that turns) (Dennis, 2026-10-11) */
.fold-box {
  display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px;
  margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--amber); border-radius: 10px;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.fold-box:hover { background: rgba(245, 196, 110, 0.08); }
.fold-box:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }
.fold-name { font-weight: 700; color: var(--amber); }
.fold-name::before { content: "\25B8"; display: inline-block; width: 1.2em; color: var(--amber); }
.fold-box[aria-expanded="true"] .fold-name::before { content: "\25BE"; }
.fold-count { color: var(--muted); font-size: 0.85rem; white-space: nowrap; margin-left: 10px; }

/* Accordion rows everywhere (Dennis, 2026-10-11): same look as the Stations-page type folders */
.genre-toggle.accordion { width: 100%; margin: 8px 0 4px; }
.genre-toggle.accordion-sub { min-height: 48px; margin: 4px 0; border-radius: 12px; }
.genre-toggle.accordion-sub .genre-name { font-family: inherit; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.genre-toggle.accordion .genre-count { white-space: nowrap; padding-left: 10px; }
.genre-toggle.accordion + ol { margin-bottom: 8px; }

/* Magazine Rack (Dennis, 2026-10-12): radio magazines from the Internet Archive, read inside the app. */
#rack-open, #premiums-open, #moods-open, #support-open { margin-top: 10px; }
a.notes-toggle { text-decoration: none; }
.mag-year { border-top: 1px solid var(--border); }
.mag-year > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--text); font-weight: 600; }
.mag-year > summary:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }
.mag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; padding: 4px 0 14px; }
.mag-issue { display: flex; flex-direction: column; gap: 4px; align-items: stretch; padding: 0; background: none; border: none;
  color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mag-issue img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: var(--panel); }
.mag-issue:hover img { border-color: var(--amber-hover); }
.mag-issue:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 3px; border-radius: 6px; }
.mag-label { font-size: 0.82rem; line-height: 1.25; }
.mag-note { font-size: 0.72rem; color: var(--muted); line-height: 1.2; }
.mag-row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; }
.mag-row .mag-issue { flex: 0 0 112px; }
.mag-hint, .mag-credit { color: var(--muted); font-size: 0.85rem; }
.reader-overlay { position: fixed; inset: 0; z-index: 17; display: flex; flex-direction: column; background: var(--bg, #1E1712); }
.reader-overlay[hidden] { display: none; }
.reader-bar { display: flex; align-items: center; gap: 12px; padding: 0 12px; border-bottom: 1px solid var(--border); background: var(--panel); }
.reader-bar .doc-back { margin: 0; }
.reader-title { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-link { color: var(--amber-hover); font-size: 0.85rem; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.reader-frame { flex: 1; width: 100%; border: 0; background: #111; }
body.has-mini .reader-overlay { bottom: calc(76px + env(safe-area-inset-bottom)); }
body.reader-open { overflow: hidden; }
.traits-line { margin: 14px 0 2px; }
.traits-line strong { color: var(--accent); font-weight: 600; }
.finder-hint { color: var(--muted); font-size: 0.85rem; margin: 6px 0 0 4px; }
.show-list.mood-list { border-left: 0; margin-left: 0; padding-left: 0; }
.sleep-title { margin: 0 0 4px; font-size: 0.9rem; color: var(--muted); }
.offline-note { margin: 8px 0 0; font-size: 0.9rem; color: var(--muted); }
.offline-note:empty { display: none; }

/* Accounts, test version (Dennis, 2026-10-14; ?preview only) */
.acct-form { display: grid; gap: 12px; margin: 12px 0 20px; max-width: 420px; }
.acct-form label { display: grid; gap: 4px; font-size: 0.95rem; }
.acct-form input[type="email"], .acct-form input[type="password"], .acct-form input[type="text"] {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; font: inherit; font-size: 1rem; }
.acct-form input:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; }
.acct-form .acct-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; }
.acct-form .acct-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--amber); flex: none; }
.acct-tabs { display: flex; gap: 8px; margin: 8px 0 4px; flex-wrap: wrap; }
.acct-tabs button[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.acct-msg { min-height: 1.4em; color: var(--amber-hover); margin: 0; }
.acct-msg:empty { display: none; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-danger { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--border); }
