/* Radio Jox — site styles. No inline styles anywhere (CSP style-src 'self').
   Contrast: every text/background pair below is ≥ 4.5:1 (most ≥ 7:1).
   Brand colours are sampled from the owner's logo PNG: orange #FF9200, dark brown #592100.
   Orange is only ever a FILL with brown text/icons on it (5.7:1) — never orange text on white (2.2:1). */
:root{
  --ink:#111827;--muted:#4b5563;--line:#d1d5db;--soft:#f3f4f6;--bg:#fff;
  --brand-orange:#ff9200;--brand-brown:#592100;--brand-orange-hover:#ffb040;--brand-cream:#fff4e5;
  --accent:var(--brand-orange);--accent-ink:var(--brand-brown);--accent-hover:var(--brand-orange-hover);--link:#592100;--ok:#05603a;--ok-bg:#d1fadf;
  --focus:#1d4ed8;--focus-on-dark:#fbbf24;
  --radius:12px;--maxw:1180px;
  /* sticky player: 84px originally (20px over a compact 64px player); owner asked for +10px on phones (<768px)
     and +25px on desktop/laptop (>=768px, set below). Body padding + the favorites prompt follow this variable. */
  --player-h:94px;
  /* legacy names used by admin/submit styles */
  --fg:var(--ink);--card:#fff;--warn:#b54708

  /* theme tokens: every colour used below is a variable (themes override them on body.theme-*) */
  --surface:#fff;--surface-2:#f9fafb;--on-dark:#fff;--on-dark-muted:#f5e6d6;--on-dark-error:#fca5a5;--live:#ef4444;
  --danger:#b42318;--danger-soft:#fef3f2;--danger-line:#fecdca;--heart:#c2410c;--field-border:#6b7280;--line-strong:#9ca3af;--line-soft:#f1ece6;
  --warn-bg:#fef3c7;--warn-ink:#b45309;--warn-ink-2:#78350f;--ok-soft:#ecfdf3;--ok-line:#abefc6;--ad-line:#e8d5c0;--ad-muted:#7c5a3c;
  --shadow-sm:0 1px 6px rgba(17,24,39,.12);--shadow-md:0 6px 18px rgba(17,24,39,.12);--shadow-lg:0 8px 24px rgba(0,0,0,.18);--shadow-up:0 -2px 12px rgba(0,0,0,.25);
  --ring:0 0 0 3px rgba(29,78,216,.35);--on-dark-hover:rgba(255,255,255,.12);
  --primary:var(--brand-brown);--primary-hover:#3d1600;--primary-ink:#fff;--primary-soft:var(--brand-cream);--player-bg:var(--brand-brown);
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{font-size:112.5%;-webkit-text-size-adjust:100%} /* 18px base */
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;line-height:1.55;background:var(--bg);color:var(--ink);
  padding-bottom:calc(var(--player-h) + env(safe-area-inset-bottom,0px))}
a{color:var(--link);text-underline-offset:.15em}
a:hover{text-decoration-thickness:2px}
img{max-width:100%}
h1{font-size:2rem;line-height:1.2;margin:.75rem 0 1.1rem}
h2{font-size:1.35rem;margin:3rem 0 1.1rem}
h3{font-size:1.1rem;margin:2rem 0 .85rem}
:focus{outline:none}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}
h1:focus-visible,main:focus-visible{outline:none}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:.75rem;top:-4rem;z-index:100;background:var(--ink);color:var(--on-dark);padding:.6rem 1rem;border-radius:8px;font-weight:700}
.skip-link:focus{top:.75rem;outline:3px solid var(--focus-on-dark)}
.muted{color:var(--muted)}
.lead{font-size:1.15rem;color:var(--muted);max-width:42rem}

/* ---------- buttons & form controls ---------- */
input,select,textarea,button{font:inherit;color:inherit}
input,select,textarea{padding:.55rem .75rem;border:2px solid var(--field-border);border-radius:10px;background:var(--surface);min-height:48px}
input[type=checkbox]{min-height:0;width:1.25rem;height:1.25rem;accent-color:var(--brand-brown)}
.layout-setting label{display:flex;align-items:center;gap:.6rem}.layout-setting input[type=radio]{min-height:0;width:1.25rem;height:1.25rem;padding:0;margin:0;flex:none;accent-color:var(--brand-brown)}
.btn,button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:48px;padding:.55rem 1.15rem;border-radius:999px;
  border:2px solid var(--ink);background:var(--surface);color:var(--ink);font-weight:700;text-decoration:none;cursor:pointer;line-height:1.2}
.btn:hover,button:hover{background:var(--soft)}
.btn--primary,button.btn--primary,.form button,.panel button{background:var(--accent);border-color:var(--accent-ink);color:var(--accent-ink)}
.btn--primary:hover,.form button:hover,.panel button:hover{background:var(--accent-hover);border-color:var(--accent-ink)}
button.danger{background:var(--danger);border-color:var(--danger);color:var(--on-dark)}
.btn--small{min-height:40px;padding:.35rem .9rem;font-size:.9rem}
.btn--lg{min-height:56px;font-size:1.1rem;padding:.7rem 1.5rem}
.btn--icon{width:48px;padding:0}
button[disabled]{opacity:.5;cursor:not-allowed}
.icon{width:1.25em;height:1.25em;flex:none}

/* ---------- app prompt ---------- */
.app-banner{display:flex;align-items:center;gap:.75rem;padding:.5rem max(1rem,calc((100% - var(--maxw))/2));background:var(--soft);border-bottom:1px solid var(--line);font-size:.95rem}
.app-banner__text{margin:0;flex:1;display:flex;align-items:center;gap:.5rem}
.app-banner__close{background:transparent;border:0;min-height:44px;width:44px;padding:0;border-radius:50%;color:var(--ink)}
@media (min-width:1600px){.app-banner{display:none!important}} /* phones, tablets and laptops only */

