/* Station websites – one theme; --accent comes from each station's theme.css. Light and dark follow the visitor's device. */
:root {
  --accent: #38bdf8; --accent-ink: #0b0e14;
  --bg: #f4f5f8; --panel: #ffffff; --panel2: #eef0f4; --line: #e1e4ea; --text: #12151c; --muted: #5d6573;
  --r: 14px; --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1016; --panel: #151a23; --panel2: #1c2230; --line: #262e3e; --text: #e8ebf1; --muted: #98a1b2; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: color-mix(in srgb, var(--accent) 75%, var(--text)); }
img { max-width: 100%; }
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; margin: 6px 0 10px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; }
h2.sub { margin: 26px 0 10px; }
h3 { font-size: 17px; margin: 2px 0 4px; }
h3 a { color: inherit; text-decoration: none; } h3 a:hover { text-decoration: underline; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 22px; padding-bottom: 30px; }

.previewbar { background: #f59e0b; color: #1a1205; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; }

/* masthead: logo, then what's on air and what's playing (kept fresh by site.js) */
body { background-color: var(--bg); background-image: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--bg)) 0, var(--bg) 520px); background-repeat: no-repeat; }
body.has-bg { background-size: cover; background-position: center top; background-attachment: fixed; }
.masthead { background: var(--panel); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; gap: 24px; min-height: 104px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { height: 84px; width: auto; max-width: 260px; object-fit: contain; }
.brand .mark { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 28px; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.hd-live { display: flex; gap: 22px; flex-wrap: wrap; }
.hd-block { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 300px; }
.hd-block[hidden] { display: none; }
.hd-art { width: 64px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; background: var(--panel2); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.hd-art img { width: 100%; height: 100%; object-fit: cover; }
.hd-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hd-text small { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 800; color: color-mix(in srgb, var(--accent) 70%, var(--text)); }
.hd-text b, .hd-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-text b { font-size: 16px; } .hd-text span { font-size: 14px; color: var(--muted); }
.i-note { font-size: 26px; color: var(--muted); }
@media (max-width: 760px) {
  .masthead .wrap { justify-content: center; gap: 14px; }
  .brand { margin: 0 auto; } .brand img { height: 64px; }
  .hd-live { width: 100%; justify-content: center; gap: 14px; }
  .hd-block { max-width: calc(50% - 7px); } .hd-art { width: 48px; height: 48px; }
}
@media (max-width: 420px) { .hd-block { max-width: 100%; width: 100%; } }

/* the nav bar, in the station's colour, with the big Listen button */
.navbar { background: var(--accent); color: var(--accent-ink); position: sticky; top: 0; z-index: 5; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.navbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 54px; }
.navlinks { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a { color: inherit; text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.navlinks a:hover { background: color-mix(in srgb, var(--accent-ink) 12%, transparent); }
.navlinks a[aria-current="page"] { background: color-mix(in srgb, var(--accent-ink) 18%, transparent); }
.listen-btn { flex: none; display: inline-flex; align-items: center; gap: 10px; background: #dc2626; color: #fff; border: 2px solid #fff; border-radius: 999px;
  padding: 8px 22px; font: 800 16px var(--font); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.listen-btn:hover { filter: brightness(1.08); }
body.playing .listen-btn { background: #111827; }
@media (max-width: 560px) { .listen-btn { padding: 7px 14px; font-size: 14px; } .navlinks a { padding: 8px 10px; } }

/* home: the main column and a sidebar */
main.wrap.narrow-main { max-width: 1080px; }
.page-title { margin-top: 0; }
.home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .home { grid-template-columns: minmax(0, 1fr); } }
.block { margin-bottom: 26px; }
.block > h2, .side-block > h2 { font-size: 19px; text-transform: uppercase; letter-spacing: .04em; padding-bottom: 8px; border-bottom: 3px solid var(--accent); }
.block > h2 .more { text-transform: none; letter-spacing: 0; }
.side-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 18px; }
.side-block.card { padding: 16px; }

/* the slideshow */
.slides { position: relative; border-radius: var(--r); overflow: hidden; background: var(--panel2); margin-bottom: 26px; aspect-ratio: 16 / 7; box-shadow: 0 6px 24px rgba(0,0,0,.14); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; visibility: hidden; }
.slide.on { opacity: 1; visibility: visible; }
.slide a { color: inherit; display: block; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: flex; flex-direction: column; }
.slide-cap b { font-size: clamp(18px, 3vw, 26px); line-height: 1.2; } .slide-cap span { font-size: 15px; opacity: .92; }
.slide-nav button { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; }
.slide-nav button:hover { background: rgba(0,0,0,.65); }
.slide-prev { left: 12px; } .slide-next { right: 12px; }
@media (max-width: 560px) { .slides { aspect-ratio: 4 / 3; } }

/* recently played: album covers */
.covers { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.cover { scroll-snap-align: start; }
.cover { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--panel2); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-blank { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, var(--panel2)), var(--panel2)); }
.cover-blank .i-note { font-size: 38px; color: color-mix(in srgb, var(--accent-ink) 60%, transparent); }
.cover-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 7px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; line-height: 1.2; display: flex; flex-direction: column; }
.cover-cap b, .cover-cap small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-cap b { font-size: 13px; } .cover-cap small { font-size: 12px; opacity: .85; }

/* picture cards: shows and news */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
a.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.tile-img { position: relative; aspect-ratio: 16 / 10; background: var(--panel2); display: block; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-img img.logo-fill { object-fit: contain; padding: 14%; }
.tile-mark { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 800; color: color-mix(in srgb, var(--accent) 70%, var(--text)); opacity: .55; }
.tile-img.logo-bg { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, var(--panel2)), var(--panel2)); }
.tile-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.tile-body b { font-size: 16px; } .tile-body small { font-size: 13px; }
.show-tile .onnow { display: none; position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #dc2626; color: #fff; padding: 2px 9px; border-radius: 999px; }
.show-tile.now { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.show-tile.now .onnow { display: block; }

/* sidebar: supporters and the weather */
.supporters { display: grid; gap: 12px; }
.supporter { display: block; background: #fff; border-radius: 10px; padding: 10px; border: 1px solid var(--line); }
.supporter img { display: block; width: 100%; max-height: 110px; object-fit: contain; }
a.supporter:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.wx-grid { display: grid; gap: 10px; margin-bottom: 8px; }
.wx-tile { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "i p t" "i s t" "i h t"; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, var(--panel2)); line-height: 1.25; }
.wx-tile .wx-i { grid-area: i; font-size: 34px; } .wx-tile b { grid-area: p; } .wx-tile .wx-t { grid-area: t; font-size: 26px; }
.wx-tile small:not(.muted) { grid-area: s; font-size: 13px; } .wx-tile small.muted { grid-area: h; font-size: 12px; }

footer.site-foot { padding-bottom: 104px; } /* room for the player bar */
footer.site-foot .wrap { align-items: flex-start; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { height: 54px; width: auto; max-width: 140px; object-fit: contain; }
.foot-links { display: grid; gap: 6px; text-align: right; }
.foot-links .social { justify-content: flex-end; margin: 0; }
@media (max-width: 640px) { .foot-links { text-align: left; } .foot-links .social { justify-content: flex-start; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 18px; }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.more { margin-left: auto; font-size: 14px; font-weight: 500; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--accent) 70%, var(--text)); }

.hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--panel)), var(--panel) 70%); }
.hero h1 { margin-top: 4px; }
.hero-next { min-width: 220px; border-left: 3px solid var(--accent); padding-left: 14px; }
.hero-next p { margin: 4px 0 0; }
.np-big { font-size: 17px; }
.np-big b { font-weight: 600; }
@media (max-width: 720px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-next { min-width: 0; } }

