:root {
  color-scheme: dark;
  --accent: #a3e635;
  --background: #111827;
  --foreground: #f9fafb;
  --muted: color-mix(in srgb, var(--foreground) 60%, var(--background));
  --line: color-mix(in srgb, var(--foreground) 11%, transparent);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: radial-gradient(ellipse at 90% 5%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 45%); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
svg { display: block; }
p { margin: 0; }
.shell { max-width: 1240px; margin: auto; padding: 0 40px; }
.masthead { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 32px; height: 32px; color: var(--accent); flex-shrink: 0; }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.brand h1 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; }
.page-nav { display: flex; align-items: center; gap: 28px; font-size: 12px; color: var(--muted); }
.page-nav a:hover { color: var(--foreground); }
.masthead-tag { color: var(--muted); font-size: 9px; letter-spacing: .16em; white-space: nowrap; }
.hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(120deg, color-mix(in srgb, var(--foreground) 4%, var(--background)), var(--background)); }
.hero::before { position: absolute; inset: 0; pointer-events: none; content: ""; background: radial-gradient(ellipse at 90% 35%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }
.hero-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 27px 34px; border-bottom: 1px solid var(--line); }
.eyebrow, .overline { font-size: 9px; font-weight: 650; letter-spacing: .17em; line-height: 1.6; text-transform: uppercase; }
.hero-top .eyebrow { color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 7px 11px; border: 1px solid var(--line); border-radius: 40px; font-size: 10px; }
.status-dot, .small-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
body[data-station-state="sleeping"] .status-dot, body[data-station-state="paused"] .status-dot { background: var(--muted); }
body[data-connection="offline"] .status-dot { background: #fbbf24; }
.hero-content { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 38px; align-items: center; padding: 45px 34px 36px; min-height: 300px; }
.overline { color: var(--accent); margin-bottom: 18px; }
.hero h2 { font-size: clamp(34px, 4.5vw, 66px); font-weight: 620; line-height: 1.08; letter-spacing: -.05em; margin: 0; max-width: 850px; overflow-wrap: anywhere; }
.artist { margin-top: 18px; font-size: 18px; font-weight: 450; line-height: 1.5; color: color-mix(in srgb, var(--foreground) 80%, var(--background)); }
.description { margin-top: 12px; font-size: 11px; line-height: 1.7; color: var(--muted); max-width: 54ch; }
.hero-visual { position: relative; aspect-ratio: 1; width: 100%; }
.radio-orbit { position: absolute; inset: 0; display: grid; place-items: center; }
.orbit-ring { position: absolute; border: 1px solid color-mix(in srgb, var(--accent) 17%, transparent); border-radius: 50%; }
.ring-one { inset: 6%; }
.ring-two { inset: 19%; }
.ring-one::after { content: ""; position: absolute; top: 11%; left: 18%; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }
.orbit-core { display: grid; place-items: center; width: 90px; height: 90px; border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); background: color-mix(in srgb, var(--accent) 4%, transparent); border-radius: 50%; }
.orbit-core svg { width: 55px; height: 55px; color: var(--accent); }
.orbit-core path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 3; }
.orbit-caption { position: absolute; bottom: 0; font-size: 7px; letter-spacing: .19em; color: var(--muted); }
.artwork { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.has-artwork .radio-orbit { display: none; }
#audio { margin: 10px 34px 20px; width: calc(100% - 68px); }
.enhanced #audio { display: none; }
.controls { position: relative; display: flex; align-items: center; gap: 16px; padding: 24px 34px; border-top: 1px solid var(--line); }
.play-button { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: #101510; transition: transform .18s ease, box-shadow .18s ease; }
.play-button:hover { transform: scale(1.06); box-shadow: 0 0 35px color-mix(in srgb, var(--accent) 18%, transparent); }
.play-button svg { width: 23px; height: 23px; fill: currentColor; }
.pause-symbol { display: none; }
#play[aria-pressed="true"] .pause-symbol { display: block; }
#play[aria-pressed="true"] .play-symbol { display: none; }
.play-copy { min-width: 0; display: grid; gap: 6px; }
#play-label { font-size: 13px; font-weight: 650; }
#audio-status { color: var(--muted); font-size: 10px; line-height: 1.5; }
.listening-mark { display: flex; align-items: center; gap: 3px; margin-left: auto; height: 24px; }
.listening-mark i { width: 2px; height: 6px; background: var(--accent); border-radius: 2px; opacity: .35; }
.listening-mark i:nth-child(2n) { height: 15px; }
.listening-mark i:nth-child(3n) { height: 23px; }
.listening-mark span { margin-left: 11px; color: var(--muted); letter-spacing: .14em; font-size: 8px; }
.is-playing .listening-mark i { opacity: .9; animation: listening .9s ease-in-out infinite alternate; }
.is-playing .listening-mark i:nth-child(2n) { animation-delay: -.35s; }
.is-playing .listening-mark i:nth-child(3n) { animation-delay: -.65s; }
@keyframes listening { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.volume-control { margin-left: 24px; display: flex; align-items: center; gap: 10px; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 5px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; }
.icon-button:hover { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 5%, transparent); }
.icon-button svg { width: 18px; fill: currentColor; }
.volume-waves, .volume-slash { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.volume-slash { display: none; }
#mute[data-muted="true"] .volume-waves { display: none; }
#mute[data-muted="true"] .volume-slash { display: block; }
#volume { width: 76px; height: 3px; accent-color: var(--accent); cursor: pointer; }
.hero-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 34px; border-top: 1px solid var(--line); font-size: 8px; letter-spacing: .12em; color: var(--muted); }
.hero-foot .small-dot { width: 3px; height: 3px; margin-right: 6px; background: var(--muted); }
.freshness { letter-spacing: .02em; text-align: right; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; margin-top: 48px; }
.panel { min-width: 0; scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.section-heading .eyebrow { color: var(--muted); font-size: 8px; margin-bottom: 7px; }
.section-heading h2 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 550; letter-spacing: -.035em; }
.section-note { margin-top: 10px; font-size: 10px; line-height: 1.6; color: var(--muted); }
.count { padding: 6px 9px; background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); border-radius: 8px; font-size: 11px; }
.track-list { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: track; }
.track-list li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 65px; padding: 15px 0; border-bottom: 1px solid var(--line); counter-increment: track; }
.track-list li::before { content: counter(track, decimal-leading-zero); grid-column: 1; grid-row: 1 / 3; color: color-mix(in srgb, var(--foreground) 28%, var(--background)); font-size: 11px; font-variant-numeric: tabular-nums; }
.track-list strong { grid-column: 2; grid-row: 1; display: block; font-size: 12px; line-height: 1.6; font-weight: 550; overflow-wrap: anywhere; }
.track-list .track-meta { grid-column: 2; grid-row: 2; font-size: 10px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.track-list time { grid-column: 3; grid-row: 1 / 3; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.track-list .empty { display: block; padding: 20px; color: var(--muted); font-size: 11px; line-height: 1.8; background: color-mix(in srgb, var(--foreground) 2%, transparent); border: 1px dashed var(--line); border-radius: 12px; min-height: 0; }
.track-list .empty::before { display: none; }
.next-list li:not(.empty) { padding: 16px; background: color-mix(in srgb, var(--accent) 5%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); border-radius: 12px; }
.next-list li:not(.empty)::before { color: var(--accent); }
.forecast-panel { margin-top: 34px; }
.outline-tag { font-size: 7px; letter-spacing: .14em; border: 1px solid var(--line); padding: 7px 9px; border-radius: 6px; color: var(--muted); }
.heading-icon { width: 20px; fill: none; stroke: var(--muted); stroke-width: 1.2; }
.agenda-list li { grid-template-columns: 54px minmax(0, 1fr); gap: 2px 14px; }
.agenda-list li::before { display: none; }
.agenda-list time { grid-column: 1; grid-row: 1 / 3; color: var(--accent); }
.secondary-agenda { margin-top: 16px; }
.secondary-agenda summary { cursor: pointer; color: var(--muted); font-size: 10px; }
.secondary-agenda .track-list { margin-top: 5px; }
.unclocked { padding-top: 25px; }
.unclocked h3 { margin: 0; font-size: 11px; font-weight: 500; color: var(--muted); }
.unclocked .track-list { margin-top: 6px; }
.history-panel { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--line); }
.history-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; }
.text-button { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 8px 0; }
.text-button:hover { color: var(--foreground); }
footer { margin-top: 44px; padding: 28px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-signature { font-size: 8px; letter-spacing: .13em; }
.footer-signature span { margin-left: 8px; color: var(--accent); }
#full { display: none; color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.station-directory { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--foreground) 3%, var(--background)); }
.station-directory ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.station-directory li { padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.station-directory a { font-size: 22px; color: var(--accent); }
.station-directory p { color: var(--muted); font-size: 13px; margin-top: 9px; }
.directory-header { padding: 65px 0 35px; }
.directory-header h1 { font-size: clamp(30px, 5vw, 55px); letter-spacing: -.04em; margin: 15px 0; }
.directory-header p { color: var(--muted); line-height: 1.7; }
.compact .shell { padding: 10px; max-width: 660px; }
.compact .masthead { min-height: 30px; margin-bottom: 10px; }
.compact .brand-mark { width: 22px; height: 22px; }
.compact .brand h1 { font-size: 14px; }
.compact .page-nav, .compact .masthead-tag, .compact .content-grid, .compact .history-panel { display: none; }
.compact .hero { border-radius: 18px; }
.compact .hero-top { padding: 10px 18px; }
.compact .hero-top .eyebrow, .compact .hero-visual, .compact .description, .compact .overline { display: none; }
.compact .hero-content { display: block; min-height: 0; padding: 18px; }
.compact .hero h2 { font-size: clamp(21px, 4vw, 27px); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.compact .artist { font-size: 13px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact .controls { padding: 12px 18px; gap: 12px; }
.compact .play-button { width: 44px; height: 44px; flex-basis: 44px; }
.compact .listening-mark { display: none; }
.compact .volume-control { margin-left: auto; }
.compact #volume { width: 54px; }
.compact .hero-foot { padding: 10px 18px; }
.compact footer { margin: 0; padding: 13px 0 0; border: 0; }
.compact footer > span { display: none; }
.compact #full { display: inline; font-size: 10px; }
@media (max-width: 960px) {
  .masthead-tag { display: none; }
  .hero-content { grid-template-columns: minmax(0, 1fr) 170px; gap: 25px; }
  .content-grid, .history-list { gap: 30px; }
  .listening-mark span { display: none; }
}
@media (max-width: 640px) {
  .shell { padding: 0 18px; }
  .masthead { min-height: 86px; }
  .page-nav { display: none; }
  .brand h1 { font-size: 17px; }
  .hero { border-radius: 20px; }
  .hero-top { padding: 20px; align-items: flex-start; }
  .hero-top .eyebrow { max-width: 130px; font-size: 8px; }
  .status-pill { font-size: 9px; padding: 6px 8px; }
  .hero-content { grid-template-columns: minmax(0, 1fr); padding: 32px 20px; min-height: 235px; }
  .hero-visual { display: none; }
  .has-artwork .hero-visual { display: block; width: 120px; }
  .compact.has-artwork .hero-visual { display: none; }
  .hero h2 { font-size: 39px; }
  .artist { font-size: 16px; margin-top: 14px; }
  .overline { font-size: 8px; margin-bottom: 17px; }
  .controls { padding: 20px; gap: 12px; flex-wrap: wrap; }
  .play-button { width: 52px; height: 52px; flex-basis: 52px; }
  .play-copy { flex: 1; min-width: 120px; }
  .listening-mark { display: none; }
  .volume-control { margin-left: 0; }
  #volume { width: 50px; }
  .hero-foot { padding: 15px 20px; font-size: 7px; }
  .hero-foot > span:first-child { white-space: nowrap; }
  .content-grid { grid-template-columns: minmax(0, 1fr); margin-top: 36px; gap: 36px; }
  .section-heading h2 { font-size: 23px; }
  .history-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .history-panel { margin-top: 35px; padding-top: 30px; }
  footer { margin-top: 30px; font-size: 9px; }
  .compact .controls { flex-wrap: nowrap; }
  .compact .play-copy { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
