* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg); overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-toggle {
  position: fixed; top: 1.25rem; right: 1.35rem; z-index: 20; width: 30px; height: 30px; padding: 5px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; opacity: .72;
  transition: opacity .2s ease, color .2s ease;
}
.theme-toggle:hover, .theme-toggle:focus-visible { opacity: 1; color: var(--fg); }
.theme-toggle svg { display: block; width: 100%; height: 100%; }
.theme-toggle .bulb-fill { fill: var(--fg); opacity: .16; }
.theme-toggle .bulb-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

main { min-height: 100svh; display: grid; place-items: center; padding: 5vh 6vw; }
.inner { width: min(100%, 760px); text-align: center; }
.logo { display: block; width: min(100%, 640px); height: auto; margin: 0 auto; }
.domain { margin-top: .6rem; color: var(--muted); font-size: .9rem; letter-spacing: .14em; }
.beta { display: inline-block; margin-top: .55rem; padding: .18rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; }

.radio { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.play {
  display: grid; place-items: center; margin: 0 auto; padding: 0; width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent);
  color: var(--fg); cursor: pointer; transition: background .2s ease;
}
.play:hover { background: var(--panel); }
.play svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.play .icon-pause { display: none; }
.radio.playing .icon-play { display: none; }
.radio.playing .icon-pause { display: block; }
.radio.off-air .play { opacity: .45; cursor: default; }
.radio.off-air .play:hover { background: color-mix(in srgb, var(--bg) 86%, transparent); }

