/* ============================================================
   CMS RADIO PREMIUM — Feuille de styles principale
   ============================================================ */

/* Variables injectées dynamiquement par PHP via style en ligne */
:root {
  --primary:      #e63946;
  --secondary:    #1d3557;
  --accent:       #457b9d;
  --bg:           #0d0d0d;
  --bg2:          #1a1a2e;
  --text:         #f0f0f0;
  --text-muted:   #9ca3af;
  --nav-bg:          #0d0d0d;
  --player-bg:       #0d0d1e;
  --border:          rgba(255,255,255,.08);
  --btn-text:        #ffffff;
  --player-btn-text: #ffffff;
  --nav-text:        var(--text-muted);
  --footer-bg:       var(--bg2);
  --player-cover-sz: 48px;
  --radius:       12px;
  --radius-sm:    6px;
  --shadow:       0 4px 24px rgba(0,0,0,.4);
  --transition:   .25s ease;
  --player-h:     72px;
  --nav-h:        70px;
  --nav-extra-h:  0px;
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 0; /* Le footer absorbe l'espace du player sticky */
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: calc(var(--nav-h) + var(--nav-extra-h, 0px));
  background: color-mix(in srgb, var(--nav-bg) 82%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: stretch;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: 1400px; margin: 0 auto; width: 100%;
  padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
  height: var(--nav-h); flex-shrink: 0;
}
body[data-nav-full-width="1"] .nav-container {
  max-width: 100%;
  padding: 0 var(--nav-fw-padding, 0px);
}
body[data-nav-full-width="1"] .nav-social-bar-wrap {
  max-width: 100%;
  padding: 0 var(--nav-ded-padding, var(--nav-fw-padding, 0px));
}
body[data-nav-full-width="1"] .nav-logo {
  padding-left: var(--nav-logo-margin, 0px);
}
/* Quand pleine largeur désactivée : contraindre navp-bar au même centrage que nav-container */
body:not([data-nav-full-width="1"]) .navp-bar {
  padding-left: max(28px, calc((100vw - 1400px) / 2));
  padding-right: max(28px, calc((100vw - 1400px) / 2));
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; white-space: nowrap;
}
.nav-logo img { height: var(--logo-h, calc(var(--nav-h, 70px) * .57)); width: auto; max-height: var(--logo-h, calc(var(--nav-h, 70px) * .85)); object-fit: contain; }
.nav-logo .logo-light,
.left-nav-logo .logo-light { display: none; }
html.light .nav-logo .logo-dark,
html.light .left-nav-logo .logo-dark  { display: none; }
html.light .nav-logo .logo-light,
html.light .left-nav-logo .logo-light { display: block; }
.nav-logo .logo-text span { color: var(--primary); }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; overflow: visible; min-width: 0;
}
.nav-links a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: var(--nav-font-size, .9rem); font-weight: 500; white-space: nowrap;
  color: var(--nav-text);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.07);
}
.nav-links a svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Dropdown submenus */
.nav-item { position: relative; }
.nav-item > a .nav-chevron { width: 12px; height: 12px; transition: transform .2s; flex-shrink: 0; }
.nav-item:hover > a .nav-chevron,
.nav-item:focus-within > a .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; /* top:100% — pas de gap pour éviter la perte du hover */
  min-width: 180px; background: var(--bg2-solid, var(--bg2));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 6px 6px;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 910;
}
/* Pont invisible pour combler le micro-gap entre le parent et le dropdown */
.nav-dropdown::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
body.overlay-open .nav-item:hover .nav-dropdown,
body.overlay-open .nav-item:focus-within .nav-dropdown,
body.overlay-open .nav-item.open .nav-dropdown {
  opacity: 0; pointer-events: none; transform: translateY(-4px);
}
.nav-item.open > a .nav-chevron { transform: rotate(180deg); }
.nav-dropdown a {
  padding: 8px 12px; border-radius: 6px;
  font-size: .85rem; font-weight: 500;
  color: var(--text-muted); white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.nav-dropdown a:hover { color: var(--text); background: rgba(255,255,255,.07); }
html.light .nav-dropdown { background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
html.light .nav-dropdown a { color: var(--text-muted) !important; }
html.light .nav-dropdown a:hover { color: var(--text) !important; background: rgba(0,0,0,.05) !important; }
/* Dropdown lisible même quand texte navbar forcé en blanc (nav-top-overlap) */
body.nav-top-overlap .nav-dropdown a { color: var(--text-muted) !important; }
body.nav-top-overlap .nav-dropdown a:hover { color: var(--text) !important; }

/* Mobile submenu collapsible */
.nav-mobile-group { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile-parent-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 16px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  border: 1px solid transparent; background: none; cursor: pointer; text-align: left;
}
.nav-mobile-parent-btn:hover { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--border); }
.nav-mobile-parent-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-mobile-chevron-icon { margin-left: auto; width: 16px !important; height: 16px !important; transition: transform .2s; }
.nav-mobile-group.open .nav-mobile-chevron-icon { transform: rotate(180deg); }
.nav-mobile-sub { display: none; flex-direction: column; gap: 2px; padding: 0 0 4px 16px; }
.nav-mobile-group.open .nav-mobile-sub { display: flex; }
.nav-mobile-child { font-size: .92rem; }

.nav-cta {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
}
.btn-live {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: var(--primary);
  color: var(--btn-text); font-weight: 600; font-size: .88rem;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-live:hover { opacity: .85; transform: translateY(-1px); }
.btn-live .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: livePulse 1.4s infinite;
}
@keyframes playerSpin { to { transform: rotate(360deg); } }
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}
.nav-burger {
  display: none;
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); border-radius: 6px;
  padding: 6px 8px; cursor: pointer;
  align-items: center; justify-content: center;
  transition: color .2s, border-color .2s;
  flex-shrink: 0;
}
.nav-burger:hover { color: var(--text); border-color: var(--primary); }
.nav-burger svg { width: 18px; height: 18px; display: block; }
.nav-burger svg { width: 22px; height: 22px; }

/* Logo en tête du drawer mobile — masqué par défaut (nav bar visible au-dessus) */
.nav-mobile-logo {
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  flex-shrink: 0;
}
.nav-mobile-logo img {
  max-height: 48px; width: auto; max-width: 180px; object-fit: contain;
}
.nav-mobile-logo svg { width: 28px; height: 28px; }
.nav-mobile-logo-text { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-left: 8px; }
/* Dark/light logo switching */
.nav-mobile-logo .logo-light { display: none; }
html.light .nav-mobile-logo .logo-dark { display: none; }
html.light .nav-mobile-logo .logo-light { display: block; }

/* En mode nav-overflow (drawer desktop) : logo positionné dans la zone navbar */
body:has(#navbar.nav-overflow) .nav-mobile-logo {
  display: flex;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + var(--nav-extra-h, 0px));
  padding: 0 20px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

/* Mobile menu */
.nav-mobile {
  display: none; position: fixed;
  top: calc(var(--nav-h) + var(--nav-extra-h, 0px)); left: 0; right: 0; bottom: 0;
  background: var(--nav-bg); z-index: 850;
  flex-direction: column; gap: 4px;
  padding: 16px;
  overflow-y: auto;
}
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes navSlideUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
.nav-mobile.open { display: flex; animation: navSlideDown .22s ease forwards; }
.nav-mobile.closing { display: flex; animation: navSlideUp .22s ease forwards; }
.nav-mobile a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  border: 1px solid transparent;
}
.nav-mobile a:hover {
  color: var(--text); background: rgba(255,255,255,.05);
  border-color: var(--border);
}
.nav-mobile a svg { width: 18px; height: 18px; }

/* ============================================================
   SLIDER / HERO
   ============================================================ */
/* Sections hero + slider : colonnes flex pour que l'enfant puisse s'étirer à la hauteur de la ligne */
#accueil, #hero-section { padding: 0; display: flex; flex-direction: column; }

/* ── Hero Player Module ────────────────────────────────────── */
#hero-player {
  position: relative; overflow: hidden;
  /* flex:1 permet de remplir la section quand elle s'étire (côte à côte avec le slider) */
  flex: 1 0 auto;
  min-height: var(--hero-h, calc(100svh - var(--nav-h)));
  display: flex; align-items: center; justify-content: center;
  /* Fond sombre par défaut : évite le flash blanc avant que la pochette soit chargée */
  background: color-mix(in srgb, var(--primary, #3b82f6) 12%, #0a0a12);
}
#hero-player.hero-no-bg {
  background: transparent !important;
}
#hero-player.hero-no-bg::after,
#hero-player.hero-no-bg::before {
  display: none !important;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(48px) brightness(.35) saturate(1.6);
  transform: scale(1.12);
  transition: background-image .8s ease;
  will-change: background-image;
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 56px;
  width: 100%; max-width: 1100px; padding: 0 56px;
}
#hero-player.hero-full-width .hero-inner { max-width: none; }

/* Hero : options avancées */
#hero-player.hero-no-cover   .hero-cover { display: none; }
#hero-player.hero-no-waves   .hero-waves { display: none; }
#hero-player.hero-align-center            { justify-content: center; }
#hero-player.hero-align-center .hero-inner {
  flex-direction: column; text-align: center;
  align-items: center; gap: 32px;
  padding-top: 48px; padding-bottom: 48px;
}
#hero-player.hero-align-center .hero-cover { order: -1; }
#hero-player.hero-align-center .hero-info  { display: flex; flex-direction: column; align-items: center; }
#hero-player.hero-align-center .hero-stream { transform: none !important; }
#hero-player.hero-align-center .hero-title  { white-space: normal; text-align: center; }
#hero-player.hero-blur-light  .hero-bg { filter: blur(20px) brightness(.55) saturate(1.2); }
#hero-player.hero-blur-intense .hero-bg { filter: blur(80px) brightness(.2) saturate(2); }
#hero-player.hero-solid-bg { background: var(--hero-solid-dark, #1a1a2e); }
#hero-player.hero-solid-bg .hero-bg { display: none; }
html.light #hero-player.hero-solid-bg { background: var(--hero-solid-light, #f0f4ff); }
/* Clip actif en fond : contenu du hero légèrement transparent */
#hero-player .hero-inner { transition: opacity .6s ease; }
#hero-player.has-clip .hero-inner { opacity: .6; }
#hero-player.has-clip.clip-hover .hero-inner { opacity: 1; }
.hero-cover {
  flex-shrink: 0;
  --_cover-max: calc(var(--hero-h, 100svh) - 64px);
  width: clamp(120px, min(20vw, var(--_cover-max)), 260px);
  height: clamp(120px, min(20vw, var(--_cover-max)), 260px);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08);
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}
.hero-cover img  { width: 100%; height: 100%; object-fit: cover; display: none; }
.hero-cover svg  { width: 52px; height: 52px; color: rgba(255,255,255,.25); }
.hero-info { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: 7px;
  background: var(--primary); color: var(--btn-text);
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .9px; margin-bottom: 18px;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; animation: livePulse 1.4s infinite;
}
.hero-stream {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--hero-c-stream, rgba(255,255,255,.45)); margin: 0 0 10px;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.hero-title {
  font-size: clamp(1.5rem, 3.2vw, 2.6rem); font-weight: 800;
  line-height: 1.12; color: var(--hero-c-title, #fff); margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Track : wrapper du texte animé (ping-pong, pas de clone nécessaire) */
.hero-title-track { display: inline-block; white-space: nowrap; will-change: transform; }
#hero-title-inner { display: inline-block; }
/* Défilement ping-pong activé par JS quand le titre dépasse (desktop uniquement) */
@media (min-width: 701px) {
  .hero-title.is-scrolling { text-overflow: clip; }
  .hero-title.is-scrolling .hero-title-track {
    animation: hero-title-scroll var(--hero-marquee-dur, 6s) ease-in-out infinite;
  }
}
@keyframes hero-title-scroll {
  /* Pause à gauche → défile vers la droite → pause à droite → revient → pause … */
  0%,  15% { transform: translateX(0); }
  42%, 58% { transform: translateX(var(--hero-marquee-dist, 0px)); }
  85%, 100% { transform: translateX(0); }
}
.hero-artist {
  font-size: clamp(.92rem, 1.6vw, 1.15rem);
  color: var(--hero-c-artist, rgba(255,255,255,.65)); margin: 0 0 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.hero-waves {
  display: flex; align-items: flex-end; gap: 5px; height: 30px;
}
.hero-wave-bar {
  width: 4px; border-radius: 3px; background: var(--primary);
  transform-origin: bottom;
  animation: heroWave 1.1s ease-in-out infinite;
}
.hero-wave-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.hero-wave-bar:nth-child(2) { height: 22px; animation-delay: .14s; }
.hero-wave-bar:nth-child(3) { height: 14px; animation-delay: .28s; }
.hero-wave-bar:nth-child(4) { height: 28px; animation-delay: .42s; }
.hero-wave-bar:nth-child(5) { height: 16px; animation-delay: .56s; }
.hero-wave-bar:nth-child(6) { height: 20px; animation-delay: .70s; }
/* État initial (radio jamais lancée) : animation désactivée, barres aplaties en bas */
#hero-player:not(.is-playing):not(.is-paused) .hero-wave-bar {
  animation-name: none; /* désactive l'animation → transform CSS reprend le dessus */
  transform: scaleY(0.07);
  opacity: .3;
  transition: transform .5s ease, opacity .3s ease;
}
/* Lecture en cours : equalizer animé pleine opacité */
#hero-player.is-playing .hero-wave-bar { animation-play-state: running; opacity: 1; }
/* Pause : barres figées à leur position actuelle */
#hero-player.is-paused  .hero-wave-bar { animation-play-state: paused;  opacity: .45; }
@keyframes heroWave {
  0%,100% { transform: scaleY(1); }
  50%      { transform: scaleY(.3); }
}
.hero-play-btn {
  flex-shrink: 0;
  width: clamp(76px, 9vw, 108px); height: clamp(76px, 9vw, 108px);
  border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: var(--btn-text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 50px color-mix(in srgb, var(--primary) 55%, transparent);
  transition: transform .2s, opacity .15s;
}
.hero-play-btn svg   { width: clamp(28px,3.5vw,40px); height: clamp(28px,3.5vw,40px); }

/* ── Hero Player : micro-animations par élément au survol ───── */
/* Transitions de base sur tous les éléments */
.hero-cover        { transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease; }
.hero-cover img    { transition: transform .45s ease; }
.hero-badge        { transition: transform .25s ease, filter .25s ease; cursor: default; }
.hero-stream       { transition: color .25s ease, transform .25s ease; }
.hero-title        { transition: transform .25s ease, text-shadow .25s ease; cursor: default; }
.hero-artist       { transition: transform .25s ease, color .25s ease; cursor: default; }
.hero-waves        { cursor: default; }
.hero-play-btn     { transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, opacity .15s; }

@media (hover: hover) {
  /* Pochette : zoom + lévitation + ombre renforcée */
  .hero-cover:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 52px 110px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.18);
  }
  .hero-cover:hover img { transform: scale(1.08); }

  /* Badge EN DIRECT */
  .hero-badge:hover {
    transform: translateY(-3px) scale(1.04);
    filter: brightness(1.12);
  }
  /* Nom de la station */
  .hero-stream:hover {
    color: rgba(255,255,255,.8);
    transform: translateX(3px);
  }
  /* Titre */
  .hero-title:hover {
    transform: translateX(5px);
    text-shadow: 0 2px 24px rgba(255,255,255,.2);
  }
  /* Artiste */
  .hero-artist:hover {
    transform: translateX(8px);
    color: rgba(255,255,255,.9);
  }
  /* Barres de son : accélération au survol — uniquement si la radio joue */
  #hero-player.is-playing .hero-waves:hover .hero-wave-bar {
    animation-duration: .55s;
    background: color-mix(in srgb, var(--primary) 85%, #fff);
  }
  /* Bouton play */
  .hero-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 80px color-mix(in srgb, var(--primary) 80%, transparent);
  }
}
.hero-play-btn .icon-pause { display: none; }
.hero-play-btn .icon-spin  { display: none; }
#hero-player.is-playing .hero-play-btn .icon-play  { display: none; }
#hero-player.is-playing .hero-play-btn .icon-pause { display: block; }
#hero-player.is-loading .hero-play-btn .icon-play  { display: none; }
#hero-player.is-loading .hero-play-btn .icon-pause { display: none; }
#hero-player.is-loading .hero-play-btn .icon-spin  { display: block; animation: playerSpin .75s linear infinite; }
@media (max-width: 700px) {
  .hero-inner { flex-direction: column; gap: 28px; padding: 40px 24px; text-align: center; }
  .hero-cover  { width: 150px; height: 150px; }
  .hero-title  { font-size: 1.5rem; white-space: normal; }
  .hero-waves  { justify-content: center; }
  .hero-info   { display: flex; flex-direction: column; align-items: center; }
}
#sections-wrapper { padding-top: calc(var(--nav-h) + var(--nav-extra-h, 0px)); }
#slider {
  position: relative; overflow: hidden;
  /* flex:1 permet de remplir la section quand elle s'étire (côte à côte avec le hero) */
  flex: 1 0 auto;
  min-height: var(--slider-h, calc(100svh - var(--nav-h)));
  margin-top: 0;
}

/* ---- Styles de slider ---- */
/* left : contenu aligné à gauche */
#slider.style-left .slide { justify-content: flex-start; }
#slider.style-left .slide-content { text-align: left; padding: 24px 5% 24px 8%; max-width: 600px; }

/* cinematic : contenu en bas à gauche, vignette forte */
#slider.style-cinematic .slide-bg::after {
  background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.15) 100%);
}
#slider.style-cinematic .slide { align-items: flex-end; justify-content: flex-start; }
#slider.style-cinematic .slide-content { text-align: left; padding: 32px 5% 48px 8%; max-width: 700px; }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .8s ease;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.slide.active { opacity: 1; pointer-events: auto; z-index: 2; }
/* Spécificité renforcée : protège la visibilité des slides contre les CSS de plugins */
#slider > [data-radio-slide]          { opacity: 0 !important; pointer-events: none !important; z-index: 1 !important; }
#slider > [data-radio-slide].active   { opacity: 1 !important; pointer-events: auto !important; z-index: 2 !important; }
.slider-arrow { z-index: 10; }
.slider-dots  { z-index: 10; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.slide-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 100%);
}
.slide-bg.no-overlay::after { display: none; }

/* Slider bg modes */
#slider.bg-mode-contain-blur .slide-bg {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}
#slider.bg-mode-contain-blur .slide::before {
  content: '';
  position: absolute;
  inset: -5%;
  background: var(--slide-bg) center/cover no-repeat;
  filter: blur(25px) brightness(.5);
  z-index: 0;
}
#slider.bg-mode-zoom .slide-bg {
  animation: slide-ken-burns 16s ease-in-out infinite alternate;
}
@keyframes slide-ken-burns {
  from { background-position: 30% 40%; transform: scale(1); }
  to   { background-position: 70% 60%; transform: scale(1.08); }
}

.slide-bg.no-image {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--bg2) 60%, var(--bg) 100%);
}
.slide-content {
  position: relative; z-index: 2;
  text-align: center; padding: 24px;
  max-width: 800px;
}
.slide-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 999px;
  background: var(--primary); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.slide-badge svg { width: 12px; height: 12px; }