/* ---------- header ---------- */
.site-header{border-bottom:1px solid var(--line);background:var(--surface)}
.site-header--home{border-bottom:0}
.site-header__inner{max-width:var(--maxw);margin:0 auto;padding:1rem 1.25rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.brand{display:inline-flex;align-items:center;text-decoration:none;color:var(--ink);border-radius:6px;padding:.15rem}
.wordmark{display:inline-flex;align-items:baseline;font-weight:900;letter-spacing:-.02em;line-height:1;text-transform:uppercase}
.wordmark__radio{color:var(--ink)}
.wordmark__jox{color:var(--brand-brown);margin-left:.18em}
.wordmark--sm{font-size:1.6rem}
.wordmark--lg{font-size:clamp(2.6rem,8vw,4.5rem)}
.wordmark-pic{display:block;line-height:0}
.wordmark-img--sm{height:48px;width:auto;display:block}
.wordmark-img--lg{width:min(100%,640px);height:auto;display:block}
.home__logo{width:100%;display:flex;justify-content:center;margin:0 0 2.25rem}
.home__logo .wordmark-pic{width:min(100%,640px);margin:0 auto}
.home__logo .wordmark-img--lg{width:100%}
.header-search{flex:1 1 320px;display:flex;gap:.4rem;max-width:560px}
.header-search input{flex:1;min-width:0;border-radius:999px;padding-left:1rem}
.site-nav{margin-left:auto}
.site-nav ul{display:flex;gap:.25rem;list-style:none;margin:0;padding:0}
.site-nav a{display:inline-flex;align-items:center;min-height:44px;padding:.4rem .8rem;border-radius:999px;color:var(--ink);font-weight:600;text-decoration:none}
.site-nav a:hover{background:var(--soft)}
.site-nav a[aria-current=page]{background:var(--brand-brown);color:var(--on-dark)}

/* ---------- main ---------- */
main{display:block;max-width:var(--maxw);margin:0 auto;padding:2rem 1.25rem 5rem;min-height:50vh}
.page.narrow,.narrow{max-width:46rem}
#app[aria-busy=true] main{opacity:.55;transition:opacity .2s .15s}

/* ---------- home ---------- */
.home{min-height:calc(100vh - 260px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:6vh 0 3rem}
.home__slogan{font-size:clamp(1.5rem,4.2vw,2.6rem);font-weight:900;letter-spacing:.06em;margin:0 0 3rem;color:var(--ink)}
.hero-search{width:100%;max-width:640px}
.hero-search__box{display:flex;align-items:center;gap:.6rem;border:2px solid var(--field-border);border-radius:999px;padding:.2rem 1.2rem;background:var(--surface);box-shadow:var(--shadow-sm)}
.hero-search__box:focus-within{border-color:var(--focus);box-shadow:var(--ring)}
.hero-search__box .icon{color:var(--muted)}
.hero-search__box input{flex:1;border:0;min-height:52px;font-size:1.15rem;padding:.4rem 0;background:transparent;min-width:0}
.hero-search__box input:focus-visible{outline:none}
.hero-search__actions{display:flex;justify-content:center;flex-wrap:wrap;gap:1rem;margin-top:2rem}
.hero-search--inline{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center;margin:1.5rem 0}
.hero-search--inline .hero-search__box{flex:1 1 320px}
.home__stats{color:var(--muted);margin:3.5rem 0 1rem}
.home__chips{max-width:860px}
.home__chips-title{font-size:1rem;margin:2.5rem 0 1.25rem;color:var(--muted);font-weight:600}

/* ---------- chips, tiles, lists ---------- */
.chips{display:flex;flex-wrap:wrap;gap:.75rem;list-style:none;padding:0;margin:1rem 0}
.chips--center{justify-content:center}
.chip{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;padding:.35rem .95rem;border:1.5px solid var(--line);border-radius:999px;color:var(--ink);text-decoration:none;font-weight:600;background:var(--surface)}
.chip:hover{border-color:var(--ink)}
.chip--alt{background:var(--soft)}
.chip__n{color:var(--muted);font-weight:400;font-size:.85em}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.25rem;list-style:none;padding:0}
.tile{display:flex;flex-direction:column;padding:1.5rem 1.75rem;border:1.5px solid var(--line);border-radius:var(--radius);text-decoration:none;color:var(--ink)}
.tile:hover{border-color:var(--ink)}
.tile__name{font-size:1.25rem;font-weight:800}.tile__n{color:var(--muted)}
.link-columns{columns:4 13rem;column-gap:2rem;list-style:none;padding:0;margin:0}
.link-columns li{break-inside:avoid;padding:.4rem 0}
.crumbs ol{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:.25rem 0 0;font-size:.95rem}
.crumbs li+li::before{content:"›";margin:0 .45rem;color:var(--muted)}

/* ---------- results ---------- */
.results-count{color:var(--muted);margin:0 0 1.5rem}
.filters{border:1.5px solid var(--line);border-radius:var(--radius);padding:.5rem 1.5rem;margin:1.5rem 0 2.25rem}
.filters summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}
.filters__form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.9rem;align-items:end;padding:.5rem 0 1rem}
.field{display:flex;flex-direction:column;gap:.3rem}
.field label{font-weight:600}
.field--check{flex-direction:row;align-items:center;gap:.5rem;min-height:48px}
.card:hover{border-color:var(--line-strong)}
.card.is-current{border-color:var(--brand-brown);box-shadow:inset 6px 0 0 var(--accent)}
.card__title a{color:var(--ink);text-decoration:none}
.card__title a:hover{text-decoration:underline}
.badge{display:inline-flex;align-items:center;gap:.2rem;font-size:.85rem;font-weight:700;padding:.1rem .55rem;border-radius:999px;background:var(--soft);color:var(--ink)}
.badge .icon{width:1em;height:1em}
.badge--verified,.badge.verified{background:var(--ok-bg);color:var(--ok)}
.pager{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;margin:3rem 0 1rem}
.pager__info{color:var(--muted)}
.empty{padding:2rem 0}

/* play buttons (cards + station page); icon state synced by player.js */
.play-btn{flex:none;width:52px;height:52px;min-height:52px;padding:0;border-radius:50%;background:var(--accent);border-color:var(--accent-ink);color:var(--accent-ink)}
.play-btn:hover{background:var(--accent-hover);border-color:var(--accent-ink)}
.play-btn .icon{width:26px;height:26px}
.play-btn .icon--pause,.play-btn.is-playing .icon--play{display:none}
.play-btn.is-playing .icon--pause{display:block}
.play-btn--lg{width:auto;height:auto;min-height:60px;border-radius:999px;padding:.6rem 1.6rem .6rem 1.1rem;font-size:1.2rem}
.play-btn--lg .icon{width:32px;height:32px}

/* ---------- station page ---------- */
.station__head{display:flex;gap:2.5rem;align-items:center;flex-wrap:wrap;margin:2rem 0 3rem}
.station__logo{width:160px;height:160px;border-radius:20px;object-fit:contain;background:var(--surface);border:1px solid var(--line)}
.station__intro{flex:1 1 320px}
.station__intro h1{font-size:clamp(1.8rem,4vw,2.6rem);margin:0 0 .5rem}
.station__place{font-size:1.15rem;color:var(--muted);margin:0 0 .75rem}
.station__actions{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.5rem}
/* station page "Now playing": fixed box (64px art + 2 lines) so live updates never shift the page */
.np{display:flex;align-items:center;gap:1rem;margin-top:1.5rem;padding:.75rem 1rem;min-height:88px;max-width:36rem;
  border:1px solid var(--line);border-radius:var(--radius);background:var(--brand-cream)}
