/* NOFLIX : identité propre. Nuit profonde, corail ambré, typographie système épaisse. */
:root {
  color-scheme: dark;
  --fond: #0b0b10;
  --fond-2: #111118;
  --carte: #191921;
  --carte-2: #23232d;
  --carte-3: #2e2e3a;
  --ligne: rgba(255, 255, 255, .08);
  --ligne-2: rgba(255, 255, 255, .16);
  --texte: #f5f5f7;
  --texte-2: #b7b7c4;
  --texte-3: #80808f;
  --corail: #ff5a4e;
  --ambre: #ffa53d;
  --signature: linear-gradient(120deg, #ff5a4e 0%, #ff7a45 55%, #ffa53d 100%);
  --ok: #34d399;
  --alerte: #fbbf24;
  --danger: #f87171;
  --rayon: 10px;
  --rayon-l: 16px;
  --marge: clamp(16px, 4vw, 60px);
  --haut: env(safe-area-inset-top, 0px);
  --bas: env(safe-area-inset-bottom, 0px);
  --gauche: env(safe-area-inset-left, 0px);
  --droite: env(safe-area-inset-right, 0px);
  --entete: 68px;
  --onglets: 0px;
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ombre: 0 18px 50px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--fond); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--fond); color: var(--texte);
  font: 16px/1.45 var(--police); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
