/* ============================================================================
   SANDIX+  |  Redesign "Campagne v3"  (sandix-redesign.css)
   ----------------------------------------------------------------------------
   Couche de design chargée APRÈS sandix-theme.css et les <style> propres à
   chaque page. Tout est scopé sous  body.sdx-rd  (classe posée par
   sandix-redesign.js) : retirer cette classe, ou retirer le <link>, rend
   immédiatement l'ancien design. Aucune fonctionnalité n'est touchée ici.

   Référence : SANDIX_Campagne_v3_37s_master.mp4
     fond          #0c1014  (bleu-noir)         pilule nav  #151b1e
     rouge marque  #ea2119  (le « + »)          texte dim   blanc ~55 %
     logo          SANDIX+ majuscules, interlettrage large, + rouge
     hero          titre capitales, ligne meta, boutons pilule Play / ZapMatch
     rangées       affiches verticales 2:3, petit rayon, libellé capitales
     navigation    pilule flottante : Home Search ZapMatch Later Profil
     ZapMatch      titre à gauche + gestes, affiche à droite, Details / Play
   ============================================================================ */

:root {
  --rd-bg:        #0c1014;
  --rd-bg-2:      #10161a;
  --rd-pill:      rgba(21, 27, 30, .86);
  --rd-line:      rgba(255, 255, 255, .10);
  --rd-line-2:    rgba(255, 255, 255, .22);
  --rd-dim:       rgba(255, 255, 255, .56);
  --rd-red:       #ea2119;
  --rd-pad:       clamp(20px, 3.3vw, 60px);
  --rd-ease:      cubic-bezier(.2, .8, .2, 1);
  --rd-card-w:    clamp(104px, 8.6vw, 164px);

  /* Le rouge de la vidéo remplace l'ancien rouge braise partout où les
     tokens du thème sont lus. */
  --sandix-red:        #ea2119;
  --sandix-red-hover:  #ff3a30;
  --sandix-red-dark:   #a8140e;
  --sandix-red-soft:   rgba(234, 33, 25, .16);

  /* Neutres du thème alignés sur le bleu-noir de la vidéo : toute page qui
     lit ces variables (légal, aide, contact, etc.) suit automatiquement. */
  --sandix-bg:          #0c1014;
  --sandix-bg-raised:   #0f1418;
  --sandix-surface:     #151b1e;
  --sandix-surface-2:   #1b2327;
  --sandix-surface-3:   #222b30;
}

/* ───────────────────────── Base ───────────────────────── */
body.sdx-rd {
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(255, 255, 255, .035), transparent 60%),
    var(--rd-bg) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  animation: rdPageIn .5s var(--rd-ease) both;
}
body.sdx-rd.rd-leaving { opacity: 0; transition: opacity .22s ease; }
/* opacité seule : une animation de transform sur <body> en ferait le bloc
   conteneur des éléments position:fixed (la pilule de navigation) */
@keyframes rdPageIn { from { opacity: 0; } to { opacity: 1; } }

.sdx-rd ::selection { background: var(--rd-red); color: #fff; }
.sdx-rd :focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--rd-bg), 0 0 0 4px #fff;
}

/* ───────────────────────── Header ───────────────────────── */
.sdx-rd header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: clamp(14px, 2.2vh, 24px) var(--rd-pad) !important;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: clamp(16px, 2vw, 32px);
  transition: background .35s ease;
}
.sdx-rd header.is-scrolled {
  background: linear-gradient(to bottom, rgba(12, 16, 20, .94), rgba(12, 16, 20, 0)) !important;
}
.sdx-rd .logo {
  font-size: clamp(22px, 2.05vw, 30px);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  align-items: baseline;
  text-decoration: none;
}
.sdx-rd .logo .plus { color: var(--rd-red); margin-left: .05em; letter-spacing: 0; }

