/* Stumble Inn Radio (/radio). The deck reads the --t-* tokens that pages-radio.ts scopes to
 * .radio-room[data-radio-theme=…]; the rest of the page keeps the Lantern After Dark shell. */
.radio-room { padding: 56px 0 40px; }
.radio-room [hidden] { display: none !important; }
.radio-hero {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 480px);
  gap: 48px;
  align-items: center;
}
.radio-intro .display { font-size: clamp(38px, 5vw, 64px); }

/* ---------- deck ---------- */
.radio-deck {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 22px;
  border-radius: var(--radius);
  color: var(--t-ink);
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--t-glow) 22%, transparent), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--t-accent) 14%, transparent), transparent 65%),
    linear-gradient(180deg, var(--t-surface-hi), var(--t-surface));
  border: 1px solid var(--t-line);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.06);
}
.radio-deck :focus-visible { outline: 3px solid var(--t-heading); outline-offset: 3px; }
.radio-deck a { color: var(--t-link); }
.radio-deck-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.radio-badge {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  background: var(--t-tint); color: var(--t-ink2); border: 1px solid var(--t-line);
}
.radio-dot { width: 10px; height: 10px; border-radius: 99px; background: currentColor; opacity: .55; flex: none; }
.radio-badge[data-state="live"] { background: var(--t-primary); color: var(--t-primary-ink); border-color: transparent; }
.radio-badge[data-state="live"] .radio-dot {
  opacity: 1; background: #ff5a5a;
  box-shadow: 0 0 0 3px rgba(255, 90, 90, .25), 0 0 12px rgba(255, 90, 90, .7);
  animation: radio-pulse 1.6s ease-in-out infinite;
}
.radio-badge[data-state="autodj"] { background: var(--t-accent); color: var(--t-accent-ink); border-color: transparent; }
.radio-badge[data-state="autodj"] .radio-dot { opacity: 1; }
@keyframes radio-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 90, 90, .08), 0 0 16px rgba(255, 90, 90, .9); } }

.radio-listeners { display: inline-flex; align-items: center; gap: 7px; color: var(--t-ink2); font-size: 14.5px; }
.radio-listeners svg { color: var(--t-accent); }
[data-radio-theme="cirulia"] .radio-listeners svg { color: var(--t-primary); }

.radio-now { margin: 22px 0 6px; min-height: 76px; }
.radio-show {
  margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); line-height: 1.1;
  letter-spacing: -.02em; color: var(--t-heading); overflow-wrap: anywhere;
}
.radio-track { margin: 8px 0 0; font-size: 16.5px; color: var(--t-ink2); overflow-wrap: anywhere; }

.radio-offair { margin: 20px 0 6px; min-height: 76px; }
.radio-offair-line { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 16px; line-height: 1.5; color: var(--t-ink); }
.radio-offair-line svg { flex: none; margin-top: 2px; color: var(--t-accent); }
[data-radio-theme="cirulia"] .radio-offair-line svg { color: var(--t-primary); }
.radio-schedule {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--t-tint); border: 1px solid var(--t-line);
}
.radio-schedule h4 {
  margin: 0 0 6px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--t-heading);
}
.radio-schedule p { margin: 0; color: var(--t-ink); line-height: 1.5; overflow-wrap: anywhere; }

/* ---------- controls ---------- */
.radio-controls { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.radio-play {
  flex: none; display: inline-grid; place-items: center;
  width: 72px; height: 72px; border-radius: 999px; border: 0;
  background: var(--t-accent); color: var(--t-accent-ink);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--t-accent) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .14s var(--ease), filter .14s var(--ease);
}
[data-radio-theme="cirulia"] .radio-play { background: var(--t-primary); color: var(--t-primary-ink); box-shadow: 0 10px 22px rgba(20, 81, 58, .28); }
.radio-play:hover:not(:disabled) { transform: translateY(-1px) scale(1.03); filter: brightness(1.06); }
.radio-play:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.radio-play svg { display: block; }
.radio-ico-play svg { margin-left: 3px; }

.radio-volume { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.radio-mute {
  flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  background: var(--t-tint); color: var(--t-ink); border: 1px solid var(--t-line);
}
.radio-mute:hover { border-color: var(--t-accent); }
.radio-room.is-muted .radio-mute [data-vol-waves] { opacity: 0; }
.radio-room.is-muted .radio-mute { color: var(--t-ink2); }
.radio-vol-label { font-size: 14px; color: var(--t-ink2); }
.radio-volume input[type="range"] {
  flex: 1; min-width: 80px; height: 44px; margin: 0; background: transparent; accent-color: var(--t-accent); cursor: pointer;
}
[data-radio-theme="cirulia"] .radio-volume input[type="range"] { accent-color: var(--t-primary); }
.radio-player-msg { margin: 14px 0 0; min-height: 1.5em; font-size: 14.5px; color: var(--t-ink2); }

/* ---------- extras (site shell colours) ---------- */
.radio-extras {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
}
.radio-looks { margin: 0; padding: 0; border: 0; min-width: 0; }
.radio-looks legend { padding: 0; margin-bottom: 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.radio-look-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-look {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 8px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink);
  font: 500 14px/1.2 var(--font-body);
}
.radio-look:hover { border-color: var(--line-strong); background: rgba(255,255,255,.08); }
.radio-look[aria-pressed="true"] { border-color: var(--brass); background: rgba(212, 180, 131, .14); box-shadow: inset 0 0 0 1px var(--brass); }
.radio-look:focus-visible, .radio-about a:focus-visible { outline: 3px solid var(--brass-bright); outline-offset: 3px; }
.radio-look-swatch {
  width: 28px; height: 28px; border-radius: 99px; flex: none;
  background: conic-gradient(var(--sw-a) 0 50%, var(--sw-b) 50% 75%, var(--sw-c) 75%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}
.radio-fine { margin: 10px 0 0; font-size: 13px; color: var(--ink-mute); }
.radio-about p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.55; overflow-wrap: anywhere; }
.radio-about a { color: var(--brass-bright); }
.radio-about code { font-family: var(--font-mono); font-size: 13.5px; }
.radio-admin-link { font-weight: 500; }

@media (max-width: 980px) {
  .radio-hero { grid-template-columns: 1fr; gap: 28px; }
  .radio-extras { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .radio-room { padding: 28px 0 28px; }
  .radio-intro .display { font-size: clamp(32px, 9vw, 42px); }
  .radio-intro .lede { font-size: 16px; }
  .radio-deck { padding: 20px 18px 18px; }
  .radio-controls { gap: 12px; }
  .radio-vol-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .radio-look { flex: 1 1 calc(50% - 8px); justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .radio-badge[data-state="live"] .radio-dot { animation: none; }
  .radio-play { transition: none; }
}
@media (forced-colors: active) {
  .radio-badge, .radio-play, .radio-mute, .radio-look { border: 1px solid CanvasText; }
  .radio-look[aria-pressed="true"] { outline: 2px solid Highlight; }
}