.np__art{flex:none;width:64px;height:64px;border-radius:8px;object-fit:contain;background:var(--surface)}
.np__text{min-width:0;flex:1}
.np__label{margin:0 0 .15rem;font-size:.8rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--brand-brown)}
.np__line{margin:0;display:flex;flex-direction:column;min-height:2.7em;justify-content:center;line-height:1.35}
.np__title{font-weight:700;font-size:1.05rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np__artist{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np__hint{color:var(--muted);font-size:.95rem}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem 2.5rem;margin:0;padding:1.75rem 2rem;border:1.5px solid var(--line);border-radius:var(--radius)}
.facts dd{margin-top:.2rem}
.facts dt{font-size:.9rem;color:var(--muted);font-weight:600}
.facts dd{margin:0;font-weight:600}

/* ---------- near me ---------- */
.near__form{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:end;margin:1.75rem 0 2.25rem}
.near__status{font-weight:600;min-height:1.6em}
.card__distance{font-weight:700;color:var(--ink)}

/* ---------- legal ---------- */
.draft-banner{background:var(--warn-bg);border:2px solid var(--warn-ink);color:var(--warn-ink-2);padding:.75rem 1rem;border-radius:10px}
.legal h2{font-size:1.2rem}
.store-list{list-style:none;padding:0}.store-list li{margin:.5rem 0}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line);background:var(--soft);font-size:.95rem;margin-top:3rem}
.site-footer__inner{max-width:var(--maxw);margin:0 auto;padding:2.75rem 1.25rem 3rem}
.footer-links{display:flex;flex-wrap:wrap;gap:.5rem 1.75rem;list-style:none;padding:0;margin:0 0 1.75rem}
.footer-links a{color:var(--ink);display:inline-block;padding:.35rem 0}
.lang-switch{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:1.75rem}
.lang-switch label{font-weight:600}
.footer-note{color:var(--muted);margin:.5rem 0}

/* ---------- persistent player (root level, outside #app) ---------- */
.player{position:fixed;left:0;right:0;bottom:0;z-index:50;height:calc(var(--player-h) + env(safe-area-inset-bottom,0px));
  padding-bottom:env(safe-area-inset-bottom,0px);background:var(--player-bg);color:var(--on-dark);border-top:4px solid var(--brand-orange);box-shadow:var(--shadow-up)}
