/* FullDial — Tuner world. Graphite panels, amber phosphor, ticked rulers. */
:root {
  --ground: #0C0E11;
  --panel: #14181D;
  --panel-raise: #191E24;
  --seam: #1F252C;
  --seam-strong: #333B45;
  --ink: #E9E4D8;
  --ink-dim: #A49E90;      /* warm-tinted secondary, never gray */
  --ink-faint: #8B8677;
  --amber: #FFB000;
  --amber-deep: #C8770A;
  --amber-ghost: rgba(255, 176, 0, 0.09);
  --ease-inst: cubic-bezier(.3, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--seam-strong) var(--ground); }
body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, #12161B 0%, var(--ground) 55%);
  color: var(--ink);
  font: 400 16px/1.6 Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: #14100A; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--seam-strong); border-radius: 5px; }
::-webkit-scrollbar-track { background: var(--ground); }

main { max-width: 820px; margin: 0 auto; padding: 0 16px 4rem; }
a { color: var(--ink); text-decoration-color: var(--amber-deep); text-underline-offset: 3px; }
a:hover { color: var(--amber); }

/* ---- header ---- */
.site-head {
  max-width: 820px; margin: 0 auto; padding: 18px 16px 10px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Big Shoulders", sans-serif; font-weight: 800; font-size: 1.5rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}
.brand svg { flex: none; }
.brand em { font-style: normal; color: var(--amber); }
.head-note {
  margin: 0; font-family: "Azeret Mono", monospace; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
}
@media (max-width: 560px) { .head-note { display: none; } }

/* ---- masthead ---- */
.masthead { padding: 1.6rem 0 0.5rem; }
h1 {
  margin: 0;
  font-family: "Big Shoulders", sans-serif; font-weight: 650;
  font-size: clamp(2.7rem, 8.5vw, 5.2rem);
  line-height: .95; letter-spacing: .015em; text-transform: uppercase;
  text-wrap: balance;
}
.h1-sub { color: var(--ink-faint); font-weight: 500; }
.q-head { margin-top: 1.6rem; }
a.listen { text-decoration: none; }
.mast-meta {
  margin: .8rem 0 0; font-family: "Azeret Mono", monospace;
  font-size: .82rem; letter-spacing: .06em; color: var(--ink-dim);
}
.mast-meta a { color: var(--ink-dim); }
.mast-meta a:hover { color: var(--amber); }

/* ---- dial ---- */
/* Amber is live signal; --sig is the station's genre hue: what the machine
   is tuned to. Pointer, frequency readouts, and cards carry --sig. */
.dial { width: 100%; height: auto; display: block; margin: .9rem 0 1.2rem; overflow: visible; }
.dial-num {
  font: 500 17px "Azeret Mono", monospace; fill: var(--ink-faint);
  letter-spacing: .05em;
}
.dial-freq {
  font: 500 21px "Azeret Mono", monospace; fill: var(--sig, var(--amber));
  letter-spacing: .04em;
}
.dial-pointer {
  animation: dial-sweep 1.5s var(--ease-inst) both;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--sig, var(--amber)) 55%, transparent));
}
@keyframes dial-sweep {
  from { transform: translateX(calc(-1 * var(--px) + 40px)); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .dial-pointer { animation: none; }
  .lamp { animation: none; }
}

/* ---- station faceplate: the card identity, mounted on the page ---- */
.plate {
  background: linear-gradient(180deg, var(--panel-raise), var(--panel));
  border: 1px solid var(--sig-deep, var(--seam-strong)); border-radius: 10px;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
  padding: 1.35rem 1.5rem .8rem; margin: 1.2rem 0 1.4rem;
}
.plate .masthead { padding: 0; }
.plate .dial { margin: 1rem 0 .1rem; }
@media (max-width: 560px) { .plate { padding: 1rem 1rem .6rem; } }

/* ---- the faceplate: identity + now-playing as one instrument face ---- */
.face-panel {
  background: linear-gradient(180deg, var(--panel-raise), var(--panel));
  border: 1px solid var(--sig-deep, var(--seam-strong));
  border-radius: 10px;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
  padding: 1.4rem 1.5rem 1.25rem;
  margin: 1.2rem 0 1.6rem;
}
.fp-head { display: flex; align-items: flex-end; gap: 1rem 1.4rem; flex-wrap: wrap; }
.fp-lock { flex: 1 1 260px; min-width: 0; }
.fp-lock h1 {
  font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; line-height: .95;
}
.fp-freq {
  font-family: "Azeret Mono", monospace; font-weight: 500;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem); color: var(--sig, var(--amber));
  white-space: nowrap; line-height: 1;
}
.fp-freq .fp-unit { font-size: .55em; color: var(--sig-deep, var(--amber-deep)); margin-left: .25em; }
.fp-freq.fp-net { font-size: clamp(1rem, 3vw, 1.4rem); letter-spacing: .3em; }
.fp-meta {
  margin: .7rem 0 0; font-family: "Azeret Mono", monospace;
  font-size: .78rem; letter-spacing: .06em; color: var(--ink-dim);
}
.fp-meta a { color: var(--ink-dim); }
.fp-meta a:hover { color: var(--amber); }
.fp-call { color: var(--ink-faint); }
/* genre ribbon (2026-09-24): what the station played this week, by genre.
   The one place colorways sit side by side (DESIGN.md, One Light Source). */
