:root,
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101010;
  --card: rgba(255, 247, 238, 0.05);
  --ink: #f4efe7;
  --muted: #b7ada2;
  --faint: #8d847a;
  --line: rgba(244, 239, 231, 0.12);
  --accent: #e7a892;
  --live: #8ed0aa;
  --live-soft: rgba(142, 208, 170, 0.16);
  --shadow: 0 28px 70px -32px rgba(0, 0, 0, 0.8);
  --header: rgba(16, 16, 16, 0.8);
  --play: #f4efe7;
  --play-ink: #141210;
  --glow: rgba(231, 168, 146, 0.18);
  --glow-2: rgba(142, 208, 170, 0.1);
  --grain: rgba(244, 239, 231, 0.04);
  --art: #221e1a;
  --art-mark: rgba(244, 239, 231, 0.4);
  --art-fall: linear-gradient(160deg, #2c261f, #151311);
  --track: rgba(244, 239, 231, 0.18);
  --pulse: rgba(244, 239, 231, 0.34);
  --sheen: rgba(255, 248, 240, 0.12);
  --chip: rgba(255, 248, 240, 0.04);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --radius: 20px;
}

[data-theme="light"] {
  color-scheme: light;
  --paper: #f3eee6;
  --card: rgba(255, 252, 247, 0.86);
  --ink: #211c17;
  --muted: #6d645a;
  --faint: #968d82;
  --line: rgba(33, 28, 23, 0.12);
  --accent: #8d4636;
  --live: #2c6a4a;
  --live-soft: rgba(44, 106, 74, 0.12);
  --shadow: 0 30px 70px -42px rgba(48, 32, 18, 0.65);
  --header: rgba(243, 238, 230, 0.78);
  --play: #211c17;
  --play-ink: #f6f1e8;
  --glow: rgba(196, 106, 82, 0.1);
  --glow-2: rgba(44, 106, 74, 0.07);
  --grain: rgba(33, 28, 23, 0.045);
  --art: #e7dfd2;
  --art-mark: rgba(33, 28, 23, 0.35);
  --art-fall: linear-gradient(160deg, #efe6d8, #d9cfc0);
  --track: rgba(33, 28, 23, 0.16);
  --pulse: rgba(33, 28, 23, 0.28);
  --sheen: rgba(255, 255, 255, 0.72);
  --chip: rgba(255, 252, 247, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  background:
    radial-gradient(640px 320px at 50% -8%, var(--glow), transparent 62%),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  background-image: radial-gradient(var(--grain) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

button, input { font: inherit; color: inherit; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(18px);
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.brand span,
.display span {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.42em;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.display span { margin-left: 0.14em; }

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.nav a:hover { color: var(--ink); }

.onair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip);
}

.theme button {
  width: 32px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.theme button:hover { color: var(--ink); }

.theme button.is-on {
  background: var(--ink);
  color: var(--paper);
}

.theme button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme svg .fill {
  fill: currentColor;
  stroke: none;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 5px var(--live-soft);
}

.hero { padding: 72px 0 28px; }

.kicker {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.lede {
  max-width: 32rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-weight: 460;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.4;
}

.player {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 40px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--sheen);
  backdrop-filter: blur(16px);
}

.art {
  position: relative;
  width: 156px;
  height: 156px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--art);
}

.art img,
.art-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.art img { object-fit: cover; }

.art-fallback {
  display: none;
  place-items: center;
  font-family: var(--serif);
  font-size: 3.4rem;
  color: var(--art-mark);
  background: var(--art-fall);
}

.art.is-empty img { display: none; }
.art.is-empty .art-fallback { display: grid; }

.meta { min-width: 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.artist {
  margin: 0;
  color: var(--accent);
  font-size: 0.95rem;
}

.title {
  margin: 2px 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

.album {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 0.92rem;
}

.album:empty,
.next:empty { display: none; }

.progress {
  position: relative;
  height: 2px;
  margin-top: 18px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.progress[hidden] { display: none; }

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
}

.times {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 0;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}

.times[hidden] { display: none; }

.next {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-right: 8px;
}

.play {
  position: relative;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: var(--play);
  color: var(--play-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 160ms ease;
}

.play:hover { transform: scale(1.04); }
.play:active { transform: scale(0.97); }

.play:focus-visible,
.nav a:focus-visible,
.volume input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.play svg { width: 24px; height: 24px; fill: currentColor; }
.play .icon-pause { display: none; }
.play.is-on .icon-play { display: none; }
.play.is-on .icon-pause { display: block; }

.play.is-on::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--pulse);
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  from { transform: scale(0.94); opacity: 0.7; }
  to { transform: scale(1.22); opacity: 0; }
}

.volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
}

.volume svg { width: 16px; height: 16px; fill: currentColor; }

.volume input {
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--ink) var(--p, 85%), var(--track) var(--p, 85%));
  cursor: pointer;
}

.volume input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}

.volume input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.section { padding: 64px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.index {
  margin: 0;
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section h2,
.prose h2 {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.045em;
}

.prose h2 { margin-bottom: 18px; }

.history { list-style: none; margin: 0; padding: 0; }

.history li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  margin: 0 -12px;
  padding: 14px 12px;
  border-bottom: 0;
  border-radius: 14px;
  transition: background 160ms ease;
}

.history li:hover { background: var(--chip); }

.history strong {
  display: block;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.history em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

.history time {
  color: var(--faint);
  font-size: 0.86rem;
  white-space: nowrap;
}

.empty {
  margin: 22px 0 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.prose p {
  margin: 0 0 16px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.facts {
  margin: 0;
  padding: 8px 0 0;
}

.facts div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  margin: 0;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.facts dd {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.stream-link {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.stream-link:hover { text-decoration: underline; }

.widgets-section { padding-top: 8px; }

.widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.widgets.is-single { grid-template-columns: 1fr; }

.widget {
  padding: 22px 22px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--sheen);
}

.widget h2 { margin-bottom: 8px; }

.slots { margin-top: 8px; }

.slot,
.request-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.slot { grid-template-columns: 108px minmax(0, 1fr); }

.request-row { grid-template-columns: 44px minmax(0, 1fr) auto; }

.request-row[hidden] { display: none !important; }

.when {
  margin: 0;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
}

.slot.is-now .when { color: var(--live); }

.slot strong,
.request-row strong {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.slot em,
.request-row em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

.badge {
  margin-left: 8px;
  color: var(--live);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--art);
}

.thumb-empty {
  display: grid;
  place-items: center;
  color: var(--art-mark);
  font-family: var(--serif);
}

.finder {
  width: 100%;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--chip);
  color: var(--ink);
}

.finder:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.note {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.note:empty { display: none; }
.note.is-ok { color: var(--live); }
.note.is-bad { color: var(--accent); }

.request-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
}

.request-row button:hover { background: var(--ink); color: var(--paper); }

.request-row button:disabled {
  opacity: 0.55;
  cursor: default;
  background: transparent;
  color: var(--muted);
}

.request-row button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-footer {
  padding: 28px 0 40px;
  color: var(--faint);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

@media (max-width: 800px) {
  .onair { display: none; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 10px; padding: 12px 0; }
  .header-tools { margin-left: auto; }
  .nav { order: 3; width: 100%; gap: 16px; }
  .about-grid,
  .widgets { grid-template-columns: 1fr; }
  .request-row button { padding: 8px 10px; }
  .player {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "art controls"
      "meta meta";
    align-items: center;
  }
  .art { grid-area: art; width: 120px; height: 120px; }
  .meta { grid-area: meta; }
  .controls {
    grid-area: controls;
    flex-direction: column;
    align-items: flex-end;
    justify-self: end;
    width: auto;
    padding-right: 2px;
    gap: 14px;
  }
  .play { width: 72px; height: 72px; }
  .site-footer .wrap { flex-direction: column; }
}

@media (max-width: 640px) {
  .wrap { width: min(1080px, calc(100% - 28px)); }
  .nav { gap: 14px; }
  .hero { padding-top: 42px; }
  .site-header .wrap { min-height: 64px; }
  .history li { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play.is-on::after { animation: none; }
}