.button, .listen { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: 11px 22px; font: 600 16px var(--font); text-decoration: none; cursor: pointer; }
.button:hover, .listen:hover { filter: brightness(1.06); }
.listen { margin-top: 4px; font-size: 17px; padding: 13px 26px; }
.i-play, .i-pause { display: inline-block; width: 0; height: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.i-pause { width: 12px; height: 15px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }

.grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.item { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.card > .item:first-of-type, h2 + .item { border-top: 0; padding-top: 0; }
.item p { margin: 0; }
.item .thumb { width: 132px; height: 92px; object-fit: cover; border-radius: 10px; flex: none; background: var(--panel2); }
@media (max-width: 520px) { .item .thumb { width: 92px; height: 72px; } }
.event .date { flex: none; width: 58px; height: 62px; border-radius: 12px; background: var(--panel2); display: grid; place-content: center; text-align: center; line-height: 1.1; }
.event .date b { font-size: 22px; } .event .date small { text-transform: uppercase; font-size: 12px; color: var(--muted); }
.past { opacity: .8; }

.article { max-width: 760px; margin-left: auto; margin-right: auto; }
.article img.wide { width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; margin: 6px 0 16px; }
.article p { font-size: 17px; }
.when { font-size: 17px; }
ul.plain { padding-left: 18px; }

.recent { margin: 0; padding-left: 0; list-style: none; }
.recent li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.recent li:first-child { border-top: 0; }
.recent small { color: var(--muted); display: block; }

.wx-i { line-height: 1; } .wx-t { font-weight: 700; }

.shows { list-style: none; margin: 0; padding: 0; }
.shows li { display: flex; gap: 16px; padding: 12px 10px; border-top: 1px solid var(--line); border-radius: 10px; }
.shows li:first-child { border-top: 0; }
.shows .t { font-variant-numeric: tabular-nums; font-weight: 700; width: 52px; flex: none; }
.shows p { margin: 2px 0 0; font-size: 15px; }
.shows .onnow { display: none; margin-left: 8px; font-size: 12px; font-weight: 700; background: var(--accent); color: var(--accent-ink); padding: 1px 8px; border-radius: 999px; vertical-align: 2px; }
.shows li.now { background: color-mix(in srgb, var(--accent) 12%, transparent); border-top-color: transparent; }
.shows li.now .onnow { display: inline-block; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.form input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form label.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.err { color: #dc2626; font-weight: 600; }

footer { border-top: 1px solid var(--line); background: var(--panel); padding: 24px 0; font-size: 14px; }
footer .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
footer .fine { text-align: right; }
@media (max-width: 640px) { footer .fine { text-align: left; } }
.social { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }

.player { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(10px); }
.player[hidden] { display: none; }
.player .play { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.player .play .i-play { margin-left: 4px; }
.player .np { min-width: 0; flex: 1; line-height: 1.25; }
.player .np small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .np b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.player .live { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #dc2626; display: flex; align-items: center; gap: 6px; }
.player .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.player .live.off { color: var(--muted); }
.player .ext { font-size: 13px; white-space: nowrap; }
.player.loading .play { opacity: .7; }

/* ---- the embed (/embed): one compact bar, for an iframe about 90px tall ---- */
body.embed { padding: 0; background: transparent; }
.em { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; margin: 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); min-height: 70px; }
.em .play { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.em .play .i-play { margin-left: 4px; }
.em-logo { height: 42px; width: 42px; object-fit: contain; border-radius: 8px; flex: none; }
.em .np { min-width: 0; flex: 1; line-height: 1.25; }
.em .np small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em .np b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.em .live { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #dc2626; display: flex; align-items: center; gap: 5px; }
.em .live.off { color: var(--muted); }
.em-pop { text-decoration: none; font-size: 18px; color: var(--muted); padding: 4px; }
.em .ext { font-size: 12px; white-space: nowrap; }
@media (max-width: 360px) { .em-logo { display: none; } }
.em .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* over a background picture, the page sits on a panel so it stays readable */
body.has-bg main.wrap { background: color-mix(in srgb, var(--bg) 94%, transparent); border-radius: 0 0 var(--r) var(--r); box-shadow: 0 10px 40px rgba(0,0,0,.25); padding-left: 20px; padding-right: 20px; }
@media (max-width: 640px) { body.has-bg main.wrap { padding-left: 16px; padding-right: 16px; border-radius: 0; } }

/* show and presenter profiles */
a.hd-block { color: inherit; text-decoration: none; border-radius: 12px; }
a.hd-block:hover b { text-decoration: underline; }
.profile { display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; gap: 26px; align-items: start; margin-bottom: 18px; }
.profile-pic img, .profile-pic .tile-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); display: block; box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.profile-pic.round img, .profile-pic.round .tile-img { border-radius: 50%; }
.profile-pic .tile-img { position: relative; }
.profile-main h1 { margin-top: 2px; }
.profile-main h2 { margin-top: 24px; }
.lead { font-size: 18px; margin-bottom: 8px; }
.plain-list { list-style: none; margin: 0 0 8px; padding: 0; }
.plain-list li { padding: 6px 0; border-top: 1px solid var(--line); }
.plain-list li:first-child { border-top: 0; }
.airings li.now b { color: #dc2626; }
.listen-side { margin-top: 8px; width: 100%; justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--accent); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.people.big { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; color: inherit; text-decoration: none; line-height: 1.3; }
.person-photo { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, var(--panel2)), var(--panel2)); margin-bottom: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); transition: transform .15s; }
.person:hover .person-photo { transform: scale(1.03); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person b { font-size: 16px; } .person small { font-size: 13px; }
@media (max-width: 960px) { .profile { grid-template-columns: 200px minmax(0, 1fr); } .profile-side { grid-column: 1 / -1; } }
@media (max-width: 600px) { .profile { grid-template-columns: minmax(0, 1fr); } .profile-pic { max-width: 240px; margin: 0 auto; } }

/* pop-up stations on the home page */
.popup-tile .popup-play { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; box-shadow: 0 3px 10px rgba(0,0,0,.25); }

/* stream watch (stream-watch.js): "Attempting to reconnect you to …" while a dropped stream is brought back */
.sw-banner { position: fixed; left: 50%; top: max(14px, env(safe-area-inset-top)); z-index: 9999; transform: translate(-50%, -160%);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 10px 16px; border-radius: 999px;
  background: rgba(15, 18, 26, .94); color: #fff; font: 600 14px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); transition: transform .3s ease; pointer-events: none; }
.sw-banner.show { transform: translate(-50%, 0); }
.sw-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: sw-spin .8s linear infinite; }
.sw-banner.ok .sw-spin { animation: none; border: 0; background: #34d399; width: 10px; height: 10px; }
@keyframes sw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sw-banner { transition: none; } .sw-spin { animation-duration: 2s; } }

/* phones: a menu button instead of a row of links that runs off the screen (only with scripts on – without, the row scrolls) */
.nav-toggle { display: none; }
.i-menu, .i-menu::before, .i-menu::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
.i-menu::before, .i-menu::after { content: ""; position: absolute; left: 0; }
.i-menu::before { top: -6px; } .i-menu::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .i-menu { background: transparent; }
.nav-toggle[aria-expanded="true"] .i-menu::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .i-menu::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 640px) {
  .js .navbar .wrap { position: relative; justify-content: space-between; }
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; padding: 8px 12px 8px 4px; border: 0; background: none; color: inherit; font: 700 16px var(--font); cursor: pointer; }
  .js .nav-toggle span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .js .navlinks { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 6px 12px 12px; background: var(--accent); box-shadow: 0 10px 20px rgba(0,0,0,.18); max-height: calc(100vh - 120px); overflow-y: auto; }
  .js .navlinks.open { display: flex; }
  .js .navlinks a { padding: 13px 12px; font-size: 17px; border-radius: 8px; }
  /* tiles two across rather than one huge picture per row */
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile-body { padding: 8px 10px 10px; } .tile-body b { font-size: 15px; } .tile-body small { font-size: 12.5px; }
  .tile-mark { font-size: 44px; }
  .masthead .wrap { min-height: 0; gap: 10px; }
  .brand img { height: 56px; }
  main.wrap { padding-top: 16px; }
  .page-title { font-size: 26px; }
}
@media (max-width: 340px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* "Powered by Stationhand" (the Station Manager can switch it off per station) */
.powered { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: inherit; opacity: .75; text-decoration: none; margin-top: 6px; }
.powered:hover { opacity: 1; }
.powered img { width: 18px; height: 18px; display: block; }
.powered b { font-weight: 700; }
.em-powered { flex: none; display: inline-flex; opacity: .8; } .em-powered:hover { opacity: 1; } .em-powered img { width: 18px; height: 18px; display: block; }
/* a pre-recorded DJ's last show (presenter page) */
.last-show { margin-top: 22px; }
.tracklist { list-style: none; padding: 0; margin: 10px 0 0; counter-reset: tl; }
.tracklist li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tracklist li span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tracklist small { color: var(--muted); }
.tl-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; padding-top: 2px; }

/* ---- "Become a presenter": the advert and the application form (join.js) ---- */
.form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); resize: vertical; min-height: 64px; }
.form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.form legend { font-weight: 700; padding: 0 6px; }
.job-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 14px 0 6px; }
.job-facts div { min-width: 0; }
.job-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.job-facts dd { margin: 2px 0 0; font-weight: 600; }
.vlink { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.vlink:first-of-type { border-top: 0; padding-top: 0; }
.vlink h3 { margin: 0; font-size: 16px; }
.vlink .prompt { margin: 0; }
.small { font-size: 14px; }
.vl-controls [hidden] { display: none !important; }
.vl-controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.vl-controls .button { font-size: 15px; padding: 9px 16px; }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.vl-meter { display: inline-block; width: 120px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.vl-meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .08s linear; }
.vl-status { flex-basis: 100%; margin: 0; font-size: 14px; }
.vl-status.ok { color: #16a34a; font-weight: 600; }
.vl-status.err { color: #dc2626; font-weight: 600; }
.vl-status.rec { color: #dc2626; }
.job-card p { margin: 0 0 12px; }

/* Most played this week (Nov 2026): the home sidebar's top 5 and the /chart page */
.chart-mini { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 6px; }
.chart-mini li b { display: block; font-size: 14.5px; line-height: 1.3; }
.chart-mini li small { font-size: 13px; }
.chart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chart-list .ch-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.chart-list .ch-n { font-weight: 800; font-size: 22px; width: 40px; text-align: center; color: var(--muted); flex: none; }
.chart-list .ch-row.top .ch-n { color: var(--accent); }
.chart-list .ch-art { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; flex: none; background: var(--panel2); display: grid; place-items: center; }
.chart-list .ch-art img { width: 100%; height: 100%; object-fit: cover; }
.chart-list .ch-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.chart-list .ch-t b, .chart-list .ch-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-list .ch-plays { font-size: 13px; color: var(--muted); flex: none; }
/* while another page of the site is being swapped in (site.js), so the stream keeps playing */
html.swapping #page { opacity: .55; transition: opacity .15s; }
