/* A station's public page on Redio FM.
 *
 * The player is the app's own object in the "Pocket recorder" language: a
 * housing, a sunk glass display with mono readouts, and a Play key in a
 * recessed well. Everything else is plain type on a flat ground with thin
 * rules. Nested corners are concentric: inner = outer − padding, computed in
 * CSS from named values. Motion 150–350 ms ease-out, none under reduced
 * motion.
 */

:root {
  color-scheme: dark;
  --void: #0e1012;
  --ink: #f2f4f7;
  --ink-muted: #9ba2ac;
  --ink-faint: #7d848e;
  --hairline: #262a30;
  --brass: #e9b778;
  --signal: #ff7a1a;
  --mono: "Share Tech Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root:not([data-theme="light"]) { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--void); color: var(--ink); font-size: 15px; line-height: 1.55; }
a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.top, #page, .foot { max-width: 640px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { border-radius: 7px; }
.brand b { font-size: 15px; }
.top-link { font-size: 14px; font-weight: 600; }

.loading { display: grid; place-items: center; min-height: 50vh; }
.loading span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #2a2e35; border-top-color: var(--brass); animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Station heading ── */
.head { display: flex; align-items: center; gap: 16px; padding: 22px 0 18px; }
.logo { width: 72px; height: 72px; flex: none; border-radius: 16px; object-fit: cover; background: #1c2024; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
.logo.round { border-radius: 50%; }
.head h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.head p { margin: 4px 0 0; color: var(--ink-muted); font-size: 14px; }

/* ── The player: housing → display window → keys ── */
.device {
  --r: 26px; --pad: 12px;
  border-radius: var(--r); padding: var(--pad);
  display: grid; gap: 12px;
  background: linear-gradient(180deg, #24272d 0%, #17191d 55%, #111316 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 0 rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.8), 0 10px 22px rgba(0,0,0,0.55);
}
.lcd {
  --r2: calc(var(--r) - var(--pad));
  position: relative; overflow: hidden;
  border-radius: var(--r2); padding: 14px 14px 12px 16px;
  display: grid; gap: 6px;
  background: radial-gradient(130% 120% at 30% 0%, #1d1a16 0%, #0d0c0b 60%, #080807 100%);
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.07);
}
.lcd::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 38%),
              repeating-linear-gradient(0deg, rgba(255,255,255,0.016) 0 1px, rgba(0,0,0,0) 1px 3px);
}
.lcd-row { display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); }
.lcd-when { font-size: 13px; color: #c9a47a; letter-spacing: 0.06em; }
.lamp { margin-left: auto; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: #5b4a38; transition: color 200ms var(--ease), text-shadow 200ms var(--ease); }
.lamp.on { color: #ff8a3d; text-shadow: 0 0 6px rgba(255,122,26,0.7); }
.lcd-title { font-size: 20px; font-weight: 700; line-height: 1.25; color: #ffe7cc; text-shadow: 0 0 8px rgba(255,170,90,0.25); }
.lcd-sub { font-size: 14px; color: #b39a7e; }
.lcd-freq { font-family: var(--mono); font-size: 28px; line-height: 1; color: #fff1e0; text-shadow: 0 0 8px rgba(255,170,90,0.45); }
.lcd-freq small { font-size: 13px; color: #9a8268; text-shadow: none; margin-left: 6px; }

/* A level meter while playing: a pattern, not real loudness. */
.meter { display: flex; align-items: flex-end; gap: 2px; height: 22px; margin-top: 4px; }
.meter i { flex: 1; height: 18%; border-radius: 1px; background: #2c251e; transition: height 160ms var(--ease), background 160ms var(--ease); }
.playing .meter i { background: linear-gradient(180deg, #ffa060, #d95926); box-shadow: 0 0 4px rgba(255,122,26,0.4); }

.keys { display: flex; align-items: center; gap: 14px; padding: 2px 4px 2px 2px; }
.well {
  --w: 68px; --inset: 5px;
  width: var(--w); height: var(--w); flex: none; border-radius: 50%; padding: var(--inset);
  background: linear-gradient(180deg, #050506, #17191d);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.85), 0 1px 0 rgba(255,255,255,0.07);
}
.play {
  width: 100%; height: 100%; border-radius: 50%; position: relative;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 38% 30%, #ff9a52 0%, #ff7a1a 42%, #b8470f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -4px 6px rgba(80,24,0,0.55), 0 0 0 1px rgba(60,20,0,0.8), 0 4px 10px rgba(255,122,26,0.25);
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.play::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(50% 40% at 30% 18%, rgba(255,255,255,0.42), rgba(255,255,255,0) 100%); }
.play:active { transform: translateY(1px) scale(0.98); box-shadow: inset 0 3px 6px rgba(70,20,0,0.7), 0 0 0 1px rgba(60,20,0,0.8), 0 1px 2px rgba(0,0,0,0.5); }
.play svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 1px rgba(80,24,0,0.6)); }
.keys-text { display: grid; gap: 2px; min-width: 0; }
.keys-text b { font-size: 15px; }
.keys-text span { font-size: 13px; color: var(--ink-muted); }
.grille { display: flex; justify-content: center; gap: 5px; padding-top: 2px; }
.grille i { width: 18px; height: 3px; border-radius: 2px; background: #08090a; box-shadow: inset 0 1px 1px rgba(0,0,0,0.9), 0 1px 0 rgba(255,255,255,0.06); }

/* ── Open in the app ── */
.cta { display: grid; gap: 8px; margin: 18px 0 6px; }
.btn-app {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; border-radius: 25px; font-weight: 700; font-size: 15px;
  background: var(--brass); color: #1a1209; text-decoration: none;
  transition: transform 150ms var(--ease);
}
.btn-app:hover { text-decoration: none; }
.btn-app:active { transform: scale(0.98); }
.cta p { margin: 0; text-align: center; font-size: 13px; color: var(--ink-faint); }

/* ── Sections: plain rows and rules ── */
section { margin-top: 34px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 6px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.rows li { padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.show { display: grid; gap: 2px; }
.show b { font-size: 16px; }
.show .with { font-size: 14px; color: var(--ink-muted); }
.show .when { font-family: var(--mono); font-size: 13.5px; color: var(--ink-faint); }
.show .now { color: var(--signal); font-weight: 700; font-size: 13px; }
.person { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
.face { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #2a2e35; display: grid; place-items: center; color: var(--ink-muted); font-weight: 700; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
.person b { font-size: 15px; }
.person .shows { font-size: 13.5px; color: var(--ink-muted); }
.person p { margin: 6px 0 0; font-size: 14.5px; }

.foot { margin-top: 48px; padding-top: 18px; padding-bottom: 36px; border-top: 1px solid var(--hairline); color: var(--ink-faint); font-size: 13.5px; }
.foot p { margin: 0 0 6px; }

.missing { padding: 60px 0; }
.missing h1 { font-size: 24px; margin: 0 0 8px; }
.missing p { color: var(--ink-muted); margin: 0 0 16px; }

/* Arrive: the sections rise in, one after another. */
.rise { animation: rise 320ms var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .meter i, .play, .lamp { transition: none; }
  .loading span { animation-duration: 0s; }
}