.slide-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.slide-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
}
.slide-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px;
  background: var(--primary); color: #fff;
  font-size: 1rem; font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--slide-btn-glow, none);
}
.slide-btn:hover { transform: translateY(-2px); box-shadow: var(--slide-btn-glow-hover, none); }
.slide-btn svg { width: 16px; height: 16px; }
.slider-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: all var(--transition);
  cursor: pointer;
}
.slider-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; padding: 12px;
  background: rgba(0,0,0,.4); border-radius: 50%;
  color: #fff; transition: background var(--transition);
  backdrop-filter: blur(4px);
}
@media (max-width: 600px) {
  .slide-content { padding-left: 70px; padding-right: 70px; }
}
.slider-arrow:hover { background: rgba(0,0,0,.7); }
.slider-arrow svg { width: 20px; height: 20px; display: block; }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-next svg { transform: rotate(0deg); }
.slider-prev svg { transform: rotate(180deg); }

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
section { padding: 60px 0; }
/* Décalage ancres : compense la navbar fixe + le player quand il est en haut */
section[id] { scroll-margin-top: calc(var(--nav-h) + var(--nav-extra-h, 0px)); }
body[data-player-style="sticky"][data-player-position="top"] section[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--player-custom-h, var(--player-h)));
}
#classement, #equipe, #dedicaces, #meteo, #partenaires { padding: 30px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 999px;
  background: var(--primary); border: 1px solid var(--primary);
  color: #fff; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 12px;
  /* Lisible quelle que soit la couleur de fond de section */
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.section-tag svg { width: 12px; height: 12px; }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
  /* Contraste de sécurité : garantit la lisibilité sur n'importe quelle couleur de fond */
  text-shadow: 0 1px 10px rgba(0,0,0,.4), 0 0 40px rgba(0,0,0,.15);
}
.section-sub {
  color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.divider {
  width: 48px; height: 3px; border-radius: 2px;
  background: var(--primary); margin: 12px auto 0;
}

/* ============================================================
   NOW PLAYING / DERNIERS TITRES
   ============================================================ */
#direct { background: var(--bg2); position: relative; overflow: hidden; }
/* Blur background cover */
#np-section-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(60px) brightness(.35) saturate(1.4);
  transform: scale(1.1);
  transition: background-image .6s ease;
  pointer-events: none;
}
.nowplaying-card {
  display: flex; align-items: center; gap: 24px;
  background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius); padding: 24px 32px;
  max-width: 700px; margin: 0 auto 48px;
}
.nowplaying-cover {
  width: 90px; height: 90px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.nowplaying-cover img { width: 100%; height: 100%; object-fit: cover; }
.nowplaying-cover svg { width: 36px; height: 36px; color: var(--text-muted); }
.nowplaying-info { flex: 1; min-width: 0; }
.nowplaying-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: 4px;
}
.nowplaying-title {
  font-size: 1.25rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Toujours blanc — la carte a toujours un fond sombre */
.nowplaying-title { color: #fff; }
.nowplaying-artist { color: rgba(255,255,255,.75); font-size: .95rem; margin-top: 2px; }
.nowplaying-eq {
  display: flex; align-items: flex-end; gap: 3px; height: 20px;
}
.nowplaying-eq span {
  width: 4px; border-radius: 2px; background: var(--primary);
  animation: eq 1s infinite ease-in-out;
}
.nowplaying-eq span:nth-child(2) { animation-delay: .2s; }
.nowplaying-eq span:nth-child(3) { animation-delay: .4s; }
@keyframes eq {
  0%, 100% { height: 4px; } 50% { height: 20px; }
}

/* Historique titres — cartes avec cover en fond */
.track-history {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.track-history .track-card:nth-child(n+11) { display: none; }
.track-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.05);
  background-size: cover;
  background-position: center;
  cursor: default;
  transition: transform .22s ease, box-shadow .22s ease;
}
.track-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.track-card-icon {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--text-muted);
}
.track-card-icon svg { width: 36px; height: 36px; }
.track-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
  padding: 24px 10px 10px;
}
.track-card-time {
  display: inline-block;
  font-size: .66rem; font-weight: 700; letter-spacing: .4px;
  color: #fff; margin-bottom: 5px;
  background: color-mix(in srgb, var(--primary) 70%, transparent);
  backdrop-filter: blur(4px);
  padding: 2px 7px; border-radius: 20px;
}
.track-card-title {
  font-size: .82rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-card-artist {
  font-size: .72rem; color: rgba(255,255,255,.65);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.track-vote-btn {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.45); border: none; border-radius: 20px;
  color: rgba(255,255,255,.7); cursor: pointer; padding: 3px 7px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: .7rem; font-weight: 600; line-height: 1;
  transition: background .18s, color .18s, transform .15s;
  z-index: 2;
}
.track-vote-btn:hover { background: rgba(0,0,0,.65); color: #fff; transform: scale(1.08); }
.track-vote-btn.voted { background: var(--primary); color: #fff; }
.track-vote-btn.voted svg { fill: currentColor; stroke: currentColor; }
.track-vote-count:empty { display: none; }
/* Cœur dans l'historique : plus grand, coin haut-droite de la pochette */
.track-history .track-vote-btn { padding: 6px 10px; top: 8px; right: 8px; }
.track-history .track-vote-btn svg { width: 20px; height: 20px; }

/* ============================================================
   ACTUALITÉS
   ============================================================ */
#actualites { background: var(--bg); }
/* Filtres RSS (ville + source) */
#rss-city-filter, #rss-source-filter { display: flex; gap: 8px; flex-wrap: wrap; }
#rss-city-filter { margin-bottom: 8px; }
#rss-source-filter { margin-bottom: 12px; }
.rss-filter-btn {
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--nav-bg); color: var(--text-muted);
  font-size: .8rem; cursor: pointer; transition: all .2s;
}
.rss-filter-btn.active,
.rss-filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
/* Espace entre deux grilles successives (même valeur que le gap interne = seamless) */
.news-grid + .news-grid { margin-top: 0; }
/* Mode groupé par source */
.news-feed-group { margin-bottom: 32px; }
.news-feed-group:last-child { margin-bottom: 0; }
.news-feed-group-title {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; background: var(--primary);
  padding: 7px 18px; border-radius: 30px;
  margin-bottom: 24px;
}
.news-feed-group-title::before {
  content: '';
  display: inline-block; width: 6px; height: 6px;
  background: rgba(255,255,255,.7); border-radius: 50%;
}
.news-card {
  /* --nav-bg est toujours une couleur opaque (définie par le thème).
     On l'utilise comme fond de carte pour ne jamais être transparent,
     même si le site a une image de fond ou si --bg2 est semi-transparent. */
  background: var(--nav-bg) !important; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card-img {
  height: 180px; overflow: hidden;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.news-img-source {
  position: absolute; bottom: 6px; right: 8px;
  font-size: .65rem; color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.55); padding: 2px 6px;
  border-radius: 4px; pointer-events: none; line-height: 1.4;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-img svg { width: 40px; height: 40px; color: var(--text-muted); }
.news-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-source {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--primary); margin-bottom: 8px;
}
.news-card-title {
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  margin-bottom: 8px; flex: 1;
}
.news-card-excerpt { font-size: .88rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.news-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--text-muted);
}
.news-read-more {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary); font-weight: 600; font-size: .85rem;
  transition: gap var(--transition);
}
.news-read-more:hover { gap: 8px; }
.news-read-more svg { width: 14px; height: 14px; }

/* À la une (featured news card) */
.news-featured-card {
  display: flex; gap: 0;
  background: var(--nav-bg); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  margin-bottom: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.news-featured-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-featured-card .nfc-img {
  flex: 0 0 42%; max-width: 480px;
  overflow: hidden; position: relative;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
}
.news-featured-card .nfc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-featured-card:hover .nfc-img img { transform: scale(1.04); }
.news-featured-card .nfc-img svg { width: 48px; height: 48px; color: var(--text-muted); }
.news-featured-card .nfc-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.news-featured-card .nfc-body {
  flex: 1; padding: 28px 28px 24px;
  display: flex; flex-direction: column; justify-content: center;
}
.news-featured-card .nfc-source {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--primary); margin-bottom: 10px;
}
.news-featured-card .nfc-title {
  font-size: 1.25rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 12px;
}
.news-featured-card .nfc-excerpt {
  font-size: .9rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 18px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-featured-card .nfc-footer {
  display: flex; align-items: center; gap: 16px;
  font-size: .8rem; color: var(--text-muted);
}
@media (max-width: 680px) {
  .news-featured-card { flex-direction: column; }
  .news-featured-card .nfc-img { flex: none; max-width: 100%; min-height: 180px; }
  .news-featured-card .nfc-body { padding: 18px; }
  .news-featured-card .nfc-title { font-size: 1.05rem; }
}

/* Modale news — fond toujours opaque (--nav-bg est la couleur de nav, jamais transparente) */
#news-modal-box { background: var(--nav-bg) !important; }
html.light #news-modal-box { background: #ffffff !important; }

/* Contenu riche dans la modale article */
.rich-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; display: block; }
.rich-content iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 8px; margin: 14px 0; display: block; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 18px 0 8px; font-weight: 700; }
.rich-content p { margin: 0 0 12px; }
.rich-content ul, .rich-content ol { padding-left: 22px; margin: 0 0 12px; }
.rich-content blockquote { border-left: 3px solid var(--primary); margin: 12px 0; padding: 8px 16px; background: rgba(255,255,255,.04); border-radius: 0 6px 6px 0; }
.rich-content a { color: var(--primary); }
.rich-content pre { background: rgba(0,0,0,.3); border-radius: 6px; padding: 12px; overflow-x: auto; font-size: .85rem; }
/* Alignements Quill.js */
.rich-content .ql-align-center,
.rich-content [style*="text-align: center"],
.rich-content [style*="text-align:center"]  { text-align: center !important; }
.rich-content .ql-align-right,
.rich-content [style*="text-align: right"],
.rich-content [style*="text-align:right"]   { text-align: right  !important; }
.rich-content .ql-align-justify,
.rich-content [style*="text-align: justify"],
.rich-content [style*="text-align:justify"] { text-align: justify !important; }
.rich-content .ql-align-left,
.rich-content [style*="text-align: left"],
.rich-content [style*="text-align:left"]    { text-align: left   !important; }

/* Tabs news */
.news-tabs {
  display: flex; gap: 8px; margin-bottom: 32px;
  flex-wrap: wrap;
}
.news-tab {
  padding: 8px 18px; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  background: var(--nav-bg); color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.news-tab.active, .news-tab:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ============================================================
   PODCASTS
   ============================================================ */
#podcasts { background: var(--bg2); }
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.podcast-card {
  background: rgba(255,255,255,.04); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.podcast-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* Carousel podcasts */
.podcast-carousel-wrap { position: relative; }
.podcast-carousel-nav {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 18px;
}
.podcast-carousel-btn {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition), opacity var(--transition);
  color: var(--text);
}
.podcast-carousel-btn svg { width: 18px; height: 18px; display: block; }
.podcast-carousel-btn.podcast-prev svg { transform: rotate(180deg); }
.podcast-carousel-btn:disabled { opacity: .3; cursor: default; pointer-events: none; }
.podcast-carousel-btn:not(:disabled):hover { background: rgba(255,255,255,.12); }
.podcast-carousel-page { font-size: .83rem; color: var(--text-muted); min-width: 40px; text-align: center; }
.podcast-card-header {
  position: relative; padding-top: 56.25%; /* 16:9 */
  background: rgba(255,255,255,.06);
}
.podcast-cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.podcast-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5);
  transition: background var(--transition);
}
.podcast-play-btn:hover { background: rgba(0,0,0,.65); }
.podcast-play-btn svg {
  width: 48px; height: 48px;
  color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.podcast-no-cover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.podcast-no-cover svg { width: 48px; height: 48px; color: var(--text-muted); }
.podcast-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.podcast-card-title { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.podcast-card-desc { font-size: .83rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 10px; flex: 1; }
.podcast-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: var(--text-muted); margin-top: auto;
}
.podcast-duration {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.07); padding: 2px 8px; border-radius: 4px;
}
/* Onglets podcasts (RSS) */
.podcast-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.podcast-tab {
  padding: 8px 18px; border-radius: 20px; font-size: .85rem; font-weight: 600;
  background: var(--nav-bg); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.podcast-tab:hover { background: var(--border); color: var(--text); }
.podcast-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
html.light .podcast-tab.active { background: var(--primary); color: #fff; }

/* Mini player podcast */
#podcast-mini-player {
  position: fixed; bottom: calc(var(--player-h) + 10px); left: 50%; transform: translateX(-50%);
  background: var(--bg2-solid, var(--bg2));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  width: min(560px, calc(100vw - 24px));
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 800; opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(8px);
  overflow: hidden; /* pour clipper la pochette au border-radius */
}
#podcast-mini-player.visible { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
/* Bouton fermer */
#podcast-mini-player #pmp-close {
  color: var(--text-muted); padding: 6px;
  border-radius: 50%; transition: color .2s, background .2s; flex-shrink: 0;
}
#podcast-mini-player #pmp-close:hover { color: var(--primary); background: rgba(255,255,255,.06); }
#podcast-mini-player #pmp-close svg { width: 18px; height: 18px; display: block; }
#podcast-mini-player input[type=range] { flex: 1; accent-color: var(--primary); cursor: pointer; height: 4px; }
.pmp-title { font-size: .85rem; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; color: var(--text); }
.pmp-title-inner { display: inline-block; white-space: nowrap; }
.pmp-title-inner.pmp-scrolling { animation: pmp-scroll 10s ease-in-out infinite; }
@keyframes pmp-scroll {
  0%,  25% { transform: translateX(0); }
  75%, 95% { transform: translateX(var(--pmp-scroll-dist, 0px)); }
  100%     { transform: translateX(0); }
}
.pmp-time { font-size: .75rem; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- Wrapper pochette + bouton play ---- */
#pmp-cover-wrap {
  position: relative; flex-shrink: 0;
  width: 36px; height: 36px;
}
#pmp-cover { display: none; } /* masqué sur mobile */
/* Bouton play mobile : cercle coloré standard */
#pmp-play {
  position: relative; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s; flex-shrink: 0;
}
#pmp-play:hover { opacity: .85; }
#pmp-play svg { width: 16px; height: 16px; display: block; }

/* PC (> 600px) avec pochette : bloc pleine hauteur à gauche */
@media (min-width: 601px) {
  #podcast-mini-player { padding-left: 0; }
  #pmp-cover-wrap {
    position: relative;
    overflow: hidden;
    align-self: stretch;
    flex-shrink: 0;
    width: 74px;
    height: auto;                  /* écrase le height: 36px du mobile */
    margin: -14px 0 -14px -18px;  /* saigne haut / gauche / bas */
    padding-left: 18px;            /* compense les 18px masqués à gauche pour centrer le bouton */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Pochette : fond absolu derrière le bouton */
  #pmp-cover {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: none;
  }
  #pmp-cover[src]:not([src=""]) { display: block; }
  /* Bouton play : flux normal, centré par le flex parent, au-dessus de la pochette */
  #pmp-play {
    position: relative; z-index: 1;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,.3);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s; opacity: 1;
    transform: none;
  }
  #pmp-play:hover { background: var(--primary); border-color: var(--primary); }
  #pmp-play svg { width: 16px; height: 16px; }
}

/* ============================================================
   PROGRAMMES
   ============================================================ */
#programmes { background: var(--bg); }
.programs-days {
  display: flex; gap: 8px; margin-bottom: 32px;
  overflow-x: auto; padding-bottom: 4px;
  justify-content: center; flex-wrap: wrap;
}
.programs-days::-webkit-scrollbar { height: 3px; }
.day-btn {
  flex-shrink: 0; padding: 8px 18px; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.day-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
/* ── Grille émissions – défilement horizontal ── */
.programs-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.programs-grid { scrollbar-width: none; }
.programs-grid::-webkit-scrollbar { display: none; }
.program-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg2); transition: transform .2s;
  cursor: grab;
  flex: 0 0 340px;
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-select: none;
}
.program-card:hover { transform: scale(1.03); }
.program-cover img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.program-card.current { }

/* Couverture image */
.program-cover {
  position: relative; width: 100%; overflow: hidden;
  background: var(--bg2);
  aspect-ratio: 16 / 9;
}
.program-cover-blur {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(14px) brightness(.55) saturate(1.2);
  transform: scale(1.12);
}
.program-cover img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.program-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.program-cover-placeholder svg { width: 48px; height: 48px; color: var(--text-muted); opacity: .5; }

/* Badge ON AIR — par défaut flottant sur l'image (mode grille) */
.program-onair-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(232,0,45,.5); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(232,0,45,.35);
  pointer-events: none;
}
.program-onair-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; animation: livePulse 1.2s infinite;
  flex-shrink: 0;
}