.player__inner{max-width:var(--maxw);height:calc(var(--player-h) - 4px);margin:0 auto;padding:0 1rem;display:flex;align-items:center;gap:1rem}
.player :focus-visible{outline-color:var(--focus-on-dark)}
.player__toggle{position:relative;flex:none;width:64px;height:64px;min-height:64px;padding:0;border-radius:50%;background:var(--brand-orange);border:0;color:var(--brand-brown)}
.player__toggle:hover{background:var(--brand-orange-hover)}
.player__toggle .icon{width:34px;height:34px}
.player__toggle .icon--pause,.player[data-state=playing] .player__toggle .icon--play,.player[data-state=loading] .player__toggle .icon--play{display:none}
.player[data-state=playing] .player__toggle .icon--pause,.player[data-state=loading] .player__toggle .icon--pause{display:block}
.player__toggle[disabled]{opacity:.45}
.player__spinner{position:absolute;inset:-5px;border-radius:50%;border:3px solid transparent;border-top-color:var(--focus-on-dark);display:none}
.player[data-state=loading] .player__spinner{display:block;animation:rj-spin .9s linear infinite}
@keyframes rj-spin{to{transform:rotate(360deg)}}
.player__logo{width:60px;height:60px;border-radius:10px;object-fit:contain;background:var(--surface);flex:none}
.player__info{flex:1;min-width:0}
.player__name{margin:0;font-size:1.2rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player__name a{color:var(--on-dark);text-decoration:none}
.player__name a:hover{text-decoration:underline}
.player__status{margin:0;font-size:.95rem;color:var(--on-dark-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player[data-state=playing] .player__status::before{content:"";display:inline-block;width:.6em;height:.6em;border-radius:50%;background:var(--live);margin-right:.4em;vertical-align:.05em}
.player[data-state=error] .player__status{color:var(--on-dark-error)}
/* now playing: line height is always reserved (empty when there's no song), so updates never shift the bar */
.player__name,.player__status,.player__np{line-height:1.3}
.player__np{margin:0;font-size:.9rem;height:1.3em;color:var(--on-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player__logo[data-art]{object-fit:cover}
.player__volume{display:flex;align-items:center;gap:.5rem;flex:0 1 200px}
.player__volume-label{display:flex;color:var(--on-dark-muted)}
.player__volume input{flex:1;min-height:44px;padding:0;border:0;background:transparent;accent-color:var(--brand-orange);min-width:80px}
@media (max-width:640px){
  .player__volume{display:none} /* phones: hardware volume buttons; keeps room for the station name */
  .player__inner{gap:.75rem}
  .player__logo{width:52px;height:52px}
  .site-nav a{padding:.4rem .5rem;font-size:1rem}
  .wordmark--sm{font-size:1.35rem}
  .wordmark-img--sm{height:36px}
  .home__logo{margin-bottom:1.5rem}
  .home{padding:3vh 0 2rem}
  .home__slogan{margin-bottom:2rem}
  .hero-search__actions{margin-top:1.5rem;gap:.75rem}
  .home__stats{margin-top:2.5rem}
  .home__chips-title{margin-top:1.75rem}
  main{padding:1.25rem 1rem 4rem}
  h2{margin-top:2.25rem}
  .cards{gap:1rem}
  .station__head{gap:1.5rem;margin:1.25rem 0 2rem}
  .facts{padding:1.25rem;gap:1.1rem 1.5rem}
  .panel{padding:1.5rem 1.25rem}
  .site-footer__inner{padding:2rem 1rem 2.5rem}
  .site-header__inner{gap:.5rem}
  .app-banner{font-size:.9rem}
  .header-search{order:3;flex-basis:100%}
  h1{font-size:1.7rem}
  .cards{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media (forced-colors:active){.play-btn,.player__toggle{border:2px solid ButtonText}}

/* ---------- broadcaster submission + admin (server-rendered forms) ---------- */
.panel{background:var(--surface);border:1.5px solid var(--line);border-radius:var(--radius);padding:2rem 2.25rem}.panel.narrow{max-width:560px;margin:1rem auto}
.form{display:grid;gap:1.25rem}.form label{display:flex;flex-direction:column;gap:.25rem;font-weight:600}.form label input,.form label select,.form label textarea{font-weight:400}
.form.two{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.form .full{grid-column:1/-1}
.chk{display:flex;align-items:center;gap:.35rem}
.err{color:var(--danger);font-weight:400;font-size:.9rem}.alert{background:var(--danger-soft);border:1px solid var(--danger-line);padding:.6rem .8rem;border-radius:8px}.alert.ok{background:var(--ok-soft);border-color:var(--ok-line)}
table{border-collapse:collapse;width:100%;margin:.5rem 0 1rem;font-size:.9rem}td,th{border-bottom:1px solid var(--line);padding:.35rem .5rem;text-align:left;vertical-align:top}td code{word-break:break-all}
.sub{display:flex;gap:1rem;border:1px solid var(--line);border-radius:10px;padding:.75rem;margin:.5rem 0}.sublogo{width:96px;height:96px;object-fit:contain;background:var(--soft);border-radius:8px}
form.inline{display:inline-flex;gap:.35rem;margin-right:.75rem}

/* ---------- ad slots (config/ads.php, docs/ADS.md) ----------
   Space is reserved by the box size, so filling a slot never shifts the layout. Never inside/over the player. */
.ad{display:flex;flex-direction:column;align-items:center;gap:.4rem;margin:3rem auto 0;max-width:100%}
.ad__label{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.ad__box{position:relative;overflow:hidden;max-width:100%;border:1.5px solid var(--ad-line);border-radius:10px;background:var(--brand-cream)}
.ad__creative{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:1}
.ad--filled .ad__house{visibility:hidden}
.ad__house{width:100%;height:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;align-content:center;gap:.25rem 1.25rem;padding:.6rem 1rem;text-align:center;position:relative}
.ad__title{margin:0;font-weight:800;color:var(--brand-brown)}
.ad__text{margin:0;color:var(--ink);font-size:.9rem}
.ad__cta{display:inline-flex;align-items:center;min-height:36px;padding:.2rem .9rem;border-radius:999px;background:var(--accent);border:2px solid var(--accent-ink);color:var(--accent-ink);font-weight:700;font-size:.9rem;text-decoration:none}
.ad__cta:hover{background:var(--accent-hover)}
.ad__size{position:absolute;right:.5rem;bottom:.3rem;font-size:.7rem;color:var(--ad-muted)}
.ad__size--m{display:none}
/* desktop sizes (>= 768px) */
.ad--d728x90 .ad__box{width:728px;height:90px}
.ad--d300x250 .ad__box{width:300px;height:250px}
.ad--d300x250 .ad__house{flex-direction:column;flex-wrap:nowrap;gap:.75rem}
.ad--d728x90 .ad__text{flex-basis:auto}
@media (max-width:767px){
  .ad__size--d{display:none}.ad__size--m{display:inline}
  .ad--m320x100 .ad__box{width:320px;height:100px}
  .ad--m320x50 .ad__box{width:320px;height:50px}
  .ad--m300x250 .ad__box{width:300px;height:250px}
  .ad--m300x250 .ad__house,.ad--m320x100 .ad__house{flex-direction:column;flex-wrap:nowrap;gap:.4rem}
  .ad--m320x100 .ad__text{display:none}
  .ad--m-none{display:none}
  .ad{margin-top:2.25rem}
}
.home__ad{margin-top:3.5rem}
.cards__ad{grid-column:1/-1;display:flex;justify-content:center}
.cards__ad .ad{margin:1rem auto}
/* results right rail: wide screens only */
.with-rail{display:block}
.ad--wide-only{display:none}
@media (min-width:1280px){
  .with-rail{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:3rem;align-items:start}
  .with-rail .ad--wide-only{display:flex;margin:0;position:sticky;top:1.5rem}
}
/* station page: rectangle beside "About this station" on desktop, below it on mobile */
.station__body--ad{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
@media (min-width:1024px){
  .station__body--ad{grid-template-columns:minmax(0,1fr) 300px;gap:3rem;align-items:start}
  .station__body--ad .station__ad{margin:4.4rem 0 0}
}
.station__ad-lb{margin-top:3.5rem}

/* mi/km toggle (near-me) */
.unit-toggle{display:inline-flex;align-items:center;gap:0;border:0;margin:0;padding:0}
.unit-toggle legend{font-weight:700;margin-bottom:.4rem;padding:0;float:left;width:100%}
.unit-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.unit-toggle label{display:inline-flex;align-items:center;justify-content:center;min-width:56px;min-height:48px;padding:0 1rem;border:2px solid var(--brand-brown);color:var(--brand-brown);font-weight:700;cursor:pointer;background:var(--surface)}
.unit-toggle label abbr{text-decoration:none}
.unit-toggle label:first-of-type{border-radius:999px 0 0 999px}
.unit-toggle label:last-of-type{border-radius:0 999px 999px 0;border-left:0}
.unit-toggle input:checked+label{background:var(--accent);color:var(--accent-ink)}
.unit-toggle input:focus-visible+label{outline:3px solid var(--focus,var(--brand-brown));outline-offset:2px}

/* ---------- favorites (heart toggle) + listener accounts ---------- */
.fav-btn{flex:none;position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;width:52px;height:52px;min-height:52px;padding:0;border-radius:50%;background:var(--surface);border:2px solid var(--brand-brown);color:var(--brand-brown)}
.fav-btn:hover{background:var(--brand-cream)}
.fav-btn .icon{width:26px;height:26px}
.fav-btn[aria-pressed=true] .icon--fav{fill:currentColor;color:var(--heart)}
.fav-btn--lg{width:60px;height:60px;min-height:60px}
.fav-btn--lg .icon{width:30px;height:30px}
.fav-btn--player{width:48px;height:48px;min-height:48px;background:transparent;border:2px solid var(--on-dark-muted);color:var(--on-dark-muted)}
.fav-btn--player:hover{background:var(--on-dark-hover)}
.fav-btn--player[aria-pressed=true] .icon--fav{color:var(--brand-orange)}
.fav-btn--player[disabled]{opacity:.4}
.fav-btn.is-busy{opacity:.7}
@keyframes rj-pop{50%{transform:scale(1.18)}}
.fav-btn.is-pop .icon--fav{animation:rj-pop .25s ease-out}
@media (forced-colors:active){.fav-btn{border:2px solid ButtonText}}
.site-nav__account{gap:.35rem}
.site-nav__account .icon{width:20px;height:20px;color:var(--heart)}
.site-nav a[aria-current=page].site-nav__account .icon{color:var(--brand-orange)}
@media (max-width:640px){
  .site-nav__name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}

/* homepage "Your favorites" */
.home__favs{width:100%;max-width:var(--maxw);text-align:left;margin:2.5rem 0 0}
.home__favs-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.home__favs-head h2{margin:0}
.cards--favs{margin-top:1rem}

/* sign-up prompt after the first anonymous save: small, dismissible, never a modal */
.fav-prompt{position:fixed;right:1rem;bottom:calc(var(--player-h) + 1rem + env(safe-area-inset-bottom,0px));z-index:40;width:min(23rem,calc(100% - 2rem));
  background:var(--surface);border:2px solid var(--brand-brown);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:1rem 1.1rem 1.1rem}
.fav-prompt__head{display:flex;align-items:flex-start;gap:.5rem}
.fav-prompt__title{margin:0;font-size:1.05rem;flex:1}
.fav-prompt__close{flex:none;background:transparent;border:0;min-height:40px;width:40px;padding:0;border-radius:50%}
.fav-prompt__body{margin:.35rem 0 .75rem;font-size:.92rem;color:var(--muted)}
.fav-prompt form{display:grid;gap:.5rem}
.fav-prompt input{min-height:44px;width:100%}
.fav-prompt__actions{display:flex;gap:.5rem;align-items:center;justify-content:flex-end;margin-top:.25rem}
.fav-prompt__msg{margin:.5rem 0 0;font-size:.92rem}
@media (max-width:640px){.fav-prompt{right:.5rem;left:.5rem;width:auto}}

/* dashboard /u/{slug} */
.account__head h1{margin-bottom:.25rem}
.notice{background:var(--ok-bg);color:var(--ok);border-radius:8px;padding:.6rem .8rem;display:inline-block}
.fav-list{list-style:none;padding:0;margin:1rem 0;display:grid;gap:.75rem}
.fav-list__item{display:flex;align-items:center;gap:.9rem;padding:.75rem 1rem;border:1.5px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.fav-list__logo{width:48px;height:48px;border-radius:8px;object-fit:contain;flex:none}
.fav-list__body{flex:1;min-width:0;display:flex;flex-direction:column}
.fav-list__body a{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fav-list__body .muted{font-size:.9rem}
.fav-list__actions{display:flex;gap:.35rem;margin:0}
.fav-list__actions .btn--icon{width:40px}
.account__settings .form,.account__delete .form{max-width:30rem}
.account .unit-toggle{flex-wrap:wrap}
.account .unit-toggle label:not(:first-of-type){border-left:0}
.account__signout{margin-top:1.5rem}
.account__delete{margin-top:1rem;border-top:1px solid var(--line)}
.form .check{flex-direction:row;align-items:center;gap:.6rem;font-weight:400}
.btn--danger,.form button.btn--danger{background:var(--surface);border:2px solid var(--danger);color:var(--danger)}
.btn--danger:hover,.form button.btn--danger:hover{background:var(--danger-soft)}
@media (max-width:640px){
  .fav-list__item{flex-wrap:wrap}
  .fav-list__body{flex-basis:calc(100% - 130px)}
  .fav-list__actions{margin-left:auto}
}

/* taller sticky player — inner sizes scale with the bar (4px of the height is the orange top border) */
.player__toggle{width:68px;height:68px;min-height:68px}
.player__logo{width:62px;height:62px}
@media (max-width:640px){.player__logo{width:56px;height:56px}}
@media (min-width:768px){
  :root{--player-h:109px}
  .player__inner{gap:1.25rem}
  .player__toggle{width:76px;height:76px;min-height:76px}
  .player__toggle .icon{width:38px;height:38px}
  .player__logo{width:72px;height:72px;border-radius:12px}
  .player__name{font-size:1.3rem}
  .player__status{font-size:1rem}
  .player__np{font-size:.95rem}
  .fav-btn--player{width:52px;height:52px;min-height:52px}
}
/* station header: never wider than the screen (long names / now-playing lines wrap or ellipsize instead) */
.station__intro{min-width:0;max-width:100%}
.station__intro h1{overflow-wrap:anywhere}

/* ---------- station cards (home, browse, search, near me, more stations, favorites) ----------
   Grid card: [logo | name (≤2 lines) + one meta line] on top, [badges/distance | heart + play] in a footer row.
   Text never shares a row with the buttons, so names stay readable at every width. */
.cards{list-style:none;padding:0;margin:1.25rem 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:1.25rem}
.card{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:1fr auto;column-gap:1rem;row-gap:.9rem;align-items:start;
  padding:1.1rem 1.15rem .9rem;border:1.5px solid var(--line);border-radius:var(--radius);background:var(--surface);min-width:0;position:relative}
.card__logo{grid-column:1;grid-row:1;width:56px;height:56px;border-radius:10px;object-fit:contain;background:var(--surface);border:1px solid var(--line)}
.card__body{grid-column:2;grid-row:1;min-width:0;min-height:4.3rem}
.card__title{font-size:1.05rem;line-height:1.3;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;
  overflow:hidden;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.card__meta{margin:.3rem 0 0;font-size:.9rem;line-height:1.4;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card__format:not(:empty)::before{content:" · "}
.card__foot{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-top:.8rem;border-top:1px solid var(--soft,var(--line-soft));min-width:0}
.card__badges{margin:0;font-size:.9rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:.25rem .6rem;align-items:center;min-width:0}
.card__actions{display:flex;align-items:center;gap:.6rem;flex:none;margin-left:auto}
.card .play-btn{width:48px;height:48px;min-height:48px}
.fav-btn--card{width:44px;height:44px;min-height:44px;border:1.5px solid var(--line);background:var(--surface);color:var(--brand-brown)}
.fav-btn--card:hover{border-color:var(--brand-brown);background:var(--brand-cream)}
.fav-btn--card .icon{width:22px;height:22px}
@media (max-width:640px){.card{padding:1rem 1rem .8rem}}


/* =====================================================================================================
   Theme layer (homepage redesign + polish). Everything below reads tokens only; a theme is a body class
   (body.theme-<SITE_THEME>, default "purple") that sets those tokens. Fonts are self-hosted (OFL, see
   assets/fonts/OFL-*.txt): Plus Jakarta Sans for display, Inter for body text.
   ===================================================================================================== */
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/jakarta-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/jakarta-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/inter-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --font-display:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  /* type scale (major third, fluid at the top end); html is 18px */
  --step--1:.875rem;--step-0:1rem;--step-1:1.2rem;--step-2:1.44rem;--step-3:clamp(1.6rem,1.3rem + 1.2vw,1.95rem);
  --step-4:clamp(1.9rem,1.4rem + 2vw,2.6rem);--step-5:clamp(2.2rem,1.5rem + 3vw,3.4rem);
  /* spacing */
  --space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.5rem;--space-6:2rem;--space-7:3rem;--space-8:4.5rem;--space-9:6rem;
  --radius-sm:10px;--radius-lg:20px;
  --ease:cubic-bezier(.2,.7,.2,1);--dur:.18s;--dur-slow:.3s
}

/* ---------- theme: purple (default) — purple primary, the logo's orange as the accent ---------- */
body.theme-purple{
  --ink:#1e1633;--muted:#5b5670;--line:#e4dff0;--line-soft:#f1eef8;--line-strong:#b7aed0;--soft:#f4f1fb;--bg:#fff;--surface:#fff;--surface-2:#faf8ff;
  --primary:#5b21b6;--primary-hover:#4c1d95;--primary-ink:#fff;--primary-soft:#f3eefe;--primary-line:#d9cdf7;
  --link:#5b21b6;--focus:#6d28d9;--ring:0 0 0 4px rgba(109,40,217,.28);
  --field-border:#8b84a3;
  --player-bg:#2a0f5c;--on-dark:#fff;--on-dark-muted:#e4d9ff;--on-dark-hover:rgba(255,255,255,.12);
  --hero-glow:radial-gradient(60rem 26rem at 50% -6rem,#f1eaff 0%,rgba(241,234,255,0) 70%);
  --shadow-sm:0 1px 2px rgba(30,22,51,.06),0 2px 8px rgba(30,22,51,.06);
  --shadow-md:0 2px 4px rgba(30,22,51,.06),0 10px 24px rgba(46,16,101,.10);
  --shadow-lg:0 4px 8px rgba(30,22,51,.08),0 18px 40px rgba(46,16,101,.16);
  --shadow-up:0 -6px 24px rgba(30,22,51,.22)
}

/* ---------- base typography ---------- */
body{font-family:var(--font-body);font-size:var(--step-0);font-feature-settings:"cv11","ss01";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
h1,h2,h3,.home__slogan,.wordmark,.tile__name,.card__title,.player__name{font-family:var(--font-display);letter-spacing:-.015em}
h1{font-size:var(--step-4);font-weight:800;line-height:1.15;margin:var(--space-4) 0 var(--space-5)}
h2{font-size:var(--step-3);font-weight:800;line-height:1.2;margin:var(--space-8) 0 var(--space-5)}
h3{font-size:var(--step-1);font-weight:700}
a{color:var(--link);transition:color var(--dur) var(--ease)}
main{padding:var(--space-6) 1.5rem var(--space-9)}

/* ---------- controls ---------- */
.btn,button{transition:background-color var(--dur) var(--ease),border-color var(--dur) var(--ease),box-shadow var(--dur) var(--ease),transform var(--dur) var(--ease),color var(--dur) var(--ease)}
.btn{border-color:var(--line-strong);background:var(--surface);color:var(--ink)}
.btn:hover{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}
.btn--primary,button.btn--primary,.form button,.panel button{background:var(--primary);border-color:var(--primary);color:var(--primary-ink);box-shadow:var(--shadow-sm)}
.btn--primary:hover,.form button:hover,.panel button:hover{background:var(--primary-hover);border-color:var(--primary-hover);color:var(--primary-ink);box-shadow:var(--shadow-md)}
.btn--danger,.form button.btn--danger{background:var(--surface);border-color:var(--danger);color:var(--danger);box-shadow:none}
input,select,textarea{border-color:var(--field-border);transition:border-color var(--dur) var(--ease),box-shadow var(--dur) var(--ease)}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;border-color:var(--focus);box-shadow:var(--ring)}
input[type=checkbox]{accent-color:var(--primary)}
.icon--stroke{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- header ---------- */
.site-header{background:var(--surface);border-bottom:1px solid var(--line)}
.site-header__inner{padding:var(--space-4) 1.5rem}
.header-search input{border-color:var(--line-strong)}
.site-nav a{transition:background-color var(--dur) var(--ease),color var(--dur) var(--ease)}
.site-nav a:hover{background:var(--primary-soft);color:var(--primary)}
.site-nav a[aria-current=page]{background:var(--primary);color:var(--primary-ink)}

/* ---------- homepage ---------- */
.home{min-height:0;justify-content:flex-start;padding:clamp(2.5rem,7vh,5.5rem) 0 var(--space-6);background:var(--hero-glow) no-repeat;background-position:50% 0;margin:0 -1.5rem;padding-left:1.5rem;padding-right:1.5rem}
.home__logo{margin:0 0 var(--space-6)}
.home__logo .wordmark-pic{width:min(100%,560px)}
.home__slogan{font-size:var(--step-5);font-weight:800;letter-spacing:-.01em;line-height:1.1;margin:0 0 var(--space-4);max-width:22ch;text-wrap:balance}
.home__lede{font-size:var(--step-1);color:var(--muted);margin:0 0 var(--space-7);max-width:38rem;line-height:1.5;text-wrap:pretty}
.hero-search{max-width:680px}
.hero-search__box{border:2px solid var(--line-strong);padding:.3rem 1.4rem;background:var(--surface);box-shadow:var(--shadow-md);transition:border-color var(--dur) var(--ease),box-shadow var(--dur) var(--ease)}
.hero-search__box:hover{border-color:var(--primary-line)}
.hero-search__box:focus-within{border-color:var(--focus);box-shadow:var(--ring),var(--shadow-md)}
.hero-search__box .icon{color:var(--primary)}
.hero-search__box input{min-height:58px;font-size:var(--step-1)}
.hero-search__box input:focus-visible{box-shadow:none}
.hero-search__actions{gap:var(--space-4);margin-top:var(--space-5)}
.home__stats{display:inline-flex;align-items:center;gap:.5rem;margin:var(--space-7) 0 0;padding:.4rem 1rem;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-weight:600;font-size:var(--step--1)}
.home__stats .icon{width:1.1em;height:1.1em}
.home__section{width:100%;max-width:var(--maxw);text-align:left;margin:var(--space-8) 0 0}
.home__section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap;margin-bottom:var(--space-4)}
.home__section-head h2{margin:0;display:flex;align-items:center;gap:.6rem}
.home__section-head h2 .icon{color:var(--brand-orange);width:1.05em;height:1.05em}
.home__section-sub{margin:.35rem 0 0;color:var(--muted)}
.home__favs{margin:var(--space-8) 0 0}
.home__chips{max-width:900px;margin-top:var(--space-8)}
.home__chips-title{display:flex;align-items:center;justify-content:center;gap:.5rem;font-family:var(--font-display);font-size:var(--step-1);font-weight:700;color:var(--ink);margin:var(--space-7) 0 var(--space-4)}
.home__chips-title .icon{color:var(--brand-orange)}
.home__ad{margin-top:var(--space-8)}

/* ---------- chips, tiles ---------- */
.chips{gap:var(--space-3)}
.chip{border:1.5px solid var(--line);background:var(--surface);color:var(--ink);transition:border-color var(--dur) var(--ease),background-color var(--dur) var(--ease),color var(--dur) var(--ease),transform var(--dur) var(--ease),box-shadow var(--dur) var(--ease)}
.chip:hover{border-color:var(--primary);background:var(--primary-soft);color:var(--primary);box-shadow:var(--shadow-sm)}
.chip--alt{background:var(--surface-2)}
.tile{border:1.5px solid var(--line);background:var(--surface);box-shadow:var(--shadow-sm);transition:border-color var(--dur) var(--ease),box-shadow var(--dur) var(--ease),transform var(--dur) var(--ease)}
.tile:hover{border-color:var(--primary-line);box-shadow:var(--shadow-md)}
.tile__name{color:var(--ink)}

/* ---------- cards ---------- */
.cards{gap:var(--space-5)}
.card{border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm);transition:border-color var(--dur) var(--ease),box-shadow var(--dur) var(--ease),transform var(--dur) var(--ease)}
.card:hover{border-color:var(--primary-line);box-shadow:var(--shadow-md)}
.card.is-current{border-color:var(--primary);box-shadow:inset 6px 0 0 var(--accent),var(--shadow-md)}
.card__logo{border-color:var(--line-soft);border-radius:12px}
.card__title{font-weight:700}
.card__foot{border-top-color:var(--line-soft)}
.card .play-btn,.play-btn{box-shadow:var(--shadow-sm)}
.play-btn:hover{box-shadow:var(--shadow-md)}
.badge{background:var(--soft);color:var(--ink)}
.badge--featured{background:var(--brand-orange);color:var(--brand-brown)}
.card--featured{border-color:var(--primary-line);background:linear-gradient(180deg,var(--primary-soft),var(--surface) 55%)}
.fav-btn--card{border-color:var(--line)}

/* ---------- results / browse ---------- */
.results-count{font-size:var(--step--1);font-weight:600;color:var(--muted)}
.results-region{margin:-.5rem 0 var(--space-5)}
.filters{border:1px solid var(--line);background:var(--surface-2);border-radius:16px;padding:var(--space-2) var(--space-5)}
.filters summary{color:var(--ink)}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--primary)}
.pager{gap:var(--space-4)}

/* ---------- station page ---------- */
.station__head{gap:var(--space-6) 3rem;margin:var(--space-6) 0 var(--space-7);padding:var(--space-6);border-radius:var(--radius-lg);background:var(--hero-glow),var(--surface-2);border:1px solid var(--line)}
.station__logo{border-color:var(--line);box-shadow:var(--shadow-md);border-radius:var(--radius-lg)}
.station__intro h1{font-size:var(--step-4);font-weight:800}
.np{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow-sm)}
.np__label{color:var(--primary)}
.facts{border:1px solid var(--line);border-radius:16px;background:var(--surface)}

/* ---------- player ---------- */
.player__name a:hover{color:var(--on-dark)}

@media (max-width:640px){
  main{padding-left:1.1rem;padding-right:1.1rem}
  .home{margin:0 -1.1rem;padding-left:1.1rem;padding-right:1.1rem}
  .home__lede{margin-bottom:var(--space-6)}
  .station__head{padding:var(--space-5)}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .card:hover,.tile:hover{transform:translateY(-2px)}
  .chip:hover{transform:translateY(-1px)}
  .btn--primary:hover{transform:translateY(-1px)}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
@media (forced-colors:active){.card,.tile,.chip{border:1px solid CanvasText}}
/* contact form: off-screen honeypot (bots fill it, people never see it) */
.hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.contact .small{font-size:.9rem}
.contact .form input,.contact .form select,.contact .form textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box}

/* ---------- homepage sections (2026-10-26) ---------- */
.rj-pic{display:contents}
.home__section{margin-top:clamp(3.5rem,8vw,5.5rem)}
.home__section-head h2{font-size:clamp(1.35rem,2.4vw,1.75rem)}
.home__section .cards{margin-top:var(--space-5)}
.home__more{margin:var(--space-5) 0 0;text-align:center}
.home__near-tools{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}
.home__region-form{display:flex;gap:.5rem;align-items:center}
.home__region-form select{min-width:13rem;max-width:100%}
.home__near-status{margin:.5rem 0 0;color:var(--muted);min-height:1.5em}
.btn .icon{width:1.1em;height:1.1em}
.genre-tiles{list-style:none;padding:0;margin:var(--space-5) 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:var(--space-4)}
.genre-tile{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:.25rem;min-height:132px;padding:1.1rem 1.25rem;border-radius:16px;
  color:#fff;text-decoration:none;overflow:hidden;box-shadow:var(--shadow-sm);transition:transform var(--dur) var(--ease),box-shadow var(--dur) var(--ease)}
.genre-tile:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.genre-tile:focus-visible{outline:3px solid var(--brand-orange);outline-offset:3px}
.genre-tile .icon{position:absolute;top:1rem;right:1rem;width:30px;height:30px;opacity:.9}
.genre-tile__name{font-weight:800;font-size:1.15rem;text-transform:capitalize;line-height:1.2}
.genre-tile__count{font-size:.9rem;opacity:.92}
.genre-tile--0{background:linear-gradient(135deg,#592100,#b34700)}
.genre-tile--1{background:linear-gradient(135deg,#7a2e00,#e07000)}
.genre-tile--2{background:linear-gradient(135deg,#3d1600,#8a3b12)}
.genre-tile--3{background:linear-gradient(135deg,#6b2a10,#c2410c)}
.genre-tile--4{background:linear-gradient(135deg,#4a1d05,#a14b00)}
.genre-tile--5{background:linear-gradient(135deg,#5c2400,#cc5a00)}
.genre-tile--6{background:linear-gradient(135deg,#2e1206,#7c2d12)}
.genre-tile--7{background:linear-gradient(135deg,#6e3000,#b45309)}
.region-cols{display:grid;grid-template-columns:2fr 1fr;gap:var(--space-6);margin-top:var(--space-5)}
.region-cols h3{font-size:1.05rem;margin:0 0 .75rem;color:var(--muted);font-weight:700;display:flex;align-items:center;gap:.5rem}
.region-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:.5rem}
.region-list a{display:flex;justify-content:space-between;align-items:center;gap:.75rem;min-height:48px;padding:.6rem 1rem;border:1px solid var(--line);border-radius:12px;
  background:var(--surface);color:var(--ink);text-decoration:none;font-weight:600}
.region-list a:hover{border-color:var(--primary-line);box-shadow:var(--shadow-sm)}
.region-list__n{color:var(--muted);font-weight:500;font-size:.9rem;font-variant-numeric:tabular-nums}
.home__cta{margin-top:clamp(3.5rem,8vw,5.5rem);margin-bottom:var(--space-6);padding:clamp(1.75rem,4vw,2.75rem);border-radius:var(--radius-lg,20px);
  background:linear-gradient(120deg,var(--brand-brown),#8a3b12);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:var(--space-5);flex-wrap:wrap}
.home__cta h2{margin:0 0 .4rem;color:#fff;font-size:clamp(1.35rem,2.6vw,1.9rem)}
.home__cta p{margin:0;max-width:52ch;color:var(--on-dark-muted)}
.home__cta .btn{background:var(--brand-orange);border-color:var(--brand-orange);color:var(--brand-brown)}
.home__cta .btn:hover{background:var(--brand-orange-hover)}
@media (max-width:760px){
  .region-cols{grid-template-columns:1fr}
  .home__near-tools,.home__region-form{width:100%}
  .home__region-form select{flex:1;min-width:0}
  .home__near-tools .btn{width:100%;justify-content:center}
  .genre-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .genre-tile{min-height:108px}
}

/* ---------- enhanced station page ---------- */
.station__head--enhanced{background:var(--enh-band,#592100);color:var(--enh-text,#fff);border:0;border-bottom:6px solid var(--enh-accent,#ffd300);box-shadow:var(--shadow-md)}
.station__head--enhanced h1,.station__head--enhanced .station__place,.station__head--enhanced .station__meta{color:var(--enh-text,#fff)}
.station__head--enhanced a:not(.btn){color:var(--enh-text,#fff)}
.station__head--enhanced .station__logo{width:224px;height:224px;border:4px solid var(--enh-accent,#ffd300);border-radius:24px;background:#fff;box-shadow:0 8px 24px rgb(0 0 0 / .25)}
.station__head--enhanced .station__logo--wide{width:min(440px,100%);height:auto;max-height:260px;object-fit:contain;border-radius:18px}
.station__logo--plate{background:#fff;padding:14px}
.station__head--enhanced .badge--featured{background:var(--enh-accent,#ffd300);color:var(--enh-accent-text,#111);font-size:.95rem;padding:.35rem .8rem}
.station__head--enhanced .play-btn,.station__head--enhanced .btn--primary{border-color:var(--enh-accent,#ffd300)}
.station__place svg,.station__place .icon{width:1.05em;height:1.05em;vertical-align:-.15em;margin-right:.3rem}
@media (max-width:760px){
  .station__head--enhanced .station__logo{width:160px;height:160px}
  .station__head--enhanced .station__logo--wide{width:100%;height:auto}
}
.home__cta{width:100%;max-width:var(--maxw);text-align:left}
.home__cta-icon{flex:none;width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:rgb(255 255 255 / .12);color:var(--brand-orange)}
.home__cta-icon .icon{width:32px;height:32px}
.home__cta-text{flex:1 1 320px}
.home__country-chips{margin-top:var(--space-5)}
.region-cols h3 a{color:inherit;text-decoration:none}
.region-cols h3 a:hover{text-decoration:underline}

/* ---------- homepage hero: airy stack, nothing overlaps (strip / photo / slogan+search; order via ?strip=top|below) ---------- */
.home{padding-top:clamp(2rem,5vh,3.5rem)}
.hero{width:100%;max-width:var(--maxw);display:flex;flex-direction:column;align-items:center;gap:clamp(3rem,7vh,5rem);text-align:center}
.hero__photo{margin:0;width:100%}
.hero__photo img{display:block;width:100%;height:auto;aspect-ratio:1200/520;object-fit:cover;object-position:50% 50%;border-radius:28px;box-shadow:var(--shadow-lg);background:var(--soft)}
.hero__search{width:100%;display:flex;flex-direction:column;align-items:center}
.hero .home__slogan{margin:0 0 var(--space-6)}
.hero__dot{color:var(--accent);padding:0 .12em}
.hero .hero__stats{margin-top:var(--space-6)}

.onair{width:100%;text-align:left}
.onair__head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);margin:0 0 var(--space-4)}
.onair__title{display:flex;align-items:center;gap:.6rem;margin:0;font-size:var(--step--1);font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--primary)}
.hero__live-dot{width:.6rem;height:.6rem;border-radius:50%;background:#e11d48;flex:none;animation:hero-pulse 2s ease-out infinite}
@keyframes hero-pulse{0%{box-shadow:0 0 0 0 rgba(225,29,72,.45)}70%{box-shadow:0 0 0 .55rem rgba(225,29,72,0)}100%{box-shadow:0 0 0 0 rgba(225,29,72,0)}}
.onair__pause{display:inline-flex;align-items:center;gap:.45rem;min-height:40px;padding:.35rem .95rem;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--ink);font:inherit;font-size:var(--step--1);font-weight:600;cursor:pointer}
.onair__pause:hover{border-color:var(--primary);color:var(--primary)}
.onair__pause .icon{width:1em;height:1em}
.onair__track{display:flex;gap:var(--space-5);list-style:none;margin:0;padding:.25rem .25rem var(--space-3);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;overscroll-behavior-x:contain}
.onair__item{flex:0 0 clamp(260px,30%,340px);scroll-snap-align:start;display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4);border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-sm)}
.onair__link{flex:1;min-width:0;display:flex;align-items:center;gap:var(--space-4);color:inherit;text-decoration:none;border-radius:12px}
.onair__link:hover .onair__name{text-decoration:underline}
.onair__logo{flex:none;width:64px;height:64px;border-radius:14px;overflow:hidden;background:var(--surface-2);border:1px solid var(--line-soft);display:grid;place-items:center}
.onair__logo img{display:block;width:100%;height:100%;object-fit:contain}
.onair__text{display:grid;gap:.2rem;min-width:0}
.onair__name{font-family:var(--font-display);font-size:var(--step-1);font-weight:800;color:var(--ink);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.onair__np{color:var(--muted);font-size:var(--step--1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.onair__np.is-song{color:var(--ink);font-weight:600}
.onair__item .play-btn{width:44px;height:44px;min-height:44px}
.onair__item .play-btn .icon{width:20px;height:20px}
.onair.is-static .onair__track{flex-wrap:wrap;overflow:visible;scroll-snap-type:none}
.onair.is-static .onair__item{flex:1 1 280px}

/* iPad portrait and phones: a taller crop, focus on the group */
@media (max-width:900px){.hero__photo img{aspect-ratio:4/3;border-radius:22px}.onair__item{flex-basis:300px}}
@media (max-width:560px){.hero__photo img{aspect-ratio:1/1;border-radius:18px}.onair__item{flex-basis:84%}}
@media (prefers-reduced-motion:reduce){.hero__live-dot{animation:none}.onair__track{scroll-behavior:auto}}
.hero + .home__section,.hero + .home__favs{margin-top:clamp(4.5rem,9vw,6.5rem)}
/* logo tile backgrounds: colour from /brand.css ([data-logo-bg]), padding by size */
[data-logo-pad="sm"]{padding:4px}
[data-logo-pad="lg"]{padding:10px}
/* crop focus per hero photo (the faces sit in the upper-middle band of the sofa shot) */
.hero__photo--hero-sofa img{object-position:50% 35%}
@media (max-width:900px){.hero__photo--hero-sofa img{object-position:52% 40%}}
