/* ============================================================
   RadioUA — app.css
   Design tokens (:root) + light/dark themes, then components,
   layout, player and responsive rules. Readable/editable build.
   Minify for production, or let the server gzip/Brotli it.
   ============================================================ */
:root {
  --paper-0: #ffffff;
  --paper-50: #f6f5f3;
  --paper-100: #efedea;
  --paper-200: #e7e4df;
  --paper-300: #d8d4cd;
  --paper-400: #aaa69d;
  --ink-500: #8b867c;
  --ink-600: #68635a;
  --ink-700: #433f38;
  --ink-800: #221f1a;
  --ink-900: #16140f;
  --accent-50: #eaf1fe;
  --accent-100: #cfe0fd;
  --accent-200: #a3c3fb;
  --accent-300: #6f9df5;
  --accent-400: #4178ea;
  --accent-500: #2560d8;
  --accent-600: #1c4cb4;
  --accent-700: #163c8f;
  --accent-on: #fff;
  --amber-500: #f5a300;
  --amber-50: #fff4dc;
  /* Single-accent scheme: everything "live"/badge that used to be red now
     follows the blue accent (incl. data-accent variants). */
  --live-500: var(--accent-500);
  --live-glow: color-mix(in srgb, var(--accent-500) 40%, transparent);
  --success-500: #1f9c64;
  --success-50: #e7f6ee;
  --warning-500: #d98a1f;
  --warning-50: #fbf1df;
  --danger-500: #d92c1c;
  --danger-50: #fdeae7;
  --info-500: #2b4df2;
  --info-50: #edf0ff;
  --bg-page: #fcfcfb;
  --bg-sunken: var(--paper-100);
  --surface-card: var(--paper-0);
  --surface-raised: var(--paper-0);
  --surface-overlay: #fff;
  --surface-inverse: var(--ink-900);
  --border-subtle: var(--paper-200);
  --border-default: var(--paper-300);
  --border-strong: var(--ink-800);
  --border-focus: var(--accent-500);
  --text-heading: var(--ink-900);
  --text-body: var(--ink-700);
  --text-secondary: var(--ink-600);
  /* Darkened from ink-500 (#838a9c, ~3:1) to meet WCAG AA (4.5:1) on light
     surfaces — used for meta text, nav links, contact labels, etc. */
  --text-tertiary: #6e6960;
  --text-disabled: var(--paper-400);
  --text-inverse: #f6f5f3;
  --text-accent: var(--accent-600);
  --text-on-accent: var(--accent-on);
  --fill-accent: var(--accent-500);
  --fill-accent-hover: var(--accent-600);
  --fill-accent-press: var(--accent-700);
  --fill-accent-soft: var(--accent-50);
  --fill-neutral: var(--ink-900);
  --fill-neutral-hover: var(--ink-800);
  /* Header surface: white card in light theme (separates the sticky header
     from the grey page), page bg in dark theme (keeps the dark look as-is). */
  --surface-header: var(--surface-card);
  --shadow-header: 0 1px 2px rgba(32,28,22,.06),0 2px 8px rgba(32,28,22,.04);
  --ring-accent: color-mix(in oklch,var(--accent-500) 32%,transparent);
  --font-display: system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-sans: system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-mono: system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --text-display-lg: clamp(2.4rem,1.5rem + 3.6vw,3.9rem);
  --text-h1: clamp(1.9rem,1.4rem + 2vw,2.7rem);
  --text-h2: clamp(1.5rem,1.2rem + 1.2vw,2.05rem);
  --text-h3: clamp(1.2rem,1.05rem + .6vw,1.5rem);
  --text-h4: 1.25rem;
  --text-lg: 1.125rem;
  --text-base: 1rem;
  --text-sm: .875rem;
  --text-xs: .75rem;
  --text-2xs: .6875rem;
  --leading-tight: 1.06;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --tracking-tighter: -.02em;
  --tracking-tight: -.012em;
  --tracking-wide: .04em;
  --tracking-wider: .16em;
  --tracking-mono: .02em;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extra: 700;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --container-max: 1200px;
  --container-wide: 1300px;
  --gutter: clamp(18px,8px + 3vw,44px);
  --header-h: 72px;
  --player-h: 78px;
  --control-sm: 32px;
  --control-md: 42px;
  --control-lg: 50px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 26px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(32,28,22,.05);
  --shadow-sm: 0 1px 3px rgba(32,28,22,.07),0 1px 2px rgba(32,28,22,.04);
  --shadow-md: 0 6px 18px rgba(32,28,22,.08),0 2px 6px rgba(32,28,22,.04);
  --shadow-lg: 0 16px 40px rgba(32,28,22,.12),0 4px 10px rgba(32,28,22,.05);
  --shadow-xl: 0 30px 70px rgba(32,28,22,.18),0 8px 18px rgba(32,28,22,.07);
  --shadow-focus: 0 0 0 3px var(--ring-accent);
  --glow-live: 0 0 0 4px var(--live-glow);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

[data-theme="dark"] {
  --paper-0: #141823;
  --paper-50: #0a0d14;
  --paper-100: #11151f;
  --paper-200: #222838;
  --paper-300: #313850;
  --paper-400: #555d75;
  --ink-500: #7d8499;
  --ink-600: #9aa1b5;
  --ink-700: #c2c7d6;
  --ink-800: #e2e5ee;
  --ink-900: #f3f5fa;
  --accent-50: #161d3a;
  --accent-100: #1d2750;
  --bg-page: #080a11;
  --bg-sunken: #0e111a;
  --surface-card: #141823;
  --surface-raised: #1b2030;
  --surface-overlay: #1b2030;
  --border-subtle: #1f2433;
  --border-default: #2c3346;
  --border-strong: #454d63;
  --text-inverse: #0c0f1a;
  /* Dark theme keeps its own tertiary (light grey reads fine on dark). */
  --text-tertiary: var(--ink-500);
  --surface-header: var(--bg-page);
  --shadow-header: none;
  --accent-500: #5b8def;
  --accent-600: #7aa6f5;
  --fill-accent: #2560d8;
  --fill-accent-hover: #3d74e8;
  --text-accent: #8fb4f7;
  --ring-accent: color-mix(in oklch,var(--accent-500) 50%,transparent);
  --shadow-xs: 0 1px 2px rgba(0,0,0,.45);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5),0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 6px 18px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.3);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.6),0 4px 10px rgba(0,0,0,.35);
  --shadow-xl: 0 30px 70px rgba(0,0,0,.7),0 8px 18px rgba(0,0,0,.4);
}

[data-accent="emerald"] {
  --accent-50: #e6f6ee;
  --accent-100: #c8ead8;
  --accent-200: #92d5b3;
  --accent-300: #52ba89;
  --accent-400: #2aa06c;
  --accent-500: #13895a;
  --accent-600: #0d7049;
  --accent-700: #0a5839;
  --accent-on: #fff;
}

[data-accent="violet"] {
  --accent-50: #f1ecfe;
  --accent-100: #e0d6fd;
  --accent-200: #c2adfb;
  --accent-300: #a07ef4;
  --accent-400: #8557ea;
  --accent-500: #7340db;
  --accent-600: #5f2cbd;
  --accent-700: #4a2197;
  --accent-on: #fff;
}

[data-accent="amber"] {
  --accent-50: #fff3df;
  --accent-100: #ffe4b5;
  --accent-200: #ffce79;
  --accent-300: #fbb13c;
  --accent-400: #f09a16;
  --accent-500: #e08600;
  --accent-600: #b96b00;
  --accent-700: #8f5200;
  --accent-on: #1a1205;
}

[data-accent="crimson"] {
  --accent-50: #ffecee;
  --accent-100: #ffd2d8;
  --accent-200: #ffa7b3;
  --accent-300: #f76e80;
  --accent-400: #ec3e57;
  --accent-500: #d81e3c;
  --accent-600: #b3162f;
  --accent-700: #8a1024;
  --accent-on: #fff;
}

[data-accent="teal"] {
  --accent-50: #e2f6fb;
  --accent-100: #bfeaf4;
  --accent-200: #86d6e9;
  --accent-300: #46bcd9;
  --accent-400: #1fa4c8;
  --accent-500: #0d8bb0;
  --accent-600: #0a7193;
  --accent-700: #085a76;
  --accent-on: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button,
input {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg.filled {
  fill: currentColor;
  stroke: none;
}

::selection {
  background: var(--accent-200);
  color: var(--ink-900);
}

:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
  box-shadow: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 999px;
  border: 3px solid var(--bg-page);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.trunc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--control-md);
  padding: 0 var(--space-5);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast),transform var(--dur-fast),border-color var(--dur-fast);
}

.btn:active {
  transform: scale(.97);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn.lg {
  height: var(--control-lg);
  padding: 0 var(--space-6);
  font-size: var(--text-lg);
}

.btn.sm {
  height: var(--control-sm);
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
}

/* Dribbble-style primary: neutral dark pill (white pill in the dark theme)
   instead of the blue accent fill. */
.btn.primary {
  background: var(--fill-neutral);
  color: var(--text-inverse);
}

.btn.primary:hover {
  background: var(--fill-neutral-hover);
}

.btn.secondary {
  background: var(--surface-card);
  color: var(--text-heading);
  border-color: var(--border-default);
}

.btn.secondary:hover {
  border-color: var(--border-strong);
}

.btn.soft {
  background: var(--fill-accent-soft);
  color: var(--text-accent);
}

.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-md);
  height: var(--control-md);
  flex: 0 0 auto;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: background var(--dur-fast),color var(--dur-fast),transform var(--dur-fast);
}

