:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e9eae5;
  background: #171918;
  font-synthesis: none;
  --muted: #a4aaa5;
  --line: #343935;
  --accent: #d6e0d1;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button, a, input, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #e2edda; outline-offset: 5px; }
[hidden] { display: none !important; }
.app-shell { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.site-header { min-height: 88px; padding: 0 clamp(24px, 5vw, 80px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 24px; font-weight: 650; letter-spacing: -1px; }
.brand-fm { padding: 4px 6px; font: 600 11px/1 ui-monospace, monospace; letter-spacing: .5px; border: 1px solid #768077; border-radius: 3px; }
.header-caption { color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.main { min-height: 0; width: 100%; max-width: 1600px; margin: 0 auto; padding: clamp(24px, 5vh, 56px) clamp(24px, 5vw, 80px) 20px; display: flex; flex-direction: column; }
.intro { flex: 0 0 auto; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.7px; }
h1 { margin: 0; font-size: clamp(30px, 3.5vw, 48px); line-height: 1.15; letter-spacing: -1.8px; font-weight: 500; }
h1 span { color: var(--muted); }
.intro-description { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: clamp(24px, 4vh, 42px) 0 16px; }
h2 { font-size: 14px; font-weight: 500; margin: 0; }
.chooser-frame { position: relative; min-height: 0; flex: 1; }
.station-chooser { height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 6px 18px 18px 6px; margin-left: -6px; }
.station-chooser::-webkit-scrollbar { display: none; }
.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 345px), 1fr)); gap: 22px; align-content: start; }
.station-card { position: relative; width: 100%; text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #1e211f; display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 20px; transition: transform 200ms ease, border-color 200ms ease; }
.station-card[aria-disabled="true"] { cursor: default; }
.station-card[data-current="true"] { border-color: #a2af9a; background: #242923; }
.station-art, .player-art { display: block; object-fit: cover; aspect-ratio: 1; border-radius: 4px; background: #303531; }
.station-art { width: 100%; }
.station-number { display: block; color: var(--muted); font: 10px ui-monospace, monospace; margin-bottom: 10px; letter-spacing: 1px; }
.station-name { display: block; font-size: 19px; font-weight: 550; letter-spacing: -.4px; }
.station-description { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.station-state { display: flex; align-items: center; gap: 7px; margin-top: 15px; font-size: 11px; color: #c4cbc1; }
.station-state::before { content: ""; height: 5px; width: 5px; border-radius: 50%; background: #717970; }
.station-card[data-current="true"] .station-state::before { background: var(--accent); }
.catalog-message { color: var(--muted); font-size: 14px; line-height: 1.6; }
.chooser-scrollbar { position: absolute; top: 0; right: 0; bottom: 0; width: 10px; border-radius: 6px; background: #292e2a; touch-action: none; cursor: pointer; }
.scrollbar-thumb { position: absolute; top: 0; left: 2px; right: 2px; min-height: 28px; border-radius: 6px; background: #828d80; }
.player { z-index: 1; min-height: 112px; border-top: 1px solid #41473f; background: #1c1f1c; padding: 22px clamp(24px, 5vw, 80px) max(22px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
.now-playing { display: flex; align-items: center; gap: 14px; min-width: 0; }
.player-art { width: 56px; flex: 0 0 56px; }
.player-copy { min-width: 0; }
.player-station { margin: 0 0 5px; font-size: 15px; font-weight: 550; }
.playback-status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.playback-status[data-error="true"] { color: #efbcae; }
.track-info { margin: 4px 0 0; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.sound-controls { justify-self: end; display: flex; align-items: center; gap: 22px; }
.play-toggle, .mute-toggle, .volume-toggle { border: 0; background: transparent; min-height: 44px; min-width: 64px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px; font-size: 12px; }
.mute-toggle svg, .volume-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.volume-control { position: relative; width: 116px; }
.volume-toggle { display: none; }
.volume-caption { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; margin-bottom: 2px; }
input[type="range"] { width: 100%; min-height: 24px; margin: 0; cursor: pointer; accent-color: #d6e0d1; }
@media (hover: hover) { .station-card:not([aria-disabled="true"]):hover { transform: scale(1.02); border-color: #889481; } .play-toggle:not(:disabled):hover, .mute-toggle:hover, .volume-toggle:hover { color: #fff; } }
@media (min-width: 1500px) { .station-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .site-header { min-height: 68px; }
  .brand { font-size: 22px; }
  .header-caption { font-size: 9px; max-width: 90px; text-align: right; line-height: 1.5; }
  .main { padding-top: 28px; padding-bottom: 12px; }
  h1 { font-size: 34px; letter-spacing: -1.3px; }
  .eyebrow { font-size: 9px; margin-bottom: 12px; }
  .intro-description { font-size: 12px; margin-top: 14px; max-width: 280px; }
  .section-heading { margin-top: 28px; margin-bottom: 12px; }
  .station-grid { grid-template-columns: minmax(0, 1fr); }
  .station-card { padding: 14px; grid-template-columns: 88px minmax(0, 1fr); gap: 15px; }
  .station-name { font-size: 18px; }
  .station-number { margin-bottom: 7px; }
  .station-state { margin-top: 10px; }
  .player { padding: 16px 16px max(16px, env(safe-area-inset-bottom)); gap: 12px; }
  .now-playing { gap: 10px; }
  .player-art { width: 44px; flex-basis: 44px; }
  .player-station { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sound-controls { gap: 4px; }
  .play-toggle, .mute-toggle, .volume-toggle { min-width: 44px; width: 44px; flex: 0 0 44px; }
  #play-label, #mute-label { display: none; }
  .volume-control { width: 44px; flex: 0 0 44px; }
  .volume-toggle { display: flex; }
  .volume-toggle[aria-expanded="true"] { background: #343935; border-radius: 4px; }
  .volume-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: 184px; padding: 16px; border: 1px solid #596253; border-radius: 6px; background: #252a24; box-shadow: 0 8px 24px #0006; }
  .volume-panel .volume-caption { font-size: 12px; margin-bottom: 8px; }
  .volume-panel input { min-height: 32px; }
}
@media (max-height: 650px) {
  .site-header { min-height: 56px; }
  .main { padding-top: 18px; }
  .eyebrow, .intro-description { display: none; }
  h1 { font-size: 27px; }
  h1 br { display: none; }
  h1 span::before { content: " "; }
  .section-heading { margin-top: 18px; }
}
@media (max-width: 380px) {
  .player { gap: 8px; }
  .now-playing { gap: 8px; }
  .player-art { width: 36px; flex-basis: 36px; }
  .player-station { font-size: 13px; }
  .sound-controls { gap: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