/* liens Series / Films (/ Filter) */
.sdx-rd header nav { gap: clamp(14px, 1.6vw, 26px); display: flex; align-items: center; }
.sdx-rd header nav a,
.sdx-rd header #filterNavItem a {
  color: var(--rd-dim) !important;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .2s ease;
}
.sdx-rd header nav a:hover,
.sdx-rd header #filterNavItem a:hover,
.sdx-rd header nav a.is-active { color: #fff !important; }
.sdx-rd header nav a.is-active { font-weight: 700; }
.sdx-rd header #filterNavItem h3 { font-size: inherit; font-weight: inherit; color: inherit; margin: 0; }

/* La recherche et le profil restent dans le DOM (JS intact) mais la
   navigation pilule (Search / Profil) prend le relais visuellement. */
.sdx-rd header #searchInput,
.sdx-rd header #activeProfile { display: none !important; }
.sdx-rd header > div:last-child { margin-left: auto; }
.sdx-rd header > a[href="index.html"]:not(.logo) { margin-left: auto; }

/* « BACK TO MENU » des pages secondaires */
.sdx-rd header > div:last-child a[href="index.html"]:not(.logo),
.sdx-rd header > a[href="index.html"]:not(.logo) {
  color: var(--rd-dim) !important;
  font-size: clamp(11px, .85vw, 13px) !important;
  font-weight: 500 !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s ease;
}
.sdx-rd header > div:last-child a[href="index.html"]:not(.logo):hover,
.sdx-rd header > a[href="index.html"]:not(.logo):hover { color: #fff !important; }

/* ───────────────────────── Hero (accueil) ───────────────────────── */
.sdx-rd .hero-shade-v {
  background: linear-gradient(to top, var(--rd-bg) 0%, rgba(12, 16, 20, .6) 20%, rgba(12, 16, 20, 0) 55%) !important;
}
.sdx-rd .hero-shade-h {
  background: linear-gradient(to right, rgba(12, 16, 20, .94) 0%, rgba(12, 16, 20, .6) 30%, rgba(12, 16, 20, 0) 62%) !important;
}
.sdx-rd .hero-slide-img { opacity: .95 !important; }

.sdx-rd .hero-slide-title {
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: .55rem;
}
.sdx-rd .hero-slide-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  margin: 0 0 1.5rem;
  color: var(--rd-dim);
  font-size: clamp(.85rem, 1vw, 1.05rem);
  letter-spacing: .04em;
}
.sdx-rd .hero-slide-meta:empty { display: none; }
.sdx-rd .hero-slide-meta span + span::before { content: "\00b7"; margin: 0 .85em; opacity: .8; }

.sdx-rd .hero-slide-cta-row { gap: 12px; }
.sdx-rd .hero-slide-play {
  background: #fff !important;
  color: var(--rd-bg) !important;
  border-radius: 999px !important;
  padding: .8rem 1.7rem !important;
  min-width: 112px;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  transition: transform .2s var(--rd-ease), background .2s ease;
}
.sdx-rd .hero-slide-play:hover { transform: scale(1.04); background: #f2f2f2 !important; }
.sdx-rd .hero-slide-play:active { transform: scale(.97); }

.sdx-rd .hero-zapmatch-btn {
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  padding: .8rem 1.5rem;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(6px);
}
.sdx-rd .hero-zapmatch-btn svg { color: var(--rd-red); width: 14px; height: 14px; }
.sdx-rd .hero-zapmatch-btn:hover { background: rgba(255, 255, 255, .14); border-color: #fff; transform: translateY(-1px); }
.sdx-rd .hero-zapmatch-btn:focus-visible,
.sdx-rd .hero-slide-play:focus-visible { box-shadow: 0 0 0 3px var(--rd-bg), 0 0 0 5px #fff; }

.sdx-rd .hero-favorite-btn { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.sdx-rd .hero-progress { opacity: .85; }
.sdx-rd .hero-progress-bar { stroke: var(--rd-red); }

@media (min-width: 769px) {
  .sdx-rd #heroBanner { height: clamp(460px, 68vh, 780px); }
  .sdx-rd .hero-slide-img,
  .sdx-rd .hero-slide-video { object-position: right center; }
  .sdx-rd .hero-slide-content {
    padding: 0 var(--rd-pad) clamp(96px, 15vh, 160px) !important;
    max-width: min(820px, 92vw) !important;
  }
  .sdx-rd .hero-slide-title { font-size: clamp(2.8rem, 5.8vw, 5.6rem) !important; }
  .sdx-rd .hero-slide-desc { display: none; }
  .sdx-rd .hero-progress { right: var(--rd-pad); bottom: clamp(24px, 4vh, 40px); }
}
@media (max-width: 768px) {
  .sdx-rd .hero-progress { top: 14px; bottom: auto !important; right: 14px; height: auto; }
  .sdx-rd .hero-slide-textbox { background: linear-gradient(to top, var(--rd-bg) 55%, rgba(12, 16, 20, .9) 85%, transparent 100%); }
  .sdx-rd .hero-slide-img, .sdx-rd .hero-slide-video { background: var(--rd-bg); }
  .sdx-rd .hero-slide-desc { color: var(--rd-dim); }
}
@media (max-width: 640px) {
  .sdx-rd .hero-slide-title { font-size: 2.15rem !important; }
  .sdx-rd .hero-slide-play { padding: .6rem 1.3rem !important; font-size: .9rem; min-width: 0; }
  .sdx-rd .hero-zapmatch-btn { width: auto; height: auto; padding: .6rem 1.1rem !important; border-radius: 999px; }
  .sdx-rd .hero-zapmatch-label { display: inline; }
}

/* ───────── Hero : image et vidéo de fond bornées au champ ─────────
   (index.html, films.html, series.html). On ne touche ni à la hauteur du hero
   ni à son calcul : on force seulement le média à épouser exactement le champ
   défini (jamais plus grand, jamais plus petit, rien ne dépasse). */
.sdx-rd #heroBanner { overflow: hidden; }
.sdx-rd #heroBanner .hero-slide { overflow: hidden; }
.sdx-rd #heroBanner .hero-slide-img,
.sdx-rd #heroBanner .hero-slide-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important; min-height: 0 !important;
  max-width: 100% !important; max-height: 100% !important;
  margin: 0 !important;
  transform: none !important;
}
@media (min-width: 769px) {
  /* Format forcé : le média remplit le champ, y compris les vidéos verticales
     (qui passaient en « contain » via .is-portrait). */
  .sdx-rd #heroBanner .hero-slide-img,
  .sdx-rd #heroBanner .hero-slide-video,
  .sdx-rd #heroBanner .hero-slide-video.is-portrait { object-fit: cover !important; }
}

/* ───────────────────────── Rangées & affiches ───────────────────────── */
.sdx-rd section.px-6 {
  padding: clamp(10px, 1.6vh, 18px) var(--rd-pad);
}
.sdx-rd .sandix-accent { display: none !important; }
.sdx-rd section h2,
.sdx-rd main > h1.text-xl {
  font-size: clamp(.78rem, .85vw, .9rem);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  border: 0 !important;
  padding-left: 0 !important;
  margin: 0 0 .85rem !important;
}
.sdx-rd section > .flex.justify-between > h2 { margin-bottom: .85rem !important; }
.sdx-rd section a.underline {
  text-decoration: none;
  color: var(--rd-dim);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sdx-rd section a.underline:hover { color: #fff; }

.sdx-rd .carousel { gap: 10px !important; padding-bottom: 6px; scrollbar-width: none; }
.sdx-rd .carousel::-webkit-scrollbar { display: none; }
/* #top10Row : espacement d'origine (gap-16 = 4rem) ; le padding-top d'origine réserve la place des chiffres */
.sdx-rd #top10Row { gap: 4rem !important; }

/* Carte verticale 2:3 (rangées) */
.sdx-rd .carousel .sandixplus-card,
.sdx-rd #top10Row .sandixplus-card {
  width: var(--rd-card-w) !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
}
/* … et dans les grilles (Later, Favorites, Films, Series, Search) */
.sdx-rd .grid .sandixplus-card,
.sdx-rd .grid > .sandixplus-card {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
}
.sdx-rd .sandixplus-card {
  border-radius: 6px;
  background: #151b1e;
  transition: transform .35s var(--rd-ease), box-shadow .3s ease;
}
.sdx-rd .sandixplus-card .poster,
.sdx-rd .sandixplus-card img { border-radius: 0; object-fit: cover; }
.sdx-rd .sandixplus-card:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .92), 0 20px 44px rgba(0, 0, 0, .55);
}
.sdx-rd .sandixplus-card .card-title, .sdx-rd .carousel .card-title, .sdx-rd #top10Row .card-title, .sdx-rd .grid .card-title { display: none; }

/* Top 10 : les gros chiffres de l'ancienne version sont conservés
   (styles d'origine dans index.html / films.html : .top10-item, .top10-rank). */

/* Flèches de rangée : pastilles rondes */
.sdx-rd .sandix-carousel-arrow {
  width: 34px !important; height: 34px !important;
  border-radius: 50% !important;
  background: rgba(12, 16, 20, .85) !important;
  border: 1px solid var(--rd-line-2) !important;
  backdrop-filter: blur(8px);
  font-size: 20px !important;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 3px;
  transition: background .2s ease, transform .2s ease, opacity .25s ease !important;
}
.sdx-rd .sandix-carousel-arrow:hover { background: #fff !important; color: var(--rd-bg) !important; }
.sdx-rd .sandix-row-arrow-left, .sdx-rd .sandix-carousel-arrow.left-0 { left: calc(var(--rd-pad) - 14px) !important; }
.sdx-rd .sandix-row-arrow-right, .sdx-rd .sandix-carousel-arrow.right-0 { right: calc(var(--rd-pad) - 14px) !important; }

/* ───────────────────────── Navigation pilule flottante ───────────────────────── */
.sdx-rd .sandix-bottom-nav {
  display: flex !important;
  position: fixed;
  left: 50%; right: auto;
  bottom: calc(clamp(14px, 2.6vh, 28px) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 28px));
  max-width: none;
  height: clamp(52px, 6.2vh, 66px);
  padding: 0 8px;
  align-items: stretch;
  justify-content: space-between;
  background: var(--rd-pill);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--rd-line);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  overflow: visible;
  z-index: 500;
  animation: rdNavIn .7s var(--rd-ease) .15s both;
}
@keyframes rdNavIn { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }

.sdx-rd .sbn-item {
  position: relative;
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 0 6px;
  gap: 0;
  font-size: clamp(13px, 1.05vw, 17px);
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--rd-dim);
  transition: color .2s ease;
}
.sdx-rd .sbn-item svg { display: none; }
.sdx-rd .sbn-item:hover { color: #fff; }
.sdx-rd .sbn-item::after {
  content: "";
  position: absolute; bottom: clamp(7px, 1.2vh, 11px); left: 50%;
  width: 22px; height: 3px; border-radius: 2px;
  background: #fff;
  transform: translateX(-50%) scaleX(0);
  transition: transform .35s var(--rd-ease), background .2s ease;
}
.sdx-rd .sbn-item.is-active { color: #fff; font-weight: 700; }
.sdx-rd .sbn-item.is-active::after { transform: translateX(-50%) scaleX(1); }
.sdx-rd .sbn-item[href*="zapmatch"].is-active::after { background: var(--rd-red); }

.sdx-rd .sbn-badge {
  position: absolute;
  top: 50%; left: calc(50% + 1.9em);
  transform: translateY(-1.45em);
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--rd-red);
  color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px #151b1e;
  animation: rdPop .4s var(--rd-ease);
}
.sdx-rd .sbn-badge[hidden] { display: none; }
@keyframes rdPop { 0% { transform: translateY(-1.45em) scale(.3); } 60% { transform: translateY(-1.45em) scale(1.25); } 100% { transform: translateY(-1.45em) scale(1); } }

@media (max-width: 380px) {
  .sdx-rd .sbn-item { font-size: 12px; letter-spacing: 0; }
  .sdx-rd .sbn-badge { left: calc(50% + 1.6em); }
}

/* barre « Films / Series + Genres » : alignée sur la marge commune */
.sdx-rd body > div.px-6.pt-10 { padding-left: var(--rd-pad); padding-right: var(--rd-pad); }
.sdx-rd body > div.px-6.pt-10 h1 { font-size: clamp(1.4rem, 1.8vw, 1.9rem); font-weight: 800; letter-spacing: 0; }

/* ───────────────────────── Later / Favorites ───────────────────────── */
.sdx-rd main { padding-left: var(--rd-pad); padding-right: var(--rd-pad); }
.sdx-rd main > h1.text-xl {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 1.4rem !important;
  margin-top: clamp(8px, 2vh, 24px);
}
.sdx-rd #watchlistGrid, .sdx-rd #favoritesGrid {
  grid-template-columns: repeat(auto-fill, clamp(132px, 13vw, 210px));
  gap: clamp(10px, 1.2vw, 18px);
}
.sdx-rd .wl-title { display: none; }
.sdx-rd .wl-remove {
  opacity: 0; transform: scale(.8);
  transition: opacity .2s ease, transform .2s var(--rd-ease), background .2s ease;
  background: rgba(12, 16, 20, .8); border: 1px solid var(--rd-line-2);
}
.sdx-rd .sandixplus-card:hover .wl-remove { opacity: 1; transform: none; }
@media (hover: none) { .sdx-rd .wl-remove { opacity: 1; transform: none; } }
.sdx-rd .wl-remove:hover { background: var(--rd-red); border-color: var(--rd-red); }

/* ───────────────────────── ZapMatch ───────────────────────── */
.sdx-rd main.zm-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 80px);
  padding: clamp(84px, 12vh, 120px) var(--rd-pad) calc(120px + env(safe-area-inset-bottom, 0px));
  justify-content: stretch;
}
.sdx-rd .zm-side { align-self: start; padding-top: clamp(0px, 4vh, 40px); }
.sdx-rd .zm-title {
  font-family: inherit;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 clamp(18px, 3vh, 34px);
}
.sdx-rd .zm-intro { text-align: left; max-width: 420px; }
.sdx-rd .zm-intro p {
  font-family: inherit;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  font-weight: 800; line-height: 1.18; opacity: 1;
  margin: 0 0 clamp(20px, 3vh, 30px);
}
.sdx-rd .zm-start-btn {
  background: rgba(255, 255, 255, .88); color: var(--rd-bg);
  padding: .85rem 2.1rem; border-radius: 999px;
  font-weight: 800; font-size: .95rem;
  transition: transform .2s var(--rd-ease), background .2s ease;
}
.sdx-rd .zm-start-btn:hover { background: #fff; transform: scale(1.05); }

/* consigne de geste (gauche / haut / droite) */
.sdx-rd .zm-hint { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 130px; }
.sdx-rd .zm-hint[hidden] { display: none; }
.sdx-rd .zm-hint-ic {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .8);
  display: grid; place-items: center;
  transition: transform .35s var(--rd-ease);
}
.sdx-rd .zm-hint-ic svg { width: 18px; height: 18px; }
.sdx-rd .zm-hint-text, .sdx-rd .zm-intro p { white-space: pre-line; }
.sdx-rd .zm-hint-text {
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  font-weight: 800; line-height: 1.18; margin: 0; max-width: 16ch;
  transition: opacity .3s ease, transform .35s var(--rd-ease);
}
.sdx-rd .zm-hint.is-swap .zm-hint-text { opacity: 0; transform: translateY(6px); }
.sdx-rd .zm-hint.is-swap .zm-hint-ic { transform: scale(.85); }