/* Infos en bas de la carte */
.program-info {
  padding: 10px 12px 12px;
  background: var(--bg2);
  height: 76px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.program-time { font-size: .75rem; color: var(--primary); font-weight: 700; margin-bottom: 3px; flex-shrink: 0; }
.program-title { font-size: .9rem; font-weight: 700; line-height: 1.25; margin-bottom: 2px; flex-shrink: 0;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.program-host { font-size: .78rem; color: var(--text-muted); flex-shrink: 0; }

/* Responsive mobile */
@media (max-width: 600px) {
  .programs-grid:not(.programs-list) .program-card { flex: 0 0 240px; }
}

/* Mode liste */
.programs-list {
  flex-wrap: wrap;
  flex-direction: column;
  overflow-x: visible;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  gap: 10px;
}
.programs-list .program-card {
  flex: 0 0 auto; width: 100%; cursor: default;
  display: flex; flex-direction: row; align-items: stretch;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  scroll-snap-align: none;
}
.programs-list .program-card.current {
  border-left-color: var(--primary);
}
/* Miniature : largeur fixe, hauteur auto, object-fit cover sur un ratio 16/9 */
.programs-list .program-cover {
  width: 140px; flex-shrink: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.programs-list .program-cover img {
  object-fit: cover;
}
.programs-list .program-cover-placeholder {
  width: 100%; height: 100%;
}
/* Badge ON AIR en liste : absolu côté droit de la carte, centré verticalement */
.programs-list .program-onair-badge {
  position: absolute;
  right: 16px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(232,0,45,.55);
  box-shadow: none;
}
.programs-list .program-info { padding-right: 110px; }
/* Infos */
.programs-list .program-info {
  flex: 1; min-width: 0; padding: 12px 16px;
  display: flex; flex-direction: column; justify-content: center;
  height: auto;
}
.programs-list .program-time { margin-bottom: 4px; }
.programs-list .program-cover img { transition: none; }
.programs-list .program-card { transition: transform .3s ease; }
.programs-list .program-card:hover { transform: scale(1.02); box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 1; }

/* ============================================================
   ÉQUIPE
   ============================================================ */
#equipe { background: var(--bg2); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  justify-content: center;
  gap: 28px;
}
.team-card {
  display: flex; flex-direction: column;
  text-align: center; padding: 32px 24px 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,.45);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
}
.team-photo {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto 20px;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 12%, transparent);
  overflow: hidden; background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow var(--transition);
}
.team-card:hover .team-photo {
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--primary) 20%, transparent);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo svg { width: 40px; height: 40px; color: var(--text-muted); }
.team-name { font-size: 1.08rem; font-weight: 700; margin-bottom: 5px; }
.team-role {
  font-size: .78rem; color: var(--primary); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 14px;
}
/* Séparateur fin sous le rôle */
.team-divider {
  width: 36px; height: 2px; margin: 0 auto 16px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 1px;
}
/* Bio scrollable — hauteur limitée */
.team-bio-wrap {
  flex: 1; position: relative; margin-bottom: 16px;
}
.team-bio {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.75;
  text-align: left;
  max-height: 130px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
/* Espacement entre les blocs dans la bio */
.team-bio p { margin-bottom: .5em; }
.team-bio p:last-child { margin-bottom: 0; }
.team-bio::-webkit-scrollbar { width: 4px; }
.team-bio::-webkit-scrollbar-track { background: transparent; }
.team-bio::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2); border-radius: 2px;
}
.team-bio::-webkit-scrollbar-thumb:hover { background: var(--primary); }
.team-socials {
  display: flex; gap: 8px; justify-content: center;
  margin-top: auto; padding-top: 4px;
}
.team-social {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.team-social:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.team-social svg { width: 14px; height: 14px; }

/* ============================================================
   MÉTÉO
   ============================================================ */
#meteo { background: var(--bg); }
.weather-widget {
  max-width: 700px; margin: 0 auto;
  background: var(--bg2); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.weather-search {
  display: flex; gap: 8px; padding: 20px;
  border-bottom: 1px solid var(--border);
  position: relative; /* ancrage du dropdown */
}
/* Dropdown autocomplete ville météo */
.city-autocomplete {
  position: absolute; top: calc(100% - 8px); left: 20px;
  width: calc(100% - 40px - 90px); /* largeur input, hors bouton */
  background: var(--bg2-solid, var(--bg2));
  border: 1px solid var(--primary);
  border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 900; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  max-height: 260px; overflow-y: auto;
}
.city-autocomplete-item {
  padding: 10px 16px; cursor: pointer; font-size: .88rem;
  color: var(--text); border-bottom: 1px solid var(--border);
  transition: background .12s;
  display: flex; flex-direction: column; gap: 2px;
}
.city-autocomplete-item:last-child { border-bottom: none; }
.city-autocomplete-item:hover,
.city-autocomplete-item.active { background: rgba(var(--primary-rgb, 0,200,200), .15); }
.city-autocomplete-item strong { font-weight: 700; color: var(--text); }
.city-autocomplete-item small  { font-size: .78rem; color: var(--text-muted); }
html.light .city-autocomplete { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.weather-search input {
  flex: 1; padding: 10px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  color: var(--text); font-size: .9rem; outline: none;
  transition: border-color var(--transition);
}
.weather-search input:focus { border-color: var(--primary); }
.weather-search button {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff;
  font-weight: 600; font-size: .9rem;
  transition: opacity var(--transition);
}
.weather-search button:hover { opacity: .85; }
.weather-main {
  display: flex; align-items: center; gap: 32px;
  padding: 32px;
}
.weather-icon-wrap { font-size: 5rem; }
.weather-icon-svg { width: 80px; height: 80px; }
.weather-temp-main { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.weather-city-name { font-size: 1.1rem; font-weight: 600; margin-top: 4px; }
.weather-desc { color: var(--text-muted); font-size: .9rem; margin-top: 2px; }
.weather-details {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border-top: 1px solid var(--border);
}
.weather-detail {
  padding: 16px; text-align: center;
  border-right: 1px solid var(--border);
}
.weather-detail:last-child { border-right: none; }
.weather-detail-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.weather-detail-val { font-size: 1rem; font-weight: 700; }
.weather-forecast {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border-top: 1px solid var(--border);
}
.forecast-day {
  padding: 16px; text-align: center;
  border-right: 1px solid var(--border);
}
.forecast-day:last-child { border-right: none; }
.forecast-day-name { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.forecast-temps { font-size: .9rem; font-weight: 600; }
.forecast-temps .max { color: var(--primary); }
.forecast-temps .min { color: var(--text-muted); margin-left: 6px; }
.weather-icon-sun { color: #f9c74f; }
.weather-icon-cloud { color: #adb5bd; }
.weather-icon-rain { color: #4cc9f0; }
.weather-icon-snow { color: #a8dadc; }
.weather-icon-storm { color: #f4a261; }
.weather-icon-wind { color: #adb5bd; }

/* ============================================================
   DÉDICACES
   ============================================================ */
#dedicaces { background: var(--bg2); }
.dedications-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.dedications-list {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 420px; overflow-y: auto;
  padding-right: 4px;
}
.dedications-list::-webkit-scrollbar { width: 4px; }
.dedications-list::-webkit-scrollbar-track { background: transparent; }
.dedications-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.dedication-item {
  padding: 12px 14px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  animation: fadeInUp .3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dedication-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.dedication-pseudo { font-weight: 700; font-size: .9rem; }
.dedication-time { font-size: .75rem; color: var(--text-muted); }
.dedication-message { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.dedication-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group textarea {
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.14);
  color: #f0f0f0; font-size: .92rem; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #6b7280; opacity: 1; }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-question {
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--nav-bg); border: 1px solid var(--border);
  font-size: .88rem; font-weight: 600; color: var(--primary); white-space: nowrap;
}
.captcha-row input { flex: 1; }
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff;
  font-size: .95rem; font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-submit:hover { opacity: .85; transform: translateY(-1px); }
.btn-submit svg { width: 16px; height: 16px; }
.contact-form-card .btn-submit { width: auto; margin: 20px auto 0; }
.form-feedback {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; display: none;
}
.form-feedback.success { display: block; background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.3); color: #4ade80; }
.form-feedback.error   { display: block; background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3); color: #f87171; }
.form-feedback.visible { display: block; }

/* ============================================================
   PLAYER RADIO (sticky bas de page)
   ============================================================ */
#radio-player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
  height: var(--player-h);
  background: var(--player-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.5);
}
/* ── Fond flou pochette (style glass) ── */
#player-bg-blur {
  display: none;
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(16px) brightness(0.35) saturate(1.4);
  transform: scale(1.04);
  inset: -4px;
  transition: background-image .4s ease;
}
body[data-player-style="glass"] #radio-player {
  left: 50%; right: auto;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1060px;
  bottom: 14px;
  border-radius: 18px;
  border-top: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(6,6,12,0.62);
  backdrop-filter: blur(36px) saturate(1.8);
  -webkit-backdrop-filter: blur(36px) saturate(1.8);
  box-shadow: none;
  overflow: visible;
}
body[data-player-style="glass"] #player-bg-blur { display: block; border-radius: 18px; overflow: hidden; contain: paint; }
body[data-player-style="glass"] #radio-player .player-inner { position: relative; z-index: 1; overflow: visible; }
/* Pochette + bords glass — PC uniquement */
@media (min-width: 769px) {
  /* Étire player-left pour que la pochette remplisse toute la hauteur */
  body[data-player-style="glass"] .player-inner {
    align-items: stretch;
    padding-left: 0;   /* supprime le padding gauche — la pochette le remplace */
  }
  body[data-player-style="glass"] .player-center,
  body[data-player-style="glass"] .player-right  { align-self: center; }
  body[data-player-style="glass"] .player-left {
    align-self: stretch; display: flex; align-items: center;
    padding: 0; gap: 0; overflow: hidden;
    margin: -1px 0 -1px -1px; /* absorbe le border du player pour flush parfait */
  }
  body[data-player-style="glass"] .player-meta { padding-left: 14px; }
  body[data-player-style="glass"] .player-cover {
    height: var(--player-h);
    width:  var(--player-h);
    max-height: 100%;
    border-radius: 10px 0 0 10px;
    flex-shrink: 0;
    margin-left: 0;
  }
  body[data-player-style="glass"][data-cover-padding="sm"] .player-cover {
    margin: 4px 0 4px 4px;
    height: calc(var(--player-h) - 8px); width: calc(var(--player-h) - 8px);
  }
  body[data-player-style="glass"][data-cover-padding="md"] .player-cover {
    margin: 8px 0 8px 8px;
    height: calc(var(--player-h) - 16px); width: calc(var(--player-h) - 16px);
  }
  body[data-player-style="glass"][data-cover-padding="lg"] .player-cover {
    margin: 12px 0 12px 12px;
    height: calc(var(--player-h) - 24px); width: calc(var(--player-h) - 24px);
  }
  body[data-glass-radius="square"][data-player-style="glass"] #radio-player { border-radius: 0 !important; }
  body[data-glass-radius="square"][data-player-style="glass"] #player-bg-blur { border-radius: 0 !important; }
  body[data-cover-radius="square"][data-player-style="glass"] .player-cover { border-radius: 0 !important; }
  body[data-player-style="glass"][data-cover-padding="none"][data-cover-radius="rounded"] .player-cover { border-radius: 18px !important; }
  body[data-player-style="glass"][data-cover-padding="sm"][data-cover-radius="rounded"]   .player-cover { border-radius: 8px !important; }
  body[data-player-style="glass"][data-cover-padding="md"][data-cover-radius="rounded"]   .player-cover { border-radius: 10px !important; }
  body[data-player-style="glass"][data-cover-padding="lg"][data-cover-radius="rounded"]   .player-cover { border-radius: 12px !important; }
}
body[data-player-style="glass"] #radio-player #player-expand-btn { position: relative; z-index: 2; }
body[data-player-style="glass"] { padding-bottom: calc(var(--player-custom-h, var(--player-h)) + 28px); }
/* Texte et icônes toujours lisibles — fond flouté (dark + light override) */
body[data-player-style="glass"] #radio-player .player-title,
html.light body[data-player-style="glass"] #radio-player .player-title  { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
body[data-player-style="glass"] #radio-player .player-artist,
html.light body[data-player-style="glass"] #radio-player .player-artist { color: rgba(255,255,255,.78); text-shadow: 0 1px 4px rgba(0,0,0,.7); }
body[data-player-style="glass"] #radio-player .player-btn,
html.light body[data-player-style="glass"] #radio-player .player-btn    { color: #fff; }
body[data-player-style="glass"] #radio-player .player-btn:not(.player-btn-main):hover,
html.light body[data-player-style="glass"] #radio-player .player-btn:not(.player-btn-main):hover { background: rgba(255,255,255,.15); }
body[data-player-style="glass"] #radio-player .player-live-badge,
html.light body[data-player-style="glass"] #radio-player .player-live-badge { color: #fff; border-color: rgba(255,255,255,.6); }
body[data-player-style="glass"] #radio-player .player-stream-selector,
html.light body[data-player-style="glass"] #radio-player .player-stream-selector { color: #fff; background: rgba(255,255,255,.12); }
html.light body[data-player-style="glass"] #radio-player { background: rgba(6,6,12,0.62); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 2px 8px rgba(0,0,0,.10); }
html.light body[data-player-style="glass"] #player-bg-blur { filter: blur(16px) brightness(0.4) saturate(1.3); }
/* ── Variante fond opaque (glass_bg=opaque) — s'adapte au thème CMS ── */
/* Thème sombre : fond dark opaque + texte blanc */
body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player {
  background: rgba(14,16,22,0.97); backdrop-filter: blur(4px); border-color: rgba(255,255,255,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
body[data-player-style="glass"][data-glass-bg="opaque"] #player-bg-blur { display: none; }
body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-title  { color: #fff !important; text-shadow: none; }
body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-artist { color: rgba(255,255,255,.7) !important; text-shadow: none; }
body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-btn    { color: #fff !important; }
body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-live-badge { color: #fff; border-color: rgba(255,255,255,.6); }
body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-stream-selector { color: #fff; background: rgba(255,255,255,.1); }
body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-vote-btn { color: #fff !important; background: transparent !important; }
/* Thème clair : fond blanc opaque + texte thème normal */
html.light body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player {
  background: rgba(255,255,255,0.98) !important; backdrop-filter: blur(4px); border-color: rgba(0,0,0,0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
html.light body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-title  { color: var(--text) !important; text-shadow: none; }
html.light body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-artist { color: var(--text-muted) !important; text-shadow: none; }
html.light body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-btn    { color: var(--text) !important; }
html.light body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-live-badge { color: var(--primary); border-color: var(--primary); }
html.light body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-stream-selector { color: var(--text); background: rgba(0,0,0,.06); }
html.light body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-vote-btn { color: var(--text) !important; background: transparent !important; }
/* Mobile : glass player revient au style collé normal */
@media (max-width: 768px) {
  /* Glass → exactement comme sticky sur mobile */
  body[data-player-style="glass"] #radio-player,
  html.light body[data-player-style="glass"] #radio-player {
    left: 0; right: 0; bottom: 0;
    transform: none;
    width: 100%; max-width: none;
    border-radius: 0; border: none; border-top: 1px solid var(--border);
    background: var(--bg2) !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }
  body[data-player-style="glass"] #player-bg-blur { display: none !important; }
  body[data-player-style="glass"] { padding-bottom: var(--player-custom-h, var(--player-h)); }
  /* Expand btn : remet l'absolu par-dessus la règle glass */
  body[data-player-style="glass"] #radio-player #player-expand-btn {
    position: absolute !important; top: -18px !important; left: 50% !important;
    transform: translateX(-50%) !important; z-index: 2;
  }
  /* Texte redevient couleur normale sur mobile */
  body[data-player-style="glass"] #radio-player .player-title,
  html.light body[data-player-style="glass"] #radio-player .player-title  { color: var(--text) !important; text-shadow: none; }
  body[data-player-style="glass"] #radio-player .player-artist,
  html.light body[data-player-style="glass"] #radio-player .player-artist { color: var(--text-muted) !important; text-shadow: none; }
  body[data-player-style="glass"] #radio-player .player-btn,
  html.light body[data-player-style="glass"] #radio-player .player-btn    { color: var(--text) !important; }
  /* Layout identique au sticky : play centré en absolu */
  body[data-player-style="glass"] .player-inner { position: relative; }
  body[data-player-style="glass"] .player-center {
    position: absolute; left: 50%; top: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 2; display: flex; align-items: center; gap: 8px;
  }
  body[data-player-style="glass"] .player-right { flex: 0 0 auto; gap: 6px; margin-left: auto; }
  body[data-player-style="glass"] #player-video-btn { display: none; }
  body[data-player-style="glass"] .player-left { max-width: calc(50% - 30px); overflow: hidden; }
  body[data-player-style="glass"] .player-meta { overflow: hidden; }
  body[data-player-style="glass"] .player-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.player-inner {
  display: flex; align-items: center; gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  width: 100%; height: 100%;
}
/* Bouton agrandir (mobile uniquement) */
#player-expand-btn {
  display: none;
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  background: var(--player-bg);
  border: 1px solid var(--border); border-bottom: none;
  border-radius: 10px 10px 0 0; padding: 2px 20px 0;
  color: var(--text-muted); cursor: pointer; z-index: 951;
  opacity: .9; transition: opacity .2s;
  line-height: 1;
}
#player-expand-btn:hover { opacity: 1; }
.player-stream-select { display: flex; align-items: center; gap: 8px; }
.player-stream-selector {
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  color: var(--text); font-size: .75rem; border-radius: 6px;
  padding: 4px 8px; cursor: pointer; max-width: 140px;
}
.player-stream-selector option { background: #1e1e30; color: #f0f0f0; }

/* ---- Sélecteur logos flux ---- */
.player-stream-logos-wrap { position: relative; flex-shrink: 0; }
.stream-logo-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 4px 8px 4px 4px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.stream-logo-btn:hover { border-color: var(--primary); background: rgba(255,255,255,.14); }
.stream-logo-btn img, .stream-logo-btn #stream-logo-current {
  width: 32px; height: 32px; border-radius: 6px; object-fit: cover; display: block;
}
.stream-logo-btn #stream-logo-current-name {
  font-size: .75rem; color: var(--text); padding: 0 4px; max-width: 80px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stream-logo-chevron { opacity: .6; flex-shrink: 0; transition: transform .2s; }
.stream-logo-btn[aria-expanded="true"] .stream-logo-chevron { transform: rotate(180deg); }
.stream-logo-popup {
  position: absolute; bottom: calc(100% + 8px); right: 0;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; min-width: 160px;
  min-width: 160px; max-width: 240px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(6px) scale(.97); pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 1100;
}
.stream-logo-popup.is-open {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: all;
}
.stream-logo-item {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  background: transparent; border: 2px solid transparent;
  border-radius: 12px; padding: 0; cursor: pointer;
  overflow: hidden; transition: border-color .15s;
}
.stream-logo-item:hover { border-color: rgba(128,128,128,.4); }
.stream-logo-item.active { border-color: var(--primary); }
.stream-logo-item img {
  width: 64px; height: 64px; border-radius: 0;
  object-fit: cover; object-position: center; display: block;
  flex-shrink: 0;
}
.stream-logo-item span {
  font-size: .68rem; color: var(--text); text-align: center;
  line-height: 1.2; max-width: 68px; padding: 3px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Custom stream dropdown */
.stream-dropdown { position: relative; flex-shrink: 0; }
.stream-dropdown-trigger {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  color: var(--text); border-radius: 8px; padding: 4px 8px 4px 6px;
  cursor: pointer; font-size: .75rem; max-width: 160px;
  transition: border-color .2s, background .2s; font-family: inherit;
}
.stream-dropdown-trigger:hover { border-color: var(--primary); background: rgba(255,255,255,.15); }
.stream-dropdown.open .stream-dropdown-trigger { border-color: var(--primary); }
.stream-dd-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.stream-dd-img { border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.stream-dd-no-img {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--text-muted);
  background: rgba(255,255,255,.06); border-radius: 4px;
}
.stream-dropdown-trigger svg:last-child { flex-shrink: 0; transition: transform .2s; color: var(--text-muted); }
.stream-dropdown.open .stream-dropdown-trigger svg:last-child { transform: rotate(180deg); }
.stream-dropdown-list {
  display: none; position: absolute;
  bottom: calc(100% + 6px); left: 0;
  min-width: 190px; max-width: 260px;
  background: var(--bg2-solid, var(--bg2)); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 -8px 28px rgba(0,0,0,.55);
  z-index: 920; padding: 4px;
  max-height: min(260px, calc(100vh - var(--nav-h, 70px) - var(--nav-extra-h, 0px) - var(--player-h, 72px) - 20px));
  overflow-y: auto;
}
.stream-dropdown.open .stream-dropdown-list { display: flex; flex-direction: column; gap: 2px; animation: ddSlideUp .18s cubic-bezier(.4,0,.2,1); }
@keyframes ddSlideUp {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.stream-dd-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  background: none; border: none; color: var(--text);
  font-size: .82rem; cursor: pointer; text-align: left;
  width: 100%; font-family: inherit;
  transition: background .15s;
}
.stream-dd-item:hover { background: rgba(255,255,255,.08); }
.stream-dd-item.active { background: rgba(255,255,255,.1); color: var(--primary); }
.stream-dd-item .stream-dd-img { border-radius: 6px; }
.stream-dd-item .stream-dd-no-img { border-radius: 6px; }

/* Dropdown flux dans le formulaire de filtre historique */
.hist-stream-wrap { position: relative; }
.hist-stream-wrap .stream-dropdown-trigger {
  padding: 9px 13px 9px 10px;
  font-size: .88rem;
  max-width: none;
  height: 100%;
  box-sizing: border-box;
  background: var(--bg2);
  border-color: var(--border);
}
.hist-stream-wrap .stream-dropdown-list {
  top: calc(100% + 4px);
  bottom: auto;
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
}

/* Styled stream selector — desktop only */
@media (min-width: 769px) {
  .player-stream-select { position: relative; }
  .player-stream-selector {
    appearance: none; -webkit-appearance: none;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    padding: 5px 30px 5px 14px;
    font-size: .78rem; font-weight: 600;
    color: var(--text); max-width: 180px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.6)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    backdrop-filter: blur(8px);
    transition: border-color .2s, background .2s;
  }
  .player-stream-selector:hover {
    border-color: var(--primary);
    background: rgba(255,255,255,.15);
  }
  .player-stream-selector:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb,.5),.3);
  }
}
/* Player width variants */
body[data-player-width="wide"]   .player-inner { max-width: 1600px; }
body[data-player-width="full"]   .player-inner { max-width: 100%; padding: 0 var(--player-fw-padding, 0px); }

/* ============================================================
   PLAYER COLLÉ EN HAUT (sous la navigation)
   ============================================================ */
body[data-player-style="sticky"][data-player-position="top"] #radio-player {
  top: calc(var(--nav-h) + var(--nav-extra-h, 0px));
  bottom: auto;
  border-top: none;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
/* Remplacement du padding bas par un padding haut.
   --player-custom-h est défini inline si l'admin a changé la hauteur, sinon on retombe sur --player-h (72px). */
body[data-player-style="sticky"][data-player-position="top"] {
  padding-top: calc(var(--nav-h) + var(--nav-extra-h, 0px) + var(--player-custom-h, var(--player-h)));
  padding-bottom: 0;
}
/* Player en haut → pas de player en bas, footer revient à un padding normal */
body[data-player-style="sticky"][data-player-position="top"] footer {
  padding-bottom: 32px;
}
/* Le body compense déjà navbar + player — annuler le padding-top du wrapper pour éviter le double décalage */
body[data-player-style="sticky"][data-player-position="top"] #sections-wrapper {
  padding-top: 0;
}
/* Ajustement du slider : retire la hauteur réelle du player du calcul */
body[data-player-style="sticky"][data-player-position="top"] #slider {
  height: calc(var(--slider-h, calc(100svh - var(--nav-h))) - var(--player-custom-h, var(--player-h)));
  min-height: 240px;
}
/* Podcast mini-player : n'est plus décalé par le player bas */
body[data-player-style="sticky"][data-player-position="top"] #podcast-mini-player {
  bottom: 20px;
}
/* ---- Sous-menus nav au-dessus du player ----
   #navbar crée un stacking context (position:fixed + z-index).
   Ses enfants (.nav-dropdown z-index:910) sont donc dans sa bulle.
   On monte toute la bulle navbar au-dessus du player (950). */
body[data-player-position="top"] #navbar {
  z-index: 960;
}
/* ---- Desktop : pas de bouton d'expansion (inutile en haut) ---- */
@media (min-width: 769px) {
  body[data-player-style="sticky"][data-player-position="top"] #player-expand-btn {
    display: none;
  }
}
/* ---- Mobile : player haut — bouton expand en bas du player, flèche vers le bas ---- */
@media (max-width: 768px) {
  body[data-player-position="top"] #player-expand-btn {
    top: auto;
    bottom: -14px;
    border-top: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 10px 10px;
    padding: 0 20px 3px;
  }
  body[data-player-position="top"] #player-expand-btn svg {
    transform: rotate(180deg);
  }
  /* Menu burger : démarre sous le player + passe au-dessus */
  body[data-player-position="top"] .nav-mobile {
    top: calc(var(--nav-h) + var(--player-h));
    z-index: 960;
  }
}

/* Mini floating player */
/* Player flottant → pas de réservation d'espace en bas, footer revient à normal */
body[data-player-style="mini"] footer { padding-bottom: 32px; }
body[data-player-style="mini"] #radio-player {
  left: auto; right: 20px; bottom: 20px;
  width: 320px; border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  height: auto; min-height: 0;
}
body[data-player-style="mini"] .player-inner {
  padding: 12px 14px; flex-wrap: wrap; gap: 10px;
}
body[data-player-style="mini"] .player-center { flex: 0 0 auto; justify-content: center; gap: 8px; }
body[data-player-style="mini"] .player-right  { flex: 1 1 100%; justify-content: center; flex-wrap: wrap; gap: 6px 10px; }
body[data-player-style="mini"] .player-meta   { flex: 1; max-width: 100%; }
/* Horloge dans le mini player : gauche, sous l'artiste */
body[data-player-style="mini"] .player-meta .player-clock--meta {
  text-align: left;
  font-size: .72rem;
  min-width: 0;
  flex-shrink: 1;
  margin-top: 3px;
}
body[data-player-style="mini"] #player-expand-btn { display: none; }
body[data-player-style="mini"] .player-left {
  align-items: center; gap: 10px;
}
/* Clock mini player (dans .player-meta) : cachée par défaut, visible en mode mini */
.player-clock--meta {
  display: none;
  margin-top: 3px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; color: var(--primary);
  opacity: .9; line-height: 1; text-align: left;
}
body[data-player-style="mini"] .player-clock--meta { display: block; }
/* Clock sticky/full-width (item flex indépendant) : cachée en mode mini */
body[data-player-style="mini"] .player-clock--outer { display: none; }
/* Mini carré : horloge en absolu, centrée en haut — libère le flux colonne */
body[data-player-style="mini"][data-player-mini-square="1"] .player-inner {
  padding-top: 26px;
}
body[data-player-style="mini"][data-player-mini-square="1"] .player-clock--meta {
  position: absolute;
  top: 7px; left: 50%; transform: translateX(-50%);
  margin: 0;
  background: none;
  padding: 0;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: .9;
  white-space: nowrap;
}
body[data-player-style="mini"] .player-cover { order: 0; }
body[data-player-style="mini"] .player-meta  { order: 1; padding-left: 0; }
/* Volume full-width sous les contrôles (mini, PC uniquement) */
@media (min-width: 769px) {
  /* Force le volume sur une ligne complète en dessous des contrôles */
  body[data-player-style="mini"] .player-volume {
    flex: 1 1 100%; gap: 6px; padding: 2px 0 0;
  }
  body[data-player-style="mini"] .player-volume .volume-slider {
    flex: 1; width: auto; max-width: none;
  }
}
/* Positions du mini player */
body[data-player-style="mini"][data-player-mini-pos="bottom-left"] #radio-player  { right: auto; left: 20px; bottom: 20px; }
body[data-player-style="mini"][data-player-mini-pos="top-right"]   #radio-player  { bottom: auto; top: calc(var(--nav-h) + var(--nav-extra-h, 0px) + 12px); right: 20px; left: auto; }
body[data-player-style="mini"][data-player-mini-pos="top-left"]    #radio-player  { bottom: auto; top: calc(var(--nav-h) + var(--nav-extra-h, 0px) + 12px); left: 20px; right: auto; }
/* Player carré (mini) — layout colonne compact */
body[data-player-style="mini"][data-player-mini-square="1"] #radio-player { width: 240px; }
body[data-player-style="mini"][data-player-mini-square="1"] .player-inner { flex-direction: column; align-items: center; gap: 8px; }
body[data-player-style="mini"][data-player-mini-square="1"] .player-left  { flex: 0 0 auto; flex-direction: column; align-items: center; width: 100%; gap: 6px; }
body[data-player-style="mini"][data-player-mini-square="1"] .player-cover { width: 80px; height: 80px; flex-shrink: 0; }
body[data-player-style="mini"][data-player-mini-square="1"] .player-meta  { text-align: center; max-width: 100%; width: 100%; }
/* Reset flex-basis:100% (calculé pour row) → auto pour ne pas déborder en colonne */
body[data-player-style="mini"][data-player-mini-square="1"] .player-center { flex: 0 0 auto !important; width: 100%; flex-wrap: wrap; justify-content: center; }
body[data-player-style="mini"][data-player-mini-square="1"] .player-right  { flex: 0 0 auto !important; width: 100%; flex-wrap: wrap; }
body[data-player-style="mini"][data-player-mini-square="1"] .player-volume { flex: 0 0 auto !important; width: 100%; }
/* Adjust podcast mini-player offset for mini player */
body[data-player-style="mini"] #podcast-mini-player { bottom: 20px; right: 360px; left: auto; transform: none; }
body[data-player-style="mini"][data-player-mini-pos="bottom-left"] #podcast-mini-player { left: 360px; right: auto; }
/* Glass : repositionné au-dessus du player flottant + look verre assorti */
body[data-player-style="glass"] #podcast-mini-player {
  bottom: calc(var(--player-custom-h, var(--player-h)) + 20px);
  background: rgba(14,16,22,0.82);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
body[data-player-style="glass"] #podcast-mini-player .pmp-title { color: #fff; }
body[data-player-style="glass"] #podcast-mini-player .pmp-time  { color: rgba(255,255,255,.6); }
html.light body[data-player-style="glass"] #podcast-mini-player {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.1);
}
html.light body[data-player-style="glass"] #podcast-mini-player .pmp-title { color: var(--text); }
html.light body[data-player-style="glass"] #podcast-mini-player .pmp-time  { color: var(--text-muted); }
/* Mobile : forcer le player en mode sticky quelle que soit la config admin */
@media (max-width: 768px) {
  /* Podcast mini-player : toujours centré en bas (ignore le positionnement PC mini) */
  body[data-player-style="mini"] #podcast-mini-player,
  body[data-player-style="mini"][data-player-mini-pos="bottom-left"] #podcast-mini-player {
    left: 50% !important; right: auto !important;
    transform: translateX(-50%) translateY(8px) !important;
    bottom: calc(var(--player-h) + 10px) !important;
  }
  body[data-player-style="mini"] #podcast-mini-player.visible {
    transform: translateX(-50%) translateY(0) !important;
  }
  body[data-player-style="mini"] #radio-player {
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: auto !important; border-radius: 0 !important;
    height: var(--player-h) !important; box-shadow: none !important;
  }
  body[data-player-style="mini"] .player-inner {
    flex-direction: row !important; flex-wrap: nowrap !important;
    padding: 0 12px !important; gap: 10px !important; height: 100%;
  }
  body[data-player-style="mini"] .player-center { flex: 0 0 auto !important; gap: 8px !important; }
  body[data-player-style="mini"] .player-right {
    flex: 0 !important; flex-wrap: nowrap !important;
    justify-content: flex-end !important; gap: 8px !important;
  }
  body[data-player-style="mini"] .player-left { flex: 1 !important; }
  body[data-player-style="mini"] .player-meta { max-width: none !important; flex: 1 !important; }
  body[data-player-style="mini"] .player-volume { display: none !important; }
  /* Mobile : reset position absolue du mini carré → pleine largeur sticky */
  .player-clock--meta {
    position: static !important;
    transform: none !important;
    margin-top: 2px !important;
    font-size: .68rem !important;
  }
  body[data-player-style="mini"][data-player-mini-square="1"] .player-inner {
    padding-top: 0 !important;
  }
  body[data-player-style="mini"][data-player-mini-square="1"] #radio-player {
    width: auto !important;
  }
  body[data-player-style="mini"][data-player-mini-square="1"] .player-inner {
    flex-direction: row !important; align-items: center !important;
  }
  body[data-player-style="mini"][data-player-mini-square="1"] .player-left {
    flex: 1 !important; flex-direction: row !important; width: auto !important;
  }
  body[data-player-style="mini"][data-player-mini-square="1"] .player-cover {
    width: 40px !important; height: 40px !important;
  }
  body[data-player-style="mini"][data-player-mini-square="1"] .player-meta {
    text-align: left !important;
  }
  body[data-player-style="mini"][data-player-mini-square="1"] .player-center,
  body[data-player-style="mini"][data-player-mini-square="1"] .player-right {
    flex: 0 !important; flex-direction: row !important; width: auto !important;
  }
}
/* Hauteur du player sticky (PC uniquement) — grossit textes + images */
@media (min-width: 769px) {
  body[data-player-style="sticky"][data-player-height] #radio-player {
    height: var(--player-custom-h, var(--player-h));
  }
  body[data-player-style="sticky"][data-player-height] #podcast-mini-player {
    bottom: calc(var(--player-custom-h, var(--player-h)) + 10px);
  }
  body[data-player-style="sticky"][data-player-height] .player-cover {
    width: var(--player-cover-sz, 48px);
    height: var(--player-cover-sz, 48px);
  }
  body[data-player-style="sticky"][data-player-height] .player-title {
    font-size: calc(.88rem * var(--player-scale, 1));
  }
  body[data-player-style="sticky"][data-player-height] .player-artist {
    font-size: calc(.78rem * var(--player-scale, 1));
  }
  body[data-player-style="sticky"][data-player-height] .player-btn-main {
    width: calc(44px * var(--player-scale, 1));
    height: calc(44px * var(--player-scale, 1));
  }
  body[data-player-style="sticky"][data-player-height] .player-btn-main svg {
    width: calc(22px * var(--player-scale, 1));
    height: calc(22px * var(--player-scale, 1));
  }
  /* Autres boutons (volume, vidéo…) */
  body[data-player-style="sticky"][data-player-height] .player-btn:not(.player-btn-main) {
    width: calc(44px * var(--player-scale, 1));
    height: calc(44px * var(--player-scale, 1));
  }
  body[data-player-style="sticky"][data-player-height] .player-btn:not(.player-btn-main) svg {
    width: calc(20px * var(--player-scale, 1));
    height: calc(20px * var(--player-scale, 1));
  }
  /* Bouton volume (taille propre) */
  body[data-player-style="sticky"][data-player-height] .player-volume #volume-btn {
    width: calc(34px * var(--player-scale, 1));
    height: calc(34px * var(--player-scale, 1));
  }
  body[data-player-style="sticky"][data-player-height] .player-volume #volume-btn svg {
    width: calc(18px * var(--player-scale, 1));
    height: calc(18px * var(--player-scale, 1));
  }
  /* Barre de volume */
  body[data-player-style="sticky"][data-player-height] .volume-slider {
    width: calc(90px * var(--player-scale, 1));
  }
  /* Badge LIVE */
  body[data-player-style="sticky"][data-player-height] .player-live-badge {
    font-size: calc(.72rem * var(--player-scale, 1));
    padding: calc(3px * var(--player-scale, 1)) calc(10px * var(--player-scale, 1));
  }
  body[data-player-style="sticky"][data-player-height] .player-live-badge::before {
    width: calc(6px * var(--player-scale, 1));
    height: calc(6px * var(--player-scale, 1));
  }
  /* Sélecteur multiflux */
  body[data-player-style="sticky"][data-player-height] .player-stream-selector {
    font-size: calc(.75rem * var(--player-scale, 1));
    max-width: calc(140px * var(--player-scale, 1));
    padding: calc(5px * var(--player-scale, 1)) calc(30px * var(--player-scale, 1)) calc(5px * var(--player-scale, 1)) calc(14px * var(--player-scale, 1));
  }
  /* Cœur vote */
  body[data-player-style="sticky"][data-player-height] #player-vote-btn {
    padding: calc(5px * var(--player-scale, 1)) calc(10px * var(--player-scale, 1)) !important;
    gap: calc(5px * var(--player-scale, 1)) !important;
    border-radius: calc(20px * var(--player-scale, 1)) !important;
    font-size: calc(.75rem * var(--player-scale, 1)) !important;
  }
  body[data-player-style="sticky"][data-player-height] #player-vote-btn svg {
    width: calc(13px * var(--player-scale, 1)) !important;
    height: calc(13px * var(--player-scale, 1)) !important;
  }
  body[data-player-style="sticky"][data-player-height] #player-vote-btn .track-vote-count {
    font-size: calc(.72rem * var(--player-scale, 1));
  }
}