.iconbtn:hover {
  background: var(--bg-sunken);
  color: var(--text-heading);
}

.iconbtn:active {
  transform: scale(.9);
}

.iconbtn svg {
  width: 20px;
  height: 20px;
}

/* Play buttons match the neutral-dark primary (Dribbble scheme): dark circle
   in the light theme, white circle in the dark theme — same as the station
   page Play. */
.playbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  flex: 0 0 auto;
  background: var(--fill-neutral);
  color: var(--text-inverse);
  transition: transform var(--dur-fast),background var(--dur-fast);
  width: 44px;
  height: 44px;
}

.playbtn:active {
  transform: scale(.92);
}

.playbtn:hover {
  background: var(--fill-neutral-hover);
}

.playbtn svg {
  width: 24px;
  height: 24px;
}

.playbtn.lg {
  width: 54px;
  height: 54px;
}

.playbtn.lg svg {
  width: 30px;
  height: 30px;
}

.playbtn.sm {
  width: 36px;
  height: 36px;
}

.playbtn.sm svg {
  width: 20px;
  height: 20px;
}

.playbtn.xl {
  width: 74px;
  height: 74px;
}

.playbtn.xl svg {
  width: 40px;
  height: 40px;
}

.playbtn.neutral {
  background: var(--fill-neutral);
  color: var(--text-inverse);
}

.playbtn.neutral:hover {
  background: var(--fill-neutral-hover);
}

.onair.sm {
  height: 20px;
  padding: 0 8px;
}

.onair .lbl {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--live-500);
}

.onair .freq {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.eq i {
  width: 3px;
  background: var(--accent-500);
  border-radius: 999px;
  transform-origin: bottom;
  height: 40%;
}

.eq.on i {
  animation: fq-eq .9s var(--ease-in-out) infinite alternate;
}

.eq.on i:nth-child(1) {
  animation-delay: 0s;
}

.eq.on i:nth-child(2) {
  animation-delay: .35s;
}

.eq.on i:nth-child(3) {
  animation-delay: .15s;
}

.eq.on i:nth-child(4) {
  animation-delay: .5s;
}

/* Cards animate the equalizer straight off their .playing state (player.js
   only manages the .on class for the station hero). */
.scard.playing .eq i,
.lcard.playing .eq i {
  animation: fq-eq .9s var(--ease-in-out) infinite alternate;
}

.scard.playing .eq i:nth-child(2),
.lcard.playing .eq i:nth-child(2) {
  animation-delay: .35s;
}

.scard.playing .eq i:nth-child(3),
.lcard.playing .eq i:nth-child(3) {
  animation-delay: .15s;
}

.scard.playing .eq i:nth-child(4),
.lcard.playing .eq i:nth-child(4) {
  animation-delay: .5s;
}

.eq.muted i {
  background: var(--text-secondary);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 34px;
  padding: 0 var(--space-4);
  background: var(--surface-card);
  color: var(--text-body);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: background var(--dur-fast),border-color var(--dur-fast),color var(--dur-fast);
}

/* Genre dot: a stable per-genre hue (set inline as --ph) gives the cloud
   life without shouting; on hover the pill border picks up the same hue. */
.pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--ph, var(--text-tertiary));
}

/* Station counts (from the country payload) on genre pills / city tiles. */
.pill .pill-n {
  font-size: var(--text-2xs);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.city .city-r {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.city .city-n {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.pill:hover {
  border-color: var(--ph, var(--border-strong));
  background: var(--bg-sunken);
  color: var(--text-heading);
}

.pill .gdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.pill .cnt {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  opacity: .6;
}

.pill.dash {
  border-style: dashed;
  color: var(--text-secondary);
}

.pill.dash svg {
  width: 14px;
  height: 14px;
}

/* Dribbble-style field: borderless pill on a sunken grey, turns into a white
   card with a soft shadow on focus. */
.input {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--control-md);
  padding: 0 var(--space-4);
  width: 100%;
  background: var(--bg-sunken);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast),border-color var(--dur-fast),box-shadow var(--dur-fast);
}

.input:focus-within {
  background: var(--surface-card);
  border-color: var(--border-default)!important;
  box-shadow: var(--shadow-md);
}

.input svg {
  width: 17px;
  height: 17px;
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

.input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-heading);
  font-size: var(--text-base);
}

.input input::placeholder {
  color: var(--text-tertiary);
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--dur-base),border-color var(--dur-base),transform var(--dur-base);
}

.scroll {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  /* Reserve scrollbar space on both sides so the side padding stays symmetric
     (no left/right skew when a vertical scrollbar appears). */
  scrollbar-gutter: stable both-edges;
}

.wrap {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

header.hd {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface-header);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-header);
  transition: background var(--dur-base);
}

header.hd.scrolled {
  background: color-mix(in oklch,var(--surface-header) 84%,transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hd-in {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}

.brand .logo {
  position: relative;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand .logo .c {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-500);
}

.brand .logo .a1,
.brand .logo .a2 {
  position: absolute;
  border: 2px solid var(--accent-500);
  border-radius: 50%;
  clip-path: inset(0 0 0 50%);
}

.brand .logo .a1 {
  inset: 0;
}

.brand .logo .a2 {
  inset: -5px;
  opacity: .45;
}

.brand .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -.01em;
  color: var(--text-heading);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav.main {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

nav.main a {
  padding: 8px 15px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  position: relative;
}

nav.main a:hover {
  color: var(--text-heading);
}

nav.main a.active {
  color: var(--text-heading);
  font-weight: 600;
}

nav.main a.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-500);
}

.hd-search {
  flex: 0 1 300px;
  margin-left: 0;
  position: relative;
}

.hd-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 0 0 auto;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
}

.lang svg {
  width: 15px;
  height: 15px;
}

.badge-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--fill-accent);
  color: var(--text-on-accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.burger,
.msearch {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-heading);
  cursor: pointer;
  flex: 0 0 auto;
}

main {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter) var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.page-head {
  margin-bottom: var(--space-5);
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem,1.3rem + 1.6vw,2.4rem);
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  line-height: 1.1;
}

.page-head .page-sub {
  margin-top: 8px;
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 70ch;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem,1.4rem + 2.4vw,3rem);
  letter-spacing: var(--tracking-tighter);
  line-height: 1.05;
  color: var(--text-heading);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-600);
  font-weight: 700;
}

.input.lg {
  height: var(--control-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-lg);
}

.input.lg input {
  font-size: var(--text-base);
}

.cbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.cbar-l {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1 1 320px;
  min-width: 0;
}

.cbar-r {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cbar-sort {
  height: 38px;
}

.cbar-dd {
  position: relative;
}

.dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  border-radius: var(--radius-pill);
  color: var(--text-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur-fast);
}

.dd-btn:hover {
  border-color: var(--border-strong);
}

.dd-btn.active {
  border-color: var(--accent-500);
  color: var(--text-accent);
}

.dd-btn svg:first-child {
  width: 15px;
  height: 15px;
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

.dd-btn.active svg:first-child {
  color: var(--accent-500);
}

.dd-btn svg:last-child {
  width: 15px;
  height: 15px;
  color: var(--text-tertiary);
  flex: 0 0 auto;
  transition: transform var(--dur-fast);
}

.cbar-dd.open .dd-btn svg:last-child {
  transform: rotate(180deg);
}

.cbar-dd.open .dd-btn {
  border-color: var(--accent-500);
}

.dd-lbl {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dd-opt.sel {
  background: var(--fill-accent-soft);
  color: var(--text-accent);
  font-weight: 600;
}

.dd-opt.sel .dd-cnt {
  color: var(--text-accent);
}

@media (max-width:560px) {
  .pager {
    justify-content: center;
  }
  .pg-range {
    width: 100%;
    text-align: center;
    order: 2;
  }
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

.pg-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pg-nums {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pg {
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--dur-fast),color var(--dur-fast),background var(--dur-fast);
}

.pg:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text-heading);
}

.pg.sel {
  background: var(--fill-accent);
  border-color: var(--fill-accent);
  color: var(--text-on-accent);
}

.pg.arrow {
  color: var(--text-secondary);
}

.pg.arrow svg {
  width: 16px;
  height: 16px;
}

.pg:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.pg-ell {
  padding: 0 4px;
  color: var(--text-tertiary);
}

.loadmore {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

.loadmore .btn {
  min-width: 220px;
  height: 46px;
}

.sect-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.sect-head .l {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.sect-head .ix {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-500);
}

.sect-head .kick {
  display: none;
}

.sect-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  letter-spacing: var(--tracking-tight);
}

.sect-head .sub {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.sect-head .more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}

.sect-head .more svg {
  width: 15px;
  height: 15px;
}

.sect-head .more:hover {
  gap: 8px;
}

.ad {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: repeating-linear-gradient(135deg,var(--bg-sunken),var(--bg-sunken) 11px,transparent 11px,transparent 22px);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  flex: 0 0 auto;
  margin: 0 auto;
  overflow: hidden;
}

.ad .t {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.ad .s {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  opacity: .7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(var(--card-min,178px),1fr));
  gap: var(--space-5);
}

.scard {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  transition: transform var(--dur-base);
}

.scard:hover {
  transform: none;
  box-shadow: none;
}

.scard.playing {
  border: none;
  box-shadow: none;
}

.scard-art {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  transition: box-shadow var(--dur-base);
}

.scard:hover .scard-art {
  /* Shadow only — the 3px hover lift moved the play control with the tile,
     which read as the button jumping. */
  box-shadow: var(--shadow-lg);
}

.scard.playing .scard-art {
  box-shadow: 0 0 0 1.5px var(--accent-500);
}

.scard-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scard-art .noart {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
}

.scard-art .onair {
  position: absolute;
  top: 10px;
  left: 10px;
  background: color-mix(in oklch,#0c0f1a 50%,transparent);
  border-color: transparent;
  backdrop-filter: blur(6px);
}

.scard-art .onair .lbl {
  color: #fff;
}

.scard-art .onair .freq {
  color: rgba(255,255,255,.8);
}

.scard:hover .scard-fav {
  opacity: 1;
}

.scard-fav.on {
  opacity: 1;
  color: var(--accent-500);
}

.scard-fav.on svg {
  fill: currentColor;
}

.scard-ov {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  transition: background var(--dur-base);
}

.scard:hover .scard-ov {
  background: color-mix(in oklch,#0c0f1a 26%,transparent);
}

.scard-ov .playbtn {
  opacity: 0;
  transition: opacity var(--dur-base),background var(--dur-fast);
}

.scard:hover .scard-ov .playbtn,
.scard.playing .scard-ov .playbtn {
  opacity: 1;
}

/* Tile controls never move: neutralise the global press-scale too. */
.scard-ov .playbtn:active,
.lcard .lc-play:active { transform: none; }

.scard-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
}

.scard-titlerow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.scard-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-heading);
  letter-spacing: -.005em;
}