.sdx-rd .zm-empty { text-align: left; }
.sdx-rd .zm-empty h2 { font-family: inherit; font-size: clamp(1.5rem, 2.3vw, 2.2rem); font-weight: 800; }

/* zone deck : flèches de geste autour de l'affiche */
.sdx-rd .zm-stagecol { display: flex; justify-content: center; }
.sdx-rd #zmDeckArea:not([hidden]) {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  align-items: center; justify-items: center;
  gap: 14px clamp(10px, 2vw, 26px);
}
.sdx-rd .zm-deck-wrap {
  --zm-h: min(540px, 62vh);
  height: var(--zm-h);
  width: calc(var(--zm-h) * 2 / 3);
  grid-column: 2; grid-row: 2;
}
.sdx-rd .zm-actions { display: contents; }
.sdx-rd .zm-action-btn {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .8);
  transition: background .2s ease, border-color .2s ease, transform .2s var(--rd-ease), color .2s ease;
}
.sdx-rd .zm-action-btn svg { width: 18px; height: 18px; }
.sdx-rd .zm-action-btn:hover { background: #fff; color: var(--rd-bg); border-color: #fff; transform: scale(1.08); }
.sdx-rd .zm-action-btn.zm-nope-btn { grid-column: 1; grid-row: 2; color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .35); }
.sdx-rd .zm-action-btn.zm-like-btn { grid-column: 3; grid-row: 2; width: 40px; height: 40px; color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .35); }
.sdx-rd .zm-action-btn.zm-info-btn { grid-column: 2; grid-row: 1; width: 40px; height: 40px; }