/* Clock sticky/full-width : premier enfant de .player-left, avant la pochette */
.player-clock--outer {
  font-size: 1rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary); white-space: nowrap;
  flex-shrink: 0; line-height: 1.1;
  letter-spacing: .02em; text-align: center;
}
.player-cover {
  width: var(--player-cover-sz, 48px);
  height: var(--player-cover-sz, 48px);
  border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-cover svg { width: 20px; height: 20px; color: var(--text-muted); }
.player-left   { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-center { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.player-right  { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.player-meta  { flex: 1; min-width: 0; padding-left: 4px; }
.player-title {
  font-size: .88rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--primary); margin-bottom: 2px;
}
.player-artist { font-size: .78rem; color: var(--text-muted); }
.player-controls { display: flex; align-items: center; gap: 8px; }
.player-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--player-btn-text); transition: all var(--transition);
}
.player-btn-main {
  background: var(--primary);
  color: var(--btn-text) !important;
  box-shadow: 0 0 16px color-mix(in srgb, var(--primary) 45%, transparent);
}
.player-btn-main:hover { opacity: .85; transform: scale(1.05); }
.player-btn:not(.player-btn-main):hover { background: rgba(255,255,255,.1); }
.player-btn svg { width: 20px; height: 20px; display: block; }
.player-btn-main svg { width: 22px; height: 22px; }
.player-volume { display: flex; align-items: center; gap: 4px; }
.player-volume #volume-btn { width: 34px; height: 34px; flex-shrink: 0; }
.player-volume #volume-btn svg { width: 18px; height: 18px; color: var(--text-muted); }
#player-video-btn svg { color: var(--text-muted); }
.volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 90px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.35); outline: none; cursor: pointer;
}
html.light .volume-slider { background: rgba(0,0,0,.2); }
/* Glass transparent : fond toujours sombre → barre toujours blanche */
body[data-player-style="glass"] #radio-player .volume-slider,
html.light body[data-player-style="glass"] #radio-player .volume-slider { background: rgba(255,255,255,.35) !important; }
/* Glass opaque thème clair : fond blanc → barre sombre */
html.light body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .volume-slider { background: rgba(0,0,0,.2) !important; }
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); cursor: pointer;
}
.player-live-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(230,57,70,.2); color: var(--primary);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; white-space: nowrap;
}
.player-live-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); animation: livePulse 1.4s infinite;
}
.player-vote-btn {
  position: static !important;
  background: rgba(255,255,255,.08) !important;
  border-radius: 20px !important;
  padding: 5px 10px !important;
  gap: 5px !important;
  font-size: .75rem !important;
  white-space: nowrap; flex-shrink: 0;
  justify-content: center !important;
}
.player-vote-btn:hover { background: rgba(255,255,255,.16) !important; }
.player-vote-btn.voted { background: var(--primary) !important; color: #fff !important; }
.player-vote-btn svg { width: 13px !important; height: 13px !important; }
html.light .player-vote-btn { background: rgba(0,0,0,.15) !important; color: var(--text) !important; }
html.light .player-vote-btn:hover { background: rgba(0,0,0,.28) !important; }
html.light .player-vote-btn.voted { background: var(--primary) !important; color: #fff !important; }
/* Glass : cœur identique aux autres boutons */
body[data-player-style="glass"] #radio-player .player-vote-btn,
html.light body[data-player-style="glass"] #radio-player .player-vote-btn { color: #fff !important; background: transparent !important; }
body[data-player-style="glass"] #radio-player .player-vote-btn:hover,
html.light body[data-player-style="glass"] #radio-player .player-vote-btn:hover { background: rgba(255,255,255,.15) !important; }
body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-vote-btn:hover { background: rgba(255,255,255,.12) !important; }
html.light body[data-player-style="glass"][data-glass-bg="opaque"] #radio-player .player-vote-btn:hover { background: rgba(0,0,0,.08) !important; }

/* ============================================================
   PLAYER — Disposition des contrôles (PC uniquement)
   ============================================================ */
/* Centre : grille 3 colonnes, contrôles au milieu */
@media (min-width: 769px) {
  body[data-player-controls="center"][data-player-style="sticky"] .player-inner,
  body[data-player-controls="center"][data-player-style="glass"]  .player-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  body[data-player-controls="center"][data-player-style="sticky"] .player-left,
  body[data-player-controls="center"][data-player-style="glass"]  .player-left   { grid-column: 1; }
  body[data-player-controls="center"][data-player-style="sticky"] .player-center,
  body[data-player-controls="center"][data-player-style="glass"]  .player-center { grid-column: 2; justify-content: center; }
  body[data-player-controls="center"][data-player-style="sticky"] .player-right,
  body[data-player-controls="center"][data-player-style="glass"]  .player-right  { grid-column: 3; justify-content: flex-end; }
  /* Inversé : contrôles à gauche, cover+titre à droite */
  body[data-player-controls="left"][data-player-style="sticky"] .player-inner,
  body[data-player-controls="left"][data-player-style="glass"]  .player-inner { flex-direction: row-reverse; }
  body[data-player-controls="left"][data-player-style="sticky"] .player-center,
  body[data-player-controls="left"][data-player-style="glass"]  .player-center { order: -1; }
  body[data-player-controls="left"][data-player-style="sticky"] .player-right,
  body[data-player-controls="left"][data-player-style="glass"]  .player-right  { justify-content: flex-start; }
}

/* ============================================================
   PLAYER PLEIN ÉCRAN (mobile)
   ============================================================ */
#player-fullscreen {
  display: flex;
  flex-direction: column; align-items: center; justify-content: flex-start;
  position: fixed; inset: 0; z-index: 960;
  background: rgba(var(--bg-rgb, 13,13,13), .72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  gap: 12px; padding: 48px 32px 24px;
  text-align: center; overflow-y: auto;
  opacity: 0; pointer-events: none;
  transform: translateY(6%);
  transition: opacity .35s ease, transform .35s ease;
}
html.light #player-fullscreen {
  background: rgba(240,242,245,.75);
}
.pfs-logo { max-height: 90px; max-width: 260px; width: auto; object-fit: contain; margin-bottom: 8px; opacity: .9; }
/* Logo site dans le PFS : bascule dark/light selon le thème */
.pfs-logo-light { display: none; }
html.light .pfs-logo-dark  { display: none; }
html.light .pfs-logo-light { display: block; }
#player-fullscreen.visible {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
/* Player en haut : le plein écran s'ouvre du haut vers le bas */
body[data-player-position="top"] #player-fullscreen { transform: translateY(-6%); }
body[data-player-position="top"] #player-fullscreen.visible { transform: translateY(0); }
#player-fs-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.1); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
#player-fs-close:hover { background: rgba(255,255,255,.18); color: var(--text); }
#player-fs-close svg { width: 18px; height: 18px; display: block; }
.pfs-cover-wrap {
  width: 280px; height: 280px; border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 16px 48px rgba(0,0,0,.5);
  position: relative;
}
.pfs-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.pfs-cover-wrap svg { width: 70px; height: 70px; color: var(--text-muted); }
.pfs-title {
  font-size: 1.15rem; font-weight: 800;
  color: var(--text); max-width: 280px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pfs-artist { font-size: .9rem; color: var(--text-muted); }
.pfs-stream-wrap { width: 100%; max-width: 260px; margin: 0 auto; }
/* Dropdown centré dans le player plein écran */
.pfs-stream-wrap .stream-dropdown { width: 100%; }
.pfs-stream-wrap .stream-dropdown-trigger { max-width: none; width: 100%; justify-content: center; }
.pfs-stream-wrap .stream-dropdown-list { left: 0; width: 100%; min-width: unset; }
.pfs-stream-wrap select {
  width: 100%; padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: var(--text); font-size: .82rem; text-align: center;
  cursor: pointer; display: block; margin: 0 auto;
}
html.light .pfs-stream-wrap select { background: rgba(0,0,0,.07); border-color: rgba(0,0,0,.15); }
.pfs-controls { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.pfs-play-btn { width: 60px !important; height: 60px !important; }
.pfs-play-btn svg { width: 26px !important; height: 26px !important; }
#pfs-video-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
#pfs-video-btn:hover { background: rgba(255,255,255,.22); }
#pfs-vote-btn {
  position: absolute !important;
  top: 10px; right: 10px;
  width: 36px !important; height: 36px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: rgba(0,0,0,.45) !important;
  backdrop-filter: blur(4px);
  color: #fff !important;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
#pfs-vote-btn:hover { transform: scale(1.1); background: rgba(0,0,0,.65) !important; }
#pfs-vote-btn .track-vote-count { display: none; }
#pfs-vote-btn svg { width: 18px !important; height: 18px !important; stroke: currentColor !important; flex-shrink: 0; }
#pfs-vote-btn.voted { background: var(--primary) !important; }
html.light #pfs-vote-btn { background: rgba(0,0,0,.35) !important; }

/* ============================================================
   CLASSEMENT TOP 5
   ============================================================ */
#classement { background: var(--bg2); }
.classement-list { display: flex; flex-direction: column; gap: 10px; max-width: 700px; margin: 0 auto; }
.classement-item {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  transition: transform .18s, box-shadow .18s;
}
.classement-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.classement-rank {
  font-size: 1.4rem; font-weight: 800; min-width: 40px; text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.rank-1 { color: #f59e0b; }
.rank-2 { color: #9ca3af; }
.rank-3 { color: #b87333; }
.classement-cover {
  width: 52px; height: 52px; border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,.07); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.classement-cover img { width: 100%; height: 100%; object-fit: cover; }
.classement-cover-placeholder svg { width: 22px; height: 22px; color: var(--text-muted); }
.classement-info { flex: 1; min-width: 0; }
.classement-title  { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.classement-artist { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.classement-votes {
  display: flex; align-items: center; gap: 5px;
  color: var(--primary); font-weight: 700; font-size: .88rem; flex-shrink: 0;
}
/* Bouton vote dans la pochette du classement — visible au hover */
.classement-vote-btn {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.18); border: none; border-radius: 0;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity .22s;
  z-index: 2;
}
.classement-item:hover .classement-vote-btn { opacity: 1; }
.classement-vote-btn.voted { opacity: 1 !important; background: rgba(0,0,0,.22) !important; color: #fff !important; }
.classement-vote-btn.voted svg { fill: var(--primary) !important; stroke: var(--primary) !important; filter: drop-shadow(0 0 6px var(--primary)); }
.classement-vote-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); }
.classement-vote-btn .track-vote-count { display: none; }
html.light .classement-item { background: rgba(0,0,0,.03); }
/* Ticker dédicaces dans la barre sociale */
.nav-ded-ticker {
  flex: 1; overflow: hidden; min-width: 0; display: none;
  align-items: center;
}
/* Carrousel : fondu sur les deux bords */
.nav-ded-ticker[data-mode="carousel"] {
  mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}
/* Une par une : fondu uniquement sur le bord droit pour le dépassement */
.nav-ded-ticker[data-mode="onebyone"] {
  mask-image: linear-gradient(to right, black calc(100% - 32px), transparent);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent);
}
@media (min-width: 901px) { .nav-ded-ticker { display: flex; } }
/* Mode carrousel */
.nav-ded-ticker[data-mode="carousel"] .nav-ded-ticker-inner {
  display: inline-flex; gap: 48px; white-space: nowrap;
  animation: navDedScroll var(--ticker-dur, 40s) linear infinite;
}
.nav-ded-ticker[data-mode="carousel"] .nav-ded-ticker-inner:hover { animation-play-state: paused; }
/* Mode une par une */
.nav-ded-ticker[data-mode="onebyone"] .nav-ded-ticker-inner {
  display: flex; align-items: center; height: 100%; overflow: hidden;
}
.nav-ded-ticker[data-mode="onebyone"] .nav-ded-item {
  display: none; white-space: nowrap; flex-shrink: 0;
}
.nav-ded-item { font-size: .85rem; color: var(--text-muted); }
.nav-ded-item strong { color: var(--primary); margin-right: 4px; }
@keyframes navDedScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Badge + bouton dans la barre ticker */
.ded-ticker-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--primary); color: #fff;
  font-size: .75rem; font-weight: 600; white-space: nowrap;
  padding: 0 14px; border-radius: 0; flex-shrink: 0;
  align-self: stretch;
}
.ded-ticker-badge svg { width: 12px; height: 12px; flex-shrink: 0; }
.ded-ticker-send-btn {
  display: inline-flex; align-items: center;
  background: transparent; border: 1px solid var(--primary); color: var(--primary);
  font-size: .75rem; font-weight: 600; white-space: nowrap;
  padding: 3px 10px; border-radius: 20px; cursor: pointer; flex-shrink: 0;
  transition: background .2s, color .2s;
}
.ded-ticker-send-btn:hover { background: var(--primary); color: #fff; }
/* Popup dédicace */
.ded-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.ded-popup-overlay.is-open { opacity: 1; pointer-events: all; }
.ded-popup-box {
  background: var(--nav-bg); border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-width: 480px; padding: 24px;
  transform: translateY(16px); transition: transform .25s;
  max-height: 90vh; overflow-y: auto;
}
html.light .ded-popup-box { background: #ffffff; }
.ded-popup-overlay.is-open .ded-popup-box { transform: translateY(0); }
.ded-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.ded-popup-header h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.05rem; font-weight: 700; color: var(--text);
}
.ded-popup-header h3 svg { width: 16px; height: 16px; color: var(--primary); }
.ded-popup-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.3rem; line-height: 1;
  padding: 4px 8px; border-radius: 6px; transition: background .2s, color .2s;
}
.ded-popup-close:hover { background: rgba(255,255,255,.08); color: var(--text); }
html.light .ded-popup-close:hover { background: rgba(0,0,0,.06); }
#ded-popup-form .btn-submit { width: 100%; justify-content: center; margin-top: 16px; }
#ded-popup-form .form-group { gap: 6px; margin-bottom: 16px; }
#ded-popup-form .form-group:last-of-type { margin-bottom: 0; }
#ded-popup-form label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }

/* ============================================================
   PARTENAIRES
   ============================================================ */
#partenaires { background: var(--bg); }
.partners-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 24px; align-items: center;
}
.partner-card {
  display: flex; align-items: center; justify-content: center;
  padding: 12px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  transition: transform .18s, box-shadow .18s, background .18s;
  text-decoration: none; min-width: 100px; min-height: 60px;
  width: 160px; height: 90px;
}
.partner-size-s  { width: 120px; height: 70px; }
.partner-size-m  { width: 160px; height: 90px; }
.partner-size-l  { width: 220px; height: 130px; }
.partner-size-xl { width: 300px; height: 170px; }
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: rgba(255,255,255,.08); }
.partner-card img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(40%); transition: filter .2s; }
.partner-card:hover img { filter: grayscale(0%); }
.partner-name { font-size: .92rem; font-weight: 700; color: var(--text-muted); }
html.light .partner-card { background: rgba(0,0,0,.03); }
html.light .partner-card img { filter: grayscale(20%); }

/* ============================================================
   MOSAÏQUE RADIOS — cartes (frontend + admin identiques)
   ============================================================ */
#radios { background: var(--bg-secondary); }

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

/* ---- Carte ---- */
.radio-mosaic-card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  padding: 0; font-family: inherit; color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-align: left; user-select: none;
}
.radio-mosaic-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
}
.radio-mosaic-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), 0 6px 20px rgba(0,0,0,.25);
}