.scard-meta {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.lgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(330px,1fr));
  gap: var(--space-3);
  min-width: 0;
}

.lcard {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) 42px;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px 12px 10px 10px;
  cursor: pointer;
  transition: border-color var(--dur-base),box-shadow var(--dur-base),background var(--dur-base);
}

.lcard:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

.lcard.playing {
  border-color: var(--accent-300);
  background: var(--fill-accent-soft);
}

.lcard .lc-play {
  justify-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  background: var(--fill-neutral);
  color: var(--text-inverse);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur-fast),background var(--dur-fast);
}

.lcard:hover .lc-play,
.lcard.playing .lc-play,
.lcard:focus-within .lc-play {
  opacity: 1;
}

.lcard .lc-play:hover {
  background: var(--fill-neutral-hover);
}

.lcard .lc-play svg {
  width: 18px;
  height: 18px;
}

.lcard .lc-art {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-sunken);
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
}

.lcard .lc-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lcard .lc-mid {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lcard .lc-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-heading);
  line-height: 1.25;
  letter-spacing: -.005em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lcard .lc-name .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lcard.playing .lc-name {
  color: var(--text-heading);
}

.lcard .lc-meta {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lcard .lc-meta .lc-fq {
  color: var(--text-secondary);
  font-weight: 500;
}

.lcard .lc-now {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 1px;
}

.lcard .lc-now .np {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lcard .lc-now svg {
  width: 13px;
  height: 13px;
  color: var(--accent-500);
  flex: 0 0 auto;
}

.lcard .lc-plays {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.lcard .lc-plays svg {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
}

.lcard.playing .lc-plays {
  color: var(--text-accent);
}

.lcard.playing .lc-plays svg {
  color: var(--accent-500);
}

.cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border-radius: var(--radius-sm);
  height: 38px;
  background: var(--surface-card);
}

.cities {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: var(--space-2) var(--space-6);
}

.city {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  transition: border-color var(--dur-fast),background var(--dur-fast);
}

.city:hover {
  border-color: var(--border-strong);
  background: var(--bg-sunken);
}

/* Arrow slides in on hover (desktop affordance; hidden otherwise). */
.city .city-arr {
  opacity: 0;
  transform: translateX(-4px);
  color: var(--text-tertiary);
  flex: 0 0 auto;
  transition: opacity var(--dur-fast),transform var(--dur-fast);
}

.city:hover .city-arr {
  opacity: 1;
  transform: none;
}

.city .nm {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.city .nm svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

.city .nm span {
  font-size: var(--text-base);
  color: var(--text-heading);
  font-weight: 500;
}

.city .cnt {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

.pod {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  transition: box-shadow var(--dur-base),transform var(--dur-base),border-color var(--dur-base);
}

.pod:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-default);
}

.tracks {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

.track {
  display: grid;
  grid-template-columns: 28px 48px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--dur-fast);
}

.track:hover {
  background: var(--bg-sunken);
}

.track .rank {
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.track .tart {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-sunken);
  flex: 0 0 auto;
}

.track .tart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track .tinfo {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track .ttitle {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-heading);
}

.track .tsub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.track .tsub .ctx {
  color: var(--text-tertiary);
}

.track .tmeta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.track .tmeta svg {
  width: 14px;
  height: 14px;
}

.track .tmeta .new {
  color: var(--accent-600);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
}

.seo {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.seo .body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.seo h2 {
  font-size: var(--text-h2);
}

.seo p {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: var(--leading-relaxed);
}

.seo .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.seo .links a {
  font-size: var(--text-sm);
  color: var(--text-accent);
  padding: 5px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.seo .links a:hover {
  border-color: var(--accent-300);
}

.faq {
  display: flex;
  flex-direction: column;
}

.faq .lbl {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border: none;
  background: transparent;
  color: var(--text-heading);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-q svg {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

.faq-a {
  padding: 0 0 14px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-sunken);
  padding-bottom: var(--player-h);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3,1fr);
  gap: var(--space-6);
  padding: var(--space-12) var(--gutter) var(--space-8);
}

.foot-about {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 360px;
}

.foot-about p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.foot-apps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot-col .h {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.foot-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.foot-col a:hover {
  color: var(--text-heading);
}

.foot-bar {
  padding: var(--space-5) var(--gutter);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.foot-bar span {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.foot-bar .lk {
  display: flex;
  gap: var(--space-5);
}

.foot-bar .lk a {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}

.foot-bar .lk a:hover {
  color: var(--text-heading);
}

.quick .empty {
  padding: var(--space-4);
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: color-mix(in oklch,var(--surface-overlay) 90%,transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.dplayer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--player-h);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.dp-now {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex: 1 1 30%;
  text-decoration: none;
  color: inherit;
}

.dp-art {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-sunken);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
}

.dp-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dp-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-heading);
}

.dp-sub {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.dp-fav {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

.dp-fav.on {
  color: var(--accent-500);
}

.dp-fav svg {
  width: 24px;
  height: 24px;
}

.dp-fav.on svg {
  fill: currentColor;
}

.dp-ctr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1 1 40%;
}

.dp-btns {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.dp-btns .sk {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
}

.dp-btns .sk svg {
  width: 20px;
  height: 20px;
}

.dp-prog .bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--paper-200);
  overflow: hidden;
}

.dp-prog .bar i {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--fill-accent);
  border-radius: 999px;
}

.dp-vol {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  flex: 1 1 30%;
  color: var(--text-secondary);
}

.dp-volwrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-volwrap svg {
  width: 22px;
  height: 22px;
}

.dp-vol svg {
  width: 22px;
  height: 22px;
}

.dp-vol .bar {
  width: 96px;
  height: 5px;
  border-radius: 999px;
  background: var(--paper-200);
  overflow: hidden;
}

.dp-vol .bar i {
  display: block;
  width: 62%;
  height: 100%;
  background: var(--text-secondary);
  border-radius: 999px;
}

.dp-vol .max {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
}

.dp-vol .max svg {
  width: 16px;
  height: 16px;
}

.mplayer {
  display: none;
  align-items: center;
  gap: var(--space-3);
  height: 60px;
  padding: 0 var(--space-3);
}

.mp-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.mp-art {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-sunken);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
}

.mp-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-txt {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-heading);
}

.mp-sub {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.mp-fav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

.mp-fav.on {
  color: var(--accent-500);
}

.mp-fav svg {
  width: 20px;
  height: 20px;
}

.mp-fav.on svg {
  fill: currentColor;
}

.full {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg-page);
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  pointer-events: none;
}

.full.open {
  transform: translateY(0);
  pointer-events: auto;
}

.full-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.full-top .eyebrow {
  color: var(--text-tertiary);
}

.full-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  text-align: center;
}

.full-art {
  width: min(74vw,300px);
  aspect-ratio: 1/1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--bg-sunken);
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
}

.full-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.full-meta h2 {
  font-size: var(--text-h1);
}

.full-meta .sub {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.full-ctr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
}

.full-ctr .ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
}

.full-ctr .ic svg {
  width: 24px;
  height: 24px;
}

.full-ctr .ic.on {
  color: var(--accent-500);
}

.full-ctr .ic.on svg {
  fill: currentColor;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
}

.scrim .bg {
  position: absolute;
  inset: 0;
  background: color-mix(in oklch,#000 45%,transparent);
  opacity: 0;
  transition: opacity var(--dur-base);
}

.scrim.open {
  pointer-events: auto;
}

.scrim.open .bg {
  opacity: 1;
}

.drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86vw,340px);
  background: var(--bg-page);
  border-right: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
  transform: translateX(-102%);
  transition: transform var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-5);
  gap: var(--space-5);
  overflow-y: auto;
}

