/* ---------- self-hosted fonts (SIL OFL 1.1, see assets/fonts/OFL.txt) ---------- */
/* Files and unicode-ranges are Google Fonts' subsets. Bricolage Grotesque and IBM Plex Sans files are variable
   (one file per subset, every weight); Bricolage keeps discrete 500/700 faces so 600 and 800 still render at 700.
   Cyrillic is for Russian pages and the "Русский" language link; IBM Plex Sans Arabic is only used on Arabic pages. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/bricolage-grotesque-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/bricolage-grotesque-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/ibm-plex-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/ibm-plex-sans-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-400-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EEFF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-500-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EEFF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-600-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EEFF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-700-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EEFF; }

:root {
  --bg: #F2EFE9;
  --bg-soft: #E8E3DA;
  --surface: #ffffff;
  --surface-2: #F8F6F2;
  --ink: #0E1116;
  --ink-2: #3A4250;
  --muted: #5E6573;
  --line: #D8D3CA;
  --accent: #C7381A;
  --accent-2: #FF5A36;
  --accent-ink: #ffffff;
  --accent-soft: #FFE4DC;
  --like: #1f9d6b;
  --dislike: #d14b4b;
  --shadow-sm: 0 1px 2px rgba(27, 29, 38, .06), 0 1px 1px rgba(27, 29, 38, .04);
  --shadow: 0 6px 24px -8px rgba(27, 29, 38, .18), 0 2px 6px rgba(27, 29, 38, .05);
  --shadow-lg: 0 24px 48px -16px rgba(14, 17, 22, .28);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --player-h: 78px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1116;
    --bg-soft: #161A21;
    --surface: #161A21;
    --surface-2: #1F242D;
    --ink: #F2EFE9;
    --ink-2: #C3C8D2;
    --muted: #98A0AE;
    --line: #262C36;
    --accent: #FF5A36;
    --accent-2: #FF7A5C;
    --accent-ink: #0E1116;
    --accent-soft: #3A1E17;
    --like: #3ccf92;
    --dislike: #ff7b7b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 8px 28px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0E1116;
    --bg-soft: #161A21;
    --surface: #161A21;
    --surface-2: #1F242D;
    --ink: #F2EFE9;
    --ink-2: #C3C8D2;
    --muted: #98A0AE;
    --line: #262C36;
    --accent: #FF5A36;
    --accent-2: #FF7A5C;
    --accent-ink: #0E1116;
    --accent-soft: #3A1E17;
    --like: #3ccf92;
    --dislike: #ff7b7b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 8px 28px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.has-player { padding-bottom: var(--player-h); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }

.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 56px; }

html.is-navigating main { opacity: .55; transition: opacity .2s .1s; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand b { font-weight: 800; color: var(--accent); }
.brand:hover { color: var(--ink); }
.brand-sm { font-size: 16px; }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); font-weight: 600; font-size: 14px;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav a[aria-current] { background: var(--accent-soft); color: var(--accent); }
.main-nav .icon { width: 18px; height: 18px; }

.search {
  position: relative; display: flex; align-items: center; gap: 8px;
  margin-left: auto; width: min(340px, 100%);
}
.search > .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 42px; padding: 0 16px 0 42px;
  background: var(--bg-soft); border: 1px solid transparent; border-radius: 999px;
  outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.search input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input::-webkit-search-cancel-button { cursor: pointer; }

.search-lg { width: 100%; max-width: 620px; margin: 0; }
.search-lg input { height: 54px; font-size: 16px; background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); padding-right: 116px; }
.search-lg .btn { position: absolute; right: 6px; height: 42px; }
.search-lg > .icon { left: 18px; }
.search-lg input { padding-left: 48px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: scale(.97); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink-2);
  transition: background .15s, color .15s, transform .1s;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.icon-btn:active { transform: scale(.92); }
.icon-btn-outline { border: 1px solid var(--line); background: var(--surface); width: 46px; height: 46px; }
.icon-btn .i-on, .icon-btn.is-on .i-off { display: none; }
.icon-btn.is-on .i-on { display: block; }
[data-fav].is-on { color: #e2436b; }

.play-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 16px -6px var(--accent);
  transition: transform .12s, background .15s;
}
.play-btn:hover { background: var(--accent-2); }
.play-btn:active { transform: scale(.93); }
.play-btn .icon { width: 22px; height: 22px; }
.play-btn-xl { width: 76px; height: 76px; }
.play-btn-xl .icon { width: 32px; height: 32px; }

/* play / pause / loading state shared by every play control */
[data-play] .i-pause, .play-btn .i-pause { display: none; }
.is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }
.is-loading .icon { opacity: 0; }
.is-loading::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 40%; height: 40%; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 24px;
  padding: 48px 48px; margin-bottom: 12px;
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft) 0%, transparent 55%),
    linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.035em; }
.hero p { color: var(--ink-2); font-size: 17px; max-width: 480px; margin: 14px 0 26px; }

.hero-art { position: relative; height: 240px; display: grid; place-items: center; }
.orb {
  width: 210px; height: 210px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0 9%, transparent 10%),
    radial-gradient(circle at 35% 30%, #ffffff 0%, #e6e1ff 35%, #9a8cf6 70%, #4b3cc8 100%);
  box-shadow: var(--shadow-lg), inset -18px -24px 40px rgba(14, 17, 22, .28);
  animation: float 6s ease-in-out infinite;
}
.orb::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 290px; height: 290px; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  animation: spin 40s linear infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