/* ---- Zone logo : hauteur fixe, logo centré ---- */
.rmc-logo-wrap {
  position: relative;
  height: 140px;          /* hauteur fixe → cartes toutes identiques */
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.rmc-logo {
  max-width: 78%; max-height: 78%;
  object-fit: contain; display: block;
  transition: transform .25s;
}
.radio-mosaic-card:hover .rmc-logo { transform: scale(1.06); }
.rmc-placeholder {
  color: var(--text-muted); opacity: .25;
}

/* ---- Overlay hover ---- */
.rmc-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(3px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: opacity .22s;
}
.radio-mosaic-card:hover .rmc-overlay,
.radio-mosaic-card.active .rmc-overlay { opacity: 1; }

.rmc-overlay-name {
  font-size: .78rem; font-weight: 700; color: #fff;
  text-align: center; padding: 0 10px; line-height: 1.3;
  letter-spacing: .01em;
}
.rmc-play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transform: scale(.7); transition: transform .22s;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.rmc-play-btn svg { margin-left: 3px; }  /* optique : centre visuel du triangle */
.radio-mosaic-card:hover .rmc-play-btn,
.radio-mosaic-card.active .rmc-play-btn { transform: scale(1); }

/* ---- Pied de carte ---- */
.rmc-footer {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px 11px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  text-align: center; align-items: center;
}
.rmc-name {
  font-size: .82rem; font-weight: 700; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  width: 100%;
}
.rmc-track {
  font-size: .68rem; color: var(--primary); opacity: .85;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-height: 1em; width: 100%;
}
.rmc-track:empty::before { content: '—'; color: var(--text-muted); opacity: .5; }

/* ---- Thème clair ---- */
html.light .radio-mosaic-card { background: #fff; }
html.light .rmc-footer { background: #fff; }
html.light .rmc-logo-wrap { background: rgba(0,0,0,.03); }
html.light .radio-mosaic-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .radio-mosaic-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .rmc-logo-wrap { height: 110px; }
}

/* ---- Admin : grille contrainte + drag cursor ---- */
.admin-mosaic-draggable {
  grid-template-columns: repeat(auto-fill, 170px) !important;
}
.admin-mosaic-draggable .radio-mosaic-card { cursor: grab; }
.admin-mosaic-draggable .radio-mosaic-card:active { cursor: grabbing; }

/* ---- Admin : toggle switch mosaïque ---- */
.mosaic-toggle { display:inline-flex; align-items:center; cursor:pointer; position:relative; }
.mosaic-toggle input { opacity:0; width:0; height:0; position:absolute; }
.mosaic-toggle-slider {
  width:42px; height:24px; border-radius:12px;
  background:var(--border); transition:background .2s;
  position:relative; flex-shrink:0;
}
.mosaic-toggle-slider::after {
  content:''; position:absolute; top:3px; left:3px;
  width:18px; height:18px; border-radius:50%;
  background:#fff; transition:transform .2s;
}
.mosaic-toggle input:checked + .mosaic-toggle-slider { background:var(--primary); }
.mosaic-toggle input:checked + .mosaic-toggle-slider::after { transform:translateX(18px); }

/* ============================================================
   MODULES PERSONNALISÉS
   ============================================================ */
.custom-module-section { padding: 60px 0; }
.custom-module-block   { width: 100%; }
.iframe-mob-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.iframe-mob-wrap iframe,
.iframe-mob-wrap .ql-video {
  width: 100%; border: none; display: block;
  transform-origin: 0 0;
}
/* Empêcher les iframes de déborder horizontalement */
.custom-page-content iframe,
.custom-page-content .ql-video {
  max-width: 100%;
}
/* Alignements Quill.js — pages perso (page.php + overlay SPA) */
.custom-page-content .ql-align-center,
.custom-page-content [style*="text-align: center"],
.custom-page-content [style*="text-align:center"]  { text-align: center !important; }
.custom-page-content .ql-align-right,
.custom-page-content [style*="text-align: right"],
.custom-page-content [style*="text-align:right"]   { text-align: right  !important; }
.custom-page-content .ql-align-justify,
.custom-page-content [style*="text-align: justify"],
.custom-page-content [style*="text-align:justify"] { text-align: justify !important; }
.custom-page-content .ql-align-left,
.custom-page-content [style*="text-align: left"],
.custom-page-content [style*="text-align:left"]    { text-align: left   !important; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--footer-bg);
  padding: 0 0 calc(var(--player-h) + 16px);
  position: relative;
}
.footer-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  opacity: .85;
}
/* ============================================================
   BANNIÈRES PUB
   ============================================================ */
#bannieres { background: var(--bg); padding: 24px 0; }
.banners-wrap {
  max-width: 728px; height: 90px; margin: 0 auto;
  overflow: hidden; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.banner-link { display: block; line-height: 0; }
.banner-img  { width: 728px; height: 90px; object-fit: cover; border-radius: 8px; }
@media (max-width: 768px) {
  .banners-wrap { max-width: 100%; height: auto; }
  .banner-img  { width: 100%; height: auto; max-height: 90px; }
}

.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
/* Nouveau layout flex : brand à gauche + rangées à droite */
.footer-layout-wrap {
  display: flex; align-items: flex-start; gap: 48px;
  padding: 40px 0 32px;
}
.footer-brand { flex: 0 0 230px; min-width: 0; }
.footer-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding-top: 4px; }
.footer-row { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-row > .footer-col { flex: 1 1 140px; min-width: 0; }
/* Logo dans le footer */
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 40px; max-width: 180px; }
.footer-tagline { font-size: .875rem; color: var(--text-muted); line-height: 1.65; max-width: 280px; margin-bottom: 4px; }
.footer-socials { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.footer-social {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); color: var(--text-muted);
  transition: background .2s, color .2s, transform .15s;
  border: 1px solid rgba(255,255,255,.07);
}
.footer-social:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.footer-social svg { width: 15px; height: 15px; }
.footer-col { }
.footer-col-title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 18px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  display: flex; align-items: center; gap: 7px;
  font-size: .875rem; color: var(--text-muted);
  transition: color .2s, gap .2s;
  text-decoration: none;
}
.footer-links a:hover { color: var(--primary); gap: 10px; }
.footer-links a svg { width: 12px; height: 12px; flex-shrink: 0; opacity: .55; transition: opacity .2s; }
.footer-links a:hover svg { opacity: 1; }
.footer-bottom {
  padding: 20px 0; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 20px;
  flex-wrap: wrap; font-size: .8rem; color: var(--text-muted);
}
.footer-mentions {
  color: var(--text-muted); text-decoration: none;
  border-bottom: 1px dotted var(--text-muted);
  transition: color .2s, border-color .2s;
}
.footer-mentions:hover { color: var(--primary); border-color: var(--primary); }

/* Modules personnalisés dans le footer */
.footer-col-module .footer-module-content {
  font-size: .875rem; color: var(--text-muted); line-height: 1.65;
}
.footer-col-module .footer-module-content p { margin: 0 0 8px; }
.footer-col-module .footer-module-content p:last-child { margin-bottom: 0; }
.footer-col-module .footer-module-content a { color: var(--primary); text-decoration: none; }
.footer-col-module .footer-module-content a:hover { text-decoration: underline; }
.footer-col-module .footer-module-content img { max-width: 100%; border-radius: 6px; }
.footer-col-module iframe { min-height: 120px; }
/* Lien "retour section" quand le module est aussi affiché en page d'accueil */
.footer-module-section-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: var(--primary); font-size: .85rem; font-weight: 600;
  text-decoration: none; transition: background .2s, border-color .2s;
}
.footer-module-section-link:hover {
  background: rgba(255,255,255,.13); border-color: var(--primary);
  text-decoration: none;
}

/* Footer moderne (centré) */
footer.footer-modern .footer-layout-wrap {
  flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
footer.footer-modern .footer-brand { flex: none; display: flex; flex-direction: column; align-items: center; }
footer.footer-modern .footer-rows { width: 100%; max-width: 720px; }
footer.footer-modern .footer-row { justify-content: center; }
footer.footer-modern .footer-tagline { text-align: center; max-width: 420px; }
footer.footer-modern .footer-socials { justify-content: center; }
footer.footer-modern .footer-col { display: none; }

.footer-app-badges {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 14px;
}
.footer-app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
  padding: 8px 16px;
  transition: background .15s, border-color .15s;
}
.footer-app-badge:hover { background: #222; border-color: rgba(255,255,255,.3); }
.footer-app-badge svg { flex-shrink: 0; display: block; }
.footer-app-badge-text {
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; line-height: 1.2;
}
.footer-app-badge-sub { font-size: 9px; opacity: .72; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.footer-app-badge-name { font-size: 14px; font-weight: 700; white-space: nowrap; margin-top: 1px; }

/* ============================================================
   UTILITAIRES
   ============================================================ */
.loading {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 40px; color: var(--text-muted);
}
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  text-align: center; padding: 48px;
  color: var(--text-muted); font-size: .95rem;
}
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 12px; opacity: .4; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
/* App banner */
#app-banner { position: fixed; bottom: calc(var(--player-h) + 8px); left: 0; right: 0; z-index: 850; }
.app-banner-inner {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2-solid, var(--bg2)); border-top: 3px solid var(--primary);
  padding: 10px 16px; max-width: 480px; margin: 0 auto;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.4);
}
.app-banner-text { flex: 1; min-width: 0; }
.app-banner-text strong { display: block; font-size: .88rem; color: var(--text); }
.app-banner-text span { font-size: .78rem; color: var(--text-muted); }
.app-banner-close { color: var(--text-muted); font-size: 1rem; padding: 4px 8px; border-radius: 4px; transition: color .2s; }
.app-banner-close:hover { color: var(--text); }
/* Live vidéo modal */
#live-video-modal {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.85); align-items: center; justify-content: center;
}
#live-video-modal.open { display: flex; }
.live-video-wrap {
  position: relative; width: min(860px, calc(100vw - 32px));
  aspect-ratio: 16/9; background: #000; border-radius: var(--radius);
  overflow: hidden;
}
.live-video-wrap iframe { width: 100%; height: 100%; border: 0; }
#live-video-close {
  position: absolute; top: -36px; right: 0; color: #fff;
  font-size: 1.2rem; padding: 4px 10px; border-radius: 4px;
  background: rgba(255,255,255,.1);
}
#live-video-close:hover { background: rgba(255,255,255,.2); }