.scrim.open .drawer {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  color: var(--text-body);
  font-weight: 600;
  font-size: var(--text-lg);
}

.drawer nav a.active {
  background: var(--bg-sunken);
  color: var(--text-heading);
}

.drawer nav a svg {
  width: 18px;
  height: 18px;
}

.drawer-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-4);
}

.drawer-foot button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-body);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
}

.drawer-foot button svg {
  width: 18px;
  height: 18px;
}

.tweaks.open {
  display: flex;
}

.tw-row .lbl {
  font-size: var(--text-sm);
  color: var(--text-body);
  font-weight: 500;
}

.sw {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--paper-300);
  transition: background var(--dur-base);
}

.sw.on {
  background: var(--fill-accent);
}

.sw i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: left var(--dur-base) var(--ease-spring);
}

.sw.on i {
  left: 23px;
}

.swatch.sel {
  border-color: var(--text-heading);
}

.seg {
  display: inline-flex;
  background: var(--bg-sunken);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.seg button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.seg button.sel {
  background: var(--surface-card);
  color: var(--text-heading);
  box-shadow: var(--shadow-xs);
}

@keyframes fq-ping {
  0% {
    transform: scale(1);
    opacity: .7;
  }
  70%,
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes fq-eq {
  0% {
    transform: scaleY(.28);
  }
  100% {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion:reduce) {
  .eq.on i,
  .playing .eq i,
  .sk-box::after,
  .onair .dot::before {
    animation: none!important;
  }
  .eq.on i,
  .playing .eq i {
    height: 80%!important;
  }
}

.mplayer {
  display: none;
}

@media (max-width:1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .hlive {
    max-width: 560px;
  }
}

@media (max-width:980px) {
  nav.main {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .hd-actions {
    margin-left: auto;
  }
  /* Theme toggle lives in the drawer on mobile — hide the header one. */
  .hd-theme {
    display: none;
  }
}

@media (max-width:768px) {
  /* Minimal, symmetric side padding on mobile (same on every page). */
  :root {
    --gutter: 12px;
  }
  .hd-search {
    display: none;
  }
  .brand .name {
    font-size: 20px;
  }
  .dplayer {
    display: none;
  }
  .mplayer {
    display: flex;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .side-ad {
    display: none;
  }
  .seo {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6) var(--space-4);
  }
  .foot-about {
    grid-column: 1 / -1;
    max-width: none;
  }
  .lgrid {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
    gap: var(--space-4);
  }
  .cbar-search {
    max-width: none;
  }
  .cbar-r {
    width: 100%;
    justify-content: space-between;
  }
  /* Touch screens: the play button sits in the tile's bottom-right corner
     (Spotify-style), smaller — it doesn't cover the station logo. */
  .scard-ov {
    display: block;
  }
  .scard-ov .playbtn {
    opacity: 1;
    transform: scale(1);
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 40px;
    height: 40px;
    box-shadow: var(--shadow-md);
  }
  .scard-ov .playbtn svg {
    width: 22px;
    height: 22px;
  }
  .lcard .lc-play {
    opacity: 1;
    transform: scale(1);
  }
  .hero h1 {
    font-size: clamp(2.2rem,7vw,2.8rem);
  }
  .st-layout {
    grid-template-columns: 1fr;
  }
  .st-side {
    position: static;
  }
  /* Center the station hero (photo, name, city, actions) on mobile. */
  .st-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .st-hero .st-meta,
  .st-hero .st-now,
  .st-hero .st-cta {
    justify-content: center;
  }
}

@media (max-width:480px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-about {
    grid-column: 1 / -1;
  }
  .lcard .lc-art {
    width: 52px;
    height: 52px;
  }
}

.yt-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--text-secondary);
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color var(--dur-fast),color var(--dur-fast);
}

.yt-btn:hover {
  border-color: #ff0033;
  color: #ff0033;
}

.yt-btn svg {
  width: 20px;
  height: 20px;
}

.song-actions .src-btn.preview {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--fill-accent);
  color: var(--text-on-accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur-fast),background var(--dur-fast);
}

.song-actions .src-btn.preview svg {
  width: 18px;
  height: 18px;
}

.song-actions .src-btn.preview:hover {
  background: var(--fill-accent-hover);
}

.track:hover .song-actions .src-btn.preview,
.track:focus-within .song-actions .src-btn.preview {
  opacity: 1;
}

.crumbs a {
  color: var(--text-tertiary);
}

.crumbs a:hover {
  color: var(--text-accent);
}

.crumbs svg {
  width: 14px;
  height: 14px;
  opacity: .6;
}

.crumbs .cur {
  color: var(--text-secondary);
  font-weight: 600;
}

.relrow .cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.relrow .pill .nm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.relrow .pill .nm svg {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
}

.lcard.plain {
  grid-template-columns: 52px minmax(0,1fr);
}

.track.playlist-row {
  grid-template-columns: 48px 1fr auto auto;
}

.track.top-row {
  grid-template-columns: 28px 48px 1fr auto;
}

.track .tplayed,
.track .tplays {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
}

.track .tplays {
  color: var(--text-secondary);
}

.listtoggle {
  margin: var(--space-4) auto 0;
  display: inline-flex;
}

.listtoggle svg {
  width: 16px;
  height: 16px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

/* Station/podcast hero tint (Apple Music-style): --st-tint is set by
   hero-tint.js from the cover's dominant color (CORS canvas readback) on the
   <main> element. The tint is a full-width band from the very top of the
   page — it washes behind the breadcrumbs AND the hero, fading out below.
   No fallback color: the page stays plain until the real color is known,
   then fades in smoothly (registered property = interpolable color). */
@property --st-tint {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}

.st-hero {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: 0;
}

main.st-page {
  background: linear-gradient(180deg, color-mix(in srgb, var(--st-tint, transparent) 14%, var(--bg-page)), var(--bg-page) 420px) no-repeat;
  transition: --st-tint .6s var(--ease-out);
}

[data-theme="dark"] main.st-page {
  background: linear-gradient(180deg, color-mix(in srgb, var(--st-tint, transparent) 24%, var(--bg-page)), var(--bg-page) 420px) no-repeat;
}

main.st-page {
  gap: var(--space-6);
  padding-top: var(--space-5);
}

.st-cover {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
}

/* On-air artwork rotation: player.js wraps the logo into a two-faced 3D
   flipper and cycles logo <-> song art while this page's station plays. */
.st-cover { perspective: 800px; }

.st-cover .st-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-in-out);
}

.st-cover.show-song .st-flip {
  transform: rotateY(180deg);
}

.st-cover .st-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.st-cover .st-face-back {
  transform: rotateY(180deg);
}

@media (prefers-reduced-motion:reduce) {
  .st-cover .st-flip { transition: none; }
}

.st-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.st-info h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem,1.3rem + 2vw,2.6rem);
  letter-spacing: var(--tracking-tighter);
  color: var(--text-heading);
  line-height: 1.05;
}

.st-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.st-meta span,
.st-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.st-meta svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
}

.st-meta a {
  color: var(--text-secondary);
}

.st-meta a:hover {
  color: var(--text-accent);
}

.st-now .eq {
  flex: 0 0 auto;
  height: 18px;
}

.st-meta .freq {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.st-now {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
  font-size: var(--text-base);
}

.st-now .nowt {
  color: var(--text-heading);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-now .nowt.off {
  color: var(--text-tertiary);
  font-weight: 500;
}

.st-now .st-livedot {
  flex: 0 0 auto;
}

.st-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.st-cta .btn.primary {
  min-width: 158px;
}

.st-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: var(--space-8);
  align-items: start;
  margin-top: var(--space-4);
}

.st-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  min-width: 0;
}

.st-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
}

.st-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.st-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h4);
  color: var(--text-heading);
  margin-bottom: var(--space-3);
}

.st-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.st-facts .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}

.st-facts .row:last-child {
  border-bottom: none;
}

.st-facts .k {
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.st-facts .k svg {
  width: 15px;
  height: 15px;
}

.st-facts .v {
  color: var(--text-heading);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.st-applbl {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: var(--space-4) 0 6px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.st-soc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.st-soc .soc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.st-soc .soc:hover {
  color: var(--text-heading);
}

.st-soc .soc svg {
  width: 17px;
  height: 17px;
  color: var(--text-tertiary);
}

.st-soc .soc:hover svg {
  color: var(--text-heading);
}

.st-desc {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: var(--leading-relaxed);
  max-width: 62ch;
}

.st-desc p {
  margin-bottom: var(--space-3);
}

.freq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 8px;
}

.freq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  cursor: pointer;
  transition: border-color var(--dur-fast),background var(--dur-fast);
}

.freq-row:hover {
  border-color: var(--border-strong);
  background: var(--bg-sunken);
}

.freq-city {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  overflow: hidden;
}

.freq-city span,
.freq-city {
  white-space: nowrap;
}

.freq-city svg {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

.freq-val {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: 0 0 auto;
}

@media (max-width:680px) {
  .st-hero {
    flex-direction: column;
    gap: var(--space-4);
  }
  .st-cover {
    width: 200px;
    height: 200px;
  }
}

.btn.shazam {
  background: var(--surface-card);
  color: var(--text-heading);
  border: 1px solid var(--border-default);
  padding: 0 var(--space-5);
}

.btn.shazam:hover {
  border-color: var(--accent-500);
  color: var(--text-accent);
}

.btn.shazam svg {
  color: var(--accent-500);
}

/* (st-follow hover/active styles live in one place near the player hearts —
   see the "Favorites heart" block; the old accent-blue hover was removed.) */

#shazamBox:empty {
  display: none;
}

.shz {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
}

.shz-pulse {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fill-accent-soft);
  color: var(--accent-600);
  flex: 0 0 auto;
}