.eq { display: inline-flex; align-items: flex-end; gap: 5px; height: 40px; }
.eq i { display: block; width: 6px; border-radius: 3px; background: var(--accent); animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.2s; } .eq i:nth-child(3) { animation-delay: -.5s; }
.eq i:nth-child(4) { animation-delay: -.8s; } .eq i:nth-child(5) { animation-delay: -.35s; }
.eq i:nth-child(6) { animation-delay: -.65s; } .eq i:nth-child(7) { animation-delay: -.95s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.hero-art .eq { position: absolute; bottom: 10px; right: 18%; opacity: .7; }
.eq-sm { height: 14px; gap: 2px; }
.eq-sm i { width: 3px; }

/* ---------- sections & cards ---------- */

.section { margin-top: 44px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 700; }
.section-icon {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
  box-shadow: 0 6px 14px -6px var(--accent);
}
.section-icon .icon { width: 19px; height: 19px; }
.see-all { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 14px; color: var(--accent); }
.see-all .icon { width: 16px; height: 16px; }

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

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.card-link { display: block; padding: 12px 12px 14px; color: var(--ink); }
.card-link:hover { color: var(--ink); }
.card-title { font-size: 14px; font-weight: 700; margin-top: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.4em; }
.card-meta { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card-play {
  position: absolute; top: 20px; right: 20px;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 18px -6px rgba(43, 32, 140, .6);
  opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .18s, transform .18s, background .15s;
}
.card-play .icon { width: 20px; height: 20px; }
.card:hover .card-play, .card-play:focus-visible, .card-play.is-playing, .card-play.is-loading { opacity: 1; transform: none; }
.card-play:hover { background: var(--accent-2); }
@media (hover: none) { .card-play { opacity: 1; transform: none; } }

.card-unfav {
  position: absolute; top: 18px; left: 18px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; border: 0;
  background: rgba(20, 22, 28, .6); color: #fff; opacity: 0; transition: opacity .15s;
}
.card-unfav .icon { width: 15px; height: 15px; }
.card:hover .card-unfav, .card-unfav:focus-visible { opacity: 1; }
@media (hover: none) { .card-unfav { opacity: 1; } }

/* station logo with initials fallback behind the image */
.logo {
  position: relative; aspect-ratio: 1; width: 100%; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, hsl(var(--hue, 250) 65% 62%), hsl(calc(var(--hue, 250) + 40) 60% 45%));
  color: #fff; font-weight: 800; font-size: 32px; letter-spacing: -.02em;
}
.logo span { text-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 10%; }
.logo-sm { width: 48px; height: 48px; border-radius: 10px; font-size: 16px; flex: none; }
.logo-sm img { padding: 6%; }
.logo-xl { width: 220px; height: 220px; border-radius: 22px; font-size: 64px; box-shadow: var(--shadow); }

/* ---------- chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-center { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; color: var(--ink-2);
  transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip .count { font-weight: 500; font-size: 12px; color: var(--muted); }
.chip-sm { padding: 5px 12px; font-size: 13px; }

/* ---------- tabs & country lists ---------- */

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-2);
}
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.country-list {
  columns: 5 170px; column-gap: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px;
}
.country-list a { display: block; padding: 5px 0; color: var(--ink-2); font-weight: 500; break-inside: avoid; }
.country-list a:hover { color: var(--accent); }

.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.country-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; transition: border-color .15s, transform .15s;
}
.country-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.country-tile img { width: 28px; height: 21px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.country-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-tile .count { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--bg-soft); padding: 2px 8px; border-radius: 999px; }

.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.genre-tile {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; height: 92px; padding: 14px 16px;
  border-radius: var(--radius); color: #fff; font-weight: 800; font-size: 17px;
  background: linear-gradient(135deg, hsl(var(--hue) 62% 58%), hsl(calc(var(--hue) + 45) 58% 40%));
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.genre-tile::after {
  content: ''; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 60%, transparent 70%);
}
.genre-tile:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- page headers, breadcrumbs, filters ---------- */

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-2); font-weight: 500; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .icon { width: 14px; height: 14px; opacity: .6; }

.page-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.page-head p { margin: 4px 0 0; }
.flag { width: 52px; height: 39px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.page-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 8px 18px -8px var(--accent);
}
.page-icon .icon { width: 24px; height: 24px; }

.filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px;
  padding: 16px 18px; margin-bottom: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.filters label { display: grid; gap: 6px; min-width: 220px; flex: 0 1 280px; }
.filters label span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filters select {
  height: 42px; padding: 0 36px 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%237a7e8c' stroke-width='2' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.filters select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 32px; }
.pager > :last-child { justify-self: end; }
.pager-num { font-weight: 600; color: var(--muted); font-size: 14px; }

.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.empty-state {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: 56px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.empty-state .icon { width: 40px; height: 40px; color: var(--accent); }
.empty-state p { margin: 0 0 6px; max-width: 360px; }

/* ---------- station page ---------- */

.station-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; align-items: start; }

.station-card {
  position: relative; display: grid; justify-items: center; gap: 20px; text-align: center;
  padding: 28px 28px 32px; border-radius: 24px;
  background:
    radial-gradient(100% 70% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.station-votes { display: flex; gap: 8px; }
.vote-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: 14px; color: var(--ink-2); transition: all .15s;
}
.vote-btn .icon { width: 18px; height: 18px; }
.vote-btn[data-vote="up"]:hover, .vote-btn[data-vote="up"].is-on { color: var(--like); border-color: var(--like); }
.vote-btn[data-vote="down"]:hover, .vote-btn[data-vote="down"].is-on { color: var(--dislike); border-color: var(--dislike); }
.vote-btn.is-on { background: var(--surface-2); }

.station-name { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.live-badge {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 9px 3px 20px; border-radius: 999px;
  background: #e2436b; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  position: relative; top: -3px;
}
.live-badge::before {
  content: ''; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: #fff; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

.station-hero { position: relative; }
.station-hero .play-btn-xl { position: absolute; right: -22px; bottom: -22px; border: 5px solid var(--surface); }

.now-playing {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 10px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.now-playing[hidden] { display: none; }
.now-playing > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.station-actions { display: flex; gap: 10px; }

.station-info {
  padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--header-h) + 20px);
}
.station-info h2 { font-size: 17px; margin-bottom: 12px; }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.facts dd a { color: var(--accent); }
.notice { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--dislike) 12%, transparent); color: var(--dislike); font-size: 13.5px; font-weight: 600; }

/* ---------- player bar ---------- */

.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.5) blur(18px);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .35);
  animation: rise .25s ease-out;
}
@keyframes rise { from { transform: translateY(100%); } }
.player-inner { display: flex; align-items: center; gap: 16px; height: var(--player-h); }
.player-station { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.player-station:hover { color: var(--ink); }
.player-text { display: grid; min-width: 0; }
.player-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-text span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player[data-state="playing"] .player-text span { color: var(--accent); font-weight: 600; }
.player[data-state="error"] .player-text span { color: var(--dislike); }
.player-controls { display: flex; align-items: center; gap: 6px; }

.volume { display: flex; align-items: center; gap: 4px; }
.volume input[type="range"] {
  --fill: 80%;
  -webkit-appearance: none; appearance: none; width: 110px; height: 5px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill));
}
.volume input::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: var(--shadow-sm); }
.volume input::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow); pointer-events: none;
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-player .toast { bottom: calc(var(--player-h) + 16px); }