.cookie-banner {
  position: fixed; bottom: calc(var(--player-h) + 12px); left: 50%; transform: translateX(-50%);
  background: var(--bg2-solid, var(--bg2)); border: 1px solid var(--border); border-top: 3px solid var(--primary);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  width: calc(100vw - 32px); max-width: 760px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  z-index: 9000;
  transition: transform .4s ease, opacity .4s;
}
.cookie-text { flex: 1 1 260px; font-size: .85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn { padding: 8px 18px; border-radius: 6px; font-size: .82rem; font-weight: 700; cursor: pointer; border: none; transition: opacity .2s; }
.cookie-btn-accept { background: var(--primary); color: #fff; }
.cookie-btn-decline { background: rgba(255,255,255,.08); color: var(--text-muted); border: 1px solid var(--border); }
.cookie-btn:hover { opacity: .8; }
html.light .cookie-banner { background: var(--bg2-solid, #fff); border-color: rgba(0,0,0,.1); }
html.light .cookie-btn-decline { background: rgba(0,0,0,.05); }

/* ============================================================
   MODAL (mentions légales)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-box {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 640px; max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.07); color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s;
}
.modal-close svg { width: 16px; height: 16px; display: block; }
.modal-close:hover { background: rgba(255,255,255,.14); color: var(--text); }
.modal-body {
  padding: 24px; overflow-y: auto;
  font-size: .9rem; line-height: 1.7; color: var(--text-muted);
}
.modal-body h2, .modal-body h3 { color: var(--text); margin: 16px 0 6px; }
html.light .modal-box { background: #fff; }
html.light .modal-close { background: rgba(0,0,0,.06); }

/* Forcer un fond opaque et une couleur de texte adaptée au thème, même si le contenu
   collé (Word, Google Docs…) contient des styles inline (background/color codés en dur) */
#mentions-modal .modal-box { background: var(--bg2-solid, var(--bg2)) !important; }
html.light #mentions-modal .modal-box { background: var(--bg2-solid, #fff) !important; }
#mentions-modal .modal-body,
#mentions-modal .modal-body * {
  background: transparent !important;
  color: var(--text-muted) !important;
}
#mentions-modal .modal-body h1,
#mentions-modal .modal-body h2,
#mentions-modal .modal-body h3,
#mentions-modal .modal-body h4,
#mentions-modal .modal-body strong,
#mentions-modal .modal-body b {
  color: var(--text) !important;
}

/* ============================================================
   POPUP VILLES D'ÉCOUTE
   ============================================================ */
.city-popup-overlay {
  position: fixed; inset: 0; z-index: 9600;
  background: rgba(0,0,0,.82);
  display: flex; align-items: center; justify-content: center;
}
.city-popup-box {
  max-width: 440px; width: 90%;
  background: #1a1a2e; border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.city-popup-header {
  padding: 32px 28px 20px; text-align: center;
}
.city-popup-header svg { width: 40px; height: 40px; color: var(--primary); margin-bottom: 14px; }
.city-popup-header h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.city-popup-header p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.city-list {
  padding: 0 20px; display: flex; flex-direction: column; gap: 8px;
  max-height: 300px; overflow-y: auto;
}
.city-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; text-align: left; width: 100%;
  transition: background .2s, border-color .2s;
}
.city-btn:hover { background: rgba(255,255,255,.08); border-color: var(--primary); }
.city-btn-icon svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.city-btn-img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.city-map-container { margin: 0 -20px; width: calc(100% + 40px); height: 300px; }
#city-map { width: 100%; height: 100%; }
.footer-col-cities-map { min-width: 220px; }
.footer-cities-map-wrap { height: 200px; border-radius: 10px; overflow: hidden; margin-top: 6px; isolation: isolate; position: relative; }
#city-footer-map { width: 100%; height: 100%; }
.city-map-marker { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.6); cursor: pointer; transition: transform .15s; }
.city-map-marker:hover { transform: scale(1.15); }
.city-map-marker img { width: 100%; height: 100%; object-fit: cover; display: block; }
.city-map-marker--dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5); cursor: pointer; transition: transform .15s; }
.city-map-marker--dot:hover { transform: scale(1.2); }
.city-map-tooltip { background: rgba(10,10,20,.9) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.15) !important; border-radius: 6px !important; font-weight: 600 !important; font-size: .85rem !important; padding: 4px 10px !important; box-shadow: 0 4px 12px rgba(0,0,0,.5) !important; z-index: 10000 !important; }
/* Le tooltip doit passer devant les contrôles de zoom (+/-) de Leaflet */
.leaflet-tooltip-pane { z-index: 10000 !important; }
.city-map-tooltip::before { display: none !important; }
.leaflet-control-attribution { font-size: .65rem !important; background: rgba(0,0,0,.5) !important; color: rgba(255,255,255,.5) !important; }
.leaflet-control-attribution a { color: rgba(255,255,255,.5) !important; }
.city-btn-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.city-btn-name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.city-btn-arrow { color: var(--text-muted); font-size: .85rem; flex-shrink: 0; }
.city-freq-badge { font-size: .7rem; font-weight: 700; color: var(--primary); background: rgba(230,57,70,.12); border: 1px solid rgba(230,57,70,.3); border-radius: 4px; padding: 2px 6px; white-space: nowrap; align-self: flex-start; }
.city-skip {
  display: block; width: 100%; text-align: center;
  padding: 16px; margin-top: 8px; border: none; background: none;
  color: var(--text-muted); font-size: .82rem; cursor: pointer;
  transition: color .2s;
}
.city-skip:hover { color: var(--text); }
html.light .city-popup-box { background: #fff; }
html.light .city-btn { background: rgba(0,0,0,.03); }
html.light .city-btn:hover { background: rgba(0,0,0,.07); }

/* Menu trop large pour l'écran → bascule burger automatique (JS ajoute .nav-overflow) */
#navbar.nav-overflow .nav-links { display: none !important; }
#navbar.nav-overflow .nav-burger { display: flex !important; flex-shrink: 0; }
/* En mode burger sur PC : icônes sociales centrées et grandes (comme mobile) */
#navbar.nav-overflow .nav-social-bar-wrap { justify-content: center; padding: 0 16px 0 0; }
#navbar.nav-overflow .nav-social-bar-inner { gap: 6px; margin-left: 0; }
#navbar.nav-overflow .nav-social-bar .nav-social-link { width: 40px; height: 40px; border-radius: 8px; }
#navbar.nav-overflow .nav-social-bar .nav-social-link svg { width: 20px; height: 20px; }

/* ── Backdrop du drawer (overlay PC) ── */
.nav-drawer-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 1055;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .38s cubic-bezier(.4,0,.2,1);
}
.nav-drawer-backdrop.active {
  display: block;
  animation: drawerBackdropIn .38s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes drawerBackdropIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Drawer latéral droit (overlay, PC nav-overflow) ── */
body:has(#navbar.nav-overflow) .nav-mobile {
  left: auto; right: 0; width: 320px;
  top: 0; bottom: 0;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 64px rgba(0,0,0,.35);
  padding-top: calc(var(--nav-h) + var(--nav-extra-h, 0px) + 16px);
  padding-left: 12px; padding-right: 12px;
  z-index: 1060;
}
body:has(#navbar.nav-overflow) .nav-mobile.open {
  animation: drawerSlideIn .38s cubic-bezier(.4,0,.2,1) forwards;
}
body:has(#navbar.nav-overflow) .nav-mobile.closing {
  animation: drawerSlideOut .38s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes drawerSlideIn  { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes drawerSlideOut { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* En mode clair, fond solide pour le drawer */
html.light body:has(#navbar.nav-overflow) .nav-mobile { background: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-layout-wrap { gap: 32px; }
  .footer-brand { flex: 0 0 200px; }
}
@media (max-width: 768px) {
  :root { --nav-h: 56px; --player-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  /* Logo centré sur mobile via positionnement absolu */
  .nav-container { padding: 0 16px; gap: 12px; overflow: visible; position: relative; height: 56px; }
  .nav-logo:not(.footer-logo) { position: absolute; left: 50%; transform: translateX(-50%); }
  /* Burger : pousse à droite, même style boîte que le theme-toggle, couleur forcée */
  .nav-burger { display: flex; flex-shrink: 0; margin-left: auto; padding: 6px 8px; position: relative; z-index: 1; color: var(--text-muted) !important; }
  /* Barre sociale mobile : 28px (= même hauteur que la rangée socials du slim-topbar) */
  .nav-social-bar { height: 28px; }
  .nav-social-bar-wrap { justify-content: center !important; padding: 0 12px; height: 28px; align-items: center; }
  .nav-social-bar-inner { margin-left: 0 !important; gap: 4px; }
  .nav-social-bar .nav-social-link { width: 24px; height: 24px; }
  .nav-social-bar .nav-social-link svg { width: 14px; height: 14px; }
  /* Masquer le ticker dédicaces sur mobile — seules les icônes sociales restent */
  .ded-ticker-badge, .ded-ticker-send-btn, .nav-ded-ticker { display: none !important; }
  #slider { min-height: 240px; }
  section { padding: 48px 0; }
  .dedications-layout { grid-template-columns: 1fr; }
  .dedication-form input, .dedication-form textarea { max-width: 100%; box-sizing: border-box; }
  .captcha-row { flex-wrap: wrap; gap: 8px; }
  .footer-layout-wrap { flex-direction: column; gap: 20px; padding: 32px 0 24px; }
  .footer-brand { flex: none; width: 100%; }
  .footer-rows { width: 100%; gap: 20px; }
  .footer-row { gap: 20px; }
  .footer-tagline { max-width: 100%; }
  .footer-inner { padding: 0 16px; }
  .weather-main { flex-direction: column; text-align: center; gap: 16px; }
  .weather-search { flex-wrap: wrap; }
  .weather-search input { flex: 1 1 100%; }
  .weather-search button { width: 100%; }
  .weather-details, .weather-forecast { grid-template-columns: repeat(3, 1fr); }
  .player-volume { display: none; }
  .player-live-badge { display: none; }
  #player-expand-btn { display: block; }
  /* Bouton expand visible même en mode mini (forcé sticky sur mobile) */
  body[data-player-style="mini"] #player-expand-btn { display: block; }
  /* Cœur vote : masqué sur mobile (disponible uniquement en plein écran) */
  #player-vote-btn { display: none !important; }
  .nowplaying-card { flex-direction: column; text-align: center; }
  .nowplaying-info { width: 100%; min-width: 0; }
  #podcast-mini-player { flex-wrap: wrap; padding: 10px 14px; gap: 8px; width: calc(100vw - 24px); }
  .pmp-title { flex: 1 1 100%; order: -1; }
  .pmp-time { font-size: .72rem; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  /* Flèches masquées sur mobile : navigation au swipe */
  .slider-arrow { display: none; }
  .slide-content { padding: 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .podcast-grid { grid-template-columns: 1fr; }
  .track-history { grid-template-columns: repeat(3, 1fr); }
  .track-history .track-card:nth-child(n+7) { display: none; }
  .track-history .track-card:nth-child(n+11) { display: unset; }
  .weather-details { grid-template-columns: repeat(2, 1fr); }
  .weather-detail:nth-child(3) { border-right: none; }
  .player-inner { padding: 0 12px; gap: 10px; }
  .player-left   { flex: 1; gap: 8px; min-width: 0; }
  .player-center { gap: 8px; }
  .player-right  { flex: 0; gap: 8px; }
  .player-meta  { max-width: none; }
  .player-cover { width: 40px; height: 40px; }
  /* Sticky + Glass player mobile : play/pause centré, reste à droite */
  body[data-player-style="sticky"] .player-inner,
  body[data-player-style="glass"]  .player-inner { position: relative; }
  body[data-player-style="sticky"] .player-center,
  body[data-player-style="glass"]  .player-center {
    position: absolute;
    left: 50%; top: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 2;
    display: flex; align-items: center; gap: 8px;
  }
  body[data-player-style="sticky"] .player-right,
  body[data-player-style="glass"]  .player-right { flex: 0 0 auto; gap: 6px; margin-left: auto; }
  body[data-player-style="sticky"] #player-video-btn,
  body[data-player-style="glass"]  #player-video-btn { display: none; }
  body[data-player-style="sticky"] .player-left,
  body[data-player-style="glass"]  .player-left {
    max-width: calc(50% - 30px);
    overflow: hidden;
  }
  body[data-player-style="sticky"] .player-meta,
  body[data-player-style="glass"]  .player-meta { overflow: hidden; }
  body[data-player-style="sticky"] .player-artist,
  body[data-player-style="glass"]  .player-artist {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}

/* ============================================================
   MODE CLAIR (light mode)
   ============================================================ */
html.light {
  --bg:              var(--light-bg,         #f5f5f5);
  --bg2:             var(--light-bg2,        #e8e8f0);
  --text:            var(--light-text,       #1a1a2e);
  --text-muted:      var(--light-text-muted, #555566);
  --border:          rgba(0,0,0,.1);
  --nav-bg:          var(--light-nav-bg,     #ffffff);
  --player-bg:       var(--light-player-bg,  #f0f0fa);
  --nav-text:        var(--light-nav-text,   #555566);
  --player-btn-text: var(--light-player-btn, #ffffff);
  --footer-bg:       var(--light-footer-bg,  var(--bg2));
}
html.light body { color: var(--text); }
html.light .nav-links a { color: var(--nav-text); }
html.light .nav-links a:hover { color: var(--text); background: rgba(0,0,0,.06); }
html.light .nav-mobile a { color: var(--nav-text); }
html.light .nav-mobile { background: var(--nav-bg); }
html.light section { background: var(--bg); }
/* En mode clair, le fond est lumineux — on retire les ombres noires sur les titres */
html.light .section-title { text-shadow: none; }
html.light .section-sub   { text-shadow: none; }
html.light .section-tag   { text-shadow: none; }
html.light #direct,
html.light #podcasts { background: var(--bg2); }
html.light #dedicaces { background: rgba(255,255,255,.55); }
html.light #dedicaces .section-title,
html.light #dedicaces .section-sub,
html.light #dedicaces h3,
html.light #dedicaces .form-label,
html.light #dedicaces .dedication-pseudo,
html.light #dedicaces .dedication-message,
html.light #dedicaces .dedication-time,
html.light #dedicaces p { color: #1a1a2e; }
html.light #dedicaces .dedication-time,
html.light #dedicaces .dedication-message { color: #44445a; }
html.light .track-card { background-color: rgba(0,0,0,.08); }
html.light .news-card,
html.light .podcast-card,
html.light .program-card,
html.light .team-card,
html.light .weather-widget { background: #ffffff !important; border-color: rgba(0,0,0,.12) !important; }
html.light .podcast-card,
html.light .program-card,
html.light .team-card { background: #ffffff !important; }
html.light .dedication-item { background: rgba(0,0,0,.04); }
html.light .form-group input,
html.light .form-group textarea {
  background: #ffffff; border-color: rgba(0,0,0,.18); color: #1a1a1a;
}
html.light .form-group input::placeholder,
html.light .form-group textarea::placeholder { color: #9ca3af; }
html.light .form-group input:focus,
html.light .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,57,70,.1); }
html.light .captcha-question { background: var(--nav-bg); border-color: var(--border); }
html.light footer { background: var(--footer-bg); }
html.light .footer-bottom { border-color: var(--border); }
html.light .footer-social { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.08); }
html.light .footer-social:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
html.light #radio-player { background: var(--player-bg); }
html.light #navbar { background: var(--nav-bg); }
html.light #cms-overlay,
html.light #cms-overlay-hdr { background: #1a1a2e !important; }
html.light .player-stream-selector { background: rgba(0,0,0,.08); color: var(--text); }
/* Volume slider visible en mode clair */
html.light .volume-slider { accent-color: var(--primary); background: rgba(0,0,0,.15); }
html.light .player-volume #volume-btn svg { color: var(--text-muted); }
html.light #player-video-btn svg { color: var(--text-muted); }
/* Texte slider toujours blanc (pas affecté par le thème) */
html.light .slide-title { color: #fff !important; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
html.light .slide-sub   { color: rgba(255,255,255,.85) !important; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
/* Hero player : texte adapté au thème clair quand pas de fond image actif */
html.light #hero-player:not(.hero-has-bg) .hero-stream { color: var(--hero-c-stream, var(--text-muted)); text-shadow: none; }
html.light #hero-player:not(.hero-has-bg) .hero-title  { color: var(--hero-c-title,  var(--text));       text-shadow: none; }
html.light #hero-player:not(.hero-has-bg) .hero-artist { color: var(--hero-c-artist, var(--text-muted)); text-shadow: none; }
html.light #hero-player:not(.hero-has-bg) .hero-cover svg { color: rgba(0,0,0,.2); }
/* Fond fixe : pas de text-shadow dans aucun thème */
#hero-player.hero-solid-bg .hero-stream { text-shadow: none; }
#hero-player.hero-solid-bg .hero-title  { text-shadow: none; }
#hero-player.hero-solid-bg .hero-artist { text-shadow: none; }
/* Fond fixe en thème clair : texte sombre, pas d'overlay */
html.light #hero-player.hero-solid-bg .hero-stream { color: var(--hero-c-stream-light, var(--hero-c-stream, var(--text-muted))); }
html.light #hero-player.hero-solid-bg .hero-title  { color: var(--hero-c-title-light,  var(--hero-c-title,  var(--text))); }
html.light #hero-player.hero-solid-bg .hero-artist { color: var(--hero-c-artist-light, var(--hero-c-artist, var(--text-muted))); }
html.light #hero-player.hero-solid-bg::after { display: none !important; }
/* Quand fond image actif en mode clair : overlay sombre derrière le contenu + texte blanc */
html.light #hero-player.hero-has-bg:not(.hero-solid-bg)::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: rgba(0,0,0,.38);
  pointer-events: none;
}
html.light #hero-player.hero-has-bg .hero-inner { z-index: 1; }
html.light #hero-player.hero-has-bg:not(.hero-solid-bg) .hero-stream { color: var(--hero-c-stream, rgba(255,255,255,.6)); }
html.light #hero-player.hero-has-bg:not(.hero-solid-bg) .hero-title  { color: var(--hero-c-title,  #fff); }
html.light #hero-player.hero-has-bg:not(.hero-solid-bg) .hero-artist { color: var(--hero-c-artist, rgba(255,255,255,.8)); }
html.light .slide-btn   { color: #fff; }
/* Barre de volume en mode clair */
html.light #radio-player .player-title  { color: var(--primary); }
html.light #radio-player .player-artist { color: var(--text); }
html.light #radio-player .player-btn-main { color: var(--btn-text); }
html.light #radio-player .player-btn:not(.player-btn-main) { color: var(--text); }
html.light #radio-player .player-btn:not(.player-btn-main):hover { background: rgba(0,0,0,.07); }
html.light #radio-player .player-live-badge { color: var(--primary); border-color: var(--primary); }
/* Contact light mode */
html.light .contact-form-card { background: #fff; border-color: rgba(0,0,0,.1); }
html.light .contact-form-card input,
html.light .contact-form-card select,
html.light .contact-form-card textarea {
  background: #ffffff; border-color: rgba(0,0,0,.18); color: #1a1a1a;
}
html.light .contact-form-card input::placeholder,
html.light .contact-form-card textarea::placeholder { color: #9ca3af; }
html.light .contact-form-card input:focus,
html.light .contact-form-card select:focus,
html.light .contact-form-card textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,57,70,.1); }
html.light .contact-form-card select option { background: #fff; color: #1a1a1a; }
/* Contest light mode */
html.light .contest-card { background: #fff; border-color: rgba(0,0,0,.1); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
html.light .contest-form-wrap input,
html.light .contest-form-wrap textarea {
  background: #ffffff; border-color: rgba(0,0,0,.18); color: #1a1a1a;
}
html.light .contest-form-wrap input::placeholder,
html.light .contest-form-wrap textarea::placeholder { color: #9ca3af; }
html.light .contest-form-wrap input:focus,
html.light .contest-form-wrap textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,57,70,.1); }
html.light .contest-rules { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.1); }
/* Nowplaying light — fond sombre préservé pour lisibilité du texte blanc */
html.light .nowplaying-card { border-color: rgba(0,0,0,.18); }
/* Lisibilité du header de section sur fond flouté (any cover color) */
#direct.has-bg-blur .section-header .section-tag,
#direct.has-bg-blur .section-header .section-title {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
#direct.has-bg-blur .section-header .section-tag {
  background: rgba(230,57,70,.5); border-color: rgba(230,57,70,.6);
}
/* Titres historique dans EN DIRECT — toujours lisibles */
#direct .section-header h3 { color: var(--text); }
.history-all-link { color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; }
#direct.has-bg-blur .section-header h3,
#direct.has-bg-blur .history-all-link { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
html.light #direct .section-header h3 { color: var(--text); }
html.light .history-all-link { color: var(--primary); }
html.light #direct.has-bg-blur .section-header h3 { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.95); }
html.light #direct.has-bg-blur .history-all-link { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.95); }
/* Light mode + blur : track cards et textes lisibles sur fond sombre */
html.light #direct.has-bg-blur .track-card {
  background-color: rgba(0,0,0,.55);
}
html.light #direct.has-bg-blur .track-card-title,
html.light #direct.has-bg-blur .track-card-artist {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
html.light #direct.has-bg-blur .nowplaying-card {
  background-color: rgba(0,0,0,.55);
  border-color: rgba(255,255,255,.15);
}
/* Podcast mini-player light */
html.light #podcast-mini-player { background: var(--bg2-solid, rgba(255,255,255,.93)); border-color: rgba(0,0,0,.1); border-top-color: var(--primary); }
/* Theme toggle text in nav */
html.light .theme-toggle-btn { border-color: rgba(0,0,0,.15); color: var(--text-muted); }
/* Vote heart en mode clair */
html.light .track-vote-btn { background: rgba(0,0,0,.32); color: #fff; }
html.light .track-vote-btn:hover { background: rgba(0,0,0,.52); color: #fff; }
html.light .track-vote-btn.voted { background: var(--primary); color: #fff; }

/* Bouton thème */
/* Réseaux sociaux — barre au-dessus du menu */
.nav-social-bar {
  display: flex; align-items: stretch;
  width: 100%; height: var(--nav-extra-h, 44px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
/* Wrapper : même contrainte que .nav-container → alignement parfait avec logo/menu */
.nav-social-bar-wrap {
  max-width: 1400px; margin: 0 auto; width: 100%;
  padding: 0 24px 0 0; gap: 32px;
  display: flex; align-items: center;
}
.nav-social-bar-inner {
  flex-shrink: 0; margin-left: auto;
  display: flex; align-items: center; justify-content: flex-end; gap: 2px;
}
/* Position gauche : supprime le margin-left auto (PC uniquement) */
@media (min-width: 901px) {
  .nav-social-bar-inner.nav-social-bar-left   { margin-left: 0; }
  .nav-social-bar-inner.nav-social-bar-center { margin-left: auto; margin-right: auto; }
}
.nav-social-bar .nav-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  color: var(--text-muted); text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-social-bar .nav-social-link:hover { color: var(--text); background: rgba(255,255,255,.08); }
.nav-social-bar .nav-social-link svg { width: 20px; height: 20px; display: block; }
@media (min-width: 901px) {
  .nav-social-bar .nav-social-link { width: 28px; height: 28px; border-radius: 6px; }
  .nav-social-bar .nav-social-link svg { width: 15px; height: 15px; }
}

.theme-toggle-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); border-radius: 6px;
  padding: 6px 8px; cursor: pointer; display: flex;
  align-items: center; transition: color .2s, border-color .2s;
  flex-shrink: 0;
}
.theme-toggle-btn:hover { color: var(--text); border-color: var(--primary); }
.theme-toggle-btn svg { width: 16px; height: 16px; display: block; }

/* ============================================================
   SECTION CONTACT
   ============================================================ */
#contact { background: var(--bg); }
.contact-layout {
  display: flex; justify-content: center;
}
.contact-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.contact-info p { color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.contact-recipient-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.contact-recipient-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
}
.contact-recipient-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(230,57,70,.15); border: 1px solid rgba(230,57,70,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.contact-recipient-icon svg { width: 18px; height: 18px; }
.contact-form-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  width: 100%; max-width: 600px;
  backdrop-filter: blur(20px);
}
.contact-form-card .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.contact-form-card label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.14);
  color: #f0f0f0; font-size: .9rem; outline: none; width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder { color: #6b7280; opacity: 1; }
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,.12);
}
.contact-form-card select option { background: #1a1a1a; color: #f0f0f0; }
.contact-form-card textarea { resize: vertical; min-height: 120px; }
.contact-select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text); font-size: .92rem; outline: none;
  transition: border-color var(--transition); margin-bottom: 16px;
}
.contact-select:focus { border-color: var(--primary); }
.contact-select option { background: #1e1e30; color: #f0f0f0; }
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION JEU CONCOURS
   ============================================================ */
#concours { background: var(--bg); }
.contests-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  cursor: grab;
}
.contests-list:active { cursor: grabbing; }
.contests-list::-webkit-scrollbar { height: 4px; }
.contests-list::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 2px; }
.contests-list::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.contest-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 260px;
  scroll-snap-align: start;
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
@media (max-width: 900px) {
  .contest-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .contest-card { flex: 0 0 85%; }
}
.contest-card-img {
  width: 100%; aspect-ratio: 16/7; overflow: hidden;
}
.contest-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.contest-card:hover .contest-card-img img { transform: scale(1.04); }
.contest-card-body {
  padding: 28px; flex: 1; display: flex; flex-direction: column;
}
.contest-card-title {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 8px;
}
.contest-card-desc {
  color: var(--text-muted); font-size: .92rem; margin-bottom: 20px; line-height: 1.6; flex: 1;
}
.contest-form-wrap { margin-top: auto; }
.contest-form-wrap .contact-form {
  background: transparent; border: none; padding: 0;
}
.contest-form-wrap .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 0;
}
.contest-form-wrap .form-group {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px;
}
.contest-form-wrap label {
  font-size: .82rem; font-weight: 600; color: var(--text-muted);
}
.contest-form-wrap input,
.contest-form-wrap textarea {
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.14);
  color: #f0f0f0; font-size: .9rem; outline: none; width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contest-form-wrap input::placeholder,
.contest-form-wrap textarea::placeholder { color: #6b7280; opacity: 1; }
.contest-form-wrap input:focus,
.contest-form-wrap textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,.12);
}
.contest-form-wrap textarea { resize: vertical; min-height: 110px; }
.contest-rules {
  max-width: 700px; margin: 0 auto 32px; padding: 20px 24px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .92rem; line-height: 1.7;
  color: var(--text-muted);
}
.contest-end-date {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px; margin-bottom: 14px;
  font-size: .82rem; font-weight: 600;
  background: rgba(var(--primary-rgb, 230,57,70),.12);
  border: 1px solid rgba(var(--primary-rgb, 230,57,70),.25);
  color: var(--text);
}
.contest-end-date strong { color: var(--primary); }
.contest-closed {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted); font-size: 1rem;
}
.contest-closed strong { color: var(--text); }
@media (max-width: 600px) {
  .contest-form-wrap .form-row { grid-template-columns: 1fr; }
  .contest-form-wrap .contact-form { padding: 20px; }
}

/* ============================================================
   PAGE HISTORIQUE (publique)
   ============================================================ */
.history-page { padding: 100px 0 60px; min-height: 100vh; }
.history-filters {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 20px 0; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.history-filters input,
.history-filters select {
  padding: 9px 14px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text); font-size: .88rem; outline: none;
}
.history-filters input:focus,
.history-filters select:focus { border-color: var(--primary); }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th,
.history-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .88rem; }
.history-table th { color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; }
.history-table td:first-child { width: 60px; }
.history-table img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.history-table .no-cover { width: 44px; height: 44px; border-radius: 6px; background: rgba(255,255,255,.07); display:flex;align-items:center;justify-content:center; color:var(--text-muted); }
.history-page .pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.history-page .pagination a,
.history-page .pagination span { padding: 7px 14px; border-radius: 7px; font-size: .85rem; border: 1px solid var(--border); color: var(--text-muted); }
.history-page .pagination a:hover { border-color: var(--primary); color: var(--primary); }
.history-page .pagination .current-page { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   Chat Widget
   ============================================================ */
.chat-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}
.chat-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: .95rem;
}
.chat-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}
.chat-messages {
  min-height: 360px;
  max-height: 480px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .78rem; color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.chat-msg-body { flex: 1; min-width: 0; }
.chat-msg-name  { font-weight: 700; font-size: .82rem; }
.chat-msg-time  { font-size: .7rem; color: var(--text-muted); margin-left: 6px; }
.chat-msg-text  {
  font-size: .9rem; color: var(--text);
  word-break: break-word; margin-top: 3px; line-height: 1.45;
}
.chat-disabled  { color: var(--text-muted); text-align: center; padding: 48px 20px; font-size: .9rem; }
.chat-form {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-form input[type="text"] {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--text);
  font-size: .88rem;
  width: 100%;
  outline: none;
  transition: border-color .2s;
}
.chat-form input[type="text"]:focus { border-color: var(--primary); }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; }
.chat-send-btn {
  padding: 9px 20px;
  background: var(--primary);
  color: #fff; border: none;
  border-radius: 8px;
  font-weight: 700; font-size: .88rem;
  cursor: pointer; white-space: nowrap;
  transition: opacity .2s;
  flex-shrink: 0;
}
.chat-send-btn:disabled { opacity: .5; cursor: not-allowed; }
html.light .chat-form input[type="text"] { background: rgba(0,0,0,.04); }
html.light .chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); }
/* Assombrit les couleurs générées (md5) potentiellement trop claires sur fond blanc */
html.light .chat-msg-name   { filter: brightness(0.55) saturate(1.3); }
html.light .chat-avatar     { filter: brightness(0.8); }
html.light .chat-role-badge { filter: brightness(0.8); }

/* Badges de rôle */
.chat-role-badge {
  display: inline-block;
  font-size: .65rem; font-weight: 800;
  padding: 1px 6px; border-radius: 4px;
  color: #fff; margin-left: 5px;
  text-transform: uppercase; letter-spacing: .4px;
  vertical-align: middle;
}
/* Token connect bar */
.chat-token-bar {
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: .8rem;
  color: var(--text-muted);
}
.chat-token-bar input {
  flex: 1; background: rgba(255,255,255,.05);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 5px 10px; color: var(--text); font-size: .78rem;
  font-family: monospace; outline: none;
}
.chat-token-bar button {
  padding: 5px 12px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: .78rem; cursor: pointer;
  white-space: nowrap;
}
.chat-mod-connected {
  border-top: 1px solid var(--border);
  padding: 6px 16px;
  font-size: .78rem;
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted);
}
/* Actions mod sur les messages */
.chat-msg-actions {
  display: none;
  gap: 4px;
  margin-top: 4px;
}
.chat-msg:hover .chat-msg-actions { display: flex; }
.chat-mod-btn {
  padding: 2px 8px; border: none; border-radius: 4px;
  font-size: .72rem; font-weight: 700; cursor: pointer;
  transition: opacity .15s;
}
.chat-mod-btn:hover { opacity: .8; }
.chat-mod-btn-del  { background: rgba(239,68,68,.18);  color: #ef4444; }
.chat-mod-btn-ban  { background: rgba(245,158,11,.18); color: #f59e0b; }

/* Modale ban */
.chat-ban-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 16px;
}
.chat-ban-modal.open { display: flex; }
.chat-ban-modal-box {
  background: var(--bg2-solid, var(--bg2)); border: 1px solid var(--border);
  border-radius: 14px; max-width: 380px; width: 100%;
  padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.chat-ban-modal-box h3 { font-size: 1rem; font-weight: 700; margin: 0 0 16px; }
.chat-ban-modal-box label { display: block; font-size: .82rem; color: var(--text-muted); margin-bottom: 4px; }
.chat-ban-modal-box select,
.chat-ban-modal-box input[type="text"] {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; color: var(--text); font-size: .88rem;
  margin-bottom: 12px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.chat-ban-modal-box select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}
.chat-ban-modal-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.chat-ban-modal-btns button {
  padding: 8px 18px; border-radius: 8px; font-weight: 700;
  font-size: .85rem; cursor: pointer; border: none;
}
.chat-ban-modal-btns .btn-cancel {
  background: transparent; border: 1px solid var(--border); color: var(--text);
}
.chat-ban-modal-btns .btn-confirm { background: #f59e0b; color: #fff; }

/* ============================================================
   LEFT SIDEBAR NAV
   ============================================================ */
:root {
  --lnav-w: 64px;       /* largeur collapsed */
  --lnav-w-open: 240px; /* largeur expanded  */
  --lnav-topbar: 48px;  /* hauteur slim topbar */
}

/* ── Layout body ── */
body.nav-left {
  padding-left: var(--lnav-w);
  padding-top: var(--lnav-topbar);
}

/* ── Sidebar ── */
#left-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--lnav-w);
  background: var(--nav-bg, var(--bg));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1100;
  transition: width .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
#left-nav.is-open {
  width: var(--lnav-w-open);
  box-shadow: 4px 0 24px rgba(0,0,0,.18);
}

/* ── Burger ── */
.left-nav-burger {
  width: 100%;
  height: var(--lnav-w);
  min-height: var(--lnav-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 20px;
  flex-shrink: 0;
}
.left-nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
#left-nav.is-open .left-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#left-nav.is-open .left-nav-burger span:nth-child(2) { opacity: 0; }
#left-nav.is-open .left-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Logo (masqué quand replié, visible seulement quand ouvert) ── */
.left-nav-logo {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 14px;
  text-decoration: none;
  overflow: hidden;
  flex-shrink: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transition: max-height .25s, opacity .2s, padding .25s;
}
#left-nav.is-open .left-nav-logo {
  max-height: 80px;
  padding: 10px 16px 14px;
  opacity: 1;
}
.left-nav-logo-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.left-nav-logo-text {
  color: var(--text);
  font-weight: 800;
  font-size: .95rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .2s, transform .2s;
}
#left-nav.is-open .left-nav-logo-text {
  opacity: 1;
  transform: none;
}

/* ── Items nav ── */
.left-nav-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 8px;
}
.left-nav-items::-webkit-scrollbar { width: 3px; }
.left-nav-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.left-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: .88rem;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  transition: background .15s;
  position: relative;
}
.left-nav-item:hover,
.left-nav-item.active { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.left-nav-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.left-nav-icon svg { width: 18px; height: 18px; }
.left-nav-label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  flex: 1;
  text-align: left;
}
#left-nav.is-open .left-nav-label {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Tooltip collapsed */
body:not(.left-nav-open) .left-nav-item::after {
  content: attr(title);
  position: absolute;
  left: calc(var(--lnav-w) + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 1200;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: opacity .15s;
}
body:not(.left-nav-open) .left-nav-item:hover::after { opacity: 1; }

/* ── Sous-menus ── */
.left-nav-group { width: 100%; }
.left-nav-parent { justify-content: flex-start; }
.left-nav-chevron {
  width: 14px; height: 14px;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform .2s;
  opacity: 0;
}
#left-nav.is-open .left-nav-chevron { opacity: 1; }
.left-nav-group.is-open .left-nav-chevron { transform: rotate(180deg); }
.left-nav-sub {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 2px 28px;
}
.left-nav-group.is-open .left-nav-sub { display: flex; }
.left-nav-child {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: .83rem;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.left-nav-child:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--primary); }

/* ── Bouton thème dans sidebar ── */
.left-nav-theme {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  margin-bottom: 8px;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: flex-start;
  /* Réinitialiser le style .theme-toggle-btn pour la sidebar */
  border: none;
  color: var(--text);
}
/* Centré quand la sidebar est repliée : labels réduits à 0 pour que justify-content:center fonctionne */
#left-nav:not(.is-open) .left-nav-label {
  flex: 0;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
/* Chevron retiré du flux quand replié (margin-left:auto bloquerait le centrage) */
#left-nav:not(.is-open) .left-nav-chevron { display: none; }
#left-nav:not(.is-open) .left-nav-theme { justify-content: center; }
#left-nav:not(.is-open) .left-nav-item  { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
.left-nav-theme svg { width: 18px; height: 18px; display: block; flex-shrink: 0; }

/* ── Overlay mobile ── */
.left-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1090;
}
.left-nav-overlay.is-visible { display: block; }

/* ── Slim topbar ── */
#slim-topbar {
  position: fixed;
  top: 0;
  left: var(--lnav-w);
  right: 0;
  height: var(--lnav-topbar);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 20px;
  background: var(--nav-bg, var(--bg));
  border-bottom: 1px solid var(--border);
  z-index: 1050;
  transition: left .25s cubic-bezier(.4,0,.2,1);
}
body.left-nav-open #slim-topbar { left: var(--lnav-w-open); }
.slim-topbar-slogan {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: auto;
  padding-left: 8px;
}
.slim-topbar-socials {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.slim-topbar-socials .nav-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  color: var(--text-muted);
  transition: color .2s, background .2s;
  text-decoration: none;
}
.slim-topbar-socials .nav-social-link:hover { color: var(--text); background: rgba(128,128,128,.1); }
.slim-topbar-socials .nav-social-link svg { width: 15px; height: 15px; display: block; }

/* ── Logo slim-topbar (visible quand sidebar repliée) ── */
.slim-topbar-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
  opacity: 1;
  transition: opacity .2s;
}
.slim-topbar-logo img { height: 34px; width: auto; object-fit: contain; }
.slim-topbar-logo-text { font-weight: 800; color: var(--text); font-size: .9rem; white-space: nowrap; }
.slim-topbar-logo .logo-light { display: none; }
html.light .slim-topbar-logo .logo-dark { display: none; }
html.light .slim-topbar-logo .logo-light { display: block; }
/* Masqué quand la sidebar est ouverte (logo déjà visible dans la sidebar) */
body.left-nav-open .slim-topbar-logo { opacity: 0; pointer-events: none; }

