/* Radios.ma — feuille de style
   Couleurs tirées du logo : rouge, rouge profond, vert. Fond clair pour laisser parler les logos des stations. */
:root {
  --red: #d7182a;
  --red-deep: #6b0a14;
  --red-night: #3d050c;
  --green: #1fa34a;
  --green-hi: #2bc25b;
  --paper: #ffffff;
  --page: #f3f2f0;
  --ink: #1d1416;
  --muted: #6d6266;
  --line: #e4dfdd;
  --gold: #ffcf4a;
  --focus: #1f6feb;
  --slant: -9deg;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
  --mini-h: 76px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #241a1c; --page: #170f11; --ink: #f6eeee; --muted: #b3a5a8; --line: #3a2b2e; color-scheme: dark;
  }
}
:root[data-theme="dark"] { --paper: #241a1c; --page: #170f11; --ink: #f6eeee; --muted: #b3a5a8; --line: #3a2b2e; color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
body.has-mini { padding-bottom: calc(var(--mini-h) + env(safe-area-inset-bottom)); }
body.stage-open { overflow: hidden; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; transform: translateY(-300%); }
.skip:focus { transform: none; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- En-tête ---------- */
.masthead {
  position: sticky; top: 0; z-index: 30; color: #fff;
  background:
    repeating-linear-gradient(105deg, transparent 0 46px, rgba(255,255,255,.035) 46px 92px),
    linear-gradient(90deg, var(--red-night), var(--red-deep) 55%, #8e0e1a);
  box-shadow: 0 2px 0 var(--red), 0 8px 24px rgba(61,5,12,.25);
}
.mast-in { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: block; flex: none; }
.brand img { display: block; height: 54px; width: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.search { position: relative; flex: 1; max-width: 520px; margin-left: auto; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 19px; height: 19px; color: rgba(255,255,255,.8); }
.search input {
  width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff;
}
.search input::placeholder { color: rgba(255,255,255,.72); }
.search input:focus { outline: none; background: rgba(255,255,255,.2); border-color: #fff; }
.mast-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; font-weight: 600; cursor: pointer;
}
.mast-btn svg { width: 18px; height: 18px; }
.mast-btn:hover { background: rgba(255,255,255,.1); }
.mast-btn[aria-pressed="true"] { background: #fff; color: var(--red-deep); border-color: #fff; }
.mast-btn[aria-pressed="true"] path { fill: currentColor; }

/* ---------- Titres penchés (signature du logo) ---------- */
.slant-title {
  font-family: var(--display); font-style: italic; font-weight: 800; letter-spacing: .005em;
  font-size: 24px; line-height: 1.1; margin: 0 0 14px;
}
.slant-title.big { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.count { font-style: normal; font-weight: 600; color: var(--muted); font-size: .6em; margin-left: 6px; vertical-align: middle; }

.live-badge {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: 15px; letter-spacing: .04em;
  padding: 3px 12px 3px 10px; color: #fff; background: var(--red);
  transform: skewX(var(--slant)); border-radius: 3px;
}
.live-badge > * { transform: skewX(calc(var(--slant) * -1)); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* ---------- À la une ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 24px; padding: 28px 0 8px; }
.feature {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 28px; border-radius: 20px; color: #fff; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, #b3111f 0%, var(--red-deep) 48%, var(--red-night) 100%);
  box-shadow: 0 18px 40px -18px rgba(61,5,12,.6);
}
.feature::before { /* bande verte penchée, comme le .MA du logo */
  content: ""; position: absolute; right: -60px; top: -40px; width: 220px; height: 340px; z-index: -1;
  background: linear-gradient(180deg, var(--green-hi), #0b6b2e); transform: skewX(var(--slant)); opacity: .9;
}
.feature::after {
  content: ""; position: absolute; right: 120px; top: -40px; width: 26px; height: 340px; z-index: -1;
  background: rgba(255,255,255,.12); transform: skewX(var(--slant));
}
.feature-logo { width: 220px; aspect-ratio: 1; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.feature-logo img { width: 86%; height: 86%; object-fit: contain; }
.feature-body { min-width: 0; }
.feature-name {
  margin: 14px 0 4px; font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: clamp(44px, 6.4vw, 84px); line-height: .92; letter-spacing: -.01em; text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0,0,0,.25);
}
.feature-song { margin: 6px 0 22px; font-size: 18px; color: rgba(255,255,255,.88); min-height: 27px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-play {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 28px 0 22px; border: 0; cursor: pointer;
  background: var(--green); color: #fff; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px;
  border-radius: 999px; box-shadow: 0 6px 0 #0b6b2e, 0 12px 24px rgba(0,0,0,.25); transition: transform .12s, box-shadow .12s;
}
.btn-play svg { width: 24px; height: 24px; }
.btn-play:hover { background: var(--green-hi); }
.btn-play:active { transform: translateY(4px); box-shadow: 0 2px 0 #0b6b2e, 0 6px 12px rgba(0,0,0,.25); }
.btn-ghost { height: 54px; padding: 0 22px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 600; cursor: pointer; }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

.top { background: var(--paper); border-radius: 20px; padding: 22px 20px 12px; border: 1px solid var(--line); }
.top-list { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.top-list li { counter-increment: top; }
.top-item {
  width: 100%; display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) 32px; align-items: center; gap: 12px;
  padding: 8px 6px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 12px;
}
.top-item::before { content: counter(top); font-family: var(--display); font-style: italic; font-weight: 900; font-size: 26px; color: var(--red); text-align: center; }
.top-item:hover { background: var(--page); }
.top-item .art { width: 48px; height: 48px; border-radius: 10px; }
.top-item b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-item small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-item .go { width: 32px; height: 32px; border-radius: 50%; background: var(--page); display: grid; place-items: center; color: var(--green); }
.top-item .go svg { width: 16px; height: 16px; }
.top-item.on .go { background: var(--green); color: #fff; }

/* ---------- Catalogue ---------- */
.catalog { padding: 34px 0 20px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.themes { display: flex; flex-wrap: wrap; gap: 8px; }
.theme {
  border: 0; cursor: pointer; padding: 7px 16px; font-weight: 600; font-size: 14px;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transform: skewX(var(--slant)); border-radius: 4px;
}
.theme span { display: inline-block; transform: skewX(calc(var(--slant) * -1)); }
.theme:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.theme[aria-pressed="true"] { background: var(--red); color: #fff; box-shadow: none; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.card {
  position: relative; width: 100%; border: 0; padding: 0; cursor: pointer; text-align: left;
  background: var(--paper); border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 14px 28px -12px rgba(61,5,12,.35); }
.card .art { width: 100%; aspect-ratio: 1; border-radius: 0; }
.card .art img { width: 78%; height: 78%; }
.card-body { display: block; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.card-name { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-tag { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .hover-play {
  position: absolute; right: 10px; top: 10px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.25); opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s;
}
.card .hover-play svg { width: 22px; height: 22px; }
.card:hover .hover-play, .card:focus-visible .hover-play { opacity: 1; transform: none; }
.card.on { box-shadow: 0 0 0 3px var(--green), 0 14px 28px -12px rgba(11,107,46,.5); }
.card.on .hover-play { opacity: 1; transform: none; }
.card .pin {
  position: absolute; left: 10px; top: 10px; padding: 2px 10px; font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 13px; color: #fff; background: var(--red); transform: skewX(var(--slant)); border-radius: 3px;
}
.empty { color: var(--muted); padding: 30px 0; }

/* Vignettes / logos */
.art { display: grid; place-items: center; overflow: hidden; background: #fff; flex: none; }
.art img { width: 84%; height: 84%; object-fit: contain; }
.art.gen { color: #fff; font-family: var(--display); font-style: italic; font-weight: 900; letter-spacing: .01em; text-align: center; line-height: .95; padding: 8%; }

.foot { padding: 30px 0 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 30px; }
.foot p { margin: 4px 0; }

/* ---------- Mini-lecteur ---------- */
.mini {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--mini-h) + env(safe-area-inset-bottom));
  padding: 0 max(16px, calc((100% - 1240px) / 2)) env(safe-area-inset-bottom);
  display: flex; align-items: center; gap: 16px; color: #fff;
  background: linear-gradient(90deg, var(--red-night), var(--red-deep));
  box-shadow: 0 -2px 0 var(--red), 0 -10px 30px rgba(61,5,12,.3);
  animation: rise .3s ease-out;
}
@keyframes rise { from { transform: translateY(100%); } }
.mini-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; background: none; border: 0; color: inherit; cursor: pointer; text-align: left; padding: 8px 0; }
.mini-logo .art { width: 54px; height: 54px; border-radius: 10px; }
.mini-text { min-width: 0; display: flex; flex-direction: column; }
.mini-name { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 21px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-song { font-size: 14px; color: rgba(255,255,255,.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 22px; height: 22px; flex: none; opacity: .8; }
.mini-ctl { display: flex; align-items: center; gap: 6px; }

.ic { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; position: relative; }
.ic:hover { background: rgba(255,255,255,.1); }
.ic svg { width: 22px; height: 22px; }
.ic.sm { width: 38px; height: 38px; }
.ic.sm svg { width: 20px; height: 20px; }
.ic.lg { width: 56px; height: 56px; }
.ic.lg svg { width: 28px; height: 28px; }
.ic.play { width: 54px; height: 54px; background: var(--green); color: #fff; box-shadow: 0 4px 0 #0b6b2e; }
.ic.play:hover { background: var(--green-hi); }
.ic.play.xl { width: 84px; height: 84px; box-shadow: 0 6px 0 #0b6b2e, 0 16px 34px rgba(0,0,0,.35); }
.ic.play.xl svg { width: 38px; height: 38px; }
.i-pause, .is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }
.spin { position: absolute; inset: -5px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--gold); opacity: 0; }
.is-loading .spin { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Lecteur plein écran ---------- */
.stage {
  position: fixed; inset: 0; z-index: 60; color: #fff; overflow: hidden;
  background:
    radial-gradient(90% 70% at 15% 10%, rgba(215,24,42,.55), transparent 60%),
    radial-gradient(70% 60% at 100% 100%, rgba(31,163,74,.35), transparent 60%),
    var(--red-night);
  animation: stageIn .32s cubic-bezier(.2,.8,.2,1);
}
@keyframes stageIn { from { transform: translateY(6%); opacity: 0; } }
.stage-in { height: 100%; display: flex; flex-direction: column; width: min(1240px, 100% - 32px); margin-inline: auto; padding-bottom: env(safe-area-inset-bottom); }
.stage-top { display: flex; align-items: center; justify-content: space-between; height: 72px; flex: none; }
.stage-brand { height: 40px; width: auto; }
.deck { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 40px; padding-bottom: 24px; }
.now { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-width: 0; }
.now-art .art { width: min(300px, 34vh); aspect-ratio: 1; border-radius: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.now .live-badge { margin-top: 26px; }
.now-name { margin: 12px 0 0; font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(34px, 5vw, 60px); line-height: 1; text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-song { margin: 10px 0 0; font-size: 19px; font-weight: 600; color: var(--gold); min-height: 28px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-meta { margin: 2px 0 0; color: rgba(255,255,255,.65); font-size: 14px; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin: 16px 0 6px; opacity: .25; }
.eq i { width: 5px; height: 100%; border-radius: 2px; background: #fff; transform-origin: bottom; transform: scaleY(.2); }
.is-playing .eq { opacity: 1; }
.is-playing .eq i { animation: eq 1.1s ease-in-out infinite; background: var(--green-hi); }
.is-playing .eq i:nth-child(2n) { animation-duration: .8s; animation-delay: -.3s; }
.is-playing .eq i:nth-child(3n) { animation-duration: 1.3s; animation-delay: -.6s; }
@keyframes eq { 0%,100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.controls { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
#favBtn[aria-pressed="true"] { color: var(--gold); }
#favBtn[aria-pressed="true"] path { fill: currentColor; }
.volume { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.volume input { width: 200px; accent-color: var(--green-hi); }
.is-muted .wave { display: none; }
.err { margin: 14px 0 0; padding: 8px 14px; border-radius: 10px; background: rgba(0,0,0,.3); font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.err button { border: 0; border-radius: 6px; padding: 4px 10px; background: #fff; color: var(--red-deep); font-weight: 700; cursor: pointer; }

.dock { min-height: 0; display: flex; flex-direction: column; background: rgba(0,0,0,.22); border-radius: 20px; border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.dock-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; }
.dock-head h3 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; white-space: nowrap; }
.dock-head input { flex: 1; min-width: 0; height: 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; padding: 0 14px; }
.dock-head input::placeholder { color: rgba(255,255,255,.6); }
.dock-list { list-style: none; margin: 0; padding: 0 8px 10px; overflow-y: auto; overscroll-behavior: contain; }
.dock-item { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 8px; border: 0; border-radius: 12px; background: none; color: #fff; text-align: left; cursor: pointer; }
.dock-item:hover { background: rgba(255,255,255,.08); }
.dock-item .art { width: 44px; height: 44px; border-radius: 9px; }
.dock-item b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-item small { display: block; color: rgba(255,255,255,.6); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-item.on { background: rgba(31,163,74,.22); box-shadow: inset 3px 0 0 var(--green-hi); }
.dock-item .bars { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.dock-item .bars i { width: 3px; background: var(--green-hi); height: 100%; transform-origin: bottom; animation: eq 1s infinite ease-in-out; }
.dock-item .bars i:nth-child(2) { animation-delay: -.4s; }
.dock-item .bars i:nth-child(3) { animation-delay: -.7s; }
.is-playing .dock-item.on .bars { display: flex; }

.toast { position: fixed; left: 50%; bottom: calc(var(--mini-h) + 18px); translate: -50% 0; z-index: 80; background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 10px; font-weight: 600; }

/* ---------- Choix du pays ---------- */
.country-btn { margin-left: 0; }
.country-btn .flag { font-size: 18px; line-height: 1; }
.country-btn svg { width: 16px; height: 16px; opacity: .8; }
.picker { position: fixed; inset: 0; z-index: 70; background: rgba(29,20,22,.55); display: grid; place-items: start center; padding: 6vh 16px 16px; animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } }
.picker-in { width: min(820px, 100%); max-height: 86vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 20px; padding: 22px 22px 10px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.picker-head .slant-title { margin: 0; font-size: 28px; }
.close-dark { color: var(--ink); }
.close-dark:hover { background: var(--page); }
.picker-search { width: 100%; height: 46px; margin: 14px 0 12px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); }
.picker-search:focus { outline: none; border-color: var(--red); }
.picker-pop { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.picker-pop button { border: 0; cursor: pointer; padding: 6px 14px; border-radius: 999px; background: var(--page); font-weight: 600; font-size: 14px; }
.picker-pop button:hover { background: var(--line); }
.picker-list { list-style: none; margin: 0; padding: 0 0 12px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.picker-list button { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; }
.picker-list button:hover { background: var(--page); }
.picker-list button[aria-current="true"] { background: var(--red); color: #fff; }
.picker-list button[aria-current="true"] small { color: rgba(255,255,255,.8); }
.picker-list .flag { font-size: 20px; line-height: 1; }
.picker-list span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-list small { color: var(--muted); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); padding: 10px; }
.more { display: flex; justify-content: center; padding: 22px 0 0; }
.more-btn { border: 0; cursor: pointer; padding: 12px 26px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.more-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Tablette & mobile ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .deck { grid-template-columns: 1fr; gap: 20px; overflow-y: auto; }
  .dock { min-height: 360px; }
}
@media (max-width: 900px) {
  .mast-in { height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 0 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .country-btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .mast-in { height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 0 12px; }
  .brand img { height: 42px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .mast-btn { padding: 0 12px; height: 38px; }
  .country-btn { margin-left: auto; }
  #favFilter span { display: none; }
  .picker { padding: 0; place-items: stretch; }
  .picker-in { max-height: none; height: 100%; border-radius: 0; }
  .picker-list { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; padding: 20px; gap: 18px; text-align: left; }
  .feature-logo { width: 120px; }
  .feature::before { right: -170px; width: 200px; }
  .feature::after { display: none; }
  .btn-play { height: 50px; font-size: 20px; }
  .btn-ghost { height: 50px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-name { font-size: 17px; }
  .cat-head { align-items: start; }
  .mini { gap: 8px; }
  .mini-ctl .ic:not(.play) { display: none; }
  .mini-name { font-size: 19px; }
  .now-art .art { width: min(220px, 30vh); }
  .controls { gap: 6px; }
  .ic.lg { width: 48px; height: 48px; }
  .ic.play.xl { width: 74px; height: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   V3 — navigation, compte, publicité, tuner, actualités, événements
   ===================================================================== */

/* ---------- En-tête ---------- */
.mast-in { gap: 18px; }
.mainnav { display: flex; gap: 2px; }
.mainnav a {
  padding: 8px 12px; border-radius: 6px; text-decoration: none; font-family: var(--display); font-style: italic;
  font-weight: 800; font-size: 19px; letter-spacing: .01em; color: rgba(255,255,255,.82);
}
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.mainnav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--green-hi); border-radius: 6px 6px 0 0; }
.search { margin-left: auto; max-width: 380px; }
.search.dim { opacity: .75; }
.mast-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.mast-btn { text-decoration: none; }
.mast-btn.icon-only { width: 44px; padding: 0; justify-content: center; }
.mast-btn.icon-only[aria-current="page"] { background: #fff; color: var(--red-deep); }
.account { position: relative; }
.account-btn .avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
}
.account-btn svg { width: 20px; height: 20px; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; z-index: 50; background: var(--paper); color: var(--ink);
  border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.25); border: 1px solid var(--line);
}
.account-menu a, .account-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; border: 0; background: none; text-decoration: none; font-weight: 600; cursor: pointer; }
.account-menu a:hover, .account-menu button:hover { background: var(--page); }
.account-hello { margin: 4px 12px 8px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

/* ---------- Publicité ---------- */
.ad-row { padding-top: 16px; display: flex; justify-content: center; }
.ad { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; overflow: hidden; }
.ad img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.ad-label { font-size: 11px; letter-spacing: .02em; color: var(--muted); align-self: flex-start; margin-bottom: 4px; }
.ad.ad-empty {
  border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 12px; color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--muted) 6%, transparent) 14px 28px);
}
.ad.ad-empty .ad-label { align-self: center; margin: 0; }
.ad.ad-empty strong { color: var(--ink); font-family: var(--display); font-style: italic; font-size: 18px; }
.ad.ad-empty small { font-variant-numeric: tabular-nums; }
.ad[data-ad="leaderboard"] { width: min(970px, 100%); min-height: 90px; }
.ad[data-ad="home-side"] { min-height: 250px; margin-top: 16px; }
.ad-cell .ad { height: 100%; min-height: 220px; }
.wide-ad { grid-column: 1 / -1; min-height: 90px; }
.ad[data-ad="article-side"] { min-height: 600px; }
.ad.sticky { position: sticky; top: 100px; }
.ad[data-ad="article-bottom"] { min-height: 90px; margin: 10px 0 30px; }
.ad.ad-dark { margin: 8px; min-height: 100px; }
.ad.ad-dark.ad-empty { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.25); background: none; }
.ad.ad-dark.ad-empty strong { color: #fff; }
.ad.ad-dark .ad-label { color: rgba(255,255,255,.6); }

/* ---------- Accueil : bloc latéral, badges fréquence ---------- */
.side { display: flex; flex-direction: column; }
.feature-freq { margin: 2px 0 0; font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 18px; letter-spacing: .06em; color: var(--gold); }
.freq-badge {
  position: absolute; left: 10px; bottom: calc(100% - 10px - 22px); top: 10px; height: 22px; padding: 0 8px; display: flex; align-items: center;
  font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: .04em; color: #fff; background: rgba(29,20,22,.82); border-radius: 4px;
}
.freq-badge.web { background: rgba(11,107,46,.85); }
.card .pin { display: none; }

/* Vignettes générées « 100% » (webradios Hit Radio) */
.art.hit100 { background: linear-gradient(160deg, #e3202f, #8e0e1a) !important; color: #fff !important; flex-direction: column; display: flex; align-items: center; justify-content: center; text-transform: uppercase; }
.art.hit100 b { font-size: 1.4em; line-height: .9; font-weight: 900; }
.art.hit100 span { font-size: .62em; font-weight: 800; letter-spacing: .02em; }
.art.gen[data-size="sm"] { font-size: 17px; }
.art.gen[data-size="md"] { font-size: clamp(20px, 2.4vw, 28px); }
.art.gen[data-size="lg"] { font-size: 38px; }
.art.gen[data-size="xl"] { font-size: clamp(26px, 4.4vh, 42px); }
.art.hit100[data-size="sm"] { font-size: 12px; }
.feature-logo .art { width: 100%; height: 100%; }

/* ---------- Teasers accueil ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; padding: 30px 0 10px; }
.teaser-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.teaser-head .slant-title { margin: 0; }
.teaser-head a { font-weight: 700; color: var(--red); text-decoration: none; font-size: 15px; }
.teaser-head a:hover { text-decoration: underline; }
.teaser-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.teaser-events { display: flex; flex-direction: column; gap: 12px; }
.teaser-events .event-card { grid-template-columns: 120px 1fr; }
.teaser-events .event-img { aspect-ratio: 1; }
.teaser-events .event-body h3 { font-size: 18px; }

/* ---------- Cartes actualités ---------- */
.news-card { display: flex; flex-direction: column; background: var(--paper); border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: transform .18s, box-shadow .18s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 16px 30px -14px rgba(61,5,12,.35); }
.news-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--red-deep), var(--red-night)); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-img img.broken, .event-img img.broken { display: none; }
.news-body { padding: 14px 16px 18px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.news-meta .cat { color: #fff; background: var(--red); padding: 1px 9px; font-weight: 700; transform: skewX(var(--slant)); border-radius: 3px; font-size: 12px; }
.news-card h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; }
.news-lede { margin: 8px 0 0; color: var(--muted); }
.news-card.big { grid-column: span 2; flex-direction: row; }
.news-card.big .news-img { flex: 1.2; aspect-ratio: auto; min-height: 280px; }
.news-card.big .news-body { flex: 1; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.news-card.big h3 { font-size: clamp(26px, 3vw, 36px); font-style: italic; font-weight: 800; }

.page-head { padding: 30px 0 12px; }
.page-title { font-size: clamp(36px, 5vw, 56px) !important; margin: 0 0 6px; }
.page-lede { margin: 0 0 18px; color: var(--muted); font-size: 18px; max-width: 60ch; }
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 30px; }

/* ---------- Article ---------- */
.reader { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 26px 0 10px; align-items: start; }
.post { background: var(--paper); border-radius: 20px; padding: clamp(20px, 4vw, 44px); box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.back { display: inline-block; margin-bottom: 18px; font-weight: 700; text-decoration: none; color: var(--red); }
.post-title { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; margin: 6px 0 16px; }
.post-lede { font-size: 20px; line-height: 1.5; color: var(--muted); border-left: 4px solid var(--red); padding-left: 18px; margin: 0 0 14px; }
.post-author { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.post-cover { margin: 0 0 24px; border-radius: 14px; overflow: hidden; background: var(--page); }
.post-cover img { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.post-body { font-size: 18px; line-height: 1.7; max-width: 72ch; }
.post-body h2 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 30px; line-height: 1.1; margin: 36px 0 12px; }
.post-body h3 { font-family: var(--display); font-weight: 700; font-size: 23px; margin: 28px 0 8px; }
.post-body a { color: var(--red); }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.post-body figure { margin: 22px 0; }
.post-body blockquote { margin: 22px 0; padding: 12px 20px; border-left: 4px solid var(--green); background: var(--page); border-radius: 0 10px 10px 0; font-style: italic; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 16px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.reader-side { min-width: 0; }
.related { padding: 20px 0 30px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.fact { background: var(--page); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.fact span { font-size: 13px; color: var(--muted); }
.fact b { font-family: var(--display); font-size: 19px; line-height: 1.2; }
.fact small { color: var(--muted); }

/* ---------- Événements ---------- */
.events-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; padding-bottom: 30px; }
.event-card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: transform .18s; }
.event-card:hover { transform: translateY(-3px); }
.event-img { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0b6b2e, #12303a); overflow: hidden; }
.event-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.date-chip { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--red-deep); border-radius: 10px; padding: 4px 10px 6px; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); line-height: 1; }
.date-chip b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 28px; }
.date-chip span { font-size: 12px; font-weight: 700; text-transform: capitalize; }
.event-body { padding: 14px 16px 18px; }
.event-body h3 { margin: 0 0 6px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; line-height: 1.1; }
.event-when { margin: 0; font-weight: 700; color: var(--red); }
.event-where { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.teaser-events .event-card { display: grid; grid-template-rows: none; }
.teaser-events .date-chip { left: 8px; top: 8px; padding: 3px 7px 4px; }
.teaser-events .date-chip b { font-size: 20px; }

/* ---------- Mes radios ---------- */
.mine { padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; border-radius: 20px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #b3111f, var(--red-deep) 55%, var(--red-night)); }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; max-width: 56ch; color: rgba(255,255,255,.85); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-outline { height: 54px; padding: 0 22px; border-radius: 999px; background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; font-weight: 700; cursor: pointer; }
.mine-block { background: var(--paper); border-radius: 18px; padding: 18px; box-shadow: 0 0 0 1px var(--line); }
.mine-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mine-head .slant-title, .mine-head h3 { margin: 0; }
.mine-head h3 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; }
.row-actions { display: flex; align-items: center; gap: 6px; }
.mine-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }
.mine-item { display: flex; align-items: center; gap: 4px; }
.dock-item.light { color: var(--ink); grid-template-columns: 44px minmax(0, 1fr) 32px; }
.dock-item.light small { color: var(--muted); }
.dock-item.light:hover { background: var(--page); }
.dock-item.light.on { background: color-mix(in srgb, var(--green) 14%, transparent); }
.dock-item .go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--page); color: var(--green); }
.dock-item .go svg { width: 16px; height: 16px; }
.icon-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--page); color: var(--red); }
.icon-btn svg { width: 18px; height: 18px; }
.btn-small { border: 0; cursor: pointer; padding: 8px 16px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; }
.btn-small:hover { background: var(--green-hi); }
.btn-text { border: 0; background: none; cursor: pointer; padding: 8px 10px; font-weight: 600; color: var(--muted); border-radius: 8px; }
.btn-text:hover { background: var(--page); color: var(--ink); }
.btn-text.danger:hover { color: var(--red); }

/* ---------- Fenêtres (connexion, listes) ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(29,20,22,.6); display: grid; place-items: center; padding: 16px; animation: fade .2s ease-out; }
.modal-in { position: relative; width: min(440px, 100%); max-height: 92vh; overflow-y: auto; background: var(--paper); color: var(--ink); border-radius: 22px; padding: 28px 26px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.modal-x { position: absolute; right: 12px; top: 12px; }
.auth-logo { height: 46px; width: auto; display: block; margin-bottom: 12px; }
.auth .slant-title, .modal-in .slant-title { font-size: 30px; margin: 0 0 4px; }
.auth-lede { margin: 0 0 16px; color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--page); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.auth-tabs button { border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--muted); }
.auth-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.field input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); font-size: 16px; font-weight: 400; }
.field input:focus { outline: none; border-color: var(--red); background: var(--paper); }
.field small { font-weight: 400; color: var(--muted); }
.form-err { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); font-weight: 600; }
.btn-play.wide { width: 100%; justify-content: center; }
.btn-play:disabled { opacity: .6; cursor: progress; }
.list-choices { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.check { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--page); cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.check small { color: var(--muted); font-weight: 400; }
.new-list { display: flex; gap: 8px; }
.new-list input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); }

/* ---------- Pied de page ---------- */
.foot { border-top: 0; margin-top: 30px; padding: 0; background: var(--red-night); color: rgba(255,255,255,.75); }
.foot-in { padding: 34px 0 40px; display: flex; flex-direction: column; gap: 10px; }
.foot-logo { height: 46px; width: auto; align-self: flex-start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0; }
.foot nav a { color: #fff; font-weight: 600; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin: 0; font-size: 14px; }
.foot p a { color: #fff; }

/* =====================================================================
   TUNER
   ===================================================================== */
.stage-in { overflow-y: auto; }
.tuner { flex: none; margin: 0 0 18px; }
.lcd {
  display: grid; grid-template-columns: auto auto auto 1fr auto; align-items: end; gap: 6px 16px;
  padding: 14px 20px; border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #1c2a1a, #0e170d); color: #b9f27a;
  box-shadow: inset 0 0 0 1px rgba(185,242,122,.18), inset 0 10px 30px rgba(0,0,0,.5);
  font-family: "Share Tech Mono", ui-monospace, monospace; text-shadow: 0 0 10px rgba(185,242,122,.45);
}
.lcd-bands { display: flex; flex-direction: column; gap: 2px; font-size: 13px; align-self: center; }
.lcd-bands span { opacity: .22; padding: 0 6px; border: 1px solid currentColor; border-radius: 3px; text-align: center; }
.lcd-bands span.on { opacity: 1; }
.lcd-freq { font-size: clamp(44px, 7vw, 68px); line-height: .9; letter-spacing: .02em; }
.lcd-unit { font-size: 16px; padding-bottom: 6px; opacity: .8; }
.lcd-name { grid-column: 4; grid-row: 1; justify-self: end; align-self: center; font-size: clamp(16px, 2.2vw, 22px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.lcd-signal { display: flex; align-items: flex-end; gap: 3px; height: 24px; align-self: center; }
.lcd-signal i { width: 5px; background: currentColor; opacity: .2; }
.lcd-signal i:nth-child(1) { height: 20%; } .lcd-signal i:nth-child(2) { height: 40%; } .lcd-signal i:nth-child(3) { height: 60%; } .lcd-signal i:nth-child(4) { height: 80%; } .lcd-signal i:nth-child(5) { height: 100%; }
.is-playing .lcd-signal i { opacity: 1; }
.is-loading .lcd-signal i { animation: blink 1s infinite steps(2); }
@keyframes blink { 50% { opacity: .2; } }

.dial {
  position: relative; height: 128px; overflow: hidden; cursor: grab; user-select: none; touch-action: pan-y;
  border-radius: 0 0 14px 14px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55), transparent 14%, transparent 86%, rgba(0,0,0,.55)),
    linear-gradient(180deg, #f7efe0, #e9dcc4);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.35);
}
.dial:active { cursor: grabbing; }
.dial:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.dial.off { opacity: .55; }
.scale { position: absolute; top: 0; bottom: 0; left: 0; will-change: transform; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.scale.dragging { transition: none; }
.tk { position: absolute; bottom: 0; width: 1px; height: 12px; background: #3a2b2e; opacity: .5; }
.tk.md { height: 20px; opacity: .7; }
.tk.mj { height: 30px; width: 2px; opacity: .95; }
.tk.web { height: 10px; background: #0b6b2e; opacity: .5; }
.tk-num { position: absolute; bottom: 32px; translate: -50% 0; font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 17px; color: #3a2b2e; }
.band-label { position: absolute; top: 0; display: none; translate: -50% 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--red-deep); opacity: .6; white-space: nowrap; }
.band-label.web { color: #0b6b2e; }
.band-sep { position: absolute; top: 18px; bottom: 6px; width: 3px; background: repeating-linear-gradient(180deg, #3a2b2e 0 4px, transparent 4px 8px); opacity: .35; }
.mk { position: absolute; top: 14px; translate: -50% 0; border: 0; padding: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.mk::after { content: ""; width: 2px; height: 40px; background: var(--red); border-radius: 2px; opacity: .85; }
.mk.r1 { top: 29px; } .mk.r1::after { height: 25px; }
.mk.r2 { top: 44px; } .mk.r2::after { height: 10px; }
.mk.w::after { background: #0b6b2e; }
.mk span { font-family: var(--display); font-weight: 700; font-size: 12px; line-height: 15px; color: #3a2b2e; white-space: nowrap; max-width: 86px; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; border-radius: 3px; background: rgba(247,239,224,.85); }
.mk.cur span { background: var(--red); color: #fff; }
.mk.w.cur span { background: #0b6b2e; }
.mk:hover span { color: var(--red); }
.mk.cur:hover span { color: #fff; }
.needle { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; translate: -1.5px 0; background: var(--red); box-shadow: 0 0 12px rgba(215,24,42,.8); pointer-events: none; z-index: 2; }
.needle::before { content: ""; position: absolute; top: 0; left: -6px; border: 7.5px solid transparent; border-top: 10px solid var(--red); }
.seek { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(29,20,22,.75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.seek:hover { background: var(--red); }
.seek svg { width: 22px; height: 22px; }
.seek-l { left: 10px; } .seek-r { right: 10px; }
.tuner-hint { margin: 8px 0 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.6); }

/* Platine sous le tuner */
.deck { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 28px; padding-bottom: 24px; min-height: 0; }
.now { flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; gap: 28px; }
.now-art .art { width: min(220px, 26vh); }
.now-info { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.now .live-badge { margin-top: 0; }
.now-name { white-space: normal; }
.controls { margin-top: 16px; }
.volume { margin-top: 14px; }
.dock { max-height: 56vh; }
.mini-freq { font-family: "Share Tech Mono", ui-monospace, monospace; font-style: normal; font-weight: 400; font-size: 14px; color: var(--gold); margin-left: 6px; }

/* ---------- Adaptations écrans ---------- */
@media (max-width: 1180px) {
  .mainnav a { font-size: 17px; padding: 8px 9px; }
  #accountLabel { display: none; }
}
@media (max-width: 1060px) {
  .mast-in { height: auto; flex-wrap: wrap; gap: 10px 14px; padding: 10px 0 0; }
  .mainnav { order: 4; flex-basis: 100%; overflow-x: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .mast-actions { margin-left: auto; }
  .mainnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green-hi); }
  .teaser { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reader { grid-template-columns: 1fr; }
  .reader-side { display: none; }
}
@media (max-width: 960px) {
  .deck { grid-template-columns: 1fr; overflow: visible; }
  .dock { max-height: none; min-height: 360px; }
}
@media (max-width: 640px) {
  .country-btn #countryLabel { display: none; }
  .mainnav a { font-size: 17px; }
  .teaser-news { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: 1fr; }
  .news-card.big { grid-column: auto; flex-direction: column; }
  .news-card.big .news-img { min-height: 0; aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: 1fr; }
  .post-body { font-size: 17px; }
  .ad[data-ad="leaderboard"] { min-height: 100px; max-width: 320px; }
  .now { flex-direction: column; align-items: center; text-align: center; }
  .now-info { align-items: center; }
  .lcd { grid-template-columns: auto auto 1fr; padding: 10px 14px; }
  .lcd-name { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .lcd-signal { display: none; }
  .dial { height: 124px; }
  .seek { width: 34px; height: 34px; }
  .tuner-hint { display: none; }
}

/* =====================================================================
   V4 — langues, pages À propos / FAQ / Contact / Ajouter sa radio
   ===================================================================== */
.langs { position: relative; }
.lang-btn { min-width: 44px; justify-content: center; font-weight: 800; padding: 0 12px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 170px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.25); border: 1px solid var(--line); }
.lang-menu button { display: block; width: 100%; text-align: start; padding: 10px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-weight: 600; }
.lang-menu button:hover { background: var(--page); }
.lang-menu button[aria-current="true"] { color: var(--red); }
.lang-note { margin: -8px 0 16px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--green) 12%, transparent); font-weight: 600; display: inline-block; }
.nav-wide { }

/* Pages d'information */
.info-page { padding: 24px 0 40px; display: flex; flex-direction: column; gap: 18px; }
.crumb { margin: 0; font-size: 14px; color: var(--muted); }
.crumb a { color: var(--red); text-decoration: none; font-weight: 600; }
.kicker { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 17px; color: var(--red); }
.kicker.green { color: var(--green); }
.info-page .post-title { margin: 4px 0 6px; }
.info-page .page-lede { margin: 0 0 10px; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--paper); border-radius: 24px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 0 0 1px var(--line); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats li { background: var(--page); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-icon { font-size: 22px; }
.stats b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 38px; line-height: 1; color: var(--red); }
.stats span:last-child { color: var(--muted); font-size: 14px; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.value { background: var(--paper); border-radius: 18px; padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.value-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--red); color: #fff; font-size: 18px; transform: skewX(var(--slant)); }
.value h3 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; margin: 12px 0 6px; }
.value p { margin: 0; color: var(--muted); }
.btn-outline.dark { color: var(--ink); border-color: var(--line); display: inline-flex; align-items: center; text-decoration: none; }
.cta-actions .btn-play, .cta-actions .btn-outline { text-decoration: none; display: inline-flex; align-items: center; }

.faq-sec { display: flex; flex-direction: column; gap: 8px; }
.faq-sec .slant-title { margin: 10px 0 4px; }
.faq-item { background: var(--paper); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--red); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted); line-height: 1.6; }

.contact-grid, .submit-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-cards li { background: var(--paper); border-radius: 16px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.contact-cards span { font-size: 13px; color: var(--muted); }
.contact-cards a, .contact-cards b { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; }
.contact-cards a:hover { color: var(--red); }
.contact-cards small { color: var(--muted); }
.site-form { background: var(--paper); border-radius: 20px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 0 0 1px var(--line); }
.site-form .slant-title { margin: 0 0 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field.wide { grid-column: 1 / -1; }
.field textarea, .field select { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); resize: vertical; }
.field select { height: 46px; padding: 0 12px; }
.field textarea:focus, .field select:focus { outline: none; border-color: var(--red); background: var(--paper); }
.req { color: var(--red); font-style: normal; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form-status { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.form-status.ok { background: color-mix(in srgb, var(--green) 14%, transparent); color: #0b6b2e; }
.form-status.ko { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.site-form .btn-play { margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { background: var(--paper); border-radius: 18px; padding: 20px; box-shadow: 0 0 0 1px var(--line); }
.step-n { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 40px; color: var(--red); line-height: 1; }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 8px 0 4px; }
.steps p { margin: 0; color: var(--muted); }
.criteria { background: var(--paper); border-radius: 20px; padding: 20px; box-shadow: 0 0 0 1px var(--line); }
.criteria .slant-title { margin: 0 0 10px; }
.criteria ul { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.criteria li { padding-inline-start: 26px; position: relative; }
.criteria li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 800; }
.note { background: color-mix(in srgb, var(--gold) 22%, transparent); border-radius: 12px; padding: 12px 14px; }
.note p { margin: 4px 0 0; }

.foot-cols { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.foot-langs button { background: none; border: 0; color: #fff; cursor: pointer; font-weight: 600; padding: 0; }
.foot-langs button[aria-current="true"] { text-decoration: underline; text-underline-offset: 4px; }
.foot-langs button:hover { text-decoration: underline; }

/* ---------- Arabe : écriture de droite à gauche ---------- */
[dir="rtl"] body, [dir="rtl"] .mainnav a, [dir="rtl"] .slant-title, [dir="rtl"] .feature-name, [dir="rtl"] .now-name, [dir="rtl"] .card-name,
[dir="rtl"] .post-title, [dir="rtl"] .btn-play, [dir="rtl"] .live-badge, [dir="rtl"] .kicker, [dir="rtl"] .value h3, [dir="rtl"] .steps h3, [dir="rtl"] .mini-name, [dir="rtl"] .theme {
  font-family: "Cairo", var(--text); font-style: normal; letter-spacing: 0;
}
[dir="rtl"] .theme, [dir="rtl"] .live-badge, [dir="rtl"] .value-n { transform: none; }
[dir="rtl"] .theme span, [dir="rtl"] .live-badge > * { transform: none; }
[dir="rtl"] .search { margin-left: 0; margin-right: auto; }
[dir="rtl"] .search svg { left: auto; right: 14px; }
[dir="rtl"] .search input { padding: 0 42px 0 16px; }
[dir="rtl"] .account-menu, [dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .post-lede { border-left: 0; border-right: 4px solid var(--red); padding-left: 0; padding-right: 18px; }
[dir="rtl"] .feature::before { right: auto; left: -60px; transform: skewX(9deg); }
[dir="rtl"] .feature::after { right: auto; left: 120px; transform: skewX(9deg); }
[dir="rtl"] .freq-badge { left: auto; right: 10px; }
[dir="rtl"] .card .hover-play { right: auto; left: 10px; }
[dir="rtl"] .dock-item.on { box-shadow: inset -3px 0 0 var(--green-hi); }
[dir="rtl"] .chev { transform: none; }

@media (max-width: 1060px) {
  .about-hero, .contact-grid, .submit-grid { grid-template-columns: 1fr; }
  .nav-wide { display: none; }
}
@media (max-width: 640px) {
  .values, .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats b { font-size: 30px; }
}

/* =====================================================================
   Bannières maison en rotation
   ===================================================================== */
.ad { container-type: inline-size; }
.ad.ad-rot { gap: 6px; align-items: stretch; }
.ad.ad-rot .ad-label { margin: 0; }
.house-stage { position: relative; flex: 1; display: flex; }
.house {
  position: relative; isolation: isolate; overflow: hidden; width: 100%;
  display: grid; color: var(--ht); text-decoration: none; border-radius: 14px; text-align: start;
  background: radial-gradient(130% 160% at 0% 0%, var(--hb2), var(--hb) 62%);
  box-shadow: 0 10px 26px -14px rgba(0,0,0,.55);
  animation: houseIn .55s ease-out;
}
@keyframes houseIn { from { opacity: 0; transform: translateY(4px); } }
.house::before { /* bande inclinée, rappel du logo Radios.ma */
  content: ""; position: absolute; z-index: -1; top: -30%; bottom: -30%; right: 18%; width: 90px;
  background: linear-gradient(180deg, var(--ha), var(--ha2)); opacity: .16; transform: skewX(-12deg);
}
.house:hover .house-cta { filter: brightness(1.12); transform: translateY(-1px); }
.house:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.house-icon { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: rgba(255,255,255,.08); flex: none; }
.house-txt { display: flex; flex-direction: column; min-width: 0; }
.house-brand { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ha2); filter: brightness(1.35); }
.house-head { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.08; }
.house-text { font-size: 14px; line-height: 1.35; color: rgba(255,255,255,.82); }
.house-cta {
  justify-self: start; align-self: center; white-space: nowrap; padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 15px;
  color: #fff; background: linear-gradient(90deg, var(--ha), var(--ha2)); box-shadow: 0 6px 16px -6px var(--ha); transition: transform .15s, filter .15s;
}
/* Bandeau horizontal (970×90, 728×90, lecteur) */
.house-wide { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 20px; min-height: 90px; }
.house-wide .house-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 560px) {
  .house-wide { grid-template-columns: auto minmax(0, 1fr); padding: 12px 14px; gap: 12px; min-height: 100px; }
  .house-wide .house-icon { width: 46px; height: 46px; }
  .house-wide .house-head { font-size: 18px; }
  .house-wide .house-text { display: none; }
  .house-wide .house-cta { grid-column: 2; padding: 6px 12px; font-size: 13px; margin-top: 2px; }
}
/* Pavé (300×250, carte dans la grille) */
.house-box, .house-tall { grid-template-rows: auto 1fr auto; gap: 12px; padding: 20px; }
.house-box { min-height: 250px; }
.house-box .house-head { font-size: 24px; margin-top: 2px; }
.house-box .house-text { margin-top: 6px; }
/* Colonne (300×600) */
.house-tall { min-height: 600px; text-align: center; justify-items: center; padding: 34px 22px; }
.house-tall .house-icon { width: 104px; height: 104px; border-radius: 24px; }
.house-tall .house-txt { align-items: center; gap: 6px; }
.house-tall .house-head { font-size: 32px; }
.house-tall .house-text { font-size: 16px; }
.house-tall .house-cta { justify-self: center; align-self: end; padding: 13px 22px; font-size: 16px; }
.house-tall::before { right: auto; left: 50%; width: 120px; translate: -50% 0; }
/* Pub au format carte radio (grille) */
.ad.ad-card { display: block; height: 100%; }
.card-ad { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.card-ad .ad-art { position: relative; background: radial-gradient(120% 120% at 20% 0%, var(--hb2), var(--hb) 70%); overflow: hidden; isolation: isolate; }
.card-ad .ad-art::before { content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; right: 14%; width: 26%; background: linear-gradient(180deg, var(--ha), var(--ha2)); opacity: .2; transform: skewX(-12deg); }
.card-ad .ad-art img { width: 52%; height: 52%; object-fit: cover; border-radius: 22%; box-shadow: 0 12px 26px -8px rgba(0,0,0,.6); margin-bottom: 14%; }
.ad-art-cta {
  position: absolute; left: 50%; bottom: 9%; translate: -50% 0; max-width: 88%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 6px 12px; border-radius: 999px; font-family: var(--text); font-style: normal; font-weight: 800; font-size: 13px; color: #fff;
  background: linear-gradient(90deg, var(--ha), var(--ha2)); box-shadow: 0 6px 14px -6px var(--ha);
}
.card-ad .card-body { flex: 1; }
.freq-badge.sponsored { background: rgba(255,255,255,.92); color: #1d1416; font-family: var(--text); font-weight: 700; letter-spacing: 0; font-size: 11px; }
.card-ad .go-ad { background: linear-gradient(135deg, var(--ha), var(--ha2)); }
.card-ad:hover .ad-art-cta { filter: brightness(1.1); }
.ad-cell .ad { min-height: 0 !important; }
.ad-cell { display: flex; }
.ad-cell > .ad { flex: 1; }
[dir="rtl"] .card-ad .ad-art::before { right: auto; left: 14%; transform: skewX(12deg); }
@media (prefers-reduced-motion: reduce) { .house { animation: none; } }

/* =====================================================================
   LECTEUR MOBILE — tuner en arrière-plan, pochette, tiroir des radios
   ===================================================================== */
.stage-bg { display: none; }
.dock-handle { display: none; }
@keyframes swipeL { from { transform: translateX(-40px); opacity: .3; } }
@keyframes swipeR { from { transform: translateX(40px); opacity: .3; } }
.now-art.swipe-l { animation: swipeR .35s ease-out; }
.now-art.swipe-r { animation: swipeL .35s ease-out; }

@media (max-width: 640px) {
  .stage { background: #170407; }
  .stage-bg {
    display: block; position: absolute; inset: -10%; z-index: 0; pointer-events: none;
    background-size: cover; background-position: center; filter: blur(46px) saturate(1.5) brightness(.75); opacity: .75;
    transition: background-image .6s;
  }
  .stage-bg.no-img { background: radial-gradient(70% 50% at 50% 30%, #b3111f, transparent 70%), radial-gradient(60% 40% at 80% 90%, rgba(31,163,74,.6), transparent 70%); }
  .stage::after { /* voile pour la lisibilité */
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(23,4,7,.35) 0%, rgba(23,4,7,.15) 35%, rgba(23,4,7,.75) 70%, #170407 100%);
  }
  .stage-in { position: relative; z-index: 1; width: 100%; padding: 0 20px calc(84px + env(safe-area-inset-bottom)); overflow-y: auto; display: flex; flex-direction: column; }
  .stage-top { height: 58px; }
  .stage-brand { height: 30px; }

  /* Le tuner passe en filigrane derrière la pochette */
  .tuner { position: absolute; left: 0; right: 0; top: 64px; margin: 0; z-index: -1; pointer-events: none; opacity: .32;
           -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
  .lcd { display: block; background: none; box-shadow: none; padding: 0; text-align: center; color: #fff; text-shadow: none; }
  .lcd-bands, .lcd-unit, .lcd-name, .lcd-signal { display: none; }
  .lcd-freq { font-size: 34vw; line-height: .9; letter-spacing: -.02em; opacity: .5; }
  .dial { height: 96px; background: none; box-shadow: none; border-radius: 0; margin-top: -4vw; }
  .dial .seek, .tuner-hint { display: none; }
  .tk { background: #fff; }
  .tk-num { color: #fff; font-size: 14px; }
  .mk span { background: none; color: #fff; }
  .mk.cur span { background: var(--red); }
  .band-sep { background: repeating-linear-gradient(180deg, #fff 0 4px, transparent 4px 8px); }
  .needle { box-shadow: 0 0 16px rgba(215,24,42,.9); }

  /* Pochette et informations */
  .deck { display: block; padding: 0; overflow: visible; }
  .now { flex-direction: column; align-items: center; text-align: center; gap: 0; padding-top: 34px; }
  .now-art { touch-action: pan-y; transition: transform .2s ease-out; }
  .now-art .art { width: min(74vw, 330px); border-radius: 26px; box-shadow: 0 30px 60px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
  .now-art .art img { width: 82%; height: 82%; }
  .now-info { align-items: center; width: 100%; margin-top: 26px; }
  .now .live-badge { margin: 0 0 10px; }
  .now-name { font-size: clamp(30px, 9vw, 40px); line-height: 1; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .now-meta { font-family: "Share Tech Mono", ui-monospace, monospace; color: var(--gold); font-size: 15px; letter-spacing: .04em; margin-top: 8px; }
  .now-song { font-size: 16px; margin-top: 4px; color: #fff; opacity: .9; }
  .eq { margin: 14px 0 0; }
  .controls { width: 100%; max-width: 360px; justify-content: space-between; gap: 0; margin-top: 18px; }
  .controls .ic { width: 48px; height: 48px; }
  .controls .ic.lg { width: 56px; height: 56px; }
  .controls .ic.lg svg { width: 30px; height: 30px; }
  .ic.play.xl { width: 82px; height: 82px; }
  .volume { margin-top: 10px; }
  .volume input, #muteBtn { display: none; } /* le volume se règle avec les boutons du téléphone */
  .err { margin-top: 12px; }

  /* Tiroir « Toutes les radios » */
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; height: 78vh; max-height: none; min-height: 0;
    border-radius: 24px 24px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(31, 9, 13, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    transform: translateY(calc(100% - 70px - env(safe-area-inset-bottom))); transition: transform .32s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 -18px 40px rgba(0,0,0,.45); padding-bottom: env(safe-area-inset-bottom);
  }
  .dock.open { transform: none; }
  .dock-head { flex-direction: column; align-items: stretch; gap: 10px; padding: 0 16px 10px; }
  .dock-head h3 { display: none; }
  .dock-handle {
    display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 10px 0 4px; border: 0; background: none; color: #fff; cursor: pointer;
    font-family: var(--display); font-style: italic; font-weight: 800; font-size: 19px;
  }
  .grabber { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); }
  .dock:not(.open) #dockQ, .dock:not(.open) .dock-list, .dock:not(.open) .ad { visibility: hidden; }
  .dock .ad.ad-dark { margin: 8px 12px 12px; }
  [dir="rtl"] .dock-handle { font-family: "Cairo", var(--text); font-style: normal; }
}
@media (max-width: 640px) and (max-height: 700px) {
  .now-art .art { width: min(58vw, 260px); }
  .now { padding-top: 20px; }
}

/* =====================================================================
   En cours / À suivre / Diffusés récemment
   ===================================================================== */
.tracks { width: 100%; max-width: 560px; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; text-align: start; }
.track, .track-hist li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.track { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.track-now { background: rgba(255,255,255,.11); }
.track-cover { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: rgba(255,255,255,.1); display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: 22px; }
.track-cover.live { font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 11px; color: #fff; background: var(--red); letter-spacing: .04em; }
.track-txt { min-width: 0; display: flex; flex-direction: column; }
.track-txt b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-artist { font-size: 14px; color: rgba(255,255,255,.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.track-label.next { color: var(--green-hi); }
.track-hist h4 { margin: 8px 0 6px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 17px; color: rgba(255,255,255,.85); }
.track-hist ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.track-hist li { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 4px 4px; }
.track-hist .track-cover { width: 40px; height: 40px; border-radius: 8px; font-size: 16px; }
.track-hist b { font-weight: 600; font-size: 15px; }
.track-time { font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 13px; color: rgba(255,255,255,.55); }
[dir="rtl"] .track-hist h4 { font-family: "Cairo", var(--text); font-style: normal; }
@media (min-width: 961px) {
  .now { align-items: flex-start; }
  .now-info { max-height: calc(100vh - 380px); overflow-y: auto; padding-inline-end: 6px; }
}
@media (max-width: 640px) {
  .tracks { margin-top: 22px; }
  .track-hist li { padding: 2px 0; }
}

.tracks, .track-txt { text-align: start; }
.track-txt { align-items: flex-start; }

/* Liste des pays : elle défile seule, dans la fenêtre, sur tous les écrans */
.picker-in { overflow: hidden; }
.picker-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; align-content: start; }
@media (max-width: 640px) {
  .picker { overflow: hidden; }
  .picker-in { height: 100vh; height: 100dvh; padding-bottom: env(safe-area-inset-bottom); }
  .picker-pop { flex: none; max-height: 30vh; overflow-y: auto; }
}

/* =====================================================================
   Aucun défilement latéral : le site et le lecteur restent fixes en largeur
   ===================================================================== */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }   /* « clip » garde l'en-tête collant */
.stage-in { overflow-x: hidden; }
@supports (overflow-x: clip) { .stage-in { overflow-x: clip; } }
.deck, .now, .now-info, .tracks, .track, .track-txt, .dock, .mini, .mini-open, .mini-text { min-width: 0; max-width: 100%; }
/* Textes longs : coupés proprement au lieu d'élargir l'écran */
.now-meta { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-song { max-width: 100%; overflow-wrap: anywhere; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.now-name { max-width: 100%; }
.track-txt > * { max-width: 100%; }
.track-txt b, .track-artist { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-name, .mini-song { max-width: 100%; }
.post-body, .post-title, .post-lede, .card-name, .card-tag, .news-card h3, .event-body h3, .faq-item summary, .faq-item p { overflow-wrap: anywhere; }
.post-body pre, .post-body table { max-width: 100%; overflow-x: auto; display: block; }
.post-body iframe, .post-body video { max-width: 100%; }
@media (max-width: 640px) {
  .stage-in { touch-action: pan-y; }
  .now-song { text-align: center; }
}

/* Mot de passe oublié */
.link-btn { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--red); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.form-ok { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--green) 14%, transparent); color: #0b6b2e; font-weight: 600; }

/* Connexion Google / Facebook */
.social { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); }
.social-btn svg { width: 20px; height: 20px; }
.social-btn.google { background: #fff; color: #1f1f1f; }
.social-btn.facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.social-btn:hover { filter: brightness(.97); }
.or { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.privacy-sec p { margin: 0 0 8px; line-height: 1.6; max-width: 72ch; }

/* =====================================================================
   V5 — en-tête compact, menu burger, filtres pays / catégorie,
   lecteur mobile sans languette par-dessus le contenu, contenu pour les moteurs
   ===================================================================== */
.mast-in { height: 64px; gap: 14px; flex-wrap: nowrap; padding: 0; }
.brand img { height: 44px; }
.mast-btn { height: 40px; }
.mast-btn.icon-only { width: 40px; }
.burger { flex: none; border-color: rgba(255,255,255,.22); }
.burger svg { width: 22px; height: 22px; }
.search-toggle { display: none; }
.mainnav a { padding: 8px 10px; }
.search input { height: 40px; }

/* Menu latéral */
.drawer { position: fixed; inset: 0; z-index: 70; background: rgba(20,4,7,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .2s ease-out; }
.drawer-in {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(340px, 88vw); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink); padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px;
  box-shadow: 18px 0 40px rgba(0,0,0,.3); animation: slideIn .25s cubic-bezier(.2,.8,.2,1);
}
[dir="rtl"] .drawer-in { animation-name: slideInR; box-shadow: -18px 0 40px rgba(0,0,0,.3); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(-100%); } }
@keyframes slideInR { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-logo { height: 38px; width: auto; }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 17px; }
.drawer-nav a span:first-child { width: 24px; text-align: center; font-size: 18px; }
.drawer-nav a:hover { background: var(--page); }
.drawer-nav a[aria-current="page"] { background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); }
.drawer-block h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer-country { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); cursor: pointer; font-weight: 700; text-align: start; }
.drawer-country .flag { font-size: 20px; }
.drawer-country .chg { margin-inline-start: auto; color: var(--red); font-size: 14px; }
.drawer-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.drawer-langs button { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: none; cursor: pointer; font-weight: 600; }
.drawer-langs button[aria-current="true"] { border-color: var(--red); color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); }
body.drawer-open { overflow: hidden; }

/* Filtres du catalogue */
.cat-head { flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-inline-start: auto; }
.filter { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.filter select {
  min-width: 190px; height: 42px; padding: 0 36px 0 12px; border-radius: 12px; border: 1px solid var(--line); background-color: var(--paper); color: var(--ink);
  font: 600 15px var(--text); text-transform: none; letter-spacing: 0; cursor: pointer; 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 d='m6 9 6 6 6-6' fill='none' stroke='%23d7182a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
}
[dir="rtl"] .filter select { padding: 0 12px 0 36px; background-position: left 10px center; }
.filter select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }

/* Contenu lu par les moteurs de recherche avant le démarrage de l'application */
.ssr { width: min(1240px, 100% - 32px); margin: 24px auto; color: var(--muted); font-size: 15px; }
.ssr h1 { font-family: var(--display); font-style: italic; color: var(--ink); }
.ssr ul { columns: 2 260px; padding-inline-start: 18px; }

/* Lecteur : bouton « Toutes les radios » en haut (mobile) */
.stage-all { display: none; }

@media (max-width: 1060px) {
  .mast-in { height: 60px; flex-wrap: nowrap; padding: 0; gap: 10px; }
  .mainnav { display: none; }
  .search { order: 0; flex: 1; flex-basis: auto; max-width: 420px; margin-inline-start: auto; }
  .mast-actions { margin-inline-start: 0; }
}
@media (max-width: 760px) {
  .mast-in { height: 56px; gap: 6px; }
  .brand img { height: 32px; }
  .brand { margin-inline-end: auto; }
  .mast-btn { height: 38px; }
  .mast-btn.icon-only { width: 38px; }
  .langs, .country-btn { display: none; }
  .search-toggle { display: inline-flex; }
  .account-btn { width: 38px; padding: 0; justify-content: center; }
  #accountLabel { display: none; }
  /* La recherche se déplie sous l'en-tête */
  .search { display: none; position: absolute; inset-inline: 0; top: 100%; max-width: none; margin: 0; padding: 8px 16px 10px;
            background: linear-gradient(90deg, var(--red-night), var(--red-deep)); box-shadow: 0 8px 18px rgba(61,5,12,.25); }
  .search svg { left: 30px; }
  [dir="rtl"] .search svg { left: auto; right: 30px; }
  body.search-open .search { display: block; }
  body.search-open .search-toggle { background: #fff; color: var(--red-deep); }
  .mast-in { position: relative; }
  .ad-row { margin-top: 10px; }
  .filters { width: 100%; margin: 4px 0 0; }
  .filter { flex: 1 1 140px; }
  .filter select { min-width: 0; width: 100%; }
  #themes { display: none; }   /* la liste « Catégorie » remplace les puces sur mobile */
}
@media (max-width: 380px) {
  .brand img { height: 28px; }
}

@media (max-width: 640px) {
  /* Le tiroir des radios est caché tant qu'on ne l'ouvre pas : plus rien ne masque le lecteur */
  .stage-top { display: flex; align-items: center; gap: 10px; }
  .stage-brand { margin-inline-end: auto; }
  .stage-all {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 14px;
  }
  .stage-all svg { width: 18px; height: 18px; }
  .stage-all[aria-expanded="true"] { background: #fff; color: var(--red-deep); }
  .stage-in { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .dock { transform: translateY(105%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s .32s; z-index: 6; }
  .dock.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2,.8,.2,1); }
  .dock-handle { padding-top: 12px; }
}

/* =====================================================================
   V6 — drapeaux sur Windows, publicités plus compactes et soignées,
   liste « Toutes les radios » du lecteur avec choix du pays
   ===================================================================== */
/* Drapeaux : Windows n'affiche pas les drapeaux emoji ; cette police (Twemoji, licence MIT/CC-BY)
   ne couvre que les caractères des drapeaux, le reste du texte garde sa police. */
@font-face {
  font-family: "Twemoji Country Flags";
  src: url("/assets/fonts/TwemojiCountryFlags.woff2") format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  font-display: swap;
}
:root {
  --text: "Twemoji Country Flags", "Barlow", system-ui, sans-serif;
  --display: "Twemoji Country Flags", "Barlow Condensed", "Arial Narrow", sans-serif;
}
select, option, optgroup, .flag { font-family: "Twemoji Country Flags", "Barlow", system-ui, sans-serif; }
[dir="rtl"] body, [dir="rtl"] select, [dir="rtl"] option { font-family: "Twemoji Country Flags", "Cairo", var(--text); }

/* ---------- Publicités : hauteur maîtrisée, finition soignée ---------- */
.ad.ad-rot { display: block; }
.ad[data-ad="leaderboard"] { width: min(970px, 100%); max-width: none; min-height: 0; }
.ad[data-ad="home-side"] { min-height: 0; }
.ad[data-ad="article-side"] { min-height: 0; }
.ad[data-ad="article-bottom"], .ad[data-ad="news-feed"], .ad[data-ad="events-feed"] { min-height: 0; }
.ad.ad-dark { min-height: 0; }
.house {
  border: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 46%),
    radial-gradient(120% 180% at 0% 0%, var(--hb2), var(--hb) 64%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 12px 28px -18px rgba(0,0,0,.6);
  transition: transform .2s, box-shadow .2s;
}
.house:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 16px 34px -18px rgba(0,0,0,.7); }
.house::after { /* reflet discret */
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--ha) 22%, transparent), transparent 70%);
}
.house-icon { box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 8px 18px -8px rgba(0,0,0,.6); background: #fff; }
.house-brand { text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.house-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 14px; }
.house-arrow { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.house-arrow svg { width: 18px; height: 18px; }
[dir="rtl"] .house-arrow { transform: scaleX(-1); }
.house-tag {
  position: absolute; top: 7px; inset-inline-end: 9px; z-index: 1; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.78); background: rgba(0,0,0,.25);
}
/* Bandeau : 72 px sur ordinateur */
.house-wide { min-height: 72px; padding: 10px 18px; gap: 14px; }
.house-wide .house-icon { width: 48px; height: 48px; border-radius: 12px; }
.house-wide .house-head { font-size: 20px; }
.house-wide .house-text { font-size: 13.5px; }
.house-wide::before { width: 70px; }
.house-brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.house-sp { padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.25); color: rgba(255,255,255,.75); font-size: 9.5px; letter-spacing: .04em; filter: none; }
/* Bandeau étroit (mobile, lecteur) : une ligne fine, flèche ronde */
@container (max-width: 560px) {
  .house-wide { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 64px; padding: 8px 10px 8px 10px; gap: 10px; border-radius: 12px; }
  .house-wide .house-icon { width: 42px; height: 42px; border-radius: 11px; }
  .house-wide .house-head { font-size: 16px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .house-wide .house-brand { font-size: 10px; }
  .house-wide .house-text { display: none; }
  .house-wide .house-cta { grid-column: auto; margin: 0; width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .house-wide .house-cta-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* Pavé : plus compact */
.house-box { min-height: 0; padding: 18px; gap: 10px; grid-template-rows: auto auto auto; }
.house-box .house-icon { width: 52px; height: 52px; }
.house-box .house-head { font-size: 22px; }
.house-box .house-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.house-box .house-cta { justify-self: stretch; justify-content: center; }
/* Colonne d'article : moins haute */
.house-tall { min-height: 0; padding: 28px 20px; gap: 14px; }
.house-tall .house-icon { width: 88px; height: 88px; }
.house-tall .house-head { font-size: 28px; }
.house-tall .house-cta { align-self: center; }
/* Lecteur (fond sombre) */
.ad.ad-dark .house { box-shadow: none; border-color: rgba(255,255,255,.12); }

/* ---------- Lecteur : « Toutes les radios » avec choix du pays ---------- */
.dock-head { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 14px 10px; }
.dock-row { display: flex; align-items: center; gap: 10px; }
.dock-row h3 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dock-country select {
  max-width: 190px; height: 36px; padding: 0 30px 0 12px; border-radius: 999px; cursor: pointer; appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 700; font-size: 14px;
  background: rgba(255,255,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center / 16px;
}
[dir="rtl"] .dock-country select { padding: 0 12px 0 30px; background-position: left 9px center; }
.dock-country select option, .dock-country select optgroup { color: #1d1416; background: #fff; }
.dock-head input { flex: none; height: 36px; }
.dock-list { flex: 1 1 auto; min-height: 120px; }
.dock-empty { padding: 18px 12px; color: rgba(255,255,255,.7); list-style: none; }
.dock .ad.ad-dark { flex: none; margin: 6px 10px 10px; }
@media (min-width: 961px) {
  .dock { max-height: calc(100vh - 300px); min-height: 360px; }
}
@media (max-width: 640px) {
  .dock-row h3 { display: block; font-size: 19px; }
  .dock-head { padding: 0 14px 10px; }
  .dock-handle span:not(.grabber) { display: none; }   /* le titre est sur la ligne du pays */
  .dock-handle { padding: 10px 0 2px; }
  .dock-country select { max-width: 52vw; }
}

/* Pied de page : genres et villes */
.foot-genres, .foot-cities { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-genres a, .foot-cities a { text-decoration: none; }
.foot-genres a:hover, .foot-cities a:hover { text-decoration: underline; }

/* Radios publiques (lien vers le lecteur officiel) */
.pub-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.pub-card .art { width: 200px; height: 200px; border-radius: 22px; font-size: 26px; }
.pub-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pub-body .post-title { margin: 0; }
.pub-body .live-badge { margin: 0; }
.pub-body .btn-play { text-decoration: none; }
.pub-note { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .pub-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pub-body { align-items: center; }
  .pub-card .art { width: 150px; height: 150px; }
}
/* Fréquences FM par ville */
.freq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.freq-city { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.freq-city h2 { margin: 0 0 8px; font-family: var(--display); font-style: italic; font-size: 22px; }
.freq-city table { width: 100%; border-collapse: collapse; }
.freq-city td { padding: 7px 0; border-top: 1px solid var(--line); }
.freq-city td:first-child { display: flex; align-items: center; gap: 10px; }
.freq-city a { text-decoration: none; font-weight: 600; }
.freq-city a:hover { color: var(--red); }
.freq-v { text-align: end; font-family: "Share Tech Mono", ui-monospace, monospace; color: var(--red); white-space: nowrap; }
.freq-play { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--page); color: var(--green); cursor: pointer; }
.freq-play svg { width: 14px; height: 14px; }
.freq-play.on { background: var(--green); color: #fff; }
.freq-pubs { display: flex; flex-wrap: wrap; gap: 8px; }
.freq-pubs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 600; }
.freq-pubs a:hover { border-color: var(--red); color: var(--red); }

/* =====================================================================
   V7 — confort d'écoute : reprise, minuterie, WhatsApp, thème, application, accueil mobile compact
   ===================================================================== */
.resume { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.resume-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; text-align: start; box-shadow: 0 8px 20px -14px rgba(0,0,0,.4); }
.resume-btn:hover { border-color: var(--green); }
.resume-art .art { width: 44px; height: 44px; border-radius: 10px; }
.resume-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.resume-txt small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.resume-txt b { font-family: var(--display); font-style: italic; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-play { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; flex: none; }
.resume-play svg { width: 20px; height: 20px; }
.resume-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; flex: none; }
.resume-x svg { width: 18px; height: 18px; }
/* Minuterie et WhatsApp */
.sleep-btn { position: relative; }
.sleep-btn.on { background: var(--gold); color: var(--red-night); }
.sleep-left { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font: 700 10px/18px var(--text); }
.sleep-left:empty { display: none; }
.wa-btn:hover { color: #25d366; }
@media (max-width: 640px) {
  .volume { justify-content: center; gap: 14px; }
  .volume .ic.sm { width: 42px; height: 42px; background: rgba(255,255,255,.08); border-radius: 50%; }
}
/* Thème et installation dans le menu */
.drawer-theme { grid-template-columns: repeat(3, 1fr); }
.drawer-theme button[aria-pressed="true"] { border-color: var(--red); color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); }
.drawer-install { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--green), var(--green-hi)); }
/* Accueil mobile : la radio à la une tient sur moins de la moitié de l'écran */
@media (max-width: 640px) {
  .hero { padding-top: 14px; gap: 14px; }
  .feature { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px; align-items: center; }
  .feature-logo { width: 96px; border-radius: 14px; }
  .feature-body .live-badge { margin: 0 0 4px; }
  .feature-name { font-size: clamp(26px, 8vw, 34px); margin: 0; }
  .feature-freq { margin: 2px 0 0; font-size: 14px; }
  .feature-song { display: none; }
  .feature-actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature-actions .btn-play, .feature-actions .btn-ghost { height: 42px; font-size: 15px; justify-content: center; width: 100%; padding: 0 8px; white-space: nowrap; }
  .feature::before { right: -190px; }
  .side .top { padding: 14px; }
  .top-list li:nth-child(n+4) { display: none; }   /* 3 incontournables sur mobile : la liste complète arrive plus vite */
}

/* =====================================================================
   V8 — stabilité de la mise en page (CLS), cartes-liens, texte de page
   ===================================================================== */
/* Tant que l'application n'a pas affiché la liste, rien ne la suit à l'écran : rien ne « saute » ensuite */
body:not(.app-ready) .catalog { min-height: 100vh; }
body:not(.app-ready) .teaser, body:not(.app-ready) .page-text, body:not(.app-ready) .foot { visibility: hidden; }
/* Place réservée aux publicités avant leur affichage */
.ad[data-ad="leaderboard"] { min-height: 78px; }
.ad[data-ad="home-side"] { min-height: 235px; }
.ad.ad-dark[data-ad="player"] { min-height: 64px; }
@media (max-width: 760px) { .ad[data-ad="leaderboard"] { min-height: 64px; } }
.ad.ad-empty[data-ad="leaderboard"] { min-height: 0; }
/* Cartes radio et incontournables : de vrais liens */
a.card:not(.card-ad) { display: block; color: inherit; text-decoration: none; }
a.top-item { color: inherit; text-decoration: none; }
/* « Reprendre l'écoute » flotte au-dessus du lecteur (n'entre pas dans la page) */
.resume { position: fixed; z-index: 41; left: 50%; translate: -50% 0; bottom: calc(var(--mini-h) + 12px + env(safe-area-inset-bottom)); width: min(520px, calc(100% - 24px)); margin: 0; animation: rise .3s ease-out; }
.resume-btn { box-shadow: 0 14px 34px -12px rgba(0,0,0,.5); }
.resume-x { background: var(--paper); box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
/* Texte propre à la page (radio, genre, ville, pays) */
.page-text { margin-top: 28px; margin-bottom: 8px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); line-height: 1.6; }
.page-text h2 { font-family: var(--display); font-style: italic; font-size: 24px; margin: 18px 0 8px; }
.page-text h2:first-child { margin-top: 0; }
.page-text p { margin: 0 0 10px; max-width: 80ch; }
.page-text ul { columns: 2 260px; padding-inline-start: 18px; margin: 0 0 10px; }
.page-text a { color: var(--red); font-weight: 600; text-decoration: none; }
.page-text a:hover { text-decoration: underline; }
.page-text table { border-collapse: collapse; }
.page-text td, .page-text th { padding: 4px 12px 4px 0; text-align: start; }
.empty .btn-small { margin-top: 10px; }
/* Place réservée avant l'arrivée des données : incontournables, fréquence de la radio à la une */
.top-list { min-height: 320px; }
.feature-freq { min-height: 1.5em; }
body:not(.app-ready) .hero .feature-body, body:not(.app-ready) .top-list { visibility: hidden; }
@media (max-width: 640px) { .top-list { min-height: 192px; } }

/* Logo en cours de chargement : invisible, puis apparition douce */
.art img { transition: opacity .2s; }
.art img.pending { opacity: 0; }