/* ---------- 404 ---------- */

.not-found { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 80px 0; }
.not-found h1 { font-size: 32px; font-weight: 800; }
.not-found p { margin: 0 0 8px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 28px; padding: 36px 24px; align-items: start; }
.footer-inner p { margin: 8px 0 0; }
.footer-links { display: grid; gap: 8px; font-weight: 600; color: var(--ink-2); }
.site-footer .small a { color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 36px 28px; }
  .hero-art { display: none; }
  .station-layout { grid-template-columns: 1fr; }
  .station-info { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: auto; --player-h: 70px; }
  .wrap { padding: 0 16px; }
  .header-inner { flex-wrap: wrap; gap: 8px 12px; padding: 10px 0; }
  .main-nav { margin-left: auto; }
  .main-nav a { padding: 8px 10px; }
  .main-nav span { display: none; }
  .site-header .search { order: 3; width: 100%; margin: 0; }
  .header-inner { column-gap: 4px; flex-wrap: wrap; padding: 10px 16px; }
  .site-header .brand { font-size: 17px; gap: 8px; margin-right: auto; }
  .site-header .brand img { width: 30px; height: 30px; }
  .main-nav { margin-left: 0; gap: 0; }
  .main-nav a { padding: 8px 7px; }
  .site-header .theme-toggle { width: 40px; height: 40px; }
  main.wrap { padding-top: 20px; }
  .hero { padding: 28px 20px; border-radius: 22px; }
  .hero p { font-size: 15px; }
  .search-lg input { height: 50px; padding-right: 16px; }
  .search-lg .btn { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .card-link { padding: 10px 10px 12px; }
  .card-play { width: 38px; height: 38px; top: 16px; right: 16px; }
  .section { margin-top: 36px; }
  .section-head h2 { font-size: 18px; }
  .section-icon { width: 32px; height: 32px; }
  .filters label { flex: 1 1 100%; min-width: 0; }
  .logo-xl { width: 180px; height: 180px; }
  .station-card { padding: 24px 18px 28px; }
  .volume input { display: none; }
  .player-inner { gap: 8px; }
  #player-fav { display: none; }
  .footer-inner { grid-template-columns: 1fr; padding: 28px 16px; }
}