/* ── En mode sidebar, masquer navbar top ── */
body.nav-left #navbar,
body.nav-left #nav-mobile { display: none !important; }

/* ── Ajustement sections/player en mode sidebar ── */
body.nav-left #sections-wrapper { padding-top: 0; }
/* Player bas décalé pour ne pas chevaucher la sidebar */
body.nav-left #radio-player { left: var(--lnav-w); transition: left .25s cubic-bezier(.4,0,.2,1); }
body.nav-left.left-nav-open #radio-player { left: var(--lnav-w-open); }

/* ── Mode sidebar : nav-top-overlap sans effet (option désactivée dans l'admin) ── */
/* Le body a déjà padding-top: var(--lnav-topbar), sections-wrapper n'en a pas besoin */
body.nav-left.nav-top-overlap #sections-wrapper { padding-top: 0 !important; }
body.nav-left.nav-top-overlap section[id] { scroll-margin-top: var(--lnav-topbar) !important; }

/* ── Barre ticker dédicaces en mode left_sidebar (desktop uniquement) ── */
#left-ticker-bar {
  position: fixed;
  top: 0;
  left: var(--lnav-w);
  right: 0;
  height: 36px;
  z-index: 1051;
  display: none;
  align-items: center;
  padding: 0 20px 0 0;
  gap: 8px;
  background: var(--nav-bg, var(--bg));
  border-bottom: 1px solid var(--border);
  transition: left .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
