/* ═══════════════════════════════════════════════════════════════
   THE HOUSE RADIO — /sing/radio/
   Built 2026-09-06. Uses the Living House palette and type scale;
   nothing here redefines a token, it only arranges them.

   Design note: a radio page invites neon meters and bouncing bars.
   This house does not do that. The station reads as a hymn board on
   a cream wall -- a gold hairline, burgundy ink, one slow light that
   tells you it is playing. Motion is limited to that single light
   and the progress hairline, and both stop under
   prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════ */

.rad {
  --rad-cream: #FDFBF5;
  --rad-gold: #B48748;
  --rad-gold-ink: #7C5518;
  --rad-burgundy: #3A141E;
  --rad-rule: rgba(180, 135, 72, .30);
  --rad-rule-soft: rgba(180, 135, 72, .16);

  max-width: 820px;
  margin: 0 auto;
  padding: 4px 22px 8px;
}

/* ── The station panel ────────────────────────────────────────── */
.rad-panel {
  background: linear-gradient(180deg, #FFFDF8 0%, var(--rad-cream) 100%);
  border: 1px solid var(--rad-rule);
  border-radius: 10px;
  padding: 30px 28px 26px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset,
              0 12px 34px -22px rgba(58, 20, 30, .38);
}

.rad-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: .74rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--rad-gold-ink);
  margin: 0 0 16px;
}
.rad-lamp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(124, 85, 24, .28);
  flex: none;
  transition: background 300ms ease;
}
.rad.is-playing .rad-lamp {
  background: #8B3A4F;
  animation: rad-breathe 3.4s ease-in-out infinite;
}
@keyframes rad-breathe {
  0%, 100% { opacity: .35; box-shadow: 0 0 0 0 rgba(139, 58, 79, 0); }
  50%      { opacity: 1;   box-shadow: 0 0 0 4px rgba(139, 58, 79, .12); }
}

/* ── Now playing ──────────────────────────────────────────────── */
.rad-now {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 4.6vw, 2.35rem);
  line-height: 1.18;
  color: var(--rad-burgundy);
  margin: 0 0 6px;
}
.rad-sub {
  font-family: "Source Serif Pro", Georgia, serif;
  font-style: italic;
  font-size: .95rem;
  color: rgba(58, 20, 30, .68);
  margin: 0 0 20px;
}
.rad-sub a {
  color: var(--rad-gold-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rad-rule);
}
.rad-sub a:hover,
.rad-sub a:focus-visible { border-bottom-color: var(--rad-gold-ink); }

/* ── Progress hairline ────────────────────────────────────────── */
.rad-progress {
  position: relative;
  height: 2px;
  background: var(--rad-rule-soft);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 0 8px;
}
.rad-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--rad-gold);
  border-radius: 2px;
}
.rad-times {
  display: flex;
  justify-content: space-between;
  font-family: "Source Serif Pro", Georgia, serif;
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  color: rgba(58, 20, 30, .55);
  margin: 0 0 22px;
}

/* ── Controls ─────────────────────────────────────────────────── */
.rad-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.rad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--rad-gold);
  border-radius: 999px;
  background: transparent;
  color: var(--rad-burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background 170ms ease, color 170ms ease, border-color 170ms ease;
}
.rad-btn:hover,
.rad-btn:focus-visible {
  background: var(--rad-burgundy);
  border-color: var(--rad-burgundy);
  color: #FDFBF5;
}
.rad-btn svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
/* .rad-btn sets its own display, which would otherwise beat [hidden]. */
.rad-btn[hidden] { display: none; }

/* The one button that starts the sound carries the weight; the rest stay
   outlines so the panel has a single obvious place to press. */
.rad-btn--primary {
  background: var(--rad-burgundy);
  border-color: var(--rad-burgundy);
  color: #FDFBF5;
}
.rad-btn--primary:hover,
.rad-btn--primary:focus-visible {
  background: #52202C;
  border-color: #52202C;
}

.rad-btn--quiet {
  min-height: 40px;
  padding: 0 16px;
  border-color: var(--rad-rule);
  font-size: 1rem;
}

.rad-volume {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(58, 20, 30, .55);
}
.rad-volume input[type="range"] {
  width: 116px;
  accent-color: var(--rad-gold);
  cursor: pointer;
}

/* ── The rotation board ───────────────────────────────────────── */
.rad-board { margin: 34px 0 0; }
.rad-board__label {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: .74rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--rad-gold-ink);
  margin: 0 0 12px;
}
.rad-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rad-rule-soft);
}
.rad-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--rad-rule-soft);
  margin: 0;
}
.rad-list__mark {
  flex: none;
  width: 1.4em;
  font-family: "Source Serif Pro", Georgia, serif;
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  color: rgba(58, 20, 30, .42);
}
/* A button, not a link -- it starts sound, it does not go anywhere. */
.rad-list__title {
  appearance: none;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.14rem;
  line-height: 1.3;
  color: var(--rad-burgundy);
  text-align: left;
  cursor: pointer;
}
.rad-list__title:hover,
.rad-list__title:focus-visible { border-bottom-color: var(--rad-gold); }

/* Pushed to the right so the titles read as one clean column. */
.rad-list__story {
  margin-left: auto;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rad-gold-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rad-rule-soft);
  white-space: nowrap;
}
.rad-list__story:hover,
.rad-list__story:focus-visible { border-bottom-color: var(--rad-gold-ink); }
.rad-list__len {
  margin-left: 16px;
  font-family: "Source Serif Pro", Georgia, serif;
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
  color: rgba(58, 20, 30, .45);
}
.rad-list li[aria-current="true"] { background: rgba(180, 135, 72, .07); }
.rad-list li[aria-current="true"] .rad-list__mark { color: var(--rad-gold-ink); }
.rad-list li[aria-current="true"] .rad-list__title { font-weight: 600; }

.rad-note {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: .88rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(58, 20, 30, .6);
  margin: 18px 0 0;
}

@media (max-width: 560px) {
  .rad { padding-left: 16px; padding-right: 16px; }
  .rad-panel { padding: 24px 18px 22px; }
  .rad-volume { margin-left: 0; width: 100%; }
  .rad-list__len { display: none; }
  .rad-list__story { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rad.is-playing .rad-lamp { animation: none; opacity: 1; }
  .rad-progress__fill { transition: none; }
}