.shz.scanning .shz-pulse {
  animation: shz-ping 1.4s var(--ease-out) infinite;
}

.shz-pulse.off {
  background: var(--bg-sunken);
  color: var(--text-tertiary);
}

.shz-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.shz-t {
  font-weight: 600;
  color: var(--text-heading);
}

.shz-s {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.shz .eq {
  flex: 0 0 auto;
}

.shz-art {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--bg-sunken);
}

.shz-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shz-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-heading);
  line-height: 1.15;
}

.shz-artist {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.shz.found {
  padding-right: 16px;
}

.shz-links {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

@keyframes shz-ping {
  0% {
    box-shadow: 0 0 0 0 var(--ring-accent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 12px transparent;
  }
}

.info-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin-bottom: var(--space-10);
}

.info-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}

.is-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h2);
  color: var(--text-heading);
}

.is-l {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.info-cols {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: var(--space-8);
  align-items: start;
}

.info-main {
  min-width: 0;
}

.info-side {
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.info-ctext {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.info-side .btn {
  margin-bottom: var(--space-3);
}

.info-mail {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-accent);
}

.info-mail:hover {
  text-decoration: underline;
}

.net-flags {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-6);
}

.net-flags-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h4);
  color: var(--text-heading);
  margin-bottom: var(--space-4);
}

.net-flags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.net-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  transition: border-color var(--dur-fast),transform var(--dur-fast);
}

.net-flag:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
}

.net-flag img {
  display: block;
  height: 22px;
  width: auto;
  border-radius: 2px;
}

.info-side .st-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.info-side .st-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h4);
  color: var(--text-heading);
  margin-bottom: var(--space-4);
}

@media (max-width:880px) {
  .info-cols {
    grid-template-columns: 1fr;
  }
  .info-side {
    position: static;
  }
  .info-stats {
    grid-template-columns: repeat(2,1fr);
  }
}

.fb-wrap {
  max-width: 600px;
}

.fb-cols {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: var(--space-8);
  align-items: start;
}

.fb-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
}

.fb-tips {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}

.fb-tip {
  display: flex;
  gap: 12px;
}

.fb-tip-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  background: var(--fill-accent-soft);
  color: var(--accent-600);
}

.fb-tip-ic svg {
  width: 18px;
  height: 18px;
}

.fb-tip>div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.fb-tip b {
  font-size: var(--text-sm);
  color: var(--text-heading);
}

.fb-tip span {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.fb-tip a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fb-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.fb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fb-lbl {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-heading);
}

.fb-chip.sel {
  background: var(--fill-accent);
  border-color: var(--fill-accent);
  color: var(--text-on-accent);
}

.fb-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-size: var(--text-base);
  font-family: inherit;
}

.fb-input::placeholder {
  color: var(--text-tertiary);
}

.fb-input:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: none;
}

.fb-area {
  resize: vertical;
  min-height: 120px;
}

.fb-done.show {
  display: flex;
}

.fb-legal {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: var(--leading-normal);
  margin-top: -4px;
}

.fb-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fb-legal a:hover {
  color: var(--text-accent);
}

.track .tnew {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent-600);
  border: 1px solid var(--accent-200);
  border-radius: var(--radius-pill);
  padding: 1px 6px;
  flex: 0 0 auto;
}

.src-btn.preview {
  background: var(--fill-accent);
  border-color: transparent;
  color: var(--text-on-accent);
}

.src-btn.preview:hover {
  background: var(--fill-accent-hover);
  color: var(--text-on-accent);
}

.regions {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.eplist {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ep {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  transition: border-color var(--dur-fast);
}

.ep:hover {
  border-color: var(--border-default);
}

.ep-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ep-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-heading);
  line-height: 1.3;
}

.ep-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.ep-meta svg {
  width: 13px;
  height: 13px;
}

.ep-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

.ep-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pl-days {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.pl-day {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  padding: 0 8px;
  text-align: center;
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast),color var(--dur-fast),background var(--dur-fast);
}

.pl-day:hover {
  border-color: var(--border-strong);
  color: var(--text-heading);
}

.pl-day.sel {
  background: var(--fill-accent);
  border-color: var(--fill-accent);
  color: var(--text-on-accent);
}

.pl-list {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-card);
}

.pl-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.pl-row:last-child {
  border-bottom: none;
}

.pl-row:hover {
  background: var(--bg-sunken);
}

.pl-time {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  flex: 0 0 auto;
  width: 44px;
}

.pl-art {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--bg-sunken);
}

.pl-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pl-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pl-song {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-heading);
}

.pl-artist {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pl-row .yt-btn {
  opacity: 1;
}

.favtabs {
  margin-bottom: var(--space-6);
}

.favtabs .favn {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  opacity: .7;
  margin-left: 4px;
}

.cempty .btn {
  margin-top: var(--space-3);
}

.as-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0;
}

.as-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg,var(--fill-accent-soft),var(--surface-card) 70%);
}

.as-lead {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: var(--leading-relaxed);
}

.as-card .btn.primary .ic:last-child {
  margin-left: 2px;
}

.as-url {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.as-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h3);
  color: var(--text-heading);
  margin-bottom: var(--space-4);
}

.as-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.as-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-base);
  color: var(--text-body);
}

.as-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  background: var(--fill-accent-soft);
  color: var(--accent-600);
}

.as-ic svg {
  width: 17px;
  height: 17px;
}

.as-note {
  display: flex;
  gap: 12px;
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-sunken);
}

.as-note>svg {
  width: 18px;
  height: 18px;
  color: var(--accent-600);
  flex: 0 0 auto;
  margin-top: 2px;
}

.as-note>div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.as-note b {
  font-size: var(--text-sm);
  color: var(--text-heading);
}

.as-note span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.err {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-16) var(--space-4) var(--space-12);
  max-width: 640px;
  margin: 0 auto;
}

.err-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem,3rem + 12vw,10rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--accent-500);
}

.err h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h1);
  color: var(--text-heading);
  margin-top: var(--space-4);
}

.err-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: var(--space-3);
  max-width: 48ch;
}

.err-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: var(--space-8);
}

.err-pop .cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pill:hover {
  border-color: var(--border-strong);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
  padding: var(--space-10) 0 var(--space-6);
  max-width: 680px;
  margin: 0 auto;
}


/* =================== merged from extra.css =================== */
/* v2 theme — supplemental styles not covered by app.css (pagination, player
   reveal). Loaded after app.css. */

/* The HTML `hidden` attribute must always win — several design classes set an
   explicit `display` (grid/flex/...) that otherwise overrides the UA
   [hidden]{display:none} rule. Force it globally so JS hidden-toggling works. */
[hidden] { display: none !important; }

/* ===== Ads must never blow out the layout =====
   Responsive AdSense units can render at full viewport width (e.g. a 390px-wide
   <ins> on mobile) and, because the sidebar grid item is min-width:auto, that
   inflates the grid track and shoves the whole page to one side. Let the
   sidebar shrink and clamp any ad to its container width. */
.st-side,
.st-main { min-width: 0; }
.ad-slot { max-width: 100%; overflow: hidden; }

/* Top-of-page ad slot: the height is reserved UP FRONT so the page renders
   with the gap already in place — whether AdSense fills the unit, fills it
   late, or reports "unfilled", the content below never jumps (CLS fix for
   station/podcast browsing). 90px = desktop leaderboard, 100px = mobile
   320x100. */
.ad-slot.ad-top {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .ad-slot.ad-top { min-height: 100px; }
}
.ad-slot ins,
.ad-slot iframe,
ins.adsbygoogle { max-width: 100% !important; }

/* Station hero: round icon-only CTAs (Listen live + Recognize song).
   .btn.cta-round keeps specificity above .st-cta .btn.primary (min-width:158)
   so the circle isn't stretched into an ellipse. */
.st-cta .btn.cta-round {
  width: var(--control-lg);
  height: var(--control-lg);
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  flex: 0 0 auto;
}
.st-cta .btn.cta-round .st-pl { display: none; }
.st-cta .btn.cta-round svg { width: 28px; height: 28px; }
.st-cta .btn.cta-round img { width: 30px; height: 30px; }

/* Play is the primary action — make it noticeably larger than Favorites/Shazam. */
.st-cta .btn.cta-round.st-playbtn { width: 64px; height: 64px; }
.st-cta .btn.cta-round.st-playbtn svg { width: 34px; height: 34px; }
/* Bigger loading spinner on the (larger) play button. */
.st-cta .btn.cta-round.st-playbtn .player-spinner { width: 38px; height: 38px; border-width: 3px; }

/* Favorites: the heart is the ONLY color carrier — the pill and the label
   never change (no washes, no blue), so the state reads instantly:
   - rest: neutral secondary pill, outline heart;
   - hover: heart turns red, border darkens slightly;
   - active (.on): heart fills red with a spring pop. */