/* ---------- Radio Marble brand ---------- */
:root { --display: 'Bricolage Grotesque', var(--font); --mono: 'IBM Plex Mono', ui-monospace, monospace; --onair: #FF5A36; }
h1, h2, h3, .brand, .station-name, .genre-tile, .logo { font-family: var(--display); }
.hero h1, .page-head h1, .station-name { font-weight: 700; }
.brand { font-weight: 700; letter-spacing: -.03em; text-transform: lowercase; }
.brand b { font-weight: 700; color: inherit; }
.brand:hover { color: var(--accent); }
.section-icon, .page-icon { background: var(--ink); color: var(--bg); box-shadow: none; }
.orb {
  width: 230px; height: 230px; background: url("../img/logo.svg") center / contain no-repeat;
  box-shadow: none; border-radius: 50%;
}
.orb::after { border: 1.5px dashed color-mix(in srgb, var(--onair) 45%, transparent); }
.eq i { background: var(--onair); }
.live-badge { background: var(--onair); color: #0E1116; font-family: var(--mono); font-weight: 500; }
.live-badge::before { background: #0E1116; }
[data-fav].is-on { color: var(--onair); }
.play-btn { background: var(--ink); color: var(--bg); }
.play-btn:hover { background: var(--onair); color: #0E1116; }

.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; flex: none; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon { display: none; }
:root:not([data-theme]) .theme-toggle .i-sys,
:root[data-theme="light"] .theme-toggle .i-sun,
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* ---------- station player page ---------- */
.sp-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 36px;
  padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
}
.sp-art { flex: none; }
.sp-art .logo-xl { width: 240px; height: 240px; border-radius: 24px; box-shadow: none; }
.sp-hero:has(.sp-play.is-playing) .sp-art .logo-xl { outline: 2px solid var(--onair); outline-offset: 6px; }
.sp-main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sp-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.sp-eyebrow .live-badge { margin: 0; top: 0; }
.sp-hero .station-name { font-size: clamp(32px, 5vw, 56px); line-height: 1.02; letter-spacing: -.035em; overflow-wrap: anywhere; }
.sp-hero .now-playing { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.sp-hero .now-playing[hidden] { display: none; }
.np-label { flex: none; font-size: 13px; color: var(--muted); }
.np-title { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sp-controls .icon-btn-outline { width: 52px; height: 52px; border-radius: 50%; }
.sp-play.play-btn { width: auto; height: 64px; padding: 0 28px 0 22px; border-radius: 999px; gap: 12px; display: inline-flex; align-items: center; background: var(--onair); color: #0E1116; font-weight: 600; font-size: 17px; }
.sp-play.play-btn:hover { background: var(--accent-2); color: #0E1116; }
.sp-play .t-pause, .sp-play.is-playing .t-play { display: none; }
.sp-play.is-playing .t-pause { display: inline; }
.sp-votes { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.sp-votes .vote-btn { height: 52px; min-width: 52px; padding: 0 18px; border: 0; border-radius: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sp-votes .vote-btn + .vote-btn { border-left: 1px solid var(--line); }
.sp-votes .vote-btn.is-on { background: var(--ink); color: var(--bg); }
.sp-hero .notice { margin: 0; }
.sp-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sp-facts div { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.sp-facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sp-facts dd { margin: 6px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.sp-facts dd a { color: var(--accent); }
@media (max-width: 640px) {
  .sp-hero { padding: 20px; gap: 22px; }
  .sp-art { width: 100%; display: flex; justify-content: center; }
  .sp-art .logo-xl { width: 180px; height: 180px; }
  .sp-votes { margin-left: 0; }
}

/* ---------- language switch & SEO copy (i18n) ---------- */

.lang-switch { font: 700 12.5px/1 var(--font); letter-spacing: .06em; text-decoration: none; }
.lang-switch:hover { text-decoration: none; }
.seo-text { max-width: 760px; }
.seo-text h2 { font-size: 19px; margin-bottom: 10px; }
.seo-text p { color: var(--ink-2); margin: 0 0 10px; }
.footer-links a[aria-current] { color: var(--accent); }

@media (max-width: 359px) {
  .site-header .brand span { display: none; }
}
.station-name .h1-suffix { color: var(--muted); font-weight: inherit; }

/* ---------- about, contact & legal pages ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: 8px 0 24px; font-size: 16px; line-height: 1.7; }
.prose h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 12px; }
.prose h2 { font-size: 21px; margin: 32px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .lead { font-size: 18px; color: var(--ink); }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-mail { margin: 20px 0 8px; }

/* ---------- language menu ---------- */
.lang-menu { position: relative; flex: none; }
.lang-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 150px;
  display: grid; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lang-list a { padding: 9px 12px; border-radius: 9px; font-weight: 600; color: var(--ink-2); text-align: start; }
.lang-list a:hover { background: var(--bg-soft); color: var(--ink); }
.lang-list a[aria-current] { color: var(--accent); }

/* ---------- Arabic: font and right-to-left mirroring ---------- */
/* Bricolage Grotesque has no Cyrillic: Russian headings use IBM Plex Sans; the Latin logotype keeps the display face. */
:root[lang="ru"] { --display: var(--font); }
:root[lang="ru"] .brand { font-family: 'Bricolage Grotesque', 'IBM Plex Sans', sans-serif; }
:root[lang="ar"] { --font: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, 'Segoe UI', Tahoma, sans-serif; --display: var(--font); --mono: var(--font); }
:root[lang="ar"] * { letter-spacing: 0 !important; } /* letter-spacing breaks Arabic joining */
:root[lang="ar"] .brand { font-family: 'Bricolage Grotesque', 'IBM Plex Sans', sans-serif; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { line-height: 1.35; }
:root[lang="ar"] .sp-hero .station-name { line-height: 1.25; }
:root[lang="ar"] .sp-eyebrow, :root[lang="ar"] .sp-facts dt { text-transform: none; font-size: 14px; }

[dir="rtl"] .search { margin-left: 0; margin-right: auto; }
[dir="rtl"] .search > .icon { left: auto; right: 14px; }
[dir="rtl"] .search input { padding: 0 42px 0 16px; }
[dir="rtl"] .search-lg > .icon { left: auto; right: 18px; }
[dir="rtl"] .search-lg input { padding-right: 48px; padding-left: 116px; }
[dir="rtl"] .search-lg .btn { right: auto; left: 6px; }
[dir="rtl"] .hero-art .eq { right: auto; left: 18%; }
[dir="rtl"] .card-play { right: auto; left: 20px; }
[dir="rtl"] .card-unfav { left: auto; right: 18px; }
[dir="rtl"] .genre-tile::after { right: auto; left: -24px; }
[dir="rtl"] .filters select { padding: 0 14px 0 36px; background-position: left 12px center; }
[dir="rtl"] .live-badge { margin-left: 0; margin-right: 6px; padding: 3px 20px 3px 9px; }
[dir="rtl"] .live-badge::before { left: auto; right: 9px; }
[dir="rtl"] .station-hero .play-btn-xl { right: auto; left: -22px; }
[dir="rtl"] .facts dd { text-align: left; }
[dir="rtl"] .sp-votes { margin-left: 0; margin-right: auto; }
[dir="rtl"] .sp-votes .vote-btn + .vote-btn { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .sp-play.play-btn { padding: 0 22px 0 28px; }
[dir="rtl"] .prose ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .breadcrumbs .icon, [dir="rtl"] .see-all .icon, [dir="rtl"] .pager .icon { transform: scaleX(-1); }
[dir="rtl"] .volume input[type="range"] { direction: ltr; } /* keep the fill gradient in step with the thumb */
@media (max-width: 720px) {
  [dir="rtl"] .site-header .brand { margin-right: 0; margin-left: auto; }
  [dir="rtl"] .search-lg input { padding-left: 16px; }
  [dir="rtl"] .card-play { right: auto; left: 16px; }
}
@media (max-width: 640px) {
  [dir="rtl"] .sp-votes { margin-right: 0; }
}

/* ---------- audit fixes: accessibility, small screens, sources, ads ---------- */

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; transform: translateY(-160%);
}
.skip-link:focus { transform: none; color: var(--bg); }

/* Touch targets of at least 24px (WCAG 2.2 AA 2.5.8). */
.see-all { min-height: 32px; padding: 4px 2px; }

/* Station page: sources block, verified notes and the problem report link. */
.sp-note { max-width: 760px; margin-bottom: 16px; }
.sp-note p { margin: 0 0 6px; color: var(--ink-2); }
.sp-sources { max-width: 760px; }
.sp-sources h2 { font-size: 19px; margin-bottom: 10px; }
.sp-sources p { margin: 0 0 10px; color: var(--ink-2); }
.sp-sources a, .sp-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.report-link { display: inline-block; padding: 6px 0; font-weight: 600; }

/* Ad units: labelled, separated from content and from the player's controls. */
.ad-slot { margin: 40px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.ad-label { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Tablets (721–960px): nav icons only, so the header search keeps a usable width. */
@media (min-width: 721px) and (max-width: 960px) {
  .header-inner { gap: 12px; }
  .main-nav span { display: none; }
  .main-nav a { padding: 8px 10px; }
  .site-header .search { width: auto; flex: 1 1 200px; }
}

@media (max-width: 720px) {
  /* 16px stops iOS Safari from zooming into the page when a search field gets focus. */
  .search input, .filters select { font-size: 16px; }
  .sp-facts { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .sp-facts div { padding: 14px; }
}

/* Small phones: a smaller logo keeps "Listen live" above the fold (320×568). */
@media (max-width: 640px) {
  .sp-art .logo-xl { width: 128px; height: 128px; font-size: 44px; }
  .sp-hero { gap: 18px; }
  .sp-main { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .orb, .orb::after, .eq i, .live-badge::before, .toast, .player { animation: none !important; }
  .eq i { height: 60%; }
}

/* ---------- loading spinner on the station page's "Listen live" button ---------- */
/* The shared spinner is 40% of the button's width and height: a circle on round buttons, a flat oval over the
   label on this wide one. Here it takes the play icon's place instead, at the icon's size. */
.sp-play.is-loading .icon { display: none; }
.sp-play.is-loading::after { position: static; inset: auto; order: -1; flex: none; width: 22px; height: 22px; margin: 0; }

/* ---------- footer v2 ---------- */
.site-footer { margin-top: 64px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.footer-brand p { margin: 12px 0 0; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-col h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.footer-col a { padding: 6px 0; font-weight: 500; color: var(--ink-2); }
.footer-col a:hover, .footer-langs a:hover { color: var(--accent); }
.footer-langs nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.footer-langs .icon { width: 18px; height: 18px; color: var(--muted); margin-right: 4px; }
.footer-langs a { padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.footer-langs a[aria-current] { background: var(--ink); color: var(--bg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--accent); }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- header v2 ---------- */
.header-inner { gap: 16px; }
.site-header .brand { margin-right: 8px; }
.main-nav { gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg-soft); }
.main-nav a { height: 36px; padding: 0 14px; font-weight: 500; color: var(--ink-2); }
.main-nav a:hover { background: var(--surface); color: var(--ink); }
.main-nav a[aria-current] { background: var(--ink); color: var(--bg); }
.site-header .search { flex: 1 1 260px; width: auto; max-width: 440px; }
.site-header .search input { height: 44px; background: var(--surface); border: 1px solid var(--line); }
.site-header .search input:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.site-header .theme-toggle { width: 44px; height: 44px; background: transparent; }
.site-header .lang-switch { font-family: var(--mono); font-weight: 500; font-size: 12.5px; }
.lang-menu[open] > summary { border-color: var(--accent); color: var(--accent); }
.lang-list { min-width: 190px; max-height: min(70vh, 420px); overflow-y: auto; }
.lang-list a[aria-current] { background: var(--accent-soft); }
.lang-menu + .theme-toggle { margin-left: -8px; }
[dir="rtl"] .lang-menu + .theme-toggle { margin-left: 0; margin-right: -8px; }

@media (min-width: 721px) and (max-width: 960px) {
  .main-nav a { padding: 0 11px; }
}
@media (max-width: 720px) {
  .header-inner { gap: 10px 4px; }
  .site-header .brand { margin-right: auto; }
  .main-nav { padding: 3px; gap: 0; }
  .main-nav a { height: 34px; padding: 0 8px; }
  .site-header .search { flex-basis: 100%; max-width: none; }
  .site-header .theme-toggle { width: 40px; height: 40px; }
  .lang-menu + .theme-toggle { margin-left: 0; }
}

/* ---------- wordmark ---------- */
.brand { text-transform: none; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.035em; gap: 10px; line-height: 1; }
.brand b { font-weight: 700; color: var(--accent); }
.brand img { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.brand:hover { color: var(--ink); }
.brand:hover img { transform: rotate(-18deg); }
.brand-sm { font-size: 18px; }
@media (max-width: 720px) { .site-header .brand { font-size: 17px; gap: 7px; letter-spacing: -.04em; } }
@media (prefers-reduced-motion: reduce) { .brand img { transition: none; } }

/* ---------- hero art: still composition ---------- */
.hero-art .orb { animation: none; width: 200px; height: 200px; position: relative; z-index: 1; filter: drop-shadow(0 18px 30px rgba(14, 17, 22, .28)); }
.hero-art .orb::after { animation: none; width: 270px; height: 270px; border: 1px solid color-mix(in srgb, var(--onair) 45%, transparent); }
.hero-art .orb::before {
  content: ''; position: absolute; inset: 0; margin: auto; width: 340px; height: 340px; border-radius: 50%;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent);
}
.hero-art .orb::after { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero-art .eq { bottom: 18px; right: 12%; opacity: 1; height: 44px; z-index: 2; }
.hero-art .eq i { animation: none; width: 5px; }
.hero-art .eq i:nth-child(1) { height: 35%; } .hero-art .eq i:nth-child(2) { height: 70%; }
.hero-art .eq i:nth-child(3) { height: 100%; } .hero-art .eq i:nth-child(4) { height: 55%; }
.hero-art .eq i:nth-child(5) { height: 85%; } .hero-art .eq i:nth-child(6) { height: 45%; }
.hero-art .eq i:nth-child(7) { height: 25%; }
.hero-art .orb::before, .hero-art .orb::after { inset: auto; margin: 0; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* ---------- home FAQ ---------- */
.faq { max-width: 760px; }
.faq h2 { font-size: 19px; margin-bottom: 12px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: ''; flex: none; width: 8px; height: 8px; margin-inline-end: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item > summary:hover { color: var(--accent); }
.faq-item p { margin: 0 0 16px; color: var(--ink-2); }
.faq-item a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- radio map (/map) ---------- */
/* The map fills the window between the header and the player bar; the footer stays off this page. */
body:has(.map-page) { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body:has(.map-page) .site-footer { display: none; }
main.wrap:has(> .map-page) { display: flex; max-width: none; min-height: 0; padding: 0; }
.map-page { position: relative; flex: 1; display: flex; min-width: 0; min-height: 0; }
.map-canvas {
  position: relative; flex: 1; min-width: 0; min-height: 0;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 8%, var(--bg-soft)), var(--bg) 72%);
}
.map-status {
  position: absolute; z-index: 1; inset: 0; margin: auto; width: fit-content; height: fit-content; max-width: min(440px, 88%);
  padding: 12px 20px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow);
  font-weight: 600; text-align: center;
}
.map-status.is-error { border-radius: var(--radius); color: var(--ink-2); }
.map-status[hidden] { display: none; }

.map-panel {
  position: absolute; z-index: 3; top: 16px; inset-inline-start: 16px;
  display: flex; flex-direction: column; width: min(360px, calc(100% - 32px)); max-height: calc(100% - 32px);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.map-intro { padding: 20px 22px 22px; overflow-y: auto; }
.map-intro[hidden], .map-place[hidden] { display: none; }
.map-intro h1 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; letter-spacing: -.03em; }
.map-intro > p { margin: 8px 0 0; }
.map-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 18px; padding: 12px 0; border-block: 1px solid var(--line); }
.map-stats div { display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; padding-inline: 12px; }
.map-stats div:first-child { padding-inline-start: 0; }
.map-stats div + div { border-inline-start: 1px solid var(--line); }
.map-stats dt { font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.map-stats dd { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-actions .btn { flex: 1 1 auto; justify-content: center; }
.map-actions .btn[disabled] { opacity: .6; cursor: progress; }
.map-noscript { margin: 14px 0 0; color: var(--muted); }

.map-place { display: flex; flex-direction: column; min-height: 0; }
.map-place-head { display: flex; align-items: center; gap: 6px; padding: 10px 16px 10px 8px; border-bottom: 1px solid var(--line); }
.map-place-title { min-width: 0; }
.map-place-title h2 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-place-title p { margin: 2px 0 0; }
.map-place-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.map-note { margin: 0; padding: 18px 12px; color: var(--muted); }
.map-more { display: flex; justify-content: center; margin: 8px 6px 6px; }
.map-stations { margin: 0; padding: 0; list-style: none; }
.map-station { display: flex; align-items: center; gap: 2px; border-radius: 12px; }
.map-station:hover, .map-station:has(.is-playing, .is-loading) { background: var(--bg-soft); }
.map-station-play {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 8px; border: 0; border-radius: 12px; background: none; text-align: start;
}
.map-station-play .logo-sm { width: 44px; height: 44px; }
.map-station-text { flex: 1; min-width: 0; display: grid; }
.map-station-text strong, .map-station-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-station-text strong { font-weight: 600; }
.map-station-text span { font-size: 13px; color: var(--muted); }
.map-station-play.is-playing strong { color: var(--accent); }
.map-station-icon {
  position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); opacity: 0; transition: opacity .15s;
}
.map-station-icon .icon { width: 16px; height: 16px; }
.map-station:hover .map-station-icon, .map-station-play:focus-visible .map-station-icon,
.map-station-play.is-playing .map-station-icon, .map-station-play.is-loading .map-station-icon { opacity: 1; }
@media (hover: none) { .map-station-icon { opacity: 1; } }
.map-station-play.is-loading::after { content: none; }
.map-station-play.is-loading .map-station-icon::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 45%; height: 45%; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.map-station .icon-btn { flex: none; color: var(--muted); }
[dir="rtl"] .map-station .icon-btn .icon, [dir="rtl"] [data-map-back] .icon { transform: scaleX(-1); }

/* MapLibre controls, hover label and credits in the site's colours. */
.map-page .maplibregl-ctrl-group { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.map-page .maplibregl-ctrl-group button { width: 36px; height: 36px; }
.map-page .maplibregl-ctrl-group button + button { border-top-color: var(--line); }
.map-page .maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--muted); }
.map-page .maplibregl-ctrl-attrib a { color: inherit; }
.map-page .maplibregl-ctrl-attrib.maplibregl-compact { background: var(--surface); color: var(--ink-2); }
.map-tip { pointer-events: none; }
.map-tip .maplibregl-popup-content {
  padding: 8px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
  font: 500 13px/1.4 var(--font);
}
.map-tip .maplibregl-popup-content strong { display: block; font-size: 14px; font-weight: 700; }
.map-tip .maplibregl-popup-content span { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.map-tip .maplibregl-popup-tip { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .map-page .maplibregl-ctrl-icon,
  :root:not([data-theme="light"]) .map-page .maplibregl-ctrl-attrib-button { filter: invert(.9); }
}
:root[data-theme="dark"] .map-page .maplibregl-ctrl-icon,
:root[data-theme="dark"] .map-page .maplibregl-ctrl-attrib-button { filter: invert(.9); }

/* The header's fourth link (Map): the logo keeps its width on mid-size screens (the search gives way),
   and phones keep a single row of icons above the search. */
@media (min-width: 721px) { .site-header .brand { flex-shrink: 0; } }
@media (min-width: 961px) and (max-width: 1120px) { .main-nav a { padding: 0 10px; } }
@media (max-width: 720px) {
  .main-nav a { padding: 0 5px; }
  .site-header .theme-toggle { width: 36px; height: 36px; }
}

/* Phones: the panel sits under the map as a sheet; the intro keeps the title and the buttons. */
@media (max-width: 720px) {
  .map-page { flex-direction: column; }
  .map-panel {
    position: relative; top: auto; inset-inline-start: auto; width: auto; max-height: 52%;
    border-width: 1px 0 0; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .35);
  }
  .map-intro { padding: 14px 16px 16px; }
  .map-intro h1 { font-size: 19px; }
  .map-intro > p { margin-top: 4px; font-size: 14px; }
  .map-stats { display: none; }
  .map-actions { margin-top: 12px; }
  .map-actions .btn { flex: 1 1 0; min-width: 0; }
}

/* ---------- theme toggle (sun/moon) ---------- */
.theme-toggle { cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle:active { transform: scale(.94); }
#theme-toggle .icon { display: none; width: 20px; height: 20px; }
:root[data-shown="light"] #theme-toggle .i-sun,
:root[data-shown="dark"] #theme-toggle .i-moon { display: block; }
:root:not([data-shown]) #theme-toggle .i-sys { display: block; }
#theme-toggle.is-switching .icon { animation: theme-spin .35s ease; }
@keyframes theme-spin { from { transform: rotate(-90deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #theme-toggle.is-switching .icon { animation: none; } .theme-toggle:active { transform: none; } }
.lang-menu + .theme-toggle, [dir="rtl"] .lang-menu + .theme-toggle { margin-left: 0; margin-right: 0; }

/* ---------- popup player (official 2M / SNRT players) ---------- */
/* A panel docked above the player bar; tucked away (still playing) when not needed. */
.popup-player { position: fixed; z-index: 60; right: 16px; bottom: calc(var(--player-h) + 12px); width: min(420px, calc(100% - 32px)); transition: transform .25s ease, opacity .25s ease; }
[dir="rtl"] .popup-player { right: auto; left: 16px; }
.popup-player.is-tucked { visibility: hidden; opacity: 0; transform: translateY(16px); pointer-events: none; }
.pp-dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.pp-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; }
[dir="rtl"] .pp-head { padding: 8px 14px 8px 8px; }
.pp-head strong { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-hint { font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.pp-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); cursor: pointer; }
.pp-close .icon, #player-official .icon { transform: rotate(90deg); }
#player-official .icon { transform: rotate(-90deg); transition: transform .2s ease; }
#player-official.is-on .icon { transform: rotate(90deg); }
.pp-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pp-frame.pp-clip { aspect-ratio: auto; overflow: hidden; width: calc(var(--w) * 1px); max-width: 100%; margin: 0 auto; }
.pp-clip iframe { inset: auto; transform-origin: 0 0; }
@media (max-width: 600px) { .popup-player, [dir="rtl"] .popup-player { left: 8px; right: 8px; width: auto; bottom: calc(var(--player-h) + 8px); } }
@media (prefers-reduced-motion: reduce) { .popup-player { transition: none; } }

/* ---------- official player nudge ---------- */
/* Pulses the official-player button when bar play/mute can't reach a cross-origin player (2M). */
#player-official.is-nudge { animation: official-nudge .6s ease 3; color: var(--accent); }
@keyframes official-nudge { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { #player-official.is-nudge { animation: none; outline: 2px solid var(--accent); outline-offset: 2px; } }

/* ---------- home hero (tuner redesign) ---------- */
/* Overrides the earlier .hero / .orb rules: plain surface, outlined search, quick picks, a tuner panel. */
.hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; padding: 56px 56px 56px 64px; background: var(--surface); box-shadow: none; }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero .hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.hero-perks { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0; font-size: clamp(34px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -.035em; }
.hero .hero-lede { margin: 0; max-width: 500px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.hero .search-lg { max-width: 560px; }
.hero .search-lg input { height: 60px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface-2); box-shadow: none; padding-left: 52px; padding-right: 128px; }
.hero .search-lg > .icon { left: 20px; color: var(--ink); }
.hero .search-lg .btn { right: 7px; height: 46px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--bg); border: 0; }
.hero .search-lg .btn:hover { background: var(--accent); color: var(--accent-ink); }
[dir="rtl"] .hero .search-lg input { padding-left: 128px; padding-right: 52px; }
[dir="rtl"] .hero .search-lg > .icon { left: auto; right: 20px; }
[dir="rtl"] .hero .search-lg .btn { right: auto; left: 7px; }
.hero-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-picks span { font-size: 13px; color: var(--muted); margin-inline-end: 4px; }
.hero-picks a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); }
.hero-picks a:hover { border-color: var(--ink); color: var(--ink); }

.hero-art { height: 100%; max-height: 400px; min-height: 320px; display: block; place-items: normal; }
.hero-art .orb { display: none; }
.tuner { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 30px; border-radius: 22px; background: #0E1116; color: #F2EFE9; direction: ltr; }
:root[data-theme="dark"] .tuner { border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tuner { border: 1px solid var(--line); } }
.tuner-top { display: flex; justify-content: space-between; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #A9AFBA; }
.hero-art .tuner .eq { position: static; align-self: center; height: 120px; gap: 7px; opacity: 1; }
.tuner .eq i { width: 10px; border-radius: 5px; background: var(--onair); }
.tuner .eq i:nth-child(8) { animation-delay: -.45s; } .tuner .eq i:nth-child(9) { animation-delay: -.15s; }
.tuner-dial { position: relative; height: 34px; background: repeating-linear-gradient(90deg, #4A505C 0 1.5px, transparent 1.5px 12px); border-bottom: 1.5px solid #4A505C; }
.tuner-needle { position: absolute; left: 62%; top: -10px; bottom: -10px; width: 3px; border-radius: 2px; background: var(--onair); animation: tune 9s ease-in-out infinite; }
@keyframes tune { 0%, 100% { left: 62%; } 30% { left: 38%; } 60% { left: 74%; } }
.tuner-scale { display: flex; justify-content: space-between; margin-top: -14px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: #A9AFBA; }
@media (prefers-reduced-motion: reduce) { .tuner-needle { animation: none; } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .hero-art { display: block; min-height: 0; max-height: none; }
  .tuner { padding: 16px 18px; gap: 8px; border-radius: 16px; }
  .tuner-top, .hero-art .tuner .eq { display: none; }
  .tuner-dial { height: 26px; }
  .tuner-scale { margin-top: 0; font-size: 11px; }
}
@media (max-width: 720px) {
  .hero { padding: 28px 22px; gap: 22px; }
  .hero h1 { font-size: 38px; line-height: 1.04; }
  .hero .hero-lede { font-size: 16px; }
  .hero .search-lg { display: flex; flex-direction: column; gap: 10px; }
  .hero .search-lg input, [dir="rtl"] .hero .search-lg input { height: 54px; padding-right: 16px; padding-left: 48px; }
  [dir="rtl"] .hero .search-lg input { padding-right: 48px; padding-left: 16px; }
  .hero .search-lg > .icon { top: 17px; left: 18px; }
  [dir="rtl"] .hero .search-lg > .icon { left: auto; right: 18px; }
  .hero .search-lg .btn, [dir="rtl"] .hero .search-lg .btn { display: inline-flex; justify-content: center; position: static; height: 52px; width: 100%; }
  .hero-picks span { display: none; }
  .hero-picks a { min-height: 44px; padding: 0 16px; }
}

/* ---------- listing intro (country & genre pages) ---------- */
.page-head .page-lede { margin-top: 8px; max-width: 72ch; color: var(--ink-2); line-height: 1.55; }

/* ---------- accessible names (icon-only nav on phones, links in text) ---------- */
@media (max-width: 720px) {
  /* Icon-only on phones, but the label stays readable for screen readers and search engines. */
  .main-nav span { display: inline; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
.footer-bottom a, .site-footer .small a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Sawt Maroc app banner (app/app-promo.php) ---------- */
.app-promo { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--ink); }
[dir="rtl"] .app-promo { padding: 12px 14px 12px 12px; }
.app-promo-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.app-promo-text { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 13.5px; line-height: 1.4; }
.app-promo-text strong { font-size: 14.5px; }
.app-promo-text span { color: var(--muted, inherit); }
.app-promo-cta { flex: none; display: block; line-height: 0; border-radius: 8px; transition: transform .15s ease; }
.app-promo-cta img { display: block; width: auto; height: 40px; }
.app-promo-cta:hover { transform: translateY(-1px); }
.app-promo-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-promo-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.app-promo-close:hover { background: var(--bg-soft); }
@media (max-width: 600px) {
  .app-promo { flex-wrap: wrap; }
  .app-promo-icon { width: 44px; height: 44px; }
  .app-promo-text { flex-basis: calc(100% - 100px); }
  .app-promo-cta { order: 3; margin-inline-start: 56px; }
}

/* ---------- sleep timer ---------- */
.sleep { position: relative; }
.sleep-toggle { position: relative; }
.sleep-toggle.is-on { color: var(--accent); }
.sleep-badge {
  position: absolute; top: 0; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font: 600 10.5px/18px var(--mono); text-align: center; pointer-events: none;
}
.sleep-panel {
  position: absolute; bottom: calc(100% + 16px); inset-inline-end: -8px; z-index: 61;
  width: min(330px, calc(100vw - 24px)); padding: 14px 16px 16px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.sleep-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sleep-title { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 16px/1.2 var(--display); }
.sleep-title .icon { width: 18px; height: 18px; color: var(--accent); }
.sleep-head .icon-btn { width: 34px; height: 34px; margin-inline-end: -8px; }
.sleep-active { margin: 4px 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.sleep-clock { margin: 0; font: 600 34px/1.1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sleep-ends { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.sleep-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sleep-actions .btn { height: 36px; padding: 0 14px; }
.sleep-actions .btn-ghost { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.sleep-label { margin: 6px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sleep-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sleep-presets .chip { justify-content: center; padding: 8px 6px; font-variant-numeric: tabular-nums; }
.sleep-custom { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.sleep-custom label { font-size: 13px; font-weight: 600; color: var(--muted); }
.sleep-field {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
}
.sleep-field:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.sleep-field input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; outline: 0; }
.sleep-field span { font-size: 13px; color: var(--muted); }
.sleep-field:has(input[aria-invalid]) { border-color: var(--dislike); }
.sleep-custom .btn { height: 40px; }
.sleep-error { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--dislike); }
.sleep-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
/* Phones: the panel spans the bar, anchored to it rather than to the button. */
@media (max-width: 600px) {
  .sleep { position: static; }
  .sleep-panel { inset-inline: 8px; bottom: calc(100% + 8px); width: auto; }
}

/* ---------- discover (/discover and its guides) ---------- */
.dc-head .page-lede { max-width: 68ch; }
.dc-toc { margin-top: 16px; gap: 8px; }
.dc-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dc-guide {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-height: 92px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dc-guide:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.dc-guide-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.dc-guide-icon .icon { width: 22px; height: 22px; }
.dc-guide-text { display: grid; gap: 4px; min-width: 0; flex: 1; }
.dc-guide-text strong { font: 700 16.5px/1.25 var(--display); }
.dc-guide-text span { font-size: 13.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-arrow { flex: none; width: 18px; height: 18px; color: var(--muted); }
[dir="rtl"] .dc-arrow { transform: scaleX(-1); }
.section-head h2 .flag-sm, .flag-sm { width: 24px; height: 18px; border-radius: 4px; vertical-align: -2px; margin-inline-end: 8px; }
.dc-rule { margin: -10px 0 16px; font-size: 13px; color: var(--muted); }
.dc-facts { margin-top: 2px; font-size: 12px; }
.dc-card .card-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-method { max-width: 76ch; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-soft); }
.dc-method h2 { margin: 0 0 10px; font-size: 18px; }
.dc-method ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.dc-method p, .dc-method li { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.dc-method a { color: var(--accent); }
.dc-map { display: grid; justify-items: start; gap: 10px; }
.dc-map h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.dc-map h2 .icon { width: 22px; height: 22px; color: var(--accent); }
.dc-map p { margin: 0; }
@media (max-width: 720px) {
  .dc-guides { grid-template-columns: 1fr; gap: 10px; }
  .dc-guide { padding: 14px; min-height: 0; }
  .dc-method { padding: 18px; }
  .dc-head .page-icon { display: none; }
}
/* Five nav items: icons only up to 1180px so the header search keeps its width; labels stay for screen readers. */
@media (min-width: 721px) and (max-width: 1180px) {
  .main-nav a { position: relative; padding: 0 10px; }
  .main-nav span { display: inline; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
@media (min-width: 721px) and (max-width: 860px) { .main-nav a { padding: 0 8px; } }

/* ---------- Discover articles (app/discover-articles.php) ---------- */
.da-article { max-width: 760px; }
.da-kicker { margin: 0 0 6px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.da-meta { margin: 0 0 18px; }
.da-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0 0 20px; border-radius: 16px; background: var(--bg-soft); }
.da-article a.da-cta { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .15s ease; }
.da-cta img { display: block; width: auto; height: 56px; }
.da-article a.da-cta:hover { transform: translateY(-1px); }
.da-article a.da-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.da-facts { margin: 24px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.da-facts h2 { margin: 0 0 2px; font-size: 17px; }
.da-app { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.da-app p { margin: 0; font-size: 14px; color: var(--muted); }
.da-app-logo { flex: none; width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.da-hub-logo { object-fit: cover; padding: 0; }
.da-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; margin: 0; }
.da-facts dt { color: var(--muted); font-size: 12.5px; }
.da-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.da-article ol { margin: 0 0 14px; padding-inline-start: 22px; color: var(--ink-2); }
[dir="rtl"] .da-article ul { padding-left: 0; padding-right: 20px; }
.da-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.da-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.da-faq details p { margin: 8px 0 0; }
.da-note { margin-top: 24px; }