.ribbon { margin: 1rem 0 .1rem; }
.rb-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .75rem; margin: 0 0 .45rem; color: var(--ink-faint); }
.rb-head span { white-space: nowrap; }
.rb-bar { display: flex; gap: 2px; height: 4px; }
.rb-bar i { flex-basis: 0; min-width: 3px; height: 100%; }
.rb-bar i.rb-sliver { min-width: 2px; }
.rb-legend { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-family: "Azeret Mono", monospace; font-size: .72rem; letter-spacing: .04em; color: var(--ink-dim); }
.rb-legend li { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.rb-legend li i { width: 8px; height: 8px; flex: none; }
.rb-legend b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.face-panel .dial { margin: 1rem 0 .4rem; }
/* the written-out ribbon: one segmented bar per genre, in its colorway */
.genre-mix { margin: 1.4rem 0 1.8rem; }
.gm-lead { font-size: 1.05rem; margin: .3rem 0 .9rem; color: var(--ink); }
.vu-genre .vu-bar { background: repeating-linear-gradient(90deg, transparent 0 6px, var(--panel) 6px 9px), var(--vu); }
.vu-genre .vu-name { display: inline-flex; align-items: center; gap: .5rem; }
.gtick { width: 9px; height: 9px; flex: none; display: inline-block; }
.gm-note { margin: .8rem 0 0; color: var(--ink-faint); }
.face-seam { border: 0; border-top: 1px solid var(--seam); margin: .9rem 0 1rem; }
/* VU bars hold until scrolled into view (JS adds vu-go; no-JS stays full) */
.vu-wait .vu-bar { animation: none; width: 0; }
.vu-go .vu-bar { animation: vu-rise 0.9s var(--ease-inst) both; }

/* folded log: eight plays visible, the rest unfold on a counted control */
.history tr.more { display: none; }
.log-more {
  display: block; margin: .9rem auto 0; padding: .55rem 1.1rem;
  background: transparent; color: var(--ink); border: 1px solid var(--sig-deep, var(--seam-strong));
  border-radius: 999px; font: 600 .9rem "Archivo", system-ui, sans-serif; cursor: pointer;
}
.log-more:hover { background: var(--amber-ghost); color: var(--sig, var(--amber)); }

/* ---- now playing panel ---- */
.now {
  background: linear-gradient(180deg, var(--panel-raise), var(--panel));
  border: 1px solid var(--seam-strong);
  border-radius: 10px;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
  padding: 1.1rem 1.25rem 1.25rem;
  margin: 0 0 1.4rem;
}
.now-head { display: flex; align-items: center; gap: .6rem; }
.lamp {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 1px 6px 1px rgba(255, 176, 0, .55);
  animation: lamp-breathe 4s var(--ease-inst) infinite;
}
@keyframes lamp-breathe {
  0%, 100% { opacity: 1; } 50% { opacity: .45; }
}
.legend {
  font-family: "Azeret Mono", monospace; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim);
}
.now-time { margin-left: auto; color: var(--amber); text-shadow: 0 0 14px rgba(255, 176, 0, .4); }
.now-track { margin: .8rem 0 1rem; display: flex; flex-direction: column; gap: .3rem; }
.now-title {
  font-family: "Big Shoulders", sans-serif; font-weight: 650;
  font-size: clamp(1.8rem, 5.4vw, 3rem); line-height: 1.12; letter-spacing: .01em;
  text-wrap: balance;
  perspective: 640px;
}
/* the departure board: JS rebuilds the logged title as flap cells */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bc {
  display: inline-block; position: relative;
  min-width: .58em; text-align: center; line-height: 1.18;
  padding: .02em .07em; margin: 0 .05em .1em 0;
  background: linear-gradient(180deg, var(--panel-raise) 0 47%, #0E1116 53%, var(--panel) 100%);
  border: 1px solid var(--seam-strong); border-radius: 3px;
  backface-visibility: hidden; transform-origin: 50% 50%;
}
/* the final character sets the cell's width from frame one; the spinning
   glyph rides an overlay so nothing resizes mid-flip */
.bcw { visibility: hidden; }
.bcg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.bc::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(0, 0, 0, .55); box-shadow: 0 1px 0 rgba(255, 255, 255, .035);
}
.bs { display: inline-block; width: .42em; }
.bw { display: inline-block; white-space: nowrap; }  /* words never break mid-flap */
.bc.flip { animation: flap-in .3s var(--ease-inst) both; }
@keyframes flap-in { from { transform: rotateX(-90deg); } to { transform: rotateX(0); } }
/* unresolved cells flutter through glyphs until their random settle time */
.bc.spin { animation: flap-cycle .18s linear infinite; }
@keyframes flap-cycle {
  0% { transform: rotateX(0); }
  49% { transform: rotateX(-86deg); }
  50% { transform: rotateX(86deg); }
  100% { transform: rotateX(0); }
}
@media (prefers-reduced-motion: reduce) { .bc.flip, .bc.spin { animation: none; } }
.now-artist { font-size: 1.05rem; color: var(--ink-dim); font-weight: 500; }
.now-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; border-top: 1px solid var(--seam); padding-top: 1rem; }
.listen {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 .95rem Archivo, sans-serif; letter-spacing: .02em;
  color: #14100A; background: var(--amber);
  border: 0; border-radius: 999px; padding: .6rem 1.15rem .6rem .9rem;
  cursor: pointer;
  transition: background .2s var(--ease-inst), transform .2s var(--ease-inst);
}
.listen:hover { background: #FFC13D; }
.listen:active { transform: scale(.97); }
.listen.on { background: var(--ink); }
.listen.err { background: var(--seam-strong); color: var(--ink-dim); cursor: default; }
.listen-icon { display: inline-flex; }
/* the outbound twin: same weight as the play control, visibly a departure */
.listen-out { background: transparent; color: var(--ink); border: 1px solid var(--sig-deep, var(--seam-strong)); padding: .55rem 1.1rem; }
.listen-out:hover { background: var(--amber-ghost); color: var(--sig, var(--amber)); }
.listen-note { letter-spacing: .08em; }

/* ---- answer prose ---- */
.answer { max-width: 68ch; color: var(--ink); margin: 0 0 1.6rem; }
.answer strong { color: var(--amber); font-weight: 600; }

/* ---- sections ---- */
h2 {
  font-family: "Big Shoulders", sans-serif; font-weight: 650; font-size: 1.6rem;
  letter-spacing: .04em; text-transform: uppercase;
  margin: 2.6rem 0 .9rem;
}
section > p, .top-songs { max-width: 68ch; color: var(--ink-dim); }
.top-songs strong { color: var(--ink); font-weight: 500; }

/* ---- history table ---- */
.history { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.history th {
  text-align: left; font-family: "Azeret Mono", monospace; font-weight: 400;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink-faint); padding: 0 .8rem .5rem 0; border-bottom: 1px solid var(--seam-strong);
}
.history td { padding: .55rem .8rem .55rem 0; border-bottom: 1px solid var(--seam); vertical-align: baseline; }
.history tr:hover td { background: var(--amber-ghost); }
.day-row td { padding: 1.4rem 0 .4rem; border-bottom: 1px solid var(--seam-strong); }
.day-row h3 {
  margin: 0; font-family: "Azeret Mono", monospace; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber-deep); font-weight: 500;
}
.day-row:hover td { background: transparent; }
.t-time { font-family: "Azeret Mono", monospace; font-size: .8rem; color: var(--ink-dim); white-space: nowrap; width: 6ch; }
.t-artist { font-weight: 600; width: 38%; }
.t-title { color: var(--ink-dim); }
@media (max-width: 560px) {
  .history, .history tbody, .history tr { display: block; }
  .history tr.more { display: none; }
  /* the column legend survives the stacked layout as one line */
  .history thead { display: block; }
  .history thead tr { display: block; padding: 0 0 .35rem; border-bottom: 1px solid var(--seam-strong); }
  .history thead th { display: inline; border: 0; padding: 0; white-space: normal; }
  .history thead th + th::before { content: " · "; color: var(--ink-faint); }
  .history tr { border-bottom: 1px solid var(--seam); padding: .55rem 0; }
  .history td { display: inline; border: 0; padding: 0; }
  .history tr:hover td { background: transparent; }
  .t-time { display: inline; margin-right: .45rem; }
  .t-artist { width: auto; }
  .t-artist::after { content: " — "; color: var(--ink-faint); font-weight: 400; }
  .day-row { border-bottom: 1px solid var(--seam-strong) !important; }
}

