/* ============================================================================
   CINÉ-SÉRIES ([C2], v2) — carte, fiche, lecteur vertical
   Chargé après style.min.css. Téléphone d'abord, ordinateur à partir de
   1024 px (le même seuil que le reste du site). Pas d'animation décorative :
   des fondus courts, rien d'autre.
   ============================================================================ */

/* LUN / OR (v=6) : les couleurs propres aux séries. Valeurs de LUN (la nuit,
   inchangée) ; OR les remplace tout en bas de ce fichier. Le reste vient du
   :root de style.css (--ink, --bg, --paper-rgb…). */
:root {
  --sf-fg: #f2f0ec;
  --sf-off: #1a1a1d;
  --sf-off-fg: #666;
  --surface-7: #121214;
  --surface-8: #151517;
}


.sf [hidden], .sp [hidden] { display: none !important; }

/* ------------------------------------------------------------------ cartes */

/* L'étiquette SÉRIE, en haut à droite, comme ORIGINAL. Si une carte porte
   les deux (une série d'Originals dans LunorFilms), elle passe dessous. */
.badge-serie {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.16em;
  padding: 3px 6px; color: #fff;
  background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.badge-original ~ .badge-serie { top: 32px; }
@media (max-width: 1023.98px) {
  #discoverPage .discover-row__card .badge-serie {
    top: 7px; right: 7px; font-size: 0.45rem; padding: 2px 5px; letter-spacing: 0.12em;
  }
  #discoverPage .discover-row__card .badge-original ~ .badge-serie { top: 26px; }
}

/* La ligne « S1 · 6 épisodes · 2 min ». Dans les rangées, le réalisateur
   des cartes est masqué : celle-ci reste, c'est elle qui dit « série ». */