.vol { display: flex; align-items: center; justify-content: center; gap: .35rem; margin: .9rem auto 0; color: var(--muted); }
.vol[hidden] { display: none; }
.vol button { display: grid; place-items: center; width: 30px; height: 30px; padding: 5px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.vol button:hover, .vol button:focus-visible { color: var(--fg); }
.vol button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.vol .icon-muted { display: none; }
.vol.muted .icon-on { display: none; }
.vol.muted .icon-muted { display: block; }
.vol input { width: min(150px, 46vw); height: 18px; margin: 0; accent-color: var(--fg); cursor: pointer; }
.vol.disabled { opacity: .5; }
.vol.disabled input, .vol.disabled button { cursor: default; }
.vol-hint { margin-top: .25rem; color: var(--muted); font-size: .64rem; letter-spacing: .08em; }
.vol-hint:empty { display: none; }
.status { margin-top: 1.2rem; font-size: .72rem; font-weight: 700; letter-spacing: .22em; overflow-wrap: anywhere; }
.dot { display: inline-block; width: 7px; height: 7px; margin: 0 .55em .1em 0; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.radio.on-air .dot { background: var(--live); }
.radio.on-air.playing .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.dj { margin-top: .5rem; font-size: .95rem; letter-spacing: .08em; overflow-wrap: anywhere; }
.dj:empty { display: none; }
.label { margin-right: .6em; color: var(--muted); font-size: .64rem; letter-spacing: .2em; }
.dj-name { font-weight: 700; }
.dj-date { margin-left: .6em; color: var(--muted); font-size: .64rem; letter-spacing: .2em; }
.dj-title { display: -webkit-box; margin: .35rem auto 0; max-width: 34rem; color: var(--muted); font-size: .78rem;
  letter-spacing: .04em; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dj a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.dj a:hover { text-decoration-color: currentColor; }
.note { margin-top: .5rem; color: var(--muted); font-size: .72rem; letter-spacing: .12em; }
.note:empty { display: none; }
.ytbox { width: min(100%, 400px); max-width: 90vw; min-width: 200px; height: 225px; margin: 1.2rem auto 0; background: #000; border: 1px solid var(--line); overflow: hidden; }
.ytbox[hidden] { display: none; }
/* YouTube's player must stay visible and full size, so it lives at the very bottom of the page, below the fold */
.ytdock { padding: 3.5rem 5vw 4rem; text-align: center; }
.ytdock[hidden] { display: none; }
.ytlabel { color: var(--muted); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; }
.ytdock .ytbox { margin-top: .8rem; }
.ytbox.strip { height: 120px; background: transparent; border-radius: 6px; }
.ytbox.strip.mini { height: 60px; }
/* SoundCloud: audio only. Visually hidden (not display:none, which can stop the iframe), credited in the footer instead. */
.ytbox.vh { position: absolute; width: 1px; height: 1px; min-width: 0; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; clip-path: inset(50%); overflow: hidden; }
.credit.sc { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.credit.sc:hover, .credit.sc:focus-visible { text-decoration-color: currentColor; }
.ytbox iframe { display: block; width: 100%; height: 100%; border: 0; }
.next { margin-top: 1.4rem; color: var(--muted); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; overflow-wrap: anywhere; }
.next:empty { display: none; }
.next .when { color: var(--fg); font-weight: 700; }
.notice { display: block; max-width: 30rem; margin: .5rem auto 0; color: var(--amber); font-size: .72rem; letter-spacing: .04em; line-height: 1.4; overflow-wrap: anywhere; }
.notice[hidden] { display: none; }
.coming { margin: 1.8rem auto 0; width: min(100%, 30rem); text-align: left; }
.coming[hidden] { display: none; }
.coming h2 { margin: 0 0 .5rem; text-align: center; color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.coming ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.coming li { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .1rem .7rem; padding: .55rem .7rem; border: 1px solid var(--line); border-left-width: 3px; border-radius: 8px; font-size: .8rem; }
.coming li.live { border-left-color: var(--live); background: color-mix(in srgb, var(--live) 9%, var(--panel)); }
.coming li.excl { border-left-color: var(--excl); }
.coming .t { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; line-height: 1.5; }
.coming .tag { font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.coming li.live .tag { color: var(--live); }
.coming li.excl .tag { color: var(--excl); }
.coming .tag .ldot { display: inline-block; width: 6px; height: 6px; margin: 0 .4em .1em 0; border-radius: 50%; background: var(--live); }
.coming .ti { overflow-wrap: anywhere; }
.coming .ti.tba { color: var(--muted); }
.coming .ti a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.coming .full { display: block; margin-top: .7rem; text-align: center; color: var(--muted); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; }
.coming .full:hover, .coming .full:focus-visible { color: var(--fg); }
  .credit[hidden] { display: none; }
.credit { display: inline-block; margin-top: 1.2rem; color: var(--muted); font-size: .64rem; letter-spacing: .16em; text-decoration: none; }
.credit strong { color: var(--fg); font-weight: 700; }
.credit:hover, .credit:focus-visible { color: var(--fg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) { main { padding: 4vh 5vw; } .logo { width: 100%; } .play { width: 84px; height: 84px; } }
@media (prefers-reduced-motion: reduce) { .radio.on-air.playing .dot { animation: none; } }
.coming .disclaimer { margin: .5rem 0 0; font-size: .68rem; color: var(--muted); opacity: .8; text-align: center; }
/* the full schedule opens over the player so the music keeps playing */
body.sched-open { overflow: hidden; }
.schedDialog { width: min(calc(100vw - 1rem), 680px); max-height: calc(100dvh - 1rem); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); overflow: hidden; }
.schedDialog[open] { display: flex; flex-direction: column; }
.schedDialog::backdrop { background: rgba(0,0,0,.6); }
.schedDialog .sd-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.schedDialog .sd-top h2 { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.schedDialog .sd-close { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.schedDialog .sd-close:hover, .schedDialog .sd-close:focus-visible { color: var(--fg); border-color: var(--fg); }
.schedDialog .sd-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 1rem 1.5rem; }
.schedDialog .sd-note { margin: .8rem 0 0; color: var(--muted); font-size: .72rem; text-align: center; }
.schedDialog .legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; margin: .6rem 0 0; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.schedDialog .legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: .5em; border-radius: 2px; vertical-align: -1px; background: var(--line); }
.schedDialog .legend .l::before { background: var(--live); }
.schedDialog .legend .e::before { background: var(--excl); }

/* About link + panel (reuses the schedule dialog frame) */
.aboutlink { margin: 2rem 0 0; text-align: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.aboutlink a { color: var(--muted); }
.aboutDialog { width: min(calc(100vw - 1rem), 560px); }
.about p { margin: 0 0 .9rem; line-height: 1.55; font-size: .92rem; color: var(--fg); }
.about p:last-child { color: var(--muted); margin-bottom: .2rem; }