body.sans-defilement { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.ic { flex: none; display: block; }
:focus-visible { outline: 2.5px solid var(--ambre); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255, 90, 78, .45); }
.discret { color: var(--texte-2); }
.tres-discret { color: var(--texte-3); font-size: 14px; }
.cache { display: none !important; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- Boutons et champs */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px;
  border-radius: 8px; font-weight: 700; font-size: 16px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, opacity .2s, box-shadow .2s; user-select: none;
}
.bouton:active { transform: scale(.97); }
.bouton.principal { background: var(--texte); color: #0b0b10; }
.bouton.principal:hover { background: #fff; box-shadow: 0 6px 24px rgba(255, 255, 255, .18); }
.bouton.signature { background: var(--signature); color: #fff; box-shadow: 0 8px 26px rgba(255, 90, 78, .35); }
.bouton.signature:hover { filter: brightness(1.07); }
.bouton.secondaire { background: rgba(120, 120, 140, .32); color: var(--texte); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bouton.secondaire:hover { background: rgba(140, 140, 160, .45); }
.bouton.fantome { background: transparent; color: var(--texte-2); border: 1px solid var(--ligne-2); }
.bouton.fantome:hover { color: var(--texte); border-color: var(--texte-3); }
.bouton.danger { background: rgba(248, 113, 113, .16); color: #fca5a5; border: 1px solid rgba(248, 113, 113, .35); }
.bouton.danger:hover { background: rgba(248, 113, 113, .26); }
.bouton.petit { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 7px; gap: 7px; }
.bouton[disabled] { opacity: .45; pointer-events: none; }
.bouton-rond {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  border: 2px solid rgba(255, 255, 255, .45); background: rgba(20, 20, 28, .55); color: var(--texte);
  transition: border-color .15s, background .15s, transform .15s;
}
.bouton-rond:hover { border-color: #fff; background: rgba(40, 40, 52, .8); }
.bouton-rond:active { transform: scale(.94); }
.bouton-rond.actif { border-color: var(--ambre); color: var(--ambre); }
.bouton-icone { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--texte-2); transition: color .15s, background .15s; }
.bouton-icone:hover { color: var(--texte); background: rgba(255, 255, 255, .07); }

.champ { display: grid; gap: 7px; }
.champ > span { font-size: 14px; color: var(--texte-2); font-weight: 600; }
.entree, select.entree, textarea.entree {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--ligne-2);
  background: rgba(255, 255, 255, .05); color: var(--texte); font-size: 16px; outline: none; transition: border-color .15s, background .15s;
}
textarea.entree { min-height: 90px; resize: vertical; }
.entree:focus { border-color: var(--corail); background: rgba(255, 255, 255, .08); }
.entree::placeholder { color: var(--texte-3); }
select.entree { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texte-2) 50%), linear-gradient(135deg, var(--texte-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.interrupteur { display: flex; align-items: center; gap: 14px; cursor: pointer; min-height: 44px; }
.interrupteur input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--carte-3); position: relative; transition: background .2s; flex: none; margin: 0; cursor: pointer; }
.interrupteur input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.interrupteur input:checked { background: var(--corail); }
.interrupteur input:checked::after { transform: translateX(18px); }
.erreur-texte { color: #fca5a5; font-size: 14px; min-height: 20px; }
.pastille { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; border: 1px solid var(--ligne-2); color: var(--texte-2); white-space: nowrap; }
.pastille.ok { color: var(--ok); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.pastille.alerte { color: var(--alerte); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.pastille.danger { color: var(--danger); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
.pastille.signature { color: #fff; border: 0; background: var(--signature); }
.pastille.neutre { background: rgba(255,255,255,.06); }

/* ---------------------------------------------------------------- Écrans d'accès */
.ecran-acces {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + var(--haut)) 20px calc(24px + var(--bas));
  position: relative; overflow: hidden; isolation: isolate;
}
.ecran-acces::before, .ecran-acces::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none;
}
.ecran-acces::before { width: 60vmax; height: 60vmax; left: -18vmax; top: -24vmax; background: radial-gradient(circle, rgba(255, 90, 78, .55), transparent 65%); animation: derive 18s ease-in-out infinite alternate; }
.ecran-acces::after { width: 55vmax; height: 55vmax; right: -20vmax; bottom: -26vmax; background: radial-gradient(circle, rgba(124, 58, 237, .45), transparent 65%); animation: derive 22s ease-in-out infinite alternate-reverse; }
@keyframes derive { to { transform: translate(8vmax, 6vmax) scale(1.1); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06; background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px); background-size: 3px 3px; }
.carte-acces { width: min(420px, 100%); text-align: center; display: grid; gap: 22px; animation: monte .6s var(--ease) both; }
.carte-acces .logo { height: 54px; width: auto; margin: 0 auto 6px; color: #fff; filter: drop-shadow(0 10px 30px rgba(255, 90, 78, .25)); }
.carte-acces h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--texte-2); letter-spacing: -.01em; }
.carte-acces form { display: grid; gap: 14px; text-align: left; }
.champ-mdp { position: relative; }
.champ-mdp .entree { padding-right: 52px; height: 56px; font-size: 18px; border-radius: 12px; }
.champ-mdp button { position: absolute; right: 6px; top: 6px; }
.secoue { animation: secoue .4s; }
@keyframes secoue { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }

.qui-regarde { text-align: center; animation: apparait .5s both; width: min(980px, 100%); }
.qui-regarde h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 clamp(26px, 5vw, 44px); }
.grille-profils { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3.4vw, 34px); }
.profil-choix { display: grid; justify-items: center; gap: 12px; width: clamp(104px, 16vw, 152px); color: var(--texte-2); transition: color .2s; animation: monte .5s var(--ease) both; }
.profil-choix .cadre { position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; transition: transform .2s var(--ease), box-shadow .2s; }
.profil-choix .avatar { width: 100%; height: 100%; display: block; }
.profil-choix .cadre::after { content: ""; position: absolute; inset: -4px; border-radius: 19px; border: 3px solid transparent; transition: border-color .2s; }
.profil-choix:hover, .profil-choix:focus-visible { color: var(--texte); outline: none; }
.profil-choix:hover .cadre, .profil-choix:focus-visible .cadre { transform: translateY(-4px) scale(1.04); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.profil-choix:hover .cadre::after, .profil-choix:focus-visible .cadre::after { border-color: #fff; }
.profil-choix .nom { font-size: clamp(15px, 1.8vw, 19px); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-choix .badge-cadenas { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: grid; place-items: center; color: #fff; }
.profil-choix.ajout .cadre { display: grid; place-items: center; border: 2px dashed var(--ligne-2); color: var(--texte-3); }
.profil-choix.ajout:hover .cadre { border-color: var(--texte-2); color: var(--texte); }
.lien-bas { margin-top: clamp(30px, 6vw, 56px); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.saisie-code { display: grid; justify-items: center; gap: 18px; text-align: center; animation: monte .35s var(--ease) both; width: min(360px, 100%); }
.saisie-code .avatar { width: 84px; height: 84px; }
.saisie-code h2 { margin: 0; font-size: 22px; }
.points-code { display: flex; gap: 14px; justify-content: center; min-height: 22px; }
.points-code span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--texte-3); transition: background .15s, border-color .15s, transform .15s; }
.points-code span.plein { background: var(--texte); border-color: var(--texte); transform: scale(1.08); }
.pave { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; justify-content: center; }
.pave button { height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .07); font-size: 28px; font-weight: 500; transition: background .12s, transform .1s; display: grid; place-items: center; }
.pave button:hover { background: rgba(255, 255, 255, .13); }
.pave button:active { background: rgba(255, 255, 255, .22); transform: scale(.94); }
.pave button.vide { visibility: hidden; }
.pave button.effacer { background: none; color: var(--texte-2); }

/* ---------------------------------------------------------------- Coquille : en-tête, navigation */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(var(--entete) + var(--haut)); padding: var(--haut) calc(var(--marge) + var(--droite)) 0 calc(var(--marge) + var(--gauche));
  display: flex; align-items: center; gap: clamp(14px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(11, 11, 16, .82) 0%, rgba(11, 11, 16, 0) 100%); transition: background .35s;
}
.entete.solide { background: rgba(11, 11, 16, .94); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 var(--ligne); }
.entete .logo { height: 26px; width: auto; color: #fff; flex: none; }
.nav { display: flex; gap: clamp(12px, 2vw, 24px); font-size: 15px; }
.nav a { color: var(--texte-2); font-weight: 500; transition: color .15s; padding: 8px 0; position: relative; }
.nav a:hover { color: var(--texte); }
.nav a.actif { color: var(--texte); font-weight: 700; }
.nav a.actif::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--signature); }
.entete .outils { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.recherche-entete { display: flex; align-items: center; border: 1px solid transparent; border-radius: 10px; transition: border-color .2s, background .2s, width .3s var(--ease); width: 44px; overflow: hidden; }
.recherche-entete.ouverte { width: min(300px, 40vw); border-color: var(--ligne-2); background: rgba(11, 11, 16, .75); }
.recherche-entete input { border: 0; background: none; outline: none; width: 100%; font-size: 16px; padding: 0 10px 0 0; height: 42px; min-width: 0; }
.cloche { position: relative; }
.cloche .compteur { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--corail); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--fond); }
.menu-profil { position: relative; }
.menu-profil > button { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 10px; }
.menu-profil > button .avatar { width: 34px; height: 34px; }
.menu-profil > button .ic { color: var(--texte-2); transition: transform .2s; }
.menu-profil.ouvert > button .ic { transform: rotate(180deg); }
.menu-deroulant {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: rgba(22, 22, 30, .97); border: 1px solid var(--ligne);
  border-radius: 14px; padding: 8px; box-shadow: var(--ombre); display: none; z-index: 60; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.ouvert > .menu-deroulant { display: grid; animation: monte .18s var(--ease); }
.menu-deroulant a, .menu-deroulant button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--texte-2); text-align: left; min-height: 44px; font-size: 15px; }
.menu-deroulant a:hover, .menu-deroulant button:hover { background: rgba(255, 255, 255, .07); color: var(--texte); }
.menu-deroulant .avatar { width: 30px; height: 30px; }
.menu-deroulant hr { border: 0; border-top: 1px solid var(--ligne); margin: 6px 4px; }
.panneau-notifs { width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; }
.notif { display: grid !important; grid-template-columns: 8px 1fr; gap: 10px !important; align-items: start !important; }
.notif .puce { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: transparent; }
.notif.nouvelle .puce { background: var(--corail); }
.notif small { display: block; color: var(--texte-3); font-size: 12px; margin-top: 2px; }

.onglets-bas { display: none; }
main#contenu { min-height: 100vh; padding-bottom: calc(60px + var(--onglets) + var(--bas)); }
.page { padding: calc(var(--entete) + var(--haut) + 24px) calc(var(--marge) + var(--droite)) 40px calc(var(--marge) + var(--gauche)); animation: apparait .35s both; }
.page h1.titre-page { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 24px; }

/* ---------------------------------------------------------------- Accueil : grande affiche */
.vedette { position: relative; height: min(92vh, 56.25vw + 140px); min-height: 540px; overflow: hidden; isolation: isolate; }
.vedette .visuel, .vedette .bande { position: absolute; inset: 0; z-index: -2; }
.vedette .visuel img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; opacity: 0; transition: opacity 1s, transform 12s linear; transform: scale(1.06); }
.vedette .visuel img.chargee { opacity: 1; transform: scale(1); }
.vedette .bande { opacity: 0; transition: opacity 1.2s; pointer-events: none; overflow: hidden; }
.vedette .bande.visible { opacity: 1; }
.vedette .bande iframe { position: absolute; top: 50%; left: 50%; width: max(100%, calc(100vh * 1.7778 * 1.2)); height: max(calc(100vw * .5625 * 1.2), 120%); transform: translate(-50%, -50%); border: 0; }
.vedette::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(11, 11, 16, .92) 0%, rgba(11, 11, 16, .55) 34%, rgba(11, 11, 16, 0) 62%),
  linear-gradient(0deg, var(--fond) 0%, rgba(11, 11, 16, .45) 22%, rgba(11, 11, 16, 0) 45%),
  linear-gradient(180deg, rgba(11, 11, 16, .5) 0%, rgba(11, 11, 16, 0) 18%); }