.st-follow:hover {
  color: var(--text-heading);
  border-color: var(--border-strong);
  background: var(--surface-card);
}
.st-follow:hover svg { color: var(--accent-500); }
.st-follow.on {
  color: var(--text-heading);
  background: var(--surface-card);
  border-color: var(--border-default);
}
.st-follow.on svg {
  color: var(--accent-500);
  fill: var(--accent-500);
  animation: fav-pop .35s var(--ease-spring);
}

@keyframes fav-pop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion:reduce) {
  .st-follow.on svg { animation: none; }
}
/* Player hearts (docked + mobile) turn red on hover and when active. */
.dp-fav:hover,
.dp-fav.on,
.mp-fav:hover,
.mp-fav.on { color: var(--accent-500) !important; }

/* Header favorites count badge in red too. */
.badge-count { background: var(--live-500) !important; color: #fff !important; }

/* SPA top loading bar — slides across the very top while a page loads. */
#spa-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent-500);
  box-shadow: 0 0 8px var(--accent-500);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
}

/* Station-page station lists (Recommended / Other channels) are navigate-only —
   no inline play button, so drop its grid column. */
.lcard.no-play { grid-template-columns: 52px minmax(0, 1fr); }

/* ===== Podcast player: skip (±15/30s) + seek bar (only in podcast mode) ===== */
.player .sk,
.mp-sk { display: none; }
/* Radio: previous / next station */
body:not(.podcast-mode) .dplayer [data-act="prev"],
body:not(.podcast-mode) .dplayer [data-act="next"],
body:not(.podcast-mode) .mplayer [data-act="prev"],
body:not(.podcast-mode) .mplayer [data-act="next"] { display: inline-flex; }
/* Podcast: skip ±15 / 30s */
body.podcast-mode .dplayer [data-act="skipback"],
body.podcast-mode .dplayer [data-act="skipfwd"],
body.podcast-mode .mplayer [data-act="skipback"],
body.podcast-mode .mplayer [data-act="skipfwd"] { display: inline-flex; }
.sk,
.mp-sk {
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  border-radius: 50%;
  flex: 0 0 auto;
}
.sk:hover,
.mp-sk:hover { background: var(--bg-sunken); }
/* Mobile: skip/prev/next buttons; minimal spacing, hugged to the right edge so
   the station/podcast name gets the most room. */
.mp-sk { width: 40px; height: 40px; }
.mp-sk svg { width: 22px; height: 22px; }
.mp-fav { width: 38px; height: 40px; }
.mplayer { gap: 2px; padding: 0 6px; }
.mplayer .mp-link { margin-right: auto; }
/* Desktop skip/prev/next are larger. */
.dplayer .sk { width: 54px; height: 54px; }
.dplayer .sk svg { width: 30px; height: 30px; }
.sk-n {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  pointer-events: none;
}
.dplayer .sk .sk-n { font-size: 9px; }

.pl-seek {
  display: none;
  align-items: center;
  gap: 8px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 8px var(--gutter) 0;
}
body.podcast-mode .pl-seek { display: flex; }
.pl-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--border-default);
  position: relative;
  cursor: pointer;
}
.pl-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--fill-accent);
  border-radius: 999px;
}
.pl-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  flex: 0 0 auto;
  min-width: 38px;
}
.pl-time#plDur { text-align: right; }

/* Shazam cooldown countdown shown beside the button (the round button has no
   room for the text label). */