.sdx-rd .zm-card {
  border-radius: 6px;
  background: #151b1e;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px var(--rd-line);
}
.sdx-rd .zm-card-badge { display: none; }
.sdx-rd .zm-card-info { display: none; }
.sdx-rd .zm-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
  pointer-events: none;
}
.sdx-rd .zm-card-skip {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(12, 16, 20, .72); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s var(--rd-ease);
}
.sdx-rd .zm-card-skip svg { width: 13px; height: 13px; }
.sdx-rd .zm-card-skip:hover { background: #fff; color: var(--rd-bg); transform: scale(1.1); }
.sdx-rd .zm-card-cta {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4;
  display: flex; justify-content: center; gap: 10px; padding: 0 12px;
}
.sdx-rd .zm-card-btn {
  flex: 0 1 auto; min-width: 74px; height: 34px; padding: 0 16px;
  border-radius: 999px; cursor: pointer;
  font: 800 12.5px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: .02em;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .2s var(--rd-ease), background .2s ease;
}
.sdx-rd .zm-card-btn:hover { transform: scale(1.05); }
.sdx-rd .zm-card-btn--ghost { background: rgba(12, 16, 20, .35); border: 1.5px solid rgba(255, 255, 255, .85); color: #fff; }
.sdx-rd .zm-card-btn--play { background: #fff; border: 1.5px solid #fff; color: var(--rd-bg); }
.sdx-rd .zm-card-btn svg { width: 11px; height: 11px; }

.sdx-rd .zm-stamp {
  font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: .04em;
  padding: 7px 14px; border-width: 1.5px; border-radius: 999px;
  top: 14px; background: rgba(12, 16, 20, .78);
  display: inline-flex; align-items: center; gap: 6px; text-transform: none;
}
.sdx-rd .zm-stamp.zm-like { left: 12px; right: auto; color: #fff; border-color: #fff; transform: none; }
.sdx-rd .zm-stamp.zm-nope { left: auto; right: 48px; color: #fff; border-color: rgba(255, 255, 255, .6); transform: none; }
.sdx-rd .zm-stamp svg { width: 13px; height: 13px; }

/* toast « + MATCH » en haut, en pilule */
.sdx-rd .zm-match-toast {
  top: clamp(14px, 2.4vh, 26px); bottom: auto; left: 50%;
  transform: translate(-50%, -14px);
  background: rgba(12, 16, 20, .9);
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.sdx-rd .zm-match-toast.show { transform: translate(-50%, 0); }
.sdx-rd .zm-match-toast img { border-radius: 50%; width: 28px; height: 28px; }
.sdx-rd .zm-match-toast::before { content: none; }

/* panneau détails (swipe haut / Details) */
.sdx-rd .zm-detail-overlay { background: rgba(8, 11, 14, .72); z-index: 900; }  /* au-dessus de la pilule de navigation (500) */
.sdx-rd .zm-detail-modal {
  width: min(420px, 92vw);
  background: rgba(21, 27, 30, .96);
  border-radius: 10px;
  border: 1px solid var(--rd-line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
}
.sdx-rd .zm-detail-media { aspect-ratio: 16 / 10; }
.sdx-rd .zm-detail-badge { background: transparent; color: var(--rd-dim); padding: 0; letter-spacing: .14em; }
.sdx-rd .zm-detail-title { font-family: inherit; font-size: 1.35rem; font-weight: 800; }
.sdx-rd .zm-detail-close { background: rgba(12, 16, 20, .75); }
.sdx-rd .zm-detail-close:hover { background: #fff; color: var(--rd-bg); }
.sdx-rd .zm-detail-genre-pill { background: transparent; }
.sdx-rd .zm-detail-btn { height: 40px; border-radius: 999px; }
.sdx-rd .zm-detail-btn--ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .8); }
.sdx-rd .zm-detail-btn--primary { background: #fff; color: var(--rd-bg); }
.sdx-rd .zm-detail-btn--primary:hover { background: #f0f0f0; }
.sdx-rd .zm-detail-btn--later.is-active { border-color: #fff; background: rgba(255, 255, 255, .14); }

/* ZapMatch en colonne sur petits écrans : consigne en ligne, affiche centrée,
   les trois flèches de geste en rangée sous l'affiche */
@media (max-width: 860px) {
  .sdx-rd main.zm-stage {
    grid-template-columns: 1fr; row-gap: 14px; align-content: start;
    min-height: 100vh; padding-top: 84px;
  }
  .sdx-rd .zm-side { padding-top: 0; }
  .sdx-rd .zm-title { margin-bottom: 10px; font-size: clamp(2rem, 9vw, 3rem); }
  .sdx-rd .zm-hint { flex-direction: row; align-items: center; gap: 14px; min-height: 52px; }
  .sdx-rd .zm-hint-ic { flex: 0 0 auto; width: 36px; height: 36px; }
  .sdx-rd .zm-hint-text { font-size: 1.25rem; max-width: none; }
  .sdx-rd .zm-stagecol { justify-content: center; width: 100%; }
  .sdx-rd #zmDeckArea:not([hidden]) {
    grid-template-columns: repeat(3, auto);
    grid-template-rows: auto auto;
    justify-content: center; gap: 16px 22px;
  }
  .sdx-rd .zm-deck-wrap {
    --zm-h: clamp(250px, calc(100svh - 440px), 460px);
    grid-column: 1 / -1; grid-row: 1;
  }
  .sdx-rd .zm-action-btn.zm-nope-btn { grid-column: 1; grid-row: 2; }
  .sdx-rd .zm-action-btn.zm-info-btn { grid-column: 2; grid-row: 2; }
  .sdx-rd .zm-action-btn.zm-like-btn { grid-column: 3; grid-row: 2; }
}

/* ───────────────────────── Lecteur / fiche (modale vidéo) ───────────────────────── */
.sdx-rd .sandix-hover-popup { border-radius: 8px; background: #151b1e; }

/* ───────────────────────── Accessibilité ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body.sdx-rd, .sdx-rd .sandix-bottom-nav, .sdx-rd .sbn-badge { animation: none !important; }
  .sdx-rd .sandixplus-card, .sdx-rd .sbn-item::after { transition: none !important; }
}