.vedette .texte { position: absolute; left: calc(var(--marge) + var(--gauche)); bottom: clamp(190px, 27vh, 300px); width: min(560px, 44vw); display: grid; gap: 18px; animation: monte .8s .1s var(--ease) both; }
.vedette .logo-film { max-width: min(460px, 100%); max-height: 150px; width: auto; height: auto; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55)); transform-origin: left bottom; transition: transform .8s var(--ease); }
.vedette.lecture-bande .logo-film { transform: scale(.78); }
.vedette .titre-film { font-size: clamp(36px, 5.4vw, 72px); font-weight: 900; line-height: .98; letter-spacing: -.03em; margin: 0; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.etiquette-nouveau { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-2); }
.etiquette-nouveau b { background: var(--signature); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--texte-2); font-size: 15px; font-weight: 500; }
.meta .note { color: var(--ambre); display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--texte-3); }
.vedette .resume { margin: 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; color: #e9e9ee; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: opacity .6s, max-height .8s; max-height: 6em; }
.vedette.lecture-bande .resume { opacity: 0; max-height: 0; }
.vedette .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; align-items: center; }
.vedette .actions .bouton { min-height: 52px; padding: 0 28px; font-size: 18px; }
.vedette .cote { position: absolute; right: 0; bottom: clamp(200px, 28vh, 310px); display: flex; align-items: center; gap: 14px; }
.vedette .cote .classif { padding: 6px 30px 6px 14px; background: rgba(40, 40, 52, .6); border-left: 3px solid var(--texte-2); font-weight: 600; color: var(--texte); backdrop-filter: blur(6px); }
.points-vedette { position: absolute; right: calc(var(--marge) + var(--droite)); bottom: clamp(160px, 22vh, 250px); display: flex; gap: 8px; z-index: 3; }
.points-vedette button { width: 26px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); transition: background .2s, width .3s; }
.points-vedette button.actif { background: #fff; width: 40px; }

/* ---------------------------------------------------------------- Rangées défilantes et cartes */
.rangees { grid-template-columns: minmax(0, 1fr); position: relative; z-index: 2; margin-top: clamp(-150px, -12vw, -60px); display: grid; gap: clamp(26px, 3.4vw, 46px); padding-bottom: 30px; }
.rangees.sans-vedette { margin-top: 0; padding-top: calc(var(--entete) + var(--haut) + 20px); }
.rangee h2 { margin: 0 0 12px; padding: 0 calc(var(--marge) + var(--droite)) 0 calc(var(--marge) + var(--gauche)); font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 12px; }
.rangee h2 a.voir-tout { font-size: 14px; font-weight: 600; color: var(--ambre); opacity: 0; transition: opacity .2s; }
.rangee:hover h2 a.voir-tout { opacity: 1; }
.defileur { position: relative; }
.piste {
  display: flex; gap: clamp(8px, .8vw, 12px); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px calc(var(--marge) + var(--droite)) 14px calc(var(--marge) + var(--gauche)); scroll-padding: 0 calc(var(--marge) + var(--gauche));
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.piste::-webkit-scrollbar { display: none; }
.fleche {
  position: absolute; top: 6px; bottom: 14px; width: calc(var(--marge) - 6px); min-width: 44px; z-index: 5; display: grid; place-items: center;
  background: rgba(11, 11, 16, .6); color: #fff; opacity: 0; transition: opacity .2s, background .2s;
}
.fleche.g { left: 0; border-radius: 0 8px 8px 0; }
.fleche.d { right: 0; border-radius: 8px 0 0 8px; }
.defileur:hover .fleche:not(.inutile) { opacity: 1; }
.fleche:hover { background: rgba(11, 11, 16, .85); }
.fleche:hover .ic { transform: scale(1.25); }
.fleche .ic { transition: transform .15s; }

.carte {
  --l: clamp(220px, 21vw, 340px);
  position: relative; flex: none; width: var(--l); aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; scroll-snap-align: start;
  background: var(--carte); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; outline-offset: 3px;
}
.carte img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.carte img.chargee { opacity: 1; }
.carte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, 0) 52%); pointer-events: none; }
.carte .nom-carte { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-weight: 800; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.1; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carte .logo-carte { position: absolute; left: 12px; bottom: 12px; z-index: 1; max-width: 62%; max-height: 42%; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.carte .barre { position: absolute; left: 12px; right: 12px; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); z-index: 2; overflow: hidden; }
.carte .barre i { display: block; height: 100%; background: var(--corail); border-radius: 3px; }
.carte.reprise .nom-carte, .carte.reprise .logo-carte { bottom: 18px; }
.carte .coin { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; gap: 6px; }
.carte .coin .pastille { background: rgba(11, 11, 16, .72); border: 0; color: #fff; }
.carte .coin .pastille.signature { background: var(--signature); }
.carte.indispo { filter: grayscale(.9); opacity: .6; }
@media (hover: hover) {
  .carte:hover { transform: scale(1.04); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); z-index: 3; }
}
.carte.affiche-carte { --l: clamp(140px, 13vw, 210px); aspect-ratio: 2 / 3; }
.carte.affiche-carte::after { display: none; }
.carte.top { --l: clamp(200px, 19vw, 300px); aspect-ratio: auto; height: calc(clamp(140px, 13vw, 210px) * 1.5 * .82); display: flex; align-items: flex-end; overflow: visible; background: none; }
.carte.top::after { display: none; }
.carte.top .chiffre { flex: none; width: 46%; height: 100%; font-weight: 900; font-size: calc(clamp(140px, 13vw, 210px) * 1.25); line-height: .78; letter-spacing: -.08em; color: var(--fond); -webkit-text-stroke: 3px rgba(255, 255, 255, .55); display: flex; align-items: flex-end; justify-content: flex-end; padding-right: 4px; user-select: none; }
.carte.top .affiche-top { flex: none; width: 54%; height: 100%; border-radius: 6px; overflow: hidden; background: var(--carte); margin-left: -12px; box-shadow: -6px 0 20px rgba(0, 0, 0, .5); }
.carte.top .affiche-top img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .carte.top:hover { transform: scale(1.03); box-shadow: none; } }

/* Aperçu agrandi au survol (ordinateur) */
.apercu {
  position: absolute; z-index: 40; background: var(--carte); border-radius: 10px; overflow: hidden; box-shadow: 0 22px 60px rgba(0, 0, 0, .75);
  transform-origin: center; opacity: 0; transform: scale(.72); transition: transform .28s var(--ease), opacity .2s; pointer-events: none;
}
.apercu.visible { opacity: 1; transform: none; pointer-events: auto; }
.apercu .haut { position: relative; aspect-ratio: 16 / 9; background: #000; }
.apercu .haut img, .apercu .haut iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.apercu .haut .logo-carte { position: absolute; left: 14px; bottom: 12px; width: auto; height: auto; max-width: 55%; max-height: 40%; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.apercu .haut::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(25, 25, 33, 1) 0%, rgba(25, 25, 33, 0) 40%); pointer-events: none; }
.apercu .corps { padding: 14px 16px 18px; display: grid; gap: 11px; }
.apercu .boutons { display: flex; gap: 8px; align-items: center; }
.apercu .boutons .bouton-rond { width: 40px; height: 40px; }
.apercu .boutons .lire { background: #fff; color: #0b0b10; border-color: #fff; }
.apercu .boutons .lire:hover { background: #e6e6ea; }
.apercu .boutons .plus-infos { margin-left: auto; }
.apercu .nom-apercu { font-weight: 800; font-size: 17px; line-height: 1.2; }
.apercu .genres { font-size: 14px; color: var(--texte); display: flex; flex-wrap: wrap; gap: 4px 0; }
.apercu .genres span + span::before { content: "•"; color: var(--texte-3); margin: 0 7px; }

/* ---------------------------------------------------------------- Grilles (Films, Ma liste, Recherche) */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 15vw, 200px), 1fr)); gap: clamp(10px, 1.4vw, 18px) clamp(10px, 1vw, 14px); }
.grille .carte { width: 100%; --l: 100%; }
.grille.paysage { grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 22vw, 320px), 1fr)); }
.filtres { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.puce-filtre { min-height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--ligne-2); color: var(--texte-2); font-weight: 600; font-size: 14px; transition: all .15s; }
.puce-filtre:hover { color: var(--texte); border-color: var(--texte-3); }
.puce-filtre.actif { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.filtres select.entree { width: auto; min-height: 38px; padding: 6px 40px 6px 14px; border-radius: 99px; font-size: 14px; background-position: calc(100% - 20px) 16px, calc(100% - 15px) 16px; }
.vide-etat { text-align: center; padding: clamp(40px, 10vh, 100px) 20px; display: grid; justify-items: center; gap: 14px; color: var(--texte-2); }
.vide-etat .ic { color: var(--texte-3); width: 56px; height: 56px; }
.vide-etat h2 { margin: 0; color: var(--texte); font-size: 22px; }
.vide-etat p { margin: 0; max-width: 460px; }
.grande-recherche { position: relative; margin-bottom: 26px; }
.grande-recherche .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--texte-3); }
.grande-recherche .entree { height: 58px; padding-left: 52px; font-size: 19px; border-radius: 14px; }