.shz-count {
  align-self: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Wikipedia icon is a white glyph — invisible on the light theme. Invert it to
   black on light, keep it white on dark. */
.st-soc .ico-wikipedia { filter: invert(1); }
[data-theme="dark"] .st-soc .ico-wikipedia { filter: none; }

/* TikTok icon is a black glyph — invisible on the dark theme. Invert it to
   white on dark; leave it black on light. */
[data-theme="dark"] .st-soc .ico-tiktok { filter: invert(1); }

/* Hide the docked player until a station is selected. */
.player[hidden] { display: none !important; }

/* ===== Ads never block clicks (global) =====
   The negative-margin spacing can pull content over an ad, and a collapsed /
   unfilled AdSense slot can leave a 0-height-but-present iframe. Put every ad
   on a lower stacking layer than the content so clicks always reach the page,
   anywhere on the site. */
main > .ad-slot,
main > .ad { position: relative; z-index: 0; }
main > section,
main > .crumbs,
main > .page-head,
main > .st-hero,
main > .st-layout,
main > .fb-cols,
main > .as-main,
main > .prose,
main > .form-card,
main > .flash,
main > #shazamBox { position: relative; z-index: 1; }

/* About stats: fit however many stats we have (3) without a trailing gap, and
   a smaller bottom margin (the design's 40px felt too big before the text). */
.info-stats { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-bottom: var(--space-5); }

/* Podcast episodes hidden until "Load more". */
.eplist .ep.is-hidden { display: none; }

/* Podcast favorite button (analogous to the station heart). */
[data-act="podfav"] { transition: color .15s ease; }
[data-act="podfav"]:hover,
[data-act="podfav"].on { color: var(--accent-500, #2b4df2); }
[data-act="podfav"].on svg { fill: currentColor; }

/* Podcast episodes: a round play button (no artwork), pinned to the top. */
.ep { grid-template-columns: 52px 1fr; align-items: start; }
.ep-play {
  width: 52px;
  height: 52px;
  align-self: start;
  border-radius: 50%;
  border: none;
  background: var(--fill-accent);
  color: var(--text-on-accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background var(--dur-fast);
}
.ep-play:hover { background: var(--fill-accent-hover); }
.ep-play.ep-play-off { background: var(--bg-sunken); color: var(--text-tertiary); cursor: default; }
.ep-play svg { width: 26px; height: 26px; }
.ep-play .ic-pause,
.ep-play .player-spinner { display: none; }
.ep.playing .ep-play .ic-play { display: none; }
.ep.playing .ep-play .ic-pause { display: inline-block; }
.ep.loading .ep-play .ic-play,
.ep.loading .ep-play .ic-pause { display: none; }
.ep.loading .ep-play .player-spinner { display: inline-block; }

/* Favorites page empty state. */
.fav-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 56px 20px;
  color: var(--text-secondary);
}
.fav-empty svg { color: var(--text-tertiary); }
.fav-empty-t { font-size: var(--text-lg); font-weight: 600; color: var(--text-heading); margin: 0; }
.fav-empty .btn { text-decoration: none; }
/* display:flex above beats the UA [hidden] rule — re-assert it. */
.fav-empty[hidden] { display: none; }

/* ===== Text / form pages (privacy, terms, add-radio, feedback) ===== */
/* Tight gap (the base <main> uses a big 48px flex gap) + full-width content. */
main.doc-page { gap: var(--space-3); }
main.doc-page .page-head { margin-bottom: 0; }
main.doc-page .prose { max-width: none; }
/* The shared ad negative-margin (-28px) is tuned for the big 48px main gap; on
   doc-page the gap is only 12px, so it would yank the content 16px up OVER the
   banner — and a collapsed/residual ad iframe then eats the clicks. Neutralise
   it here and keep the content above the ad in the stacking order. */
main.doc-page > .ad-slot:first-child,
main.doc-page > .ad:first-child { margin-top: 0; margin-bottom: 0; }
/* Stack the add-radio 2-column layout on small screens. */
@media (max-width: 860px) { .fb-cols { grid-template-columns: 1fr; } }
.prose {
  max-width: 760px;
  color: var(--text-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed, 1.7);
}
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 1.6em 0 .5em;
}
.prose h2 { font-size: var(--text-h3, 1.4rem); }
.prose h3 { font-size: var(--text-lg, 1.2rem); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.35em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--text-accent); text-decoration: underline; transition: color var(--dur-fast); }
.prose a:hover { color: var(--accent-500); }
.prose a.btn { text-decoration: none; }

/* Links inside the admin-managed home text (the SEO block) — same treatment
   as .prose so pasted links never look like plain text. */
.seo .body a { color: var(--text-accent); text-decoration: underline; transition: color var(--dur-fast); }
.seo .body a:hover { color: var(--accent-500); }
.prose strong { color: var(--text-heading); }

.form-card {
  max-width: 640px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 14px);
  padding: 24px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  color: var(--text-heading);
  font-size: var(--text-sm);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md, 10px);
  background: var(--surface-page, var(--surface-card));
  color: var(--text-body);
  font: inherit;
  transition: border-color var(--dur-fast);
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--accent-500); }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-err { color: #e5342b; font-size: 13px; margin-top: 4px; }
.form-fine { margin: 12px 0 0; font-size: 12px; color: var(--text-tertiary); }
.flash {
  max-width: 640px;
  padding: 14px 16px;
  border-radius: var(--radius-md, 10px);
  margin-bottom: 20px;
  font-size: var(--text-sm);
}
.flash.ok { background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .4); color: #0f766e; }
.flash.err { background: rgba(229, 52, 43, .1); border: 1px solid rgba(229, 52, 43, .4); color: #b42318; }

/* Pagination (the Wave mockup ships no pager markup). */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin: 22px 0 4px;
}
.pager-link {
  display: inline-flex;
  align-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line, rgba(0,0,0,.12));
  background: var(--card, #fff);
  color: var(--ink, #1a1a1a);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.pager-link:hover { border-color: var(--accent, #2b4df2); }
.pager-link.is-active {
  background: var(--accent, #2b4df2);
  border-color: var(--accent, #2b4df2);
  color: #fff;
}
.pager-gap { padding: 0 4px; opacity: .6; }

/* Site logo from settings, used in place of the mockup's animated mark. */
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}
/* Per-theme logo swap: main icon (brand-logo-dark) shows on the dark theme,
   the light-theme icon (brand-logo-light) shows on the light theme. If only one
   logo is configured both <img>s point at it, so it shows on both. */
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
[data-theme="dark"] .brand-logo-light { display: none; }

/* "All stations" link in the stations section head. */
.sect-head a.more { text-decoration: none; cursor: pointer; }

/* H1 in a section head should match the section heading (.sect-head h2) look. */
.sect-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

/* Real ad container — a plain block with a real width. Must NOT be flex:
   responsive AdSense reads the parent's width, and a flex item collapses to
   content width (0) → "adsbygoogle.push() error: No slot size for availableWidth=0". */
.ad-slot {
  display: block;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  /* Reserve the rendered ad height (AdSense fills these to ~280px) so the slot
     does not collapse to 0 before the ad loads and then shove content down
     (was the entire homepage CLS once the page started painting early). */
  min-height: 280px;
}
.ad-slot ins.adsbygoogle { display: block; width: 100%; }
.ad-slot :is(ins, iframe, img) { max-width: 100%; }
/* If AdSense reports no ad (unfilled), collapse the reserved height so there's
   no empty gap. Space is still held while loading and when an ad is shown. */
.ad-slot:has(ins[data-ad-status="unfilled"]) { min-height: 0; }

/* <main> puts a 48px flex gap between children; pull ad blocks in so the
   banners don't have huge empty space above/below them (~20px effective). */
main > .ad-slot,
main > .ad {
  margin-top: -28px;
  margin-bottom: -28px;
}
/* The top ad is the first child: above it there is only main's 24px padding
   (no 48px gap), so a negative top margin would glue it to the header. */
main > .ad-slot:first-child,
main > .ad:first-child {
  margin-top: 0;
}

/* FAQ accordion — native <details>/<summary> (semantic, works without JS). */
.faq-q { list-style: none; cursor: pointer; }
.faq-q::-webkit-details-marker { display: none; }
.faq-item[open] .faq-a { display: block; }

/* Plus icon that turns into a minus when the item is open. */
.faqic {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--text-tertiary, #888);
}
.faqic::before,
.faqic::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: opacity .2s ease, transform .2s ease;
}
.faqic::before { left: 2px; right: 2px; top: 50%; height: 2px; transform: translateY(-50%); }
.faqic::after  { top: 2px; bottom: 2px; left: 50%; width: 2px; transform: translateX(-50%); }
.faq-item[open] .faqic::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }

/* ===== v2 player: card click target, buffering spinner, equalizer ===== */

/* Card art triggers playback; the name is the link to the station page. */
.scard-art { cursor: pointer; }
.scard-name { text-decoration: none; color: var(--text-heading); }
.scard-name:hover { text-decoration: underline; }

/* Buffering spinner, shared by the card overlay button and the docked player. */
.player-spinner {
  display: none;
  width: 20px;
  height: 20px;
  /* currentColor: follows the button's text color, so it stays visible on
     the dark theme's WHITE play buttons (dark spinner) and the light
     theme's dark buttons (white spinner) alike. */
  border: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: v2spin .7s linear infinite;
}
@keyframes v2spin { to { transform: rotate(360deg); } }

/* Card play / pause / spinner icon states. */
.scard .ic-pause { display: none; }
.scard.playing .ic-play { display: none; }
.scard.playing .ic-pause { display: inline-block; }
.scard.loading .player-spinner { display: inline-block; }
.scard.loading .ic-play,
.scard.loading .ic-pause { display: none; }
/* Keep the overlay button visible while buffering (app.css shows it on hover / .playing). */
.scard.loading .scard-ov .playbtn { opacity: 1; }
.scard.loading .scard-art { box-shadow: 0 0 0 1.5px var(--accent-500); }

/* Docked player buffering spinner. */
#player .player-spinner {
  width: 18px;
  height: 18px;
  border-color: rgba(0, 0, 0, .25);
  border-top-color: currentColor;
}
#player.loading [data-act="toggle"] svg { display: none; }
#player.loading [data-act="toggle"] .player-spinner { display: inline-block; }

/* Clickable volume + favorite active state in the docked/full players. */
.dp-mute, #v2-vol { cursor: pointer; }
#player.muted #v2-vol-icon { opacity: .45; }
/* Hearts are red everywhere (live-500), matching the equalizer. The hero
   Favorites button (.st-follow) opts out below: only its HEART colors. */
[data-act="fav"] { transition: color .15s ease; }
[data-act="fav"]:hover { color: var(--accent-500); }
[data-act="fav"].on { color: var(--accent-500); }
[data-act="fav"].on svg,
[data-act="fav"]:hover svg { fill: currentColor; }

/* Hero Favorites: the label never recolors — only the heart does. Higher
   specificity than the [data-act="fav"] rules above. */
.btn.st-follow:hover,
.btn.st-follow.on { color: var(--text-heading); }
.btn.st-follow:hover svg,
.btn.st-follow.on svg { color: var(--accent-500); fill: var(--accent-500); }
.btn.st-follow:hover:not(.on) svg { fill: none; }
.btn.st-follow:focus:not(:focus-visible) { outline: none; }
.btn.st-follow:focus-visible { outline-color: var(--accent-500); }

/* Equalizer next to the playing station's name (red bars). */
.eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-left: 6px;
  flex: 0 0 auto;
}
.scard.playing .eq { display: inline-flex; }
/* Always-on equalizer (station hero "now playing") stays visible. */
.eq.on { display: inline-flex; }
.eq i {
  width: 3px;
  height: 100%;
  background: #ff3b30;
  border-radius: 1px;
  transform-origin: bottom;
  animation: v2eq .9s ease-in-out infinite;
}
.eq i:nth-child(1) { animation-delay: -.2s; }
.eq i:nth-child(2) { animation-delay: -.5s; }
.eq i:nth-child(3) { animation-delay: -.1s; }
.eq i:nth-child(4) { animation-delay: -.7s; }
@keyframes v2eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* List cards (.lcard on location/genre pages): same play/loading/equalizer states. */
.lcard .ic-pause { display: none; }
.lcard.playing .ic-play { display: none; }
.lcard.playing .ic-pause { display: inline-block; }
.lcard.loading .player-spinner { display: inline-block; }
.lcard.loading .ic-play,
.lcard.loading .ic-pause { display: none; }
.lcard.playing .eq { display: inline-flex; }
.lcard .player-spinner {
  width: 18px;
  height: 18px;
  border-color: rgba(0, 0, 0, .2);
  border-top-color: currentColor;
}

/* Catalog filter dropdown: hidden by default, shown when toggled open
   (app.css styles the panel/items but has no open/close visibility rule). */
/* Full-width page subtitle (drop the 70ch cap). */
.page-head .page-sub { max-width: none; }

/* Links inside page subtitles (e.g. the station name in the playlist page
   description) must read as links, not plain black text. */
.page-sub a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-fast);
}

.page-sub a:hover { color: var(--accent-500); }

/* Pager has no range text now — center the nav. */
.pager { justify-content: center; }

/* Station page: "Top songs" rows beyond 10 are hidden until "Show more". */
#topTracks .track.top-row.is-hidden { display: none; }
#topTracks.show-all .track.top-row.is-hidden { display: grid; }

/* Station page top ad: st-page uses a tighter gap/padding than the other
   pages, which threw off the shared ad negative-margin. Re-align it so the top
   banner sits exactly like on the home page. */
main.st-page { padding-top: var(--space-6); }
main.st-page > .ad-slot:first-child,
main.st-page > .ad:first-child { margin-bottom: -4px; }

/* Keep the hero/content above the banner ad and the sticky sidebar so a
   positioned element can never sit over the buttons/links and swallow clicks. */
main.st-page > .crumbs,
main.st-page > .st-hero { position: relative; z-index: 2; }
.st-main { position: relative; z-index: 1; }
.st-side { z-index: 0; }
/* Decorative live-dot ripple must not capture pointer events. */
.st-livedot .dot::before,
.st-livedot .dot::after { pointer-events: none; }