/* ---- VU bars ---- */
.vu { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.vu li { display: grid; grid-template-columns: minmax(110px, 200px) 1fr 4ch; align-items: center; gap: .9rem; }
.vu-name { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vu-track { display: inline-block; vertical-align: middle; height: 14px; border: 1px solid var(--seam-strong); border-radius: 3px; padding: 2px; background: var(--panel); }
.vu-bar {
  display: block; height: 100%; width: var(--w); border-radius: 1px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 9px);
  animation: vu-rise 0.9s var(--ease-inst) both;
}
@keyframes vu-rise { from { width: 0; } to { width: var(--w); } }
.vu-n { font-family: "Azeret Mono", monospace; font-size: .8rem; color: var(--ink-dim); text-align: right; }

/* ---- nearby / directory lists ---- */
.nearby ul, .state-group ul { list-style: none; margin: 0; padding: 0; }
.nearby li a, .state-group li a {
  display: flex; align-items: baseline; justify-content: space-between; gap: .7rem;
  padding: .55rem 0; border-bottom: 1px solid var(--seam); text-decoration: none;
  transition: transform .2s var(--ease-inst);
}
.nearby li a:hover, .state-group li a:hover { transform: translateX(.4rem); }
.nb-name { font-weight: 600; flex: 1; min-width: 0; }
.nearby .face-tick, .state-group .face-tick, .ticker .face-tick { flex: none; align-self: center; }
.nb-state { font-family: "Azeret Mono", monospace; font-size: .72rem; color: var(--ink-faint); font-weight: 400; }
.nb-freq { font-family: "Azeret Mono", monospace; font-size: .78rem; color: var(--ink-dim); white-space: nowrap; }

/* ---- the rack: generated faceplate tiles (no scraped artwork, ever) ---- */
.rack {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .7rem; margin: 0 0 1.8rem; padding: 0; list-style: none;
}
.face {
  display: flex; flex-direction: column; gap: .32rem;
  background: linear-gradient(180deg, var(--panel-raise), var(--panel));
  border: 1px solid var(--sig-deep, var(--seam-strong)); border-radius: 8px;
  padding: .7rem .75rem .55rem; text-decoration: none;
  transition: border-color .2s var(--ease-inst);
}
.face:hover { border-color: var(--sig, var(--amber)); }
.face:hover .face-name { color: var(--sig, var(--amber)); }
.face-top { display: flex; align-items: center; gap: .45rem; min-height: 12px; }
.face-tick { flex: none; width: 9px; height: 9px; background: var(--sig, var(--amber)); }
.face-genre {
  font-family: "Azeret Mono", monospace; font-size: .58rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--sig, var(--amber));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.face-name {
  font-family: "Big Shoulders", sans-serif; font-weight: 650; font-size: 1.12rem;
  line-height: 1.06; letter-spacing: .02em; text-transform: uppercase; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.12em; transition: color .2s var(--ease-inst);
}
.face-freq { font-family: "Azeret Mono", monospace; font-size: .74rem; font-weight: 500; color: var(--sig, var(--amber)); }
.face-ruler {
  position: relative; height: 9px; margin-top: .15rem;
  border-top: 1px solid var(--seam-strong);
  background: repeating-linear-gradient(90deg, var(--seam-strong) 0 1px, transparent 1px 12px);
  background-position: 0 2px; background-size: auto 5px; background-repeat: repeat-x;
}
/* the NET band: a divider sets off the internet end of the miniature dial */
.face-ruler::before {
  content: ""; position: absolute; left: 87%; top: -2px; width: 1px; height: 8px;
  background: var(--seam-strong);
}
.face-pin { position: absolute; top: -3px; width: 3px; height: 12px; background: var(--sig, var(--amber)); }

/* genre chip in the masthead meta line */
.mast-genre { color: var(--sig, var(--amber)); white-space: nowrap; }
.mast-genre .face-tick { display: inline-block; vertical-align: baseline; margin-right: .4rem; }

/* the monitoring console holds past the fold on wide screens */
@media (min-width: 1000px) {
  .log-panel {
    background: linear-gradient(180deg, var(--panel-raise), var(--panel));
    border: 1px solid var(--seam-strong); border-radius: 10px;
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
    padding: 1.5rem 1.75rem .6rem; margin-top: 2.2rem;
  }
  .log-panel h2 { margin-top: 0; }
}

/* ---- index ---- */
.index-mast h1 { font-size: clamp(3rem, 10vw, 6rem); }
.ticker { list-style: none; margin: 0; padding: 0; }
.ticker li a {
  display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto;
  gap: 1rem; align-items: baseline;
  padding: .7rem 0; border-bottom: 1px solid var(--seam); text-decoration: none;
}
.ticker li a:hover .tk-station { color: var(--amber); }
.tk-station { font-family: "Big Shoulders", sans-serif; font-weight: 650; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; }
.tk-song { color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-time { font-family: "Azeret Mono", monospace; font-size: .78rem; color: var(--ink-faint); white-space: nowrap; }
@media (max-width: 560px) {
  .ticker li a { grid-template-columns: 1fr auto; }
  .tk-song { grid-column: 1 / -1; }
}
.directory { columns: 2; column-gap: 2.5rem; }
.state-group { break-inside: avoid; margin-bottom: 1.6rem; }
.state-group h3 {
  margin: 0 0 .3rem; font-family: "Azeret Mono", monospace; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber-deep); font-weight: 500;
}
@media (max-width: 640px) { .directory { columns: 1; } }

/* ---- docked mini player (shows while playing, once the panel scrolls away) ---- */
.mini {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: .8rem;
  max-width: 820px; margin: 0 auto;
  padding: .7rem calc(16px + env(safe-area-inset-left)) calc(.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--panel-raise), var(--panel));
  border: 1px solid var(--seam-strong); border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -14px 30px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
  transform: translateY(110%);
  transition: transform .3s var(--ease-inst);
}
.mini.mini-on { transform: translateY(0); }
.mini[hidden] { display: flex; }  /* hidden attr kept for no-JS; JS drives .mini-on */
.mini-meta { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: .05rem; flex: 1; }
.mini-song { font-family: "Big Shoulders", sans-serif; font-weight: 650; font-size: 1.15rem; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { font-size: .82rem; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-stop {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: #14100A; background: var(--amber); border: 0; cursor: pointer;
  transition: background .2s var(--ease-inst), transform .2s var(--ease-inst);
}
.mini-stop:hover { background: #FFC13D; }
.mini-stop:active { transform: scale(.94); }

/* ---- footer ---- */
.site-foot { max-width: 820px; margin: 3rem auto 0; padding: 0 16px 2.5rem; }
.foot-dial {
  height: 10px; margin-bottom: 1.4rem;
  background: repeating-linear-gradient(90deg, var(--seam-strong) 0 2px, transparent 2px 24px);
  border-top: 1px solid var(--seam-strong);
}
.site-foot p { color: var(--ink-dim); max-width: 68ch; margin: .4rem 0; }
.site-foot strong { color: var(--ink); }
.foot-meta { font-family: "Azeret Mono", monospace; font-size: .74rem; letter-spacing: .06em; color: var(--ink-faint); }
.foot-meta a { color: var(--ink-dim); }

/* ---- station search: header box + /search/ page ---- */
.search { position: relative; flex: 1 1 200px; max-width: 340px; margin: 0; }
.search-q {
  width: 100%; padding: .48rem .8rem .48rem 2.1rem;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--seam-strong); border-radius: 10px;
  font: 500 .92rem Archivo, system-ui, sans-serif;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s var(--ease-inst);
}
.search-q::placeholder {
  font-family: "Azeret Mono", monospace; font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); opacity: 1;
}
.search-q:focus { border-color: var(--amber-deep); }
.search-q::-webkit-search-cancel-button, .search-q::-webkit-search-decoration { -webkit-appearance: none; }
.search-glyph { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--ink-faint); pointer-events: none; }
.search-q:focus ~ .search-glyph, .search-q:focus + .search-glyph { color: var(--amber); }
.search-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: .3rem; list-style: none; min-width: 280px;
  background: linear-gradient(180deg, var(--panel-raise), var(--panel));
  border: 1px solid var(--seam-strong); border-radius: 10px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
  max-height: 60vh; overflow: auto;
}
.search-list li a {
  display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem;
  border-radius: 7px; text-decoration: none; --sig: var(--seam-strong);
}
.search-list li a:hover, .search-list li[aria-selected="true"] a { background: var(--amber-ghost); color: var(--amber); --sig: var(--amber); }
.search-list .nb-state, #search-page-results .nb-state { margin-left: .35em; }
.search-empty, .search-count {
  margin: 0; padding: .55rem .7rem; color: var(--ink-dim);
  font-family: "Azeret Mono", monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.search-count { padding: .2rem 0 .6rem; }
.search-page { max-width: none; flex: none; margin: 1.2rem 0 1.4rem; }
.search-page .search-q { font-size: 1.05rem; padding: .7rem 1rem .7rem 2.5rem; }
.search-page .search-glyph { left: .95rem; }
#search-page-results .nearby li a { --sig: var(--seam-strong); }
@media (max-width: 560px) {
  .site-head { flex-wrap: wrap; row-gap: .7rem; }
  .search { flex-basis: 100%; max-width: none; order: 3; }
}


/* schedule template (talk stations) */
.sched-today tr.on-now td { background: var(--amber-ghost); }
.sched-today tr.on-now .t-title { color: var(--amber); }
.sched-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.4rem 2rem; margin-top: .6rem; }
.sched-day h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-deep); margin: 0 0 .5rem; }
.sched-list, .sched-shows { list-style: none; margin: 0; padding: 0; }
.sched-list li, .sched-shows li { display: flex; gap: .9rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--seam); }
.sched-t { font-family: "Azeret Mono", monospace; font-size: .78rem; color: var(--ink-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sched-list .sched-t { min-width: 9.5rem; }
.sched-shows li { justify-content: space-between; }
.sched-show { color: var(--ink); overflow-wrap: anywhere; }

/* listen pages (news, talk, sports): the station and its neighbours */
.near-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 1.5rem; }
.near-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--seam); color: var(--ink); text-decoration: none; }
.near-list a:hover .nl-name { color: var(--amber); }
.nl-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-freq { font-family: "Azeret Mono", monospace; font-size: .8rem; color: var(--ink-dim); white-space: nowrap; }