.card--serie .card__serie {
  display: block; margin: 0 0 4px;
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* LunorFilms : la carte agrandie au survol porte ses boutons en haut à droite. */
.discover-row__card.is-expanded .badge-serie,
.discover-row__card:hover .badge-serie { opacity: 0; }
.card__preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.card--serie.is-preview .card__preview { opacity: 1; }

/* ------------------------------------------------------------------ fiche */

.sf {
  position: fixed; inset: 0; z-index: 120;
  background: var(--bg); color: var(--sf-fg);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  opacity: 0; visibility: hidden; transform: translateY(44px);
  /* Elle descend en partant (le bouton FERMER pointe vers le bas), elle
     monte en arrivant. */
  transition: opacity 0.3s ease, transform 0.42s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.42s;
}
.sf.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sf__fond { display: none; }

/* ---- la barre du haut : précédent · FERMER · suivant (téléphone) */
.sf__barre {
  position: absolute; z-index: 3; left: 12px; right: 12px;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  pointer-events: none;
}
.sf__barre > * { pointer-events: auto; }
.sf--seul .sf__nav { visibility: hidden; }

.sf__fermer {
  order: 2; height: 42px; padding: 0 18px 0 14px; border-radius: 21px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(var(--paper-rgb), 0.55); color: var(--ink); border: 1px solid rgba(var(--ink-rgb), 0.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.sf__fermer-ic { display: inline-flex; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sf__fermer:hover, .sf__fermer:focus-visible { background: var(--sf-fg); color: var(--bg); border-color: var(--sf-fg); }
.sf__fermer:hover .sf__fermer-ic { transform: translateY(3px); }
.sf__fermer:active .sf__fermer-ic { transform: translateY(6px); }

.sf__nav {
  position: relative; width: 42px; height: 42px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(var(--paper-rgb), 0.55); color: var(--ink); border: 1px solid rgba(var(--ink-rgb), 0.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.sf__nav--prec { order: 1; }
.sf__nav--suiv { order: 3; }
.sf__nav-ic { display: inline-flex; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sf__nav--prec:hover .sf__nav-ic { transform: translateX(-3px); }
.sf__nav--suiv:hover .sf__nav-ic { transform: translateX(3px); }
.sf__apercu { display: none; }
.sf__compte { display: none; }

/* ---- la transition entre deux films */
.sf__anim {
  transition: opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              clip-path 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 45ms);
}
.sf-sort .sf__anim {
  opacity: 0; transform: translateX(calc(var(--sens, 1) * -26px));
  transition-duration: 0.22s; transition-timing-function: ease-in; transition-delay: 0s;
}
.sf-entre .sf__anim { opacity: 0; transform: translateX(calc(var(--sens, 1) * 34px)); transition: none; }
/* L'affiche se dévoile en volet, depuis le côté d'où l'on arrive. */
.sf__affiche { clip-path: inset(0 0 0 0); }
.sf-entre .sf__affiche { clip-path: inset(0 0 0 26%); transform: translateX(calc(var(--sens, 1) * 16px)); }
.sf-entre.sf--retour .sf__affiche { clip-path: inset(0 26% 0 0); }

.sf__defile {
  position: absolute; inset: 0; z-index: 1;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}

.sf__affiche {
  position: relative; margin: 0;
  width: 100%; height: min(70svh, 150vw); overflow: hidden; background: var(--surface-2);
}
.sf__affiche img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf__affiche::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, rgba(var(--paper-rgb), 0) 0%, rgba(var(--paper-rgb), 0.85) 70%, var(--bg) 100%);
}

.sf__infos { position: relative; z-index: 1; margin-top: -120px; padding: 0 20px; }
.sf__kicker {
  margin: 0 0 10px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--cat-color, #ff2d78);
}
.sf__titre {
  margin: 0 0 10px; font-size: clamp(2rem, 9vw, 2.6rem); font-weight: 800;
  line-height: 1.02; letter-spacing: -0.02em;
}
.sf__meta {
  margin: 0 0 20px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em;
  color: rgba(var(--ink-rgb), 0.6);
}
.sf__actions { display: flex; gap: 10px; margin-bottom: 22px; }
.sf__regarder, .sf__debut {
  height: 48px; border-radius: 3px; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.sf__regarder { flex: 1; padding: 0 22px; border: 0; background: var(--sf-fg); color: var(--bg); }
.sf__regarder:disabled { background: var(--sf-off); color: var(--sf-off-fg); cursor: default; }
.sf__debut { padding: 0 16px; background: none; color: var(--ink); border: 1px solid rgba(var(--ink-rgb), 0.28); }
.sf__synopsis {
  margin: 0 0 14px; font-size: 0.95rem; line-height: 1.6; font-weight: 300;
  color: rgba(var(--ink-rgb), 0.8); max-width: 62ch;
}
.sf__synopsis:empty, .sf__credits:empty { display: none; }
.sf__credits {
  margin: 0; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em;
  color: rgba(var(--ink-rgb), 0.5);
}

.sf__episodes { padding: 34px 20px calc(env(safe-area-inset-bottom, 0px) + 44px); }
.sf__soustitre {
  margin: 0; padding-bottom: 12px; border-bottom: 1px solid rgba(var(--ink-rgb), 0.1);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: rgba(var(--ink-rgb), 0.55);
}
.sf__liste, .sp__liste { list-style: none; margin: 0; padding: 0; }
.sf__liste li { border-bottom: 1px solid rgba(var(--ink-rgb), 0.08); }
.sf__liste button, .sp__liste button {
  width: 100%; display: grid; grid-template-columns: 22px 54px 1fr; gap: 14px; align-items: center;
  padding: 12px 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
  font: inherit;
}
.sf__num { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(var(--ink-rgb), 0.45); }
.sf__mini {
  width: 54px; aspect-ratio: 9 / 16; border-radius: 3px; overflow: hidden; background: var(--surface-7);
}
.sf__mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf__ep { min-width: 0; }
.sf__ep-titre { display: block; font-size: 0.95rem; font-weight: 500; line-height: 1.3; }
.sf__ep-duree {
  display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.6rem; color: rgba(var(--ink-rgb), 0.5);
}

@media (min-width: 1024px) {
  /* Deux calques : le nouveau s'allume pendant que l'ancien s'éteint, avec
     une légère dérive d'échelle. Le fond change de couleur sans à-coup. */
  .sf__fond {
    display: block; position: absolute; inset: -60px; z-index: 0;
    background-size: cover; background-position: center;
    filter: blur(48px) brightness(0.3) saturate(1.1);
    opacity: 0; transform: scale(1.12);
    transition: opacity 0.9s ease, transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .sf__fond.is-visible { opacity: 0.8; transform: scale(1); }

  /* FERMER en haut, au centre ; les flèches sur les bords, à mi-hauteur. */
  /* Centrée sans transform : un transform ferait des flèches (position:
     fixed) des enfants de la barre, et non plus des bords de l'écran. */
  .sf__barre { top: 24px; left: 0; right: 0; justify-content: center; }
  .sf__nav {
    position: fixed; top: 50%; width: 52px; height: 52px; margin-top: -26px;
    background: rgba(var(--paper-rgb), 0.35);
  }
  .sf__nav--prec { left: 28px; }
  .sf__nav--suiv { right: 28px; }
  .sf__nav:hover { background: var(--sf-fg); color: var(--bg); border-color: var(--sf-fg); }

  /* L'aperçu du voisin, au survol de la flèche. */
  .sf__apercu {
    display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center;
    position: absolute; top: 50%; width: 250px; padding: 10px; border-radius: 4px;
    background: rgba(var(--paper-rgb), 0.82); border: 1px solid rgba(var(--ink-rgb), 0.12); color: var(--ink);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    opacity: 0; pointer-events: none; text-align: left;
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .sf__nav--prec .sf__apercu { left: 68px; transform: translate(-8px, -50%); }
  .sf__nav--suiv .sf__apercu { right: 68px; transform: translate(8px, -50%); }
  .sf__nav:hover .sf__apercu { opacity: 1; transform: translate(0, -50%); }
  .sf__apercu-img { width: 54px; aspect-ratio: 9 / 16; border-radius: 3px; overflow: hidden; background: var(--surface-8); }
  .sf__apercu-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .sf__apercu-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .sf__apercu-txt em {
    font-style: normal; font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.16em;
    color: var(--cat-color, #ff2d78);
  }
  .sf__apercu-txt b { font-size: 0.92rem; font-weight: 700; line-height: 1.25; }

  .sf__compte {
    display: block; position: absolute; z-index: 3; top: 38px; left: 32px; margin: 0;
    font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; color: rgba(var(--ink-rgb), 0.45);
  }
  .sf__defile { padding: 96px 64px 72px; }
  .sf__tete {
    display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: end;
    max-width: 1040px; margin: 0 auto;
  }
  .sf__affiche {
    width: 300px; height: auto; aspect-ratio: 9 / 16; border-radius: 4px;
    box-shadow: 0 30px 80px rgba(var(--shade-rgb), 0.55);
  }
  .sf__affiche::after { display: none; }
  .sf__infos { margin: 0; padding: 0 0 6px; }
  .sf__titre { font-size: 3.2rem; }
  .sf__actions { max-width: 440px; }
  .sf__regarder { flex: 0 0 auto; padding: 0 30px; }
  .sf__episodes { max-width: 1040px; margin: 0 auto; padding: 56px 0 0; }
  .sf__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 32px; }
  .sf__liste button:hover .sf__ep-titre { color: var(--ink); }
  .sf__liste button:hover .sf__mini img { filter: brightness(1.12); }
  .sf__regarder:not(:disabled):hover { background: var(--ink); }
  .sf__debut:hover { border-color: var(--ink); }
}

/* ------------------------------------------------------------------ fiche d'un film
   Le même agencement que la série (v4). Un film horizontal garde son affiche
   en 16:9 : en haut sur téléphone, à gauche (plus large) sur ordinateur. */

.sf--film .sf__episodes { display: none; }
.sf__blocs:empty { display: none; }
.sf__blocs { display: grid; gap: 34px; padding: 34px 20px calc(env(safe-area-inset-bottom, 0px) + 44px); }
.sf__bloc { min-width: 0; }
.sf__bloc .sf__soustitre { margin-bottom: 14px; }

.sf--paysage .sf__affiche { height: auto; aspect-ratio: 16 / 9; }
.sf--paysage .sf__affiche::after { height: 45%; }
.sf--paysage .sf__infos { margin-top: -28px; }

.sf__talents { display: grid; gap: 10px; }
.sf__talent {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 14px; border: 1px solid rgba(var(--ink-rgb), 0.12); border-radius: 4px;
  color: inherit; text-decoration: none;
}
.sf__talent-ig {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--cat-color, #ff2d78); color: var(--cat-color, #ff2d78);
}
.sf__talent-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sf__talent-nom { font-size: 0.95rem; font-weight: 600; }
.sf__talent-handle {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.04em; color: var(--cat-color, #ff2d78);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sf__talent-note { font-size: 0.8rem; font-style: italic; font-weight: 300; color: rgba(var(--ink-rgb), 0.6); }
.sf__talent-fl { color: rgba(var(--ink-rgb), 0.4); }

.sf__tech { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0; }
.sf__tech dt {
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.45);
}
.sf__tech dd { margin: 5px 0 0; font-size: 0.95rem; line-height: 1.35; }

.sf__avis { margin: 0 0 18px; }
.sf__avis blockquote {
  margin: 0 0 10px; font-size: 1.05rem; line-height: 1.6; font-weight: 300; color: rgba(var(--ink-rgb), 0.88);
}
.sf__avis blockquote::before { content: '« '; }
.sf__avis blockquote::after { content: ' »'; }
.sf__avis figcaption {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; color: rgba(var(--ink-rgb), 0.5);
}
.sf__avis-nom { color: var(--ink); }
.sf__lien {
  padding: 8px 0; background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: rgba(var(--ink-rgb), 0.6);
}

@media (min-width: 1024px) {
  .sf--paysage .sf__tete { grid-template-columns: minmax(0, 560px) 1fr; align-items: center; }
  .sf--paysage .sf__affiche { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .sf--paysage .sf__infos { margin: 0; }
  .sf__blocs {
    max-width: 1040px; margin: 0 auto; padding: 56px 0 0;
    grid-template-columns: 1fr 1fr; gap: 44px 56px; align-items: start;
  }
  .sf__bloc--large { grid-column: 1 / -1; }
  .sf__talent:hover { border-color: rgba(var(--ink-rgb), 0.5); }
  .sf__talent:hover .sf__talent-fl { color: var(--ink); }
  .sf__lien:hover { color: var(--ink); }
}

/* Pendant qu'un film démarre (au plus une seconde), l'ancienne fiche reste
   invisible : on passe de la nouvelle fiche au noir, puis au film. */
html.ff-lecture #videoModal:not(.is-playing) { opacity: 0 !important; pointer-events: none; }
html.ff-lecture #videoModalOverlay { background: #000 !important; }

/* ------------------------------------------------------------------ lecteur */

.sp {
  position: fixed; inset: 0; z-index: 130;
  background: #000; color: #fff;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  touch-action: none; -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sp.is-open { opacity: 1; visibility: visible; transition: opacity 0.2s ease; }

.sp__scene { position: absolute; inset: 0; overflow: hidden; background: #000; }
.sp__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #000; opacity: 0;
}
.sp__video.is-actif { opacity: 1; }
.sp__video.is-paysage { object-fit: contain; }

.sp__voile {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 20%,
                                       rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.72) 100%);
}

.sp__haut {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 0;
}
.sp__barres { display: flex; gap: 3px; }
.sp__barre {
  position: relative; flex: 1 1 0; height: 16px; margin: 0; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.sp__barre::before, .sp__remplie {
  content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 1px;
}
.sp__barre::before { background: rgba(255, 255, 255, 0.3); }
.sp__remplie { background: #fff; transform-origin: left center; transform: scaleX(0); }
.sp__barre.is-actif .sp__remplie { background: var(--cat-color, #ff2d78); }

.sp__entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.sp__serie {
  margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.sp__outils { display: flex; gap: 8px; flex: 0 0 auto; }
.sp__btn {
  height: 40px; min-width: 40px; padding: 0; border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(0, 0, 0, 0.38); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; cursor: pointer;
}
.sp__son.is-muet { padding: 0 14px 0 12px; }
.sp__btn:disabled { opacity: 0.3; cursor: default; }

.sp__bas {
  position: absolute; z-index: 3; left: 18px; right: 18px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); pointer-events: none;
}
.sp__num {
  margin: 0 0 6px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em;
  color: var(--cat-color, #ff2d78);
}
.sp__titre { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.sp__indice {
  margin: 12px 0 0; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.sp__pause {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.42); pointer-events: none;
  opacity: 0; transition: opacity 0.15s ease;
}
.sp__pause::before, .sp__pause::after {
  content: ''; position: absolute; top: 24px; width: 6px; height: 24px; border-radius: 1px; background: #fff;
}
.sp__pause::before { left: 26px; }
.sp__pause::after { right: 26px; }
.sp.is-pause .sp__pause { opacity: 1; }

/* L'écran de fin. */
.sp__fin {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(env(safe-area-inset-top, 0px) + 60px) 20px calc(env(safe-area-inset-bottom, 0px) + 30px);
  background: rgba(0, 0, 0, 0.86); text-align: center;
}
.sp.is-fin .sp__bas, .sp.is-fin .sp__voile { display: none; }
.sp__fin-kicker {
  margin: 0; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--cat-color, #ff2d78);
}
.sp__fin-titre { margin: 0 0 10px; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.sp__suite {
  width: min(86vw, 360px); display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center;
  padding: 12px; border-radius: 4px; text-align: left; cursor: pointer; color: #fff; font: inherit;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
}
.sp__suite-img { width: 72px; aspect-ratio: 9 / 16; border-radius: 3px; overflow: hidden; background: #151517; }
.sp__suite-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp__suite-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp__suite-kicker { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.55); }
.sp__suite-titre { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.sp__suite-go {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  padding: 8px 14px; border-radius: 3px; background: #f2f0ec; color: #050506;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em;
}
.sp__fin-actions { display: flex; flex-direction: column; gap: 8px; width: min(86vw, 360px); margin-top: 4px; }
.sp__fin-actions button {
  height: 44px; border-radius: 3px; cursor: pointer;
  background: none; color: #fff; border: 1px solid rgba(255, 255, 255, 0.24);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
}

.sp__nav, .sp__cote { display: none; }

/* Ordinateur : une colonne 9:16 au centre, la flèche précédent / suivant à
   gauche, la liste des épisodes à droite. La colonne se réduit si l'écran
   est étroit, pour que la liste garde sa place. */
@media (min-width: 1024px) {
  .sp { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .sp__scene {
    --w: min(calc(92vh * 9 / 16), calc(100vw - 640px));
    position: relative; inset: auto; grid-column: 2; grid-row: 1;
    width: var(--w); height: calc(var(--w) * 16 / 9); border-radius: 6px;
  }
  .sp__haut { padding: 12px 12px 0; }
  .sp__bas { bottom: 22px; }
  .sp__nav {
    display: flex; flex-direction: column; gap: 10px;
    grid-column: 1; grid-row: 1; justify-self: end; margin-right: 24px;
  }
  .sp__nav .sp__btn { width: 44px; height: 44px; border-radius: 50%; }
  .sp__nav .sp__btn:not(:disabled):hover, .sp__outils .sp__btn:hover { border-color: #fff; }
  .sp__cote {
    display: block; grid-column: 3; grid-row: 1; justify-self: start;
    width: min(320px, calc(100% - 72px)); margin-left: 48px; max-height: 82vh; overflow-y: auto;
  }
  .sp__cote-titre { margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
  .sp__cote-meta {
    margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.5);
  }
  .sp__liste li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .sp__liste button { grid-template-columns: 26px 1fr; padding: 11px 0; color: rgba(255, 255, 255, 0.5); }
  .sp__liste button:hover { color: rgba(255, 255, 255, 0.85); }
  .sp__liste button.is-actif { color: #fff; }
  .sp__liste button.is-actif .sf__num { color: var(--cat-color, #ff2d78); }
  .sp__aide {
    margin: 18px 0 0; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
  }
  .sp__fin-titre { font-size: 1.8rem; }
  .sp__suite, .sp__fin-actions { width: min(calc(100% - 40px), 340px); }
  .sp__fin-actions button:hover { border-color: #fff; }
}

/* Plein écran : tout le lecteur passe en plein écran, la colonne prend
   toute la hauteur et perd ses coins arrondis. */
.sp:fullscreen, .sp:-webkit-full-screen { width: 100%; height: 100%; }
@media (min-width: 1024px) {
  .sp.is-plein .sp__scene { --w: min(calc(100vh * 9 / 16), calc(100vw - 640px)); border-radius: 0; }
}

/* L'écran noir (ordinateur) : la souris ne bouge plus pendant la lecture,
   tout s'efface sauf la vidéo. Le fondu est lent à partir, immédiat au retour. */
@media (min-width: 1024px) and (hover: hover) {
  .sp__cote, .sp__nav, .sp__haut, .sp__bas, .sp__voile { transition: opacity 0.25s ease; }
  .sp.is-repos { cursor: none; }
  .sp.is-repos .sp__cote, .sp.is-repos .sp__nav, .sp.is-repos .sp__haut,
  .sp.is-repos .sp__bas, .sp.is-repos .sp__voile {
    opacity: 0; pointer-events: none; transition: opacity 0.8s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf, .sp, .card__preview, .sp__pause, .sp__cote, .sp__nav, .sp__haut, .sp__bas, .sp__voile,
  .sf__anim, .sf__fond { transition: none !important; }
  .sf { transform: none; }
}

/* LUN / OR (v=6) : la fiche d'une série en mode OR (le jour). Le lecteur
   (.sp) reste noir dans les deux modes : c'est une salle de projection. */
html[data-mode="or"] {
  --sf-fg: #14110c;
  --sf-off: #e8e1d3;
  --sf-off-fg: #6b6153;
  --surface-7: #eee8dd;
  --surface-8: #e8e1d3;
}
/* Sur ordinateur, le fond flou de l'affiche : la nuit il est assombri
   (brightness 0.3) ; le jour il devient un simple lavis de couleur. */
@media (min-width: 1024px) {
  html[data-mode="or"] .sf__fond { filter: blur(48px) brightness(1.15) saturate(0.85); }
  html[data-mode="or"] .sf__fond.is-visible { opacity: 0.32; }
}