/* Hero line 2 (#stNow): city/frequency by default, swaps to the on-air song. */
.st-loc {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--text-secondary);
  font-size: var(--text-base);
}
.st-loc a,
.st-loc .freq { display: inline-flex; align-items: center; gap: 6px; }
.st-loc svg { width: 16px; height: 16px; color: var(--text-tertiary); }
.st-loc a { color: var(--text-secondary); text-decoration: none; }
.st-loc a:hover { color: var(--text-accent); }
.st-loc .freq { font-family: var(--font-mono); }
.st-song { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
/* The display rules above beat the UA [hidden] rule, so re-assert it: only one
   of location / song is ever shown. */
.st-loc[hidden],
.st-song[hidden] { display: none; }
.st-song .nowt {
  color: var(--text-heading);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Station playlist / top-songs rows aren't links — no hover bg, no pointer. */
.st-main .track { cursor: default; }
.st-main .track:hover { background: transparent; }
/* YouTube brand icon in track rows — like the old top-songs icon: bare logo,
   muted by default, turns red and scales up on hover (no circular button). */
.st-main .yt-btn {
  color: var(--text-tertiary);
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  transition: color var(--dur-fast), transform var(--dur-fast);
}
.st-main .yt-btn:hover { color: #ff0000; transform: scale(1.1); border: none; background: transparent; }
.st-main .yt-btn svg { width: 24px; height: 24px; }

/* Shazam button (old icon) + recognition result box. */
.btn.shazam img { width: 18px; height: 18px; display: block; }
.btn.shazam .player-spinner { display: none; border-color: rgba(0, 0, 0, .25); border-top-color: currentColor; }
.btn.shazam.loading .player-spinner { display: inline-block; }
.btn.shazam.loading img { display: none; }
/* Cooldown: button locked, label shows the live countdown. */
.btn.shazam:disabled,
.btn.shazam.is-cooldown { opacity: .55; cursor: default; pointer-events: none; }
/* The .shz result card (scanning -> found) is styled by app.css; only add the
   bits the design CSS doesn't size (the icon images inside the pulse/links). */
.shz-pulse img { width: 22px; height: 22px; display: block; }
.shz-links img { width: 24px; height: 24px; display: block; }
.shz.adblock .shz-pulse { background: var(--fill-accent-soft); color: var(--accent-600); }

/* Full player: station logo as a small thumbnail over the song artwork. */
.full-art { position: relative; }
.full-stationart {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--surface-card, #fff);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}

/* Station hero "Listen live" button: play / loading / playing states. */
.st-playbtn .ic-pause,
.st-playbtn .player-spinner { display: none; }
.st-playbtn.playing .ic-play { display: none; }
.st-playbtn.playing .ic-pause { display: inline-block; }
.st-playbtn.loading .ic-play,
.st-playbtn.loading .ic-pause { display: none; }
.st-playbtn.loading .player-spinner { display: inline-block; }

/* Station description: drop the 62ch cap (full width). */
.st-desc { max-width: none; }

/* Social/app icons in the sidebar use brand <img> icons (from the old theme). */
.st-soc .soc img { width: 18px; height: 18px; flex: 0 0 auto; display: block; object-fit: contain; }

/* Song-art placeholder (no cover): keep the box, show a small centred note. */
.track .tart.ph,
.pl-art.ph { display: grid; place-items: center; }
.track .tart.ph svg,
.pl-art.ph svg { width: 20px; height: 20px; color: var(--text-tertiary); }

/* Playlist page: YouTube button + last row keeps divider off. */
.pl-row .yt-btn { flex: 0 0 auto; margin-left: auto; }

/* Favorites count badge in the header (shown only when > 0). */
.hd-actions .iconbtn { position: relative; }
.badge-count[hidden] { display: none; }

/* Station page: stack the sidebar UNDER the main content earlier so it never
   crowds the content on tablets / large phones; stack the hero on small phones. */
@media (max-width: 900px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-side { position: static; }
}
@media (max-width: 560px) {
  .st-hero { flex-direction: column; align-items: center; text-align: center; }
  .st-hero .st-meta, .st-hero .st-now, .st-hero .st-cta { justify-content: center; }
  .st-cover { width: 148px; height: 148px; }
  /* Keep Play + Favorites + Shazam on ONE row: no wrap, slightly smaller
     buttons, and the Favorites label is allowed to shrink/truncate. */
  .st-cta { flex-wrap: nowrap; gap: 8px; width: 100%; }
  .st-cta .btn.cta-round.st-playbtn { width: 56px; height: 56px; }
  .st-cta .btn.cta-round.st-playbtn svg { width: 30px; height: 30px; }
  .st-cta .btn.cta-round { width: 46px; height: 46px; }
  .st-cta .btn.cta-round svg { width: 24px; height: 24px; }
  .st-cta .st-follow {
    flex: 0 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 var(--space-4);
    font-size: var(--text-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Tiniest screens: the Shazam cooldown countdown doesn't fit next to the
   buttons — the dimmed button already signals the cooldown. */
@media (max-width: 400px) {
  .shz-count { display: none; }
}

/* Sort segment (server-side links styled like the design's .seg buttons). */
.catalog-sort { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.seg a {
  padding: 6px 14px;
  border-radius: var(--radius-pill, 999px);
  font-size: var(--text-sm, 14px);
  font-weight: 600;
  color: var(--text-secondary, #666);
  text-decoration: none;
}
.seg a.sel {
  background: var(--surface-card, #fff);
  color: var(--text-heading, #161616);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0, 0, 0, .06));
}

/* City chips: show the first 8, the rest expand via the toggle button. */
.citychips { margin-bottom: var(--space-6, 24px); }
.citychips:not(.expanded) .cloud .pill:nth-child(n+9) { display: none; }
/* Restore the pill name layout (was tied to .relrow) and stop pills shrinking. */
.citychips .cloud .pill { flex: 0 0 auto; }
.citychips .pill .nm { display: inline-flex; align-items: center; gap: 6px; }
.citychips .pill .nm svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--text-tertiary); }
.citychips-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 2px 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-accent, #2b4df2);
  font-size: 14px;
  font-weight: 600;
}
.citychips-toggle svg { transition: transform .2s ease; }
.citychips.expanded .citychips-toggle svg { transform: rotate(180deg); }
.citychips-toggle .t-less { display: none; }
.citychips.expanded .citychips-toggle .t-more { display: none; }
.citychips.expanded .citychips-toggle .t-less { display: inline; }

.dd-opt { text-decoration: none; }

/* Inline full-width filter panels (region/city) that push the content down. */
.filter-panel {
  margin: 0 0 var(--space-5, 20px);
  padding: 14px;
  background: var(--bg-sunken, #f4f4f5);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, .08));
  border-radius: var(--radius-lg, 14px);
}
.filter-panel .cloud .pill { flex: 0 0 auto; }
.filter-panel .pill .nm { display: inline-flex; align-items: center; gap: 6px; }
.filter-panel .pill .nm svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--text-tertiary); }
.filter-btn svg:last-child { transition: transform .2s ease; }
.filter-btn.open svg:last-child { transform: rotate(180deg); }
/* Open filter button highlighted so the panel reads as belonging to it. */
.filter-btn.open {
  background: var(--fill-accent-soft, rgba(43, 77, 242, .1));
  color: var(--text-accent, #2b4df2);
  border-color: var(--accent-300, #9db0fb);
}
/* Currently-selected option highlighted with the accent color. */
.filter-panel .pill.sel {
  background: var(--fill-accent-soft, rgba(43, 77, 242, .12));
  border-color: var(--accent-500, #2b4df2);
  color: var(--text-accent, #2b4df2);
  font-weight: 600;
}
.filter-panel .pill.sel .nm svg { color: var(--accent-500, #2b4df2); }

/* ============================================================
   Design polish: skeletons, empty states, initials placeholders
   ============================================================ */

/* Shimmer skeletons (used by catalog.js "Show more" and async lists). */
.sk-box {
  position: relative;
  overflow: hidden;
  background: var(--bg-sunken);
  border-radius: var(--radius-md);
}

.sk-box::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--surface-card) 65%, transparent) 50%, transparent 70%);
  animation: sk-shimmer 1.1s linear infinite;
}

@keyframes sk-shimmer {
  to { transform: translateX(100%); }
}

.skel { pointer-events: none; }

.skel .sk-line {
  display: block;
  height: 12px;
  border-radius: 999px;
}

.skel .sk-line.sm {
  height: 10px;
  margin-top: 8px;
}

/* Styled empty states (replaces bare "nothing found" paragraphs). */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-12) var(--space-4);
  text-align: center;
}

.empty-ic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-sunken);
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.empty-ic svg {
  width: 26px;
  height: 26px;
}

.empty-t {
  font-weight: 600;
  color: var(--text-heading);
}

.empty-s {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  max-width: 380px;
}

/* Initials tile: shown instead of a missing/broken station logo (app.js). */
.initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  user-select: none;
}

/* ============================================================
   RTL (Arabic) — mirror the few direction-specific rules.
   Layout flows mostly via flexbox, which already reverses under
   dir="rtl"; this block fixes the absolute-positioned and
   explicitly-sided pieces that don't flip on their own.
   ============================================================ */
[dir="rtl"] {
  text-align: right;
}

/* Mobile drawer slides in from the right edge instead of the left. */
[dir="rtl"] .drawer {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border-subtle);
  transform: translateX(102%);
}
[dir="rtl"] .scrim.open .drawer {
  transform: translateX(0);
}

/* Toggle knob sits on the right and slides left when on. */
[dir="rtl"] .sw i {
  left: auto;
  right: 3px;
  transition: right var(--dur-base) var(--ease-spring);
}
[dir="rtl"] .sw.on i {
  right: 23px;
}

/* Elements pushed to one edge with auto margins flip sides. */
[dir="rtl"] .mplayer .mp-link { margin-right: 0; margin-left: auto; }
[dir="rtl"] .pl-row .yt-btn { margin-left: 0; margin-right: auto; }

/* List indentation moves to the right. */
[dir="rtl"] .prose ul,
[dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.35em; }

/* Explicit text alignments swap. */
[dir="rtl"] .pl-time#plDur { text-align: left; }

/* Directional chevrons (breadcrumbs, "show more", city arrow, nav arrows)
   point the other way. They are simple right-pointing SVG paths, so a
   horizontal flip is enough. */
[dir="rtl"] .crumbs .ic,
[dir="rtl"] .city .city-arr,
[dir="rtl"] .sec-head .ic,
[dir="rtl"] .pager .ic { transform: scaleX(-1); }