/* ---- the homepage Dial (the app's Dial screen): a tunable local ruler,
   its readout, and the local list. Server-rendered as a working fallback
   (popular stations, genre hubs); assets/dial.js tunes it to the visitor's
   area. Every slot has a fixed height so nothing below it moves. ---- */
.tuner-home { position: relative; margin: 1.2rem 0 0; --sig: var(--amber); }
.tn-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 36px; }
.tn-label {
  margin: 0; font-family: "Azeret Mono", monospace; font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep);
}
.tn-loc { position: relative; min-width: 0; }
.tn-chip {
  display: inline-flex; align-items: center; gap: .45rem; max-width: min(60vw, 260px); height: 32px;
  padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--seam-strong); background: var(--panel);
  color: var(--ink); font: 500 .72rem "Azeret Mono", monospace; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: border-color .2s var(--ease-inst);
}
.tn-chip[hidden] { display: none; }
.tn-chip svg { flex: none; color: var(--ink-dim); }
.tn-chip-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-chip:hover, .tn-chip[aria-expanded="true"] { border-color: var(--ink-faint); }
.tn-picker {
  position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 32px));
  padding: .5rem; background: linear-gradient(180deg, var(--panel-raise), var(--panel));
  border: 1px solid var(--seam-strong); border-radius: 10px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.tn-picker[hidden] { display: none; }