body.left-nav-open #left-ticker-bar { left: var(--lnav-w-open); }
@media (min-width: 769px) {
  #left-ticker-bar { display: flex; }
  #left-ticker-bar .nav-ded-ticker { display: flex; }
  /* Slim-topbar descend quand le ticker est présent */
  #left-ticker-bar + #slim-topbar { top: 36px; }
  /* Ajustement du padding-top du body */
  body.nav-left:has(#left-ticker-bar) { padding-top: calc(var(--lnav-topbar) + 36px); }
}

/* ── Burger slim-topbar (mobile uniquement) ── */
.slim-topbar-burger {
  display: none; /* masqué sur desktop */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.slim-topbar-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
body.left-nav-open .slim-topbar-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.left-nav-open .slim-topbar-burger span:nth-child(2) { opacity: 0; }
body.left-nav-open .slim-topbar-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile (< 768px) ── */
@media (max-width: 768px) {
  body.nav-left {
    padding-left: 0;
    padding-top: 84px; /* 28px socials + 56px logo+burger */
  }
  #left-nav {
    width: 0;
    border-right: none;
    overflow: hidden; /* empêche le thème toggle de déborder */
  }
  #left-nav.is-open {
    width: var(--lnav-w-open);
    border-right: 1px solid var(--border);
    overflow: visible;
  }
  /* Player bas : pas de décalage sur mobile */
  body.nav-left #radio-player { left: 0 !important; }
  /* Player fullscreen au-dessus de la sidebar (z-index 1100) */
  body.nav-left #player-fullscreen { z-index: 1200; }

  /* slim-topbar mobile : 2 rangées via CSS grid */
  #slim-topbar {
    left: 0 !important;
    display: grid;
    grid-template-rows: 28px 56px;
    grid-template-columns: 56px 1fr 56px;
    height: 84px;
    padding: 0;
    gap: 0;
    justify-content: unset;
    align-items: unset;
  }
  /* Rangée 1 : réseaux sociaux centrés */
  .slim-topbar-socials {
    grid-row: 1; grid-column: 1 / -1;
    justify-content: center;
    border-bottom: 1px solid rgba(128,128,128,.12);
    padding: 0 12px;
  }
  /* Rangée 2, col 1 : burger */
  .slim-topbar-burger {
    display: flex;
    grid-row: 2; grid-column: 1;
    align-self: center; justify-self: center;
  }
  /* Rangée 2, col 2 : logo centré */
  .slim-topbar-logo {
    grid-row: 2; grid-column: 2;
    display: flex !important;
    justify-content: center;
    align-self: center;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  /* Col 3 vide pour équilibrer le centrage du logo */
  .slim-topbar-slogan { display: none; }
}

/* ════════════════════════════════════════════════════════
   NAV LAYOUT — Barre supérieure + player intégré
   ════════════════════════════════════════════════════════ */
:root { --navp-bar-h: 76px; }

/* Navbar 2 rangées (mode two_rows) */
body.nav-top-player:not(.nav-player-inline) #navbar.navbar-with-player {
  height: auto;
  flex-direction: column;
}
/* Réduire la hauteur des onglets en two_rows (70px c'est trop avec navp-bar au-dessus) */
body.nav-top-player:not(.nav-player-inline) .nav-container {
  height: 56px;
}
/* Un seul séparateur visible : la ligne du navp-bar suffit, on masque celle du social bar */
body.nav-top-player:not(.nav-player-inline) .nav-social-bar {
  border-bottom-color: transparent;
}

/* Barre supérieure : grille 3 colonnes [logo | player pill centré | droite] */
.navp-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "logo player right";
  align-items: center;
  width: 100%;
  height: var(--navp-bar-h);
  min-height: var(--navp-bar-h);
  padding: 0 28px;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  transition: border-color .2s;
  overflow: hidden;
}
/* Logo dans navp-bar : suit le slider logo_height, plafonné à la hauteur de la barre */
.navp-logo img {
  height: var(--navp-logo-h, calc(var(--navp-bar-h) * .57));
  max-height: var(--navp-bar-h);
  width: auto;
  object-fit: contain;
}
/* Supprimer la ligne séparatrice entre le player et les onglets */
body.nav-player-no-border .navp-bar { border-bottom-color: transparent; }
body.nav-player-inline.nav-player-no-border .nav-container .nav-links { border-top-color: transparent !important; }

/* Colonne gauche : logo aligné à gauche */
.navp-logo { grid-area: logo; justify-self: start; }
.navp-wrap { grid-area: player; }
.navp-right { grid-area: right; }

/* Alignement du player intégré (mode single_row = nav-container) */
@media (min-width: 769px) {
  body.navp-player-left.nav-player-inline .nav-container {
    grid-template-columns: auto auto 1fr auto auto auto;
    grid-template-areas:
      "logo pill . cta theme burger"
      "links links links links links links";
  }
  body.navp-player-left.nav-player-inline .navp-wrap-inline { margin-left: 12px; }

  body.navp-player-right.nav-player-inline .nav-container {
    grid-template-columns: auto 1fr auto auto auto auto;
    grid-template-areas:
      "logo . pill cta theme burger"
      "links links links links links links";
  }
  body.navp-player-right.nav-player-inline .navp-wrap-inline { margin-left: 12px; margin-right: 12px; }
}


/* Colonne centrale : player pill */
.navp-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  background: rgba(20, 20, 28, 0.72);
  border: none;
  border-radius: var(--navp-pill-radius, 26px);
  padding: 10px 16px 10px 12px;
  width: 340px;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}
.navp-wrap .navp-title,
.navp-wrap .navp-artist,
.navp-wrap .navp-btn,
.navp-wrap .navp-volume svg { color: #fff; }

/* ── Pill navp : thème clair → fond semi-transparent clair, texte sombre ── */
html.light .navp-wrap {
  background: rgba(0, 0, 0, .06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}
html.light .navp-wrap .navp-title  { color: var(--text); }
html.light .navp-wrap .navp-artist { color: var(--text-muted); }
html.light .navp-wrap .navp-volume svg { color: var(--text-muted); }
/* Bouton play : couleur primaire dans les deux thèmes */
html.light .navp-wrap .navp-btn { color: #fff; }

/* ── navp-right (volume/flux/réseaux) : texte sombre en thème clair ── */
html.light .navp-right { color: var(--text); }
html.light .navp-right-socials .nav-social-link { color: var(--text-muted); }
html.light .navp-right-socials .nav-social-link:hover { color: var(--text); background: rgba(0,0,0,.08); }

/* Colonne droite (définie plus bas avec le layout vertical) */

/* ════════════════════════════════════════════════════════
   MODE SINGLE ROW (nav-player-inline) — layout 2 rangées (desktop)
   Row 1 : logo | pill (gauche) | DIRECT | thème
   Row 2 : liens du menu pleine largeur
   Mobile : comportement standard (burger + nav-links cachés)
   ════════════════════════════════════════════════════════ */

/* navp-info prend l'espace restant dans la pill */
body.nav-player-inline .navp-wrap-inline .navp-info {
  flex: 1;
  min-width: 0;
}

@media (min-width: 769px) {
  body.nav-player-inline #navbar {
    height: auto !important;
    overflow: visible;
  }

  /* CSS Grid : rangée haute (logo|pill|cta|theme|burger) + rangée basse (menu) */
  body.nav-player-inline .nav-container {
    display: grid !important;
    grid-template-columns: auto 1fr auto 1fr auto auto auto;
    grid-template-rows: 100px 48px;
    grid-template-areas:
      "logo . pill . cta theme burger"
      "links links links links links links links";
    height: auto;
    padding: 0 24px;
    gap: 0;
    align-items: center;
  }
  body.nav-player-inline .nav-container .nav-logo         { grid-area: logo; }
  body.nav-player-inline .navp-wrap-inline                { grid-area: pill; margin-left: 16px; }
  body.nav-player-inline .nav-container .nav-cta          { grid-area: cta;  margin-left: 16px; }
  body.nav-player-inline .nav-container .theme-toggle-btn { grid-area: theme; margin-left: 8px; }
  body.nav-player-inline .nav-burger                      { grid-area: burger; margin-left: 8px; }

  /* Rangée basse : liens du menu pleine largeur */
  body.nav-player-inline .nav-container .nav-links {
    grid-area: links;
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding: 0 24px;
    margin: 0 -24px;
    height: 48px;
    border-top: 1px solid var(--border);
  }
  body.nav-player-inline.nav-player-no-border .nav-container .nav-links {
    border-top-color: transparent;
  }

  /* Padding-top du contenu : 160px + 48px + extra ticker */
  body.nav-player-inline #sections-wrapper {
    padding-top: calc(100px + 48px + var(--nav-extra-h, 0px)) !important;
  }
  body.nav-player-inline section[id] {
    scroll-margin-top: calc(100px + 48px);
  }
}

/* Pill : taille et styles */
body.nav-player-inline .navp-wrap-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 320px;
  padding: 10px 14px;
}
/* Masquer le logo en doublon dans nav-container (mode 2 rangées) */
body.nav-top-player:not(.nav-player-inline) .nav-container > .nav-logo:not(.navp-logo) { display: none; }

/* Padding-top du contenu */
body.nav-top-player:not(.nav-player-inline) #sections-wrapper {
  padding-top: calc(var(--nav-h) + var(--navp-bar-h)) !important;
}
body.nav-top-player:not(.nav-player-inline) section[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--navp-bar-h));
}

/* Éléments du player navp */
.navp-cover {
  width: 52px;
  height: 52px;
  border-radius: calc(var(--navp-pill-radius, 26px) * 0.46);
  object-fit: cover;
  flex-shrink: 0;
}
.navp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.navp-title {
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  display: block;
}
.navp-artist {
  font-size: .73rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
/* Défilement automatique quand le texte dépasse */
@keyframes navp-scroll {
  0%, 20%   { transform: translateX(0); }
  80%, 100% { transform: translateX(var(--navp-scroll-x, 0px)); }
}
.navp-title.is-scrolling,
.navp-artist.is-scrolling {
  text-overflow: clip;
  overflow: visible;
  animation: navp-scroll 8s ease-in-out infinite;
}
.navp-artist.is-scrolling { animation-delay: .35s; }

/* Sélecteur de flux navp */
.navp-stream-select {
  font-size: .75rem;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  max-width: 110px;
  flex-shrink: 0;
}

/* Barre de volume navp */
.navp-volume {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  color: var(--muted);
}
.navp-volume-slider {
  width: 70px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Bouton play navp — toujours fixe à droite */
.navp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  transition: filter .15s, transform .1s;
}
.navp-btn:hover { filter: brightness(1.12); }
.navp-btn:active { transform: scale(.92); }

@keyframes navp-spin { to { transform: rotate(360deg); } }

/* ── Volume moderne ── */
.navp-volume {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  flex-shrink: 0;
}
.navp-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  /* gradient dynamique mis à jour par JS via --navp-vol */
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--primary) var(--navp-vol, 80%),
    color-mix(in srgb, var(--primary) 25%, var(--border)) var(--navp-vol, 80%),
    color-mix(in srgb, var(--primary) 25%, var(--border)) 100%
  );
  transition: height .15s;
}
.navp-volume-slider:hover { height: 6px; }
.navp-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0,0,0,.35);
  transition: transform .15s, box-shadow .15s;
}
.navp-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.navp-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 5px rgba(0,0,0,.35);
}
.navp-volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 25%, var(--border));
}

/* ── Colonne droite : volume+flux en haut, réseaux en dessous ── */
.navp-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
}
.navp-cta .btn-live { font-size: .8rem; padding: 7px 14px; }
.navp-right .theme-toggle-btn { color: var(--text-muted); }


/* ── Sur mobile : toujours afficher le player en bas, pas de navp-bar ── */
@media (max-width: 768px) {
  .navp-bar { display: none !important; }
  /* Masquer aussi le player inline dans la nav-container sur mobile */
  body.nav-player-inline .navp-wrap-inline { display: none !important; }
  /* Mobile top_with_player : inclure la barre sociale dans le décalage (réseaux affichés ici, navp-right caché) */
  body.nav-top-player:not(.nav-player-inline) #sections-wrapper {
    padding-top: calc(var(--nav-h) + var(--nav-extra-h, 0px)) !important;
  }
}
/* ── Réseaux sociaux : sur PC uniquement, masquer le doublon dans la barre (ils sont dans navp-right) ── */
/* Le ticker dédicaces reste visible dans la barre ; sur mobile la barre sociale s'affiche normalement */
@media (min-width: 769px) {
  body.nav-top-player .nav-social-bar-inner { display: none !important; }
  /* Ticker en tête du navbar top_with_player : remonte au-dessus du player avec fond opaque */
  body.nav-top-player:not(.nav-player-inline) .nav-social-bar {
    order: -1;
    background: var(--nav-bg, var(--bg));
    border-bottom: 1px solid var(--border);
  }
  /* En mode single_row : réseaux visibles à droite dans la barre ticker (spécificité > nav-top-player) */
  body.nav-top-player.nav-player-inline .nav-social-bar-inner {
    display: flex !important;
    margin-left: auto;
    flex-shrink: 0;
    gap: 2px;
  }
  body.nav-top-player.nav-player-inline .nav-social-bar-inner .nav-social-link {
    width: 26px; height: 26px; border-radius: 5px;
  }
  body.nav-top-player.nav-player-inline .nav-social-bar-inner .nav-social-link svg {
    width: 14px; height: 14px;
  }
}

/* ── Option : premier module derrière le menu (frosted glass au top) ── */

/* Suppression de la marge supérieure — !important pour passer les sélecteurs plus spécifiques */
body.nav-top-overlap #sections-wrapper { padding-top: 0 !important; }
body.nav-top-overlap section[id] { scroll-margin-top: 0; }
/* top_with_player + nav-top-overlap : sélecteur combiné plus prioritaire que les deux séparés */
body.nav-top-player.nav-top-overlap:not(.nav-player-inline) #sections-wrapper { padding-top: 0 !important; }
body.nav-top-player.nav-top-overlap:not(.nav-player-inline) section[id] { scroll-margin-top: 0; }
/* Sur mobile : fond navbar toujours solide (pas de transparence) */
@media (max-width: 768px) {
  #navbar { background: var(--nav-bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* Sur mobile : nav-top-overlap désactivé (contenu reste toujours sous le menu) */
@media (max-width: 768px) {
  body.nav-top-overlap #sections-wrapper { padding-top: calc(var(--nav-h) + var(--nav-extra-h, 0px)) !important; }
  body.nav-top-overlap section[id] { scroll-margin-top: calc(var(--nav-h) + var(--nav-extra-h, 0px)); }
  body.nav-top-overlap #navbar:not(.scrolled) {
    background: var(--nav-bg) !important;
    border-bottom-color: var(--border) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: var(--shadow) !important;
  }
  body.nav-top-overlap #navbar:not(.scrolled) .nav-links a,
  body.nav-top-overlap #navbar:not(.scrolled) .nav-social-link,
  body.nav-top-overlap #navbar:not(.scrolled) .theme-toggle-btn { color: var(--text) !important; }
}

/* Transition sur l'ensemble du navbar */
body.nav-top-overlap #navbar {
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}

/* Navbar : verre dépoli semi-transparent quand pas encore scrollé */
body.nav-top-overlap #navbar:not(.scrolled) {
  background: rgba(0, 0, 0, 0.22) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.4) !important;
  box-shadow: none !important;
}
/* Sur mobile : le fond navbar reste toujours solide (les règles ci-dessus l'emportaient) */
@media (max-width: 768px) {
  body.nav-top-overlap #navbar:not(.scrolled) {
    background: var(--nav-bg) !important;
    border-bottom-color: var(--border) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: var(--shadow) !important;
  }
  #navbar { background: var(--nav-bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .nav-mobile { background: var(--nav-bg) !important; }
}
/* Bordure inter-rangées aussi transparente */
body.nav-top-overlap .navp-bar:not(.scrolled) {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}
/* En mode player intégré + nav-top-overlap : barre ticker et séparateur menu transparents */
body.nav-top-overlap.nav-player-inline #navbar:not(.scrolled) .nav-social-bar {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
body.nav-top-overlap.nav-player-inline #navbar:not(.scrolled) .nav-container .nav-links {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}
/* Pill : fond semi-transparent en nav-top-overlap — scrollé ou non, le navbar est toujours sombre */
body.nav-top-overlap.nav-player-inline #navbar .navp-wrap-inline {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff !important;
}
/* Texte du pill blanc dans tous les états (scrollé ou non) */
body.nav-top-overlap.nav-player-inline #navbar .navp-wrap-inline .navp-title,
body.nav-top-overlap.nav-player-inline #navbar .navp-wrap-inline .navp-artist {
  color: #fff !important;
}

/* Texte clair pour lisibilité sur fond sombre derrière */
body.nav-top-overlap #navbar:not(.scrolled) .nav-links a,
body.nav-top-overlap #navbar:not(.scrolled) .nav-cta .btn-live,
body.nav-top-overlap #navbar:not(.scrolled) .navp-title,
body.nav-top-overlap #navbar:not(.scrolled) .navp-artist,
body.nav-top-overlap #navbar:not(.scrolled) .nav-social-link,
body.nav-top-overlap #navbar:not(.scrolled) .theme-toggle-btn,
body.nav-top-overlap #navbar .nav-burger,
body.nav-top-overlap #navbar:not(.scrolled) .nav-burger,
body.nav-top-overlap #navbar:not(.scrolled) .nav-ded-item,
body.nav-top-overlap #navbar:not(.scrolled) .nav-ded-item strong,
body.nav-top-overlap #navbar:not(.scrolled) .ded-ticker-badge,
body.nav-top-overlap #navbar:not(.scrolled) .ded-ticker-send-btn {
  color: #fff;
}
body.nav-top-overlap #navbar:not(.scrolled) .ded-ticker-send-btn {
  border-color: rgba(255,255,255,.35);
}
/* Même chose au scroll */
body.nav-top-overlap #navbar.scrolled .nav-ded-item,
body.nav-top-overlap #navbar.scrolled .nav-ded-item strong,
body.nav-top-overlap #navbar.scrolled .ded-ticker-badge,
body.nav-top-overlap #navbar.scrolled .ded-ticker-send-btn { color: #fff; }
body.nav-top-overlap #navbar.scrolled .ded-ticker-send-btn { border-color: rgba(255,255,255,.35); }
body.nav-top-overlap #navbar:not(.scrolled) .logo-dark { opacity: .9; }

/* Semi-transparent au scroll (toujours un peu givré) */
body.nav-top-overlap #navbar.scrolled {
  background: rgba(0, 0, 0, 0.55) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(18px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.6) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.3) !important;
}
/* Texte toujours blanc au scroll aussi (fond sombre) */
body.nav-top-overlap #navbar.scrolled .nav-links a,
body.nav-top-overlap #navbar.scrolled .nav-cta .btn-live,
body.nav-top-overlap #navbar.scrolled .nav-social-link,
body.nav-top-overlap #navbar.scrolled .theme-toggle-btn,
body.nav-top-overlap #navbar.scrolled .nav-burger { color: #fff; }

/* ── Centrage du menu : flex équilibré (logo et CTA prennent chacun 1fr) ── */
body.menu-center .nav-logo  { flex: 1; }
body.menu-center .nav-links { flex: 0 0 auto; justify-content: center !important; }
body.menu-center .nav-cta   { flex: 1; margin-left: 0; justify-content: flex-end; }
/* En mode top_with_player, le logo est caché → centrage via position:absolute */
body.nav-top-player.menu-center .nav-container { position: relative; }
body.nav-top-player.menu-center .nav-links {
  position: absolute; inset: 0;
  justify-content: center !important;
  pointer-events: none; z-index: 0;
}
body.nav-top-player.menu-center .nav-links > * { pointer-events: auto; }
body.nav-top-player.menu-center .nav-cta { position: relative; z-index: 1; margin-left: auto; flex: 0 0 auto; }
/* Droite */
body.menu-right .nav-links { justify-content: flex-end !important; }

/* ── Onglets menu en gras ── */
body.nav-menu-bold .nav-links a,
body.nav-menu-bold .nav-links .nav-item > a,
body.nav-menu-bold .left-nav-item { font-weight: 700; }

/* ── Onglets menu en majuscules ── */
body.menu-uppercase .nav-links a,
body.menu-uppercase .nav-links .nav-item > a {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .82em;
}

/* Mobile */
@media (max-width: 768px) {
  .navp-bar {
    grid-template-columns: auto 1fr;
    padding: 0 12px;
    gap: 8px;
  }
  .navp-right { display: none; }
  .navp-info { display: none; }
  .navp-cover { width: 30px; height: 30px; }
  .navp-wrap { min-width: 0; border-radius: var(--navp-pill-radius, 30px); padding: 5px 8px 5px 6px; }
}
