@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0c0d;
  --panel: #151517;
  --ink: #ededee;
  --ink-2: #a4a4ab;
  --ink-3: #8d8d95;
  --line: #26262a;
  --accent: #8ea2f2;
  --live: #ff5d4d;
  --amber: #f2b84b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 "Inter", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }

.set {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding: calc(1.25rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  display: grid;
  gap: 1.25rem;
}

.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand img { border-radius: 10px; flex: none; }
.brand h1 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.brand p { color: var(--ink-2); font-size: 0.9rem; }
.clock { margin-left: auto; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }

.tuner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem;
}
.play {
  flex: none; width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); display: grid; place-items: center;
  transition: transform 0.12s ease, background 0.2s ease;
}
.play:active { transform: scale(0.95); }
.play svg { width: 2.1rem; height: 2.1rem; fill: currentColor; grid-area: 1 / 1; }
.play .i-stop { display: none; }
.play[aria-pressed="true"] { background: var(--live); color: #fff; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-stop { display: block; }
.status { flex: 1 1 10rem; min-width: 0; }
.state { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.kind { color: var(--ink-2); font-size: 0.9rem; }
.lamp { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--ink-3); flex: none; }
.lamp.live { background: var(--live); box-shadow: 0 0 0 0 rgba(255, 93, 77, 0.6); animation: pulse 1.6s ease-out infinite; }
.lamp.wait { background: var(--amber); }
@keyframes pulse { to { box-shadow: 0 0 0 0.6rem rgba(255, 93, 77, 0); } }
@media (prefers-reduced-motion: reduce) { .lamp.live { animation: none; } .play { transition: none; } }
.vol { flex: 0 1 8rem; display: flex; }
.vol input { width: 100%; accent-color: var(--ink); }
@media (hover: none) and (pointer: coarse) { .vol { display: none; } }  /* phones use their own volume buttons */

.onair { padding: 0.25rem 0.1rem; min-height: 7.5rem; }
.onair h2 { font-size: clamp(1.35rem, 5.2vw, 1.8rem); font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.meta { color: var(--ink-2); margin-top: 0.5rem; font-size: 0.95rem; }

.ones { border-top: 1px solid var(--line); padding-top: 1.1rem; display: grid; gap: 0.9rem; }
.ones-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
h3 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
#countdown { color: var(--amber); font-weight: 600; font-size: 0.95rem; }
.dial { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; }
.dial li {
  text-align: center; padding: 0.45rem 0; border-radius: 10px; border: 1px solid var(--line);
  color: var(--ink-3); font-weight: 600; font-size: 0.95rem;
}
.dial li.next { border-color: var(--amber); color: var(--amber); }
.dial li.now { background: var(--live); border-color: var(--live); color: #fff; }
.latest { display: grid; gap: 0.35rem; }
.latest div { display: flex; gap: 0.75rem; }
.latest dt { flex: 0 0 4.5rem; color: var(--ink-3); }
.latest dd { color: var(--ink); }

.earlier { border-top: 1px solid var(--line); padding-top: 1.1rem; display: grid; gap: 0.6rem; }
.earlier li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.earlier li:last-child { border-bottom: 0; }
.earlier time { color: var(--ink-3); font-size: 0.9rem; padding-top: 0.1rem; }
.earlier .what { font-weight: 500; line-height: 1.35; }
.earlier .tag { color: var(--ink-3); font-size: 0.85rem; }
.earlier .empty { display: block; color: var(--ink-3); }

footer { border-top: 1px solid var(--line); padding-top: 1rem; color: var(--ink-3); font-size: 0.82rem; display: grid; gap: 0.5rem; }

/* audition page */
.voices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.voices button, .tuner select {
  font: inherit; font-weight: 550; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.55rem 0.9rem; cursor: pointer; text-transform: capitalize;
}
.voices button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tuner label { display: grid; gap: 0.3rem; color: var(--ink-2); font-size: 0.85rem; }