.tn-field {
  display: flex; align-items: center; gap: .55rem; padding: 0 .75rem; height: 42px;
  border: 1px solid var(--seam-strong); border-radius: 8px; background: var(--ground); color: var(--ink-faint);
}
.tn-field:focus-within { border-color: var(--amber-deep); }
.tn-q {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 500 1rem Archivo, system-ui, sans-serif; -webkit-appearance: none; appearance: none;
}
.tn-q::placeholder { color: var(--ink-faint); }
.tn-places { list-style: none; margin: .35rem 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.tn-places button {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: .5rem .6rem;
  background: transparent; border: 0; border-radius: 7px; color: var(--ink); text-align: left;
  font: 600 .95rem Archivo, system-ui, sans-serif; cursor: pointer;
}
.tn-places button small { font-weight: 400; font-size: .8rem; color: var(--ink-dim); }
.tn-places button:hover, .tn-places button:focus-visible { background: var(--amber-ghost); }
.tn-places button[aria-current="true"] { color: var(--amber); }
.tn-places .tn-sub {
  padding: .6rem .6rem .2rem; font: 500 .66rem "Azeret Mono", monospace; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.tn-places .tn-none { padding: .6rem; color: var(--ink-dim); font-size: .9rem; }

/* the ruler: the whole band takes the drag */
.tn-ruler {
  padding: .5rem 0 .2rem; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 6px;
}
.tn-ready .tn-ruler { cursor: grab; }
.tn-ruler.tn-drag { cursor: grabbing; }
.tn-svg { display: block; width: 100%; height: auto; aspect-ratio: 680 / 138; overflow: visible; }
.tn-num { font: 500 26px "Azeret Mono", monospace; fill: var(--ink-dim); }
.tn-pins line { stroke-width: 7; stroke-linecap: round; transition: stroke .2s var(--ease-inst); }
.tn-ptr { transition: transform .28s var(--ease-inst); }
.tn-ptr line { stroke: var(--sig, var(--amber)); transition: stroke .2s var(--ease-inst); }
.tn-ptr circle { fill: var(--sig, var(--amber)); transition: fill .2s var(--ease-inst); }
.tn-ptr.tn-sweep { transition: transform 1.1s var(--ease-inst); }
.tn-drag .tn-ptr { transition: none; }
@media (prefers-reduced-motion: reduce) { .tn-ptr, .tn-ptr.tn-sweep { transition: none; } }

/* the readout: tuned station, what it plays, step and listen */
.tn-readout {
  display: flex; align-items: center; gap: .5rem; height: 76px; margin-top: .6rem;
  padding: 0 .7rem 0 .2rem; border: 1px solid var(--seam-strong); border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-raise), var(--panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .2s var(--ease-inst);
}
.tn-drag ~ .tn-readout, .tn-readout.tn-live { border-color: var(--sig); }
.tn-step {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 48px;
  background: transparent; border: 0; border-radius: 6px; color: var(--ink-dim); cursor: pointer;
}
.tn-step:hover { color: var(--ink); }
.tn-step:disabled { color: var(--seam-strong); cursor: default; }
.tuner-home:not(.tn-local) .tn-step { visibility: hidden; }
.tn-read { flex: 1; min-width: 0; }
.tn-read p { margin: 0; }
.tn-read-top { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.tn-lamp { flex: none; width: 7px; height: 7px; }
.tn-lamp.tn-dim { background: var(--seam-strong); box-shadow: none; animation: none; }
.tuner-home:not(.tn-local) .tn-lamp { display: none; }
.tn-read-name {
  flex: 0 1 auto; min-width: 0; font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.tn-read-name:hover { color: var(--amber); }
.tn-read-genre {
  flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 .7rem "Azeret Mono", monospace; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sig, var(--amber));
}
.tn-read p.tn-read-now { font-size: .88rem; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.tn-play {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; border: 0; background: var(--amber); color: #14100A; cursor: pointer;
  transition: background .2s var(--ease-inst), transform .2s var(--ease-inst);
}
.tn-play:hover { background: #FFC13D; }
.tn-play:active { transform: scale(.95); }
.tn-play.on { background: var(--ink); }
.tn-play.err { background: var(--seam-strong); color: var(--ink-dim); }
.tn-play[hidden] { display: none; }
/* Share: the secondary action beside Listen, an outline so Listen stays first */
.tn-share {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--seam-strong); background: transparent; color: var(--ink-dim); cursor: pointer;
  transition: color .2s var(--ease-inst), border-color .2s var(--ease-inst), transform .2s var(--ease-inst);
}
.tn-share:hover, .tn-share:focus-visible { color: var(--ink); border-color: var(--ink-dim); }
.tn-share:active { transform: scale(.95); }
.tn-share.done { color: var(--amber); border-color: var(--amber); }
.tn-share[hidden] { display: none; }

/* the local list: genre filter chips over popularity-ordered rows */
.tn-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; height: 22px; }
.tn-count { font: 400 .72rem "Azeret Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.tn-chips {
  display: flex; gap: .5rem; height: 52px; align-items: center; margin: .4rem -16px 0; padding: 0 16px;
  overflow-x: auto; scrollbar-width: none;
}
.tn-chips::-webkit-scrollbar { display: none; }
.tn-gchip {
  flex: none; display: inline-flex; align-items: center; gap: .5rem; height: 36px; padding: 0 .9rem;
  border-radius: 999px; border: 1px solid var(--seam-strong); background: var(--panel);
  font: 600 .88rem Archivo, system-ui, sans-serif; color: var(--ink-dim); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: border-color .2s var(--ease-inst), color .2s var(--ease-inst);
}
.tn-gchip:hover { color: var(--ink); border-color: var(--ink-faint); }
.tn-gchip[aria-pressed="true"] { background: var(--panel-raise); border: 1.5px solid var(--sig); color: var(--sig); }
.tn-sw { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--sig, var(--amber)); }
.tn-list { list-style: none; margin: .3rem 0 0; padding: 0; min-height: calc(8 * 49px); }
.tn-row {
  display: flex; align-items: center; gap: .8rem; height: 49px; border-bottom: 1px solid var(--seam);
  transition: background .2s var(--ease-inst);
}
.tn-ready .tn-row[data-u] { cursor: pointer; }
.tn-list > li[hidden] { display: none; }
.tn-row:hover { background: var(--amber-ghost); }
.tn-row .tn-name {
  flex: 1; min-width: 0; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tn-row .tn-name:hover, .tn-row.on .tn-name { color: var(--amber); }
.tn-freq { flex: none; font: 400 .78rem "Azeret Mono", monospace; letter-spacing: .06em; color: var(--ink-dim); white-space: nowrap; }
.tn-rplay {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--seam-strong); background: transparent; color: var(--ink-dim); cursor: pointer;
  transition: background .2s var(--ease-inst), color .2s var(--ease-inst), border-color .2s var(--ease-inst);
}
.tn-rplay svg { width: 14px; height: 14px; }
.tn-rplay:hover { color: var(--ink); border-color: var(--ink-faint); }
.tn-rplay.on { background: var(--ink); border-color: var(--ink); color: #14100A; }
.tn-rplay.err { color: var(--seam-strong); }
.tn-rout { flex: none; width: 34px; display: inline-flex; justify-content: center; color: var(--ink-faint); }
.tn-band {
  height: 49px; display: flex; align-items: flex-end; padding-bottom: .45rem; border-bottom: 1px solid var(--seam);
  font: 500 .66rem "Azeret Mono", monospace; letter-spacing: .14em; color: var(--ink-faint);
}
.tn-more { display: flex; align-items: center; gap: 1.4rem; height: 48px; margin: 0; }
.tn-more a, .tn-more button {
  font: 500 .72rem "Azeret Mono", monospace; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-dim); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none;
}
.tn-more a:hover, .tn-more button:hover { color: var(--amber); }
.tuner-home + section h2 { margin-top: 2rem; }
@media (max-width: 560px) {
  .tn-readout { padding-right: .5rem; gap: .25rem; }
  .tn-step { width: 32px; }
  .tn-share { width: 38px; height: 38px; }
  .tn-read-name { font-size: 1rem; }
}

/* privacy pages: "Delete my data" (assets/forget.js). Ink, never amber:
   amber is live signal only. No display rule, so [hidden] holds until JS */
.forget-btn { padding: .55rem 1.1rem; background: transparent; color: var(--ink); border: 1px solid var(--seam-strong);
  border-radius: 999px; font: 600 .9rem "Archivo", system-ui, sans-serif; cursor: pointer; }
.forget-btn:hover { border-color: var(--ink-dim); }
.forget-btn[disabled] { color: var(--ink-dim); cursor: default; }

.en-bar{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;padding:.55rem max(1rem,calc((100vw - 1100px)/2));background:var(--panel-raise,#191E24);border-bottom:1px solid var(--seam,#1F252C);font:500 .85rem/1.3 Archivo,system-ui,sans-serif;color:var(--ink-dim,#A49E90)}
.en-bar button{font:inherit;color:var(--ink,#E9E4D8);background:none;border:1px solid var(--seam-strong,#333B45);border-radius:999px;padding:.3rem .8rem;cursor:pointer}
.en-bar button:hover,.en-bar button:focus-visible{border-color:var(--ink-dim,#A49E90)}
.en-bar .en-x{margin-left:auto;border:0;font-size:1.1rem;padding:.1rem .5rem;color:var(--ink-dim,#A49E90)}