/* ---------------------------------------------------------------- Fiche d'un film (fenêtre) */
.modale-fond { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .72); display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 36px 16px; opacity: 0; transition: opacity .22s; overscroll-behavior: contain; }
.modale-fond.ouverte { opacity: 1; }
.modale { position: relative; width: min(520px, 100%); margin: auto; background: var(--carte); border-radius: var(--rayon-l); box-shadow: var(--ombre); transform: translateY(24px) scale(.98); transition: transform .3s var(--ease); }
.modale.large { width: min(940px, 100%); }
.modale-fond.ouverte .modale { transform: none; }
.modale-fermer { position: absolute; top: 14px; right: 14px; z-index: 10; width: 40px; height: 40px; border-radius: 50%; background: rgba(11, 11, 16, .78); display: grid; place-items: center; color: #fff; transition: background .15s, transform .15s; }
.modale-fermer:hover { background: #000; transform: rotate(90deg); }
.dialogue { padding: 28px 28px 24px; display: grid; gap: 16px; }
.dialogue h2 { margin: 0; font-size: 22px; padding-right: 40px; }
.dialogue p { margin: 0; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.fiche .tete { position: relative; aspect-ratio: 16 / 8.2; border-radius: var(--rayon-l) var(--rayon-l) 0 0; overflow: hidden; background: #000; }
.fiche .tete > img, .fiche .tete iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.fiche .tete::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--fond-fiche, var(--carte)) 0%, rgba(25, 25, 33, 0) 58%), linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 50%); pointer-events: none; }
.fiche .tete .texte { position: absolute; left: clamp(20px, 4vw, 48px); right: clamp(20px, 4vw, 48px); bottom: clamp(16px, 3vw, 36px); z-index: 2; display: grid; gap: 18px; }
.fiche .logo-film { max-width: min(380px, 60%); max-height: 120px; width: auto; height: auto; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6)); }
.fiche .titre-film { font-size: clamp(28px, 4vw, 46px); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 0; text-shadow: 0 3px 20px rgba(0, 0, 0, .6); }
.fiche .boutons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fiche .boutons .bouton { min-height: 48px; }
.progres-bouton { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--texte-2); }
.progres-bouton .barre { width: 120px; height: 4px; background: rgba(255, 255, 255, .25); border-radius: 4px; overflow: hidden; }
.progres-bouton .barre i { display: block; height: 100%; background: var(--corail); }
.fiche .corps { padding: 6px clamp(20px, 4vw, 48px) 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.rangee, .fiche .corps > *, .fin-film > *, .admin > *, .carte-acces > *, .formulaire > * { min-width: 0; }
.fiche .colonnes { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.fiche .slogan { font-style: italic; color: var(--texte-2); margin: 0 0 10px; }
.fiche .resume-long { margin: 0; font-size: 16px; line-height: 1.6; }
.fiche .infos { display: grid; gap: 12px; font-size: 14px; color: var(--texte-3); align-content: start; }
.fiche .infos b { font-weight: 500; color: var(--texte-3); }
.fiche .infos span.v { color: var(--texte); }
.fiche h3 { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.casting { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.personne { flex: none; width: 96px; text-align: center; font-size: 13px; }
.personne .photo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin: 0 auto 8px; background: var(--carte-3); display: grid; place-items: center; color: var(--texte-3); font-weight: 800; font-size: 26px; }
.personne .photo img { width: 100%; height: 100%; object-fit: cover; }
.personne b { display: block; font-weight: 600; color: var(--texte); line-height: 1.25; }
.personne small { color: var(--texte-3); display: block; line-height: 1.25; margin-top: 2px; }
.similaires { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.sim { background: var(--carte-2); border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.sim:hover { transform: translateY(-3px); background: var(--carte-3); }
.sim .img { position: relative; aspect-ratio: 16 / 9; background: var(--carte-3); }
.sim .img img { width: 100%; height: 100%; object-fit: cover; }
.sim .img .duree-coin { position: absolute; right: 8px; top: 8px; font-size: 13px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.sim .txt { padding: 12px 14px 16px; display: grid; gap: 7px; }
.sim .txt b { font-size: 15px; }
.sim .txt p { margin: 0; font-size: 13px; color: var(--texte-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.encart { border-radius: 12px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .25); color: #fde68a; }
.encart.info { background: rgba(255, 255, 255, .05); border-color: var(--ligne-2); color: var(--texte-2); }
.encart.danger { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .3); color: #fecaca; }
.encart p { margin: 0; }
.encart b { color: var(--texte); }
.fenetre-bande .modale { background: #000; overflow: hidden; }
.fenetre-bande .video-bande { aspect-ratio: 16 / 9; width: 100%; }
.fenetre-bande iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------- Lecteur */
.lecteur { position: fixed; inset: 0; z-index: 200; background: #000; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.lecteur video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lecteur video::cue { background: rgba(0, 0, 0, .55); color: #fff; font-family: var(--police); font-size: var(--taille-st, 1em); line-height: 1.35; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.lecteur.cache-curseur { cursor: none; }
.lecteur .voile { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .85) 100%); }
.lecteur.controles .voile { opacity: 1; }
.lecteur .haut-lecteur, .lecteur .bas-lecteur, .lecteur .centre-lecteur { position: absolute; left: 0; right: 0; opacity: 0; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.lecteur.controles .haut-lecteur, .lecteur.controles .bas-lecteur, .lecteur.controles .centre-lecteur { opacity: 1; pointer-events: auto; }
.lecteur .haut-lecteur { top: 0; padding: calc(14px + var(--haut)) calc(18px + var(--droite)) 0 calc(18px + var(--gauche)); display: flex; align-items: center; gap: 12px; transform: translateY(-8px); }
.lecteur.controles .haut-lecteur { transform: none; }
.lecteur .haut-lecteur .titre { font-weight: 700; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lecteur .haut-lecteur .titre small { font-weight: 500; color: rgba(255, 255, 255, .65); margin-left: 8px; }
.lecteur .bouton-icone { color: #fff; width: 48px; height: 48px; }
.lecteur .bouton-icone:hover { background: rgba(255, 255, 255, .12); }
.lecteur .bouton-icone .ic { width: 28px; height: 28px; transition: transform .15s; }
.lecteur .bouton-icone:hover .ic { transform: scale(1.12); }
.lecteur .bouton-icone.actif { color: var(--ambre); }
.lecteur .centre-lecteur { top: 50%; transform: translateY(-50%); display: none; justify-content: center; align-items: center; gap: clamp(30px, 12vw, 80px); pointer-events: none; }
.lecteur .centre-lecteur button { pointer-events: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .35); }
.lecteur .centre-lecteur button.grand { width: 84px; height: 84px; background: rgba(0, 0, 0, .45); }
.lecteur .centre-lecteur .ic { width: 34px; height: 34px; }
.lecteur .centre-lecteur button.grand .ic { width: 46px; height: 46px; }
.lecteur .bas-lecteur { bottom: 0; padding: 0 calc(18px + var(--droite)) calc(12px + var(--bas)) calc(18px + var(--gauche)); transform: translateY(8px); }
.lecteur.controles .bas-lecteur { transform: none; }
.ligne-temps { display: flex; align-items: center; gap: 14px; height: 36px; }
.ligne-temps .reste { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500; min-width: 60px; text-align: right; color: rgba(255,255,255,.9); }
.barre-lecture { position: relative; flex: 1; height: 36px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.barre-lecture .rail { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); transition: height .15s; }
.barre-lecture:hover .rail, .barre-lecture.active .rail { height: 7px; }
.barre-lecture .tampon { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .35); border-radius: 4px; }
.barre-lecture .joue { position: absolute; inset: 0 auto 0 0; background: var(--corail); border-radius: 4px; }
.barre-lecture .survol { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .25); border-radius: 4px; display: none; }
.barre-lecture:hover .survol { display: block; }
.barre-lecture .curseur { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--corail); box-shadow: 0 0 0 4px rgba(255, 90, 78, .25); transform: scale(.7); transition: transform .15s; }
.barre-lecture:hover .curseur, .barre-lecture.active .curseur { transform: scale(1); }
.barre-lecture .marque-generique { position: absolute; top: -1px; bottom: -1px; width: 3px; background: rgba(255, 255, 255, .7); border-radius: 2px; }
.vignette { position: absolute; bottom: 30px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.vignette .image { border: 2px solid #fff; border-radius: 6px; background-repeat: no-repeat; box-shadow: 0 8px 30px rgba(0, 0, 0, .6); background-color: #000; }
.vignette .t { font-size: 14px; font-weight: 700; text-shadow: 0 1px 6px #000; font-variant-numeric: tabular-nums; }
.barre-lecture:hover .vignette, .barre-lecture.active .vignette { display: flex; }
.commandes { display: flex; align-items: center; gap: 4px; }
.commandes .titre-bas { flex: 1; text-align: center; font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 12px; color: rgba(255,255,255,.9); }
.volume { display: flex; align-items: center; }
.volume input { width: 0; opacity: 0; transition: width .25s var(--ease), opacity .2s; accent-color: var(--corail); }
.volume:hover input, .volume:focus-within input { width: 100px; opacity: 1; margin-right: 8px; }
.menu-lecteur { position: absolute; right: calc(18px + var(--droite)); bottom: calc(96px + var(--bas)); z-index: 5; background: rgba(20, 20, 28, .96); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px; display: none; gap: 22px; box-shadow: var(--ombre); max-height: calc(100vh - 160px); overflow: auto; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.menu-lecteur.ouvert { display: flex; animation: monte .18s var(--ease); }
.menu-lecteur section { min-width: 190px; }
.menu-lecteur h4 { margin: 4px 10px 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); }
.menu-lecteur button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; min-height: 44px; border-radius: 8px; text-align: left; color: rgba(255, 255, 255, .78); font-size: 15px; }
.menu-lecteur button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.menu-lecteur button .ic { visibility: hidden; color: var(--ambre); }
.menu-lecteur button.choisi { color: #fff; font-weight: 700; }
.menu-lecteur button.choisi .ic { visibility: visible; }
.bouton-passer { position: absolute; right: calc(28px + var(--droite)); bottom: calc(118px + var(--bas)); z-index: 4; display: none; }
.bouton-passer.visible { display: inline-flex; animation: monte .3s var(--ease); }
.bouton-passer .bouton { background: rgba(245, 245, 247, .95); color: #0b0b10; }
.toast-reprise { position: absolute; left: 50%; top: calc(80px + var(--haut)); transform: translateX(-50%); z-index: 6; background: rgba(20, 20, 28, .92); border-radius: 12px; padding: 10px 10px 10px 18px; display: flex; gap: 14px; align-items: center; animation: monte .3s var(--ease); font-size: 15px; white-space: nowrap; }
.chargement { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .15); border-top-color: var(--corail); animation: tourne .9s linear infinite; display: none; pointer-events: none; }
.lecteur.attente .chargement { display: block; }
@keyframes tourne { to { transform: rotate(360deg); } }
.message-lecteur { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; z-index: 7; background: rgba(0, 0, 0, .78); }
.message-lecteur > div { max-width: 520px; display: grid; gap: 16px; justify-items: center; }
.message-lecteur h2 { margin: 0; font-size: 24px; }
.message-lecteur p { margin: 0; color: rgba(255, 255, 255, .78); line-height: 1.55; }
.onde { position: absolute; top: 50%; width: 120px; height: 120px; margin-top: -60px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; animation: onde .55s ease-out forwards; pointer-events: none; z-index: 3; font-weight: 700; font-size: 14px; }
.onde .ic { width: 34px; height: 34px; }
@keyframes onde { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.15); } }
.indic-centre { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: grid; place-items: center; pointer-events: none; animation: indic .6s ease-out forwards; z-index: 3; }
.indic-centre .ic { width: 44px; height: 44px; }
@keyframes indic { from { opacity: 1; transform: scale(.8); } to { opacity: 0; transform: scale(1.3); } }
.fin-film { position: absolute; inset: 0; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; padding: 0 calc(var(--marge) + var(--droite)) calc(40px + var(--bas)) calc(var(--marge) + var(--gauche)); gap: 22px;
  background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.15) 100%); animation: apparait .5s both; }
.fin-film .suivant-principal { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 26px; align-items: end; }
.fin-film .vignette-suivant { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #111; cursor: pointer; box-shadow: var(--ombre); }
.fin-film .vignette-suivant img { width: 100%; height: 100%; object-fit: cover; }
.fin-film .vignette-suivant .compte { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); }
.fin-film .anneau { width: 74px; height: 74px; }
.fin-film .autres { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.fin-film .autres .carte { --l: clamp(180px, 18vw, 260px); }
.fin-film h3 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .6); }
.fin-film h2 { margin: 6px 0 10px; font-size: clamp(24px, 3vw, 36px); font-weight: 800; }
.fin-film p { margin: 0 0 16px; color: rgba(255,255,255,.75); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cast-actif { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; background-size: cover; background-position: center; }
.cast-actif::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.cast-actif > div { position: relative; text-align: center; display: grid; gap: 10px; justify-items: center; }
.cast-actif .ic { width: 64px; height: 64px; color: var(--ambre); }

/* ---------------------------------------------------------------- Propositions */
.zone-proposer { background: linear-gradient(135deg, rgba(255, 90, 78, .14), rgba(124, 58, 237, .1)); border: 1px solid var(--ligne); border-radius: 18px; padding: clamp(18px, 3vw, 30px); margin-bottom: 34px; display: grid; gap: 18px; }
.zone-proposer h2 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); }
.resultats-propo { display: grid; gap: 10px; }
.resultat-propo { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(11, 11, 16, .45); }
.resultat-propo .mini-affiche { width: 64px; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; background: var(--carte-3); display: grid; place-items: center; color: var(--texte-3); }
.resultat-propo .mini-affiche img { width: 100%; height: 100%; object-fit: cover; }
.resultat-propo b { display: block; }
.resultat-propo p { margin: 3px 0 0; font-size: 13px; color: var(--texte-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.liste-propos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.propo { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: 14px; }
.propo .mini-affiche { width: 92px; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; background: var(--carte-3); display: grid; place-items: center; color: var(--texte-3); }
.propo .mini-affiche img { width: 100%; height: 100%; object-fit: cover; }
.propo .contenu { display: grid; gap: 8px; align-content: start; min-width: 0; }
.propo .ligne-titre { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.propo h3 { margin: 0; font-size: 17px; }
.propo .auteur { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--texte-2); }
.propo .auteur .avatar { width: 22px; height: 22px; }
.propo .message { margin: 0; font-size: 14px; color: var(--texte); background: rgba(255,255,255,.04); padding: 8px 10px; border-radius: 8px; border-left: 3px solid var(--carte-3); }
.propo .reponse { margin: 0; font-size: 14px; color: var(--texte-2); }
.propo .pied { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.moi-aussi { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--ligne-2); font-size: 14px; font-weight: 600; color: var(--texte-2); transition: all .15s; }
.moi-aussi:hover { color: var(--texte); border-color: var(--texte-3); }
.moi-aussi.actif { background: rgba(255, 90, 78, .16); color: #ffb4ab; border-color: rgba(255, 90, 78, .45); }

/* ---------------------------------------------------------------- Profil, historique */
.section-reglages { background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; margin-bottom: 20px; max-width: 760px; }
.section-reglages h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.section-reglages .aide { margin: -8px 0 0; color: var(--texte-2); font-size: 14px; }
.choix-avatars { display: flex; flex-wrap: wrap; gap: 10px; }
.choix-avatars button { border-radius: 12px; padding: 3px; border: 3px solid transparent; transition: border-color .15s, transform .15s; }
.choix-avatars button:hover { transform: scale(1.06); }
.choix-avatars button.choisi { border-color: #fff; }
.choix-avatars .avatar { width: 58px; height: 58px; display: block; }
.choix-couleurs { display: flex; flex-wrap: wrap; gap: 10px; }
.choix-couleurs button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.choix-couleurs button.choisi { border-color: #fff; }
.ligne-historique { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.ligne-historique .carte { --l: 150px; }
.ligne-historique b { display: block; font-size: 16px; }
.formulaire { display: grid; gap: 16px; }
.formulaire .ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

/* ---------------------------------------------------------------- Administration */
.admin { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.admin-menu { position: sticky; top: calc(var(--entete) + var(--haut) + 16px); display: grid; gap: 4px; }
.admin-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--texte-2); font-weight: 600; min-height: 44px; }
.admin-menu a:hover { background: rgba(255, 255, 255, .05); color: var(--texte); }
.admin-menu a.actif { background: rgba(255, 90, 78, .13); color: #fff; }
.admin-menu a.actif .ic { color: var(--corail); }
.admin-menu .compteur-menu { margin-left: auto; background: var(--corail); color: #fff; font-size: 12px; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }
.admin h1 { margin: 0 0 22px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, calc(50% - 7px)), 1fr)); gap: 14px; margin-bottom: 26px; }
.tuile { background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: 18px; display: grid; gap: 4px; }
.tuile .valeur { font-size: 32px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tuile .libelle { color: var(--texte-2); font-size: 14px; }
.tuile.accent .valeur { background: var(--signature); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bloc { background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; padding: clamp(16px, 2.4vw, 24px); margin-bottom: 20px; display: grid; gap: 16px; }
.bloc > h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.bloc > h2 .droite { margin-left: auto; display: flex; gap: 8px; }
.disque { display: grid; gap: 8px; }
.disque .entete-disque { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.disque .entete-disque b { font-size: 15px; }
.jauge { height: 10px; border-radius: 6px; background: var(--carte-3); overflow: hidden; display: flex; }
.jauge i { display: block; height: 100%; }
.jauge i.films { background: var(--signature); }
.jauge i.autre { background: rgba(255, 255, 255, .25); }
.regardent { display: grid; gap: 10px; }
.regarde { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; background: var(--carte-2); border-radius: 12px; }
.regarde .avatar { width: 40px; height: 40px; }
.regarde .barre-mini { height: 4px; border-radius: 3px; background: var(--carte-3); margin-top: 6px; overflow: hidden; }
.regarde .barre-mini i { display: block; height: 100%; background: var(--corail); }
.tableau-films { display: grid; gap: 8px; }
.ligne-film { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; }
.ligne-film .mini-affiche { width: 54px; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; background: var(--carte-3); }
.ligne-film .mini-affiche img { width: 100%; height: 100%; object-fit: cover; }
.ligne-film .titre-ligne { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ligne-film .fichier { font-size: 13px; color: var(--texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Menlo, monospace; }
.ligne-film .etiquettes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ligne-film .boutons { display: flex; gap: 4px; }
.candidats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; max-height: 60vh; overflow: auto; padding: 2px; }
.candidat { text-align: left; background: var(--carte-2); border-radius: 10px; overflow: hidden; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.candidat:hover { border-color: var(--corail); transform: translateY(-2px); }
.candidat .mini-affiche { aspect-ratio: 2/3; background: var(--carte-3); display: grid; place-items: center; color: var(--texte-3); }
.candidat .mini-affiche img { width: 100%; height: 100%; object-fit: cover; }
.candidat div.t { padding: 8px 10px 10px; font-size: 13px; }
.candidat div.t b { display: block; font-size: 14px; }
.zone-depot { border: 2px dashed var(--ligne-2); border-radius: 18px; padding: clamp(30px, 6vw, 60px) 20px; text-align: center; display: grid; justify-items: center; gap: 12px; transition: border-color .2s, background .2s; cursor: pointer; }
.zone-depot.survol { border-color: var(--corail); background: rgba(255, 90, 78, .07); }
.zone-depot .ic { width: 48px; height: 48px; color: var(--corail); }
.envoi { display: grid; gap: 8px; padding: 14px; background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; }
.envoi .haut-envoi { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.envoi .nom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progression-envoi { height: 8px; border-radius: 5px; background: var(--carte-3); overflow: hidden; }
.progression-envoi i { display: block; height: 100%; background: var(--signature); transition: width .3s; }
.etapes { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--texte-2); }
.etapes b { color: var(--texte); }
.code-adresse { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.04); border: 1px solid var(--ligne); border-radius: 10px; font-family: ui-monospace, Menlo, monospace; font-size: 15px; word-break: break-all; }
.code-adresse button { margin-left: auto; }
.liste-simple { display: grid; gap: 8px; }
.element { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--carte-2); border-radius: 12px; flex-wrap: wrap; }
.element .avatar { width: 42px; height: 42px; }
.element .txt { flex: 1; min-width: 160px; }
.element .txt b { display: block; }
.element .txt small { color: var(--texte-3); }
.journal { background: #07070a; border-radius: 12px; padding: 14px; font: 12px/1.5 ui-monospace, Menlo, monospace; color: #b8b8c6; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-all; }

/* ---------------------------------------------------------------- Notifications éphémères */
.toasts { position: fixed; z-index: 400; left: 50%; bottom: calc(24px + var(--onglets) + var(--bas)); transform: translateX(-50%); display: grid; gap: 10px; justify-items: center; pointer-events: none; width: min(560px, calc(100vw - 32px)); }
.toast { pointer-events: auto; background: rgba(32, 32, 42, .97); border: 1px solid var(--ligne-2); border-radius: 12px; padding: 12px 16px; box-shadow: var(--ombre); font-weight: 500; display: flex; align-items: center; gap: 14px; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s var(--ease); max-width: 100%; }
.toast.visible { opacity: 1; transform: none; }
.toast.erreur { border-color: rgba(248, 113, 113, .45); }
.toast.succes { border-color: rgba(52, 211, 153, .45); }
.toast-action { color: var(--ambre); font-weight: 700; white-space: nowrap; min-height: 32px; }

/* ---------------------------------------------------------------- Squelettes de chargement */
.squelette { background: linear-gradient(90deg, var(--carte) 25%, var(--carte-2) 50%, var(--carte) 75%); background-size: 200% 100%; animation: chatoie 1.4s infinite; border-radius: 8px; }
@keyframes chatoie { to { background-position: -200% 0; } }
.chargement-page { min-height: 60vh; display: grid; place-items: center; }
.chargement-page::after { content: ""; width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--corail); animation: tourne .9s linear infinite; }

/* ---------------------------------------------------------------- Téléphone */
@media (max-width: 900px) {
  .nav { display: none; }
  .admin { grid-template-columns: 1fr; }
  .admin-menu { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 calc(-1 * var(--marge)); padding: 0 var(--marge); }
  .admin-menu a { white-space: nowrap; background: var(--carte); }
  .fiche .colonnes { grid-template-columns: 1fr; }
  .fin-film .suivant-principal { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --entete: 56px; --onglets: 62px; }
  .entete .logo { height: 21px; }
  .entete { gap: 10px; }
  .entete .masquer-mobile { display: none; }
  .recherche-entete { display: none; }
  .onglets-bas {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--onglets) + var(--bas)); padding: 0 var(--droite) var(--bas) var(--gauche);
    background: rgba(14, 14, 20, .94); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); border-top: 1px solid var(--ligne);
  }
  .onglets-bas a { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--texte-3); min-height: 44px; }
  .onglets-bas a .ic { width: 24px; height: 24px; }
  .onglets-bas a.actif { color: var(--texte); }
  .onglets-bas a.actif .ic { color: var(--corail); }
  .onglets-bas .avatar { width: 26px; height: 26px; }
  .vedette { height: auto; min-height: 0; aspect-ratio: auto; display: grid; padding: calc(var(--entete) + var(--haut) + 10px) 16px 0; }
  .vedette::before { display: none; }
  .vedette .visuel { position: relative; inset: auto; z-index: 0; aspect-ratio: 2 / 3; max-height: 62vh; width: min(100%, 420px); margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 22px 60px rgba(0, 0, 0, .65), 0 0 0 1px var(--ligne); }
  .vedette .visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 11, 16, .35) 0%, rgba(11, 11, 16, 0) 30%); }
  .vedette .visuel img { object-position: center; }
  .vedette .bande, .vedette .cote, .points-vedette { display: none; }
  .vedette .texte { position: relative; left: auto; bottom: auto; width: min(100%, 420px); margin: 16px auto 0; padding: 0 0 6px; z-index: 1; justify-items: center; text-align: center; gap: 14px; }
  .vedette .logo-film, .vedette .titre-film, .vedette .etiquette-nouveau { display: none; }
  .vedette .resume { display: none; }
  .vedette .meta { justify-content: center; font-size: 13px; }
  .vedette .actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .vedette .actions .bouton { min-height: 46px; font-size: 16px; padding: 0 12px; }
  .vedette .actions .liste-vedette { display: none; }
  .rangees { margin-top: 28px; }
  .carte { --l: 44vw; }
  .carte.affiche-carte { --l: 30vw; }
  .carte.top { --l: 46vw; height: calc(30vw * 1.5 * .9); }
  .carte.top .chiffre { font-size: calc(30vw * 1.3); -webkit-text-stroke-width: 2px; }
  .modale-fond { padding: 0; align-items: stretch; }
  .modale { border-radius: 0; min-height: 100%; width: 100%; }
  .modale.large { width: 100%; }
  .modale .dialogue { padding-top: calc(28px + var(--haut)); }
  .fiche .tete { border-radius: 0; aspect-ratio: 4 / 3.4; }
  .fiche .boutons { display: grid; grid-template-columns: 1fr; }
  .fiche .boutons .rangee-ronde { display: flex; gap: 10px; justify-content: space-around; }
  .modale-fermer { top: calc(12px + var(--haut)); }
  .lecteur .centre-lecteur { display: flex; }
  .lecteur .commandes .masquer-mobile, .volume { display: none; }
  .lecteur .commandes .titre-bas { display: none; }
  .commandes { justify-content: flex-end; }
  .menu-lecteur { left: 12px; right: 12px; bottom: calc(90px + var(--bas)); flex-direction: column; }
  .bouton-passer { bottom: calc(110px + var(--bas)); }
  .ligne-historique { grid-template-columns: 110px minmax(0, 1fr) auto; }
  .ligne-historique .carte { --l: 110px; }
  .propo { grid-template-columns: 74px minmax(0, 1fr); }
  .propo .mini-affiche { width: 74px; }
  .ligne-film { grid-template-columns: 44px minmax(0, 1fr); }
  .ligne-film .mini-affiche { width: 44px; }
  .ligne-film .boutons { grid-column: 1 / -1; justify-content: flex-end; }
  .tuile { padding: 14px; }
  .tuile .valeur { font-size: 26px; }
  .pave { grid-template-columns: repeat(3, 72px); }
  .pave button { height: 72px; }
}
@media (hover: none) {
  .fleche { display: none; }
  .rangee h2 a.voir-tout { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (display-mode: standalone) {
  body { overscroll-behavior-y: none; }
}

/* ---------------------------------------------------------------- Séries */
/* Filtre « Séries / Films » (haut de l'accueil) */
.filtre-type { display: flex; gap: 8px; flex-wrap: wrap; }
.vedette > .filtre-type { position: absolute; z-index: 4; top: calc(var(--entete) + var(--haut) + 6px); left: calc(var(--marge) + var(--gauche)); }
.puce-type { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .45);
  color: var(--texte); font-weight: 600; font-size: 14px; background: rgba(11, 11, 16, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .15s, border-color .15s; }
.puce-type:hover { border-color: #fff; background: rgba(40, 40, 52, .6); }
.puce-type.actif { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.page.sans-bas { padding-bottom: 0; }
.etiquette-type { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-2); }
.catalogue-bas { padding: 10px calc(var(--marge) + var(--droite)) 20px calc(var(--marge) + var(--gauche)); }
.titre-catalogue { font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.01em; margin: 10px 0 16px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.titre-catalogue .tres-discret { font-weight: 500; }

/* Cartes et fiches */
.carte .episode-carte { position: absolute; right: 10px; bottom: 16px; z-index: 2; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 5px; background: rgba(11, 11, 16, .78); color: #fff; }
.sim .img .type-coin { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: rgba(11, 11, 16, .78); }
.pastille.type-propo { margin-left: 8px; vertical-align: 2px; font-size: 11px; }
.resultat-propo b .pastille.type-propo { font-weight: 700; }
.fiche .etiquette-serie { justify-self: start; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #fff; background: var(--signature); padding: 3px 9px; border-radius: 5px; }
.fiche .progres-bouton .ic { color: var(--ambre); }

.episodes { display: grid; gap: 12px; }
.entete-episodes { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.entete-episodes h3 { margin: 0; }
select.entree.choix-saison { width: auto; min-width: 190px; min-height: 44px; padding: 8px 44px 8px 16px; font-weight: 700; background-color: var(--carte-2); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; }
.saison-unique { font-weight: 700; font-size: 16px; padding: 8px 14px; border-radius: 10px; background: var(--carte-2); }
.sous-titre-saison { margin: -2px 0 4px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--texte-2); }
.sous-titre-saison b { color: var(--texte); }
.liste-episodes { display: grid; gap: 4px; }
.episode { display: grid; grid-template-columns: 34px 168px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 14px 14px 6px; border-radius: 12px;
  border-bottom: 1px solid var(--ligne); cursor: pointer; transition: background .15s; outline-offset: -2px; }
.episode:hover, .episode:focus-visible { background: var(--carte-2); }
.episode.courant { background: rgba(255, 90, 78, .1); box-shadow: inset 3px 0 0 var(--corail); }
.episode.indispo { opacity: .5; }
.numero-ep { font-size: 22px; font-weight: 800; color: var(--texte-3); text-align: center; font-variant-numeric: tabular-nums; }
.episode.courant .numero-ep { color: var(--corail); }
.vignette-ep { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--carte-3); }
.vignette-ep img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.vignette-ep img.chargee { opacity: 1; }
.vignette-ep .lire-ep { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .2s; }
.vignette-ep .lire-ep .ic { width: 38px; height: 38px; padding: 8px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .45); }
.episode:hover .lire-ep, .episode:focus-visible .lire-ep { opacity: 1; }
.vignette-ep .barre { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .3); }
.vignette-ep .barre i { display: block; height: 100%; background: var(--corail); }
.texte-ep { display: grid; gap: 6px; min-width: 0; }
.haut-ep { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.haut-ep b { font-size: 16px; line-height: 1.3; }
.duree-ep { flex: none; color: var(--texte-2); font-size: 14px; font-weight: 600; }
.texte-ep p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--texte-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pied-ep { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--texte-3); align-items: center; }
.pied-ep .libelle-ep { font-weight: 800; color: var(--texte-2); letter-spacing: .03em; }
.pied-ep .vu-ep { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 700; }

/* Lecteur : épisode suivant, liste des épisodes */
.fin-episode { position: absolute; right: calc(28px + var(--droite)); bottom: calc(110px + var(--bas)); z-index: 6; width: min(640px, calc(100% - 56px)); animation: monte .35s var(--ease) both; pointer-events: none; }
.fin-episode .carte-suivant { pointer-events: auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px;
  background: rgba(16, 16, 22, .92); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; box-shadow: var(--ombre); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fin-episode.derniere .carte-suivant { grid-template-columns: minmax(0, 1fr); padding: 22px; }
.fin-episode .vignette-suivant { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111; cursor: pointer; }
.fin-episode .vignette-suivant img { width: 100%; height: 100%; object-fit: cover; }
.fin-episode .compte { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .35); }
.fin-episode .anneau { width: 64px; height: 64px; }
.fin-episode .lire-rond { width: 58px; height: 58px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; background: rgba(0, 0, 0, .4); }
.fin-episode .txt { display: grid; gap: 6px; min-width: 0; }
.fin-episode h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .65); }
.fin-episode h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
.fin-episode .libelle-suivant { color: var(--ambre); margin-right: 4px; }
.fin-episode p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .72); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.boutons-fin { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.boutons-fin .bouton { min-height: 42px; padding: 0 16px; font-size: 15px; }
.bouton-passer .bouton { gap: 8px; }
.panneau-episodes { position: absolute; top: 0; right: 0; bottom: 0; z-index: 8; width: min(480px, 100%); display: flex; flex-direction: column;
  background: rgba(14, 14, 20, .97); border-left: 1px solid rgba(255, 255, 255, .1); box-shadow: -20px 0 60px rgba(0, 0, 0, .5); animation: glisse .25s var(--ease); }
@keyframes glisse { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.haut-panneau { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(16px + var(--haut)) calc(10px + var(--droite)) 8px 20px; }
.haut-panneau h2 { margin: 0; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.corps-panneau { flex: 1; overflow-y: auto; padding: 0 calc(8px + var(--droite)) calc(20px + var(--bas)) 12px; overscroll-behavior: contain; }
.choix-panneau { padding: 4px 8px 12px; }
.choix-panneau select.entree.choix-saison { background-color: rgba(255, 255, 255, .08); }
.liste-episodes.compacte .episode { grid-template-columns: 28px 128px minmax(0, 1fr); gap: 12px; padding: 10px 10px 10px 4px; border-bottom-color: rgba(255, 255, 255, .06); }
.liste-episodes.compacte .episode:hover { background: rgba(255, 255, 255, .07); }
.liste-episodes.compacte .numero-ep { font-size: 18px; }
.liste-episodes.compacte .haut-ep b { font-size: 15px; }
.liste-episodes.compacte .texte-ep p { -webkit-line-clamp: 2; font-size: 13px; color: rgba(255, 255, 255, .65); }
.liste-episodes.compacte .pied-ep { display: none; }

/* Historique */
.ligne-historique .ligne-episode { display: block; font-size: 14px; margin: 2px 0 2px; }

/* Administration : séries */
.onglets-biblio { display: flex; gap: 8px; margin-bottom: 14px; }
.ligne-serie { display: grid; gap: 6px; }
.ligne-serie > .ligne-film .bouton.fantome { margin-top: 8px; min-height: 32px; }
.episodes-admin { display: grid; gap: 6px; margin-left: 30px; padding-left: 14px; border-left: 2px solid var(--ligne-2); }
.ligne-episode-admin { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--carte); border: 1px solid var(--ligne); border-radius: 10px; }
.ligne-episode-admin .libelle-ep { font-weight: 800; color: var(--ambre); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .fin-episode .carte-suivant { grid-template-columns: 190px minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .vedette > .filtre-type { position: static; margin: 0 auto 14px; width: min(100%, 420px); }
  .page > .filtre-type { margin: 0 0 14px; }
  .catalogue-bas { padding-top: 0; }
  .episode { grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 12px 4px; border-radius: 10px; align-items: start; }
  .episode .numero-ep { display: none; }
  .episode .texte-ep { display: contents; }
  .episode .haut-ep { flex-direction: column; gap: 4px; align-self: center; }
  .episode .texte-ep p, .episode .pied-ep { grid-column: 1 / -1; }
  .episode .lire-ep { opacity: 1; background: rgba(0, 0, 0, .15); }
  .episode .lire-ep .ic { width: 34px; height: 34px; padding: 7px; }
  .entete-episodes { position: sticky; top: calc(var(--haut)); z-index: 3; background: var(--carte); padding: 10px 0; margin: -10px 0 0; }
  select.entree.choix-saison { min-width: 0; }
  .fin-episode { left: 12px; right: 12px; width: auto; bottom: calc(96px + var(--bas)); }
  .fin-episode .carte-suivant { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .fin-episode h2 { font-size: 16px; }
  .fin-episode p { display: none; }
  .fin-episode .anneau { width: 46px; height: 46px; }
  .fin-episode .lire-rond { width: 44px; height: 44px; }
  .boutons-fin .bouton { min-height: 38px; padding: 0 12px; font-size: 14px; }
  .panneau-episodes { width: 100%; border-left: 0; }
  .liste-episodes.compacte .episode { grid-template-columns: 112px minmax(0, 1fr); }
  .episodes-admin { margin-left: 8px; padding-left: 8px; }
  .ligne-episode-admin { grid-template-columns: 58px minmax(0, 1fr) auto; padding: 8px; }
}
.lecteur:has(.fin-episode:not(.derniere)) .centre-lecteur { display: none; }
@media (max-width: 700px) { .fin-episode h3 { letter-spacing: .06em; } }
