:root {
  color-scheme: light dark;
  --page: #eef2f6; --surface: #fff; --text: #172635;
  --muted: #526273; --line: #cbd4de; --accent: #174f91;
  --warning: #734419;
  font: 18px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); }
header, main, footer { max-width: 1440px; margin: auto; padding: 12px 24px; }
h1 { font-size: 1.4rem; margin: 0; line-height: 1.3; letter-spacing: -.02em; }
h1 span { font-size: 1rem; color: var(--muted); letter-spacing: 0; margin-left: 16px; font-weight: 500; }
main { padding-top: 0; padding-bottom: 0; }
p { margin: 8px 0 12px; }
.tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.tabs button { min-height: 48px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--surface); border-color: var(--accent); font-weight: 650; }
.tabs button:hover { text-decoration: underline; text-underline-offset: 4px; }
.station { border-top: 1px solid var(--line); }
.station > summary {
  display: block;
  min-height: 52px; padding: 12px 32px 12px 0; position: relative;
  cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
.station > summary:hover { background: var(--surface); }
.station-name { font-weight: 650; }
.channels { display: inline; }
.frequency { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; margin-left: 12px; }
.frequency b { font-weight: 650; font-variant-numeric: tabular-nums; }
.band { font-size: .85rem; color: var(--muted); }
.station-status { color: var(--muted); font-size: .9rem; margin-left: 12px; }
.current-label { color: var(--accent); font-weight: 650; }
.expand { position: absolute; right: 4px; top: 11px; font-size: 1.1rem; color: var(--accent); }
.station[open] .expand { transform: rotate(45deg); }
.station-body { padding: 0 0 16px 12px; font-size: .9rem; }
.station-body p { max-width: 70ch; }
a { color: var(--accent); text-underline-offset: 4px; }
.station-body a { display: inline-block; padding: 10px 0; min-height: 48px; }
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li { padding: 4px 0; }
.source-list span { display: block; color: var(--muted); }
.schedule-list { padding-left: 20px; margin: 12px 0; }
.schedule-list li { margin: 6px 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.about { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.about summary { min-height: 48px; padding: 12px 0; cursor: pointer; color: var(--accent); }
.about p { max-width: 75ch; }
footer { color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }
#error { background: var(--surface); color: var(--warning); padding: 16px; border: 2px solid var(--warning); margin-bottom: 16px; }
.skip { position: absolute; top: -100px; left: 16px; background: var(--surface); padding: 12px; z-index: 2; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root { --page: #18212b; --surface: #222e3b; --text: #f0f4f8; --muted: #b6c4d3; --line: #4a5b6f; --accent: #a4ceff; --warning: #ffd3a3; }
  .tabs button[aria-selected="true"] { color: #172635; }
}
@media (max-width: 700px) {
  header, main, footer { padding-left: 16px; padding-right: 16px; }
  .station-body { padding-left: 0; }
}
