/* Cineco : styles des nouveaux écrans (fiche, panneaux, avis, etc.).
   Chargé après cineco.css, dont il reprend les couleurs. */

/* ═════════ Éléments communs ═════════ */
.tiny { font-size: 11.5px; }
.grow { flex: 1 1 auto; min-width: 0; }
.clamp1 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink-2); font-weight: 700; font-size: 1.3rem; background: #1D1E24; }
.av { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #2B2E36; color: #fff; font-weight: 700; font-size: 15px; }
.av.sm { width: 26px; height: 26px; font-size: 11.5px; }
.av.lg { width: 56px; height: 56px; font-size: 20px; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pillbtn { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 999px; color: var(--ink);
  font-weight: 600; font-size: 13px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .3s var(--spring), background .25s, color .25s; }
.pillbtn:active { transform: scale(.95); }
.pillbtn svg, .prow > svg, .bar-send svg, .ibtn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillbtn.on { background: var(--grad); color: var(--accent-ink); box-shadow: none; }
.pillbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibtn { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--spring); }
.ibtn:active { transform: scale(.9); }
.cs-list { display: grid; gap: 8px; }
.prow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border: 0; border-radius: 20px; text-align: left; color: inherit; text-decoration: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--spring); }
.prow:active { transform: scale(.98); }
.prow b { display: block; font-size: 14px; font-weight: 600; }
.prow small { color: var(--ink-2); font-size: 12.5px; }
.prow .rt { font-weight: 700; font-variant-numeric: tabular-nums; }
.poster-row.sm { grid-auto-columns: 92px; }
.poster-row.sm .ptile .pw { border-radius: 16px; box-shadow: none; }
.empty-s { padding: 26px 16px; text-align: center; color: var(--ink-2); font-size: 14px; border-radius: 24px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); }

/* Panneaux par-dessus l'écran */
.cs-ov { position: fixed; inset: 0; z-index: 60; display: flex; background: rgba(6, 7, 9, 0); transition: background .3s ease; }
.cs-ov.on { background: rgba(6, 7, 9, .62); }
.cs-ov.bottom { align-items: flex-end; justify-content: center; }
.cs-ov.center { align-items: center; justify-content: center; padding: 20px; }
.cs-ov.side { justify-content: flex-end; }
.cs-panel { position: relative; display: grid; align-content: start; gap: 14px; width: min(100%, 680px); max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain; padding: 12px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  background: rgba(24, 25, 30, .94); -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%); box-shadow: 0 -18px 50px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--line);
  border-radius: 30px 30px 0 0; transform: translateY(104%); transition: transform .42s var(--ease); }
.cs-ov.on .cs-panel { transform: none; }
.cs-ov.tall .cs-panel { height: 82dvh; }
.cs-ov.center .cs-panel { width: min(100%, 420px); max-height: 76dvh; border-radius: 30px; padding: 20px 18px; transform: translateY(18px) scale(.94); opacity: 0; transition: transform .38s var(--spring), opacity .25s ease; }
.cs-ov.center.on .cs-panel { transform: none; opacity: 1; }
.cs-ov.side .cs-panel { width: min(88%, 400px); height: 100dvh; max-height: none; border-radius: 30px 0 0 30px; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 24px; transform: translateX(104%); }
.cs-ov.side.on .cs-panel { transform: none; }
.cs-panel h3 { font-size: 17px; }
.cs-grab { width: 38px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin: 0 auto 2px; }
.cs-ov.video .cs-panel { width: min(100%, 760px); padding: 0; background: none; box-shadow: none; overflow: visible; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cs-x { position: absolute; right: 0; top: -54px; }
.trailer { aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.trailer iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Barre de saisie (commentaires, messages, IA) */
.bar-in { position: sticky; bottom: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding: 6px 6px 6px 16px; border-radius: 26px; background: rgba(36, 38, 45, .92); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.bar-in input { flex: 1; min-width: 0; min-height: 40px; border: 0; background: none; outline: none; font-size: 15px; }
.bar-send { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--accent-ink); transition: transform .3s var(--spring); }
.bar-send:active { transform: scale(.88); }
.bar-to { flex: 1 0 100%; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-2); padding: 4px 6px 0 0; }
.bar-to button { border: 0; background: none; color: inherit; padding: 2px; display: grid; }
.bar-to svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ═════════ Fiche d'une œuvre ═════════ */
.oeuvre { --halo: 150, 160, 175; --pa: var(--halo); --pb: var(--halo); --pc: var(--halo); position: relative; display: grid; gap: 20px; margin-top: -14px; isolation: isolate; }

/* Rappels de couleur de l'œuvre, uniquement en arrière-plan, tout le long de la page.
   De grandes lueurs aux teintes de l'affiche, qui dérivent très lentement. */
.f-amb { position: absolute; top: 0; bottom: -120px; left: -16px; right: -16px; z-index: -2; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 1.2s ease; }
.oeuvre.tinted .f-amb { opacity: 1; }
.f-amb i { position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; animation: f-drift 46s ease-in-out infinite alternate; will-change: transform; }
.f-amb i:nth-child(1) { top: -6%; left: -55%; background: radial-gradient(closest-side, rgba(var(--pa), .26), transparent); }
.f-amb i:nth-child(2) { top: 14%; right: -70%; background: radial-gradient(closest-side, rgba(var(--pb), .22), transparent); animation-duration: 54s; animation-delay: -12s; }
.f-amb i:nth-child(3) { top: 33%; left: -65%; background: radial-gradient(closest-side, rgba(var(--pc), .20), transparent); animation-duration: 60s; animation-delay: -30s; }
.f-amb i:nth-child(4) { top: 52%; right: -60%; background: radial-gradient(closest-side, rgba(var(--pa), .20), transparent); animation-duration: 50s; animation-delay: -6s; }
.f-amb i:nth-child(5) { top: 70%; left: -55%; background: radial-gradient(closest-side, rgba(var(--pb), .19), transparent); animation-duration: 58s; animation-delay: -22s; }
.f-amb i:nth-child(6) { top: 86%; right: -65%; background: radial-gradient(closest-side, rgba(var(--pc), .19), transparent); animation-duration: 64s; animation-delay: -40s; }
@keyframes f-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 4%) scale(1.08); } 100% { transform: translate(-6%, -3%) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .f-amb i { animation: none; } }
.oeuvre::before { content: ""; position: absolute; left: -16px; right: -16px; top: 0; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 60% at 30% 46%, rgba(var(--halo), .26), transparent 70%); }
/* Fond de la fiche : grand, sans bord net — il s'assombrit et se fond peu à peu dans la page ; il défile moins vite que le contenu (cineco.js, parallaxe) */
.f-banner { position: relative; height: 360px; margin-inline: -16px; margin-bottom: -170px; overflow: hidden; background: linear-gradient(180deg, rgba(var(--halo), .30), rgba(var(--halo), .06));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0, 0, 0, .55) 66%, rgba(0, 0, 0, .18) 86%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0, 0, 0, .55) 66%, rgba(0, 0, 0, .18) 86%, transparent 100%); }
.f-banner img { width: 100%; height: 118%; object-fit: cover; display: block; animation: cine-fade .7s ease both; will-change: transform; transform: translate3d(0, var(--f-par, 0px), 0); }
.f-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 15, 18, .30) 0%, rgba(14, 15, 18, 0) 26%, rgba(14, 15, 18, .55) 62%, rgba(14, 15, 18, .9) 100%); }
.f-back { position: absolute; left: 14px; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 2; background: rgba(20, 21, 26, .55); }
.f-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; margin-top: -76px; position: relative; z-index: 1; }
.f-poster { position: relative; align-self: start; aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: #1D1E24; color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 34px rgba(0, 0, 0, .5), 0 0 46px rgba(var(--halo), .50); transition: transform .35s var(--spring), box-shadow .8s ease; }
.f-poster:active { transform: scale(.96); }
.f-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 15, 18, .46); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.f-play svg { width: 20px; height: 20px; margin-left: 2px; }
.f-id { display: grid; gap: 4px; align-content: start; padding-top: 84px; min-width: 0; }
.f-id h2 { font-size: 21px; line-height: 1.15; overflow-wrap: anywhere; }
.f-score b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.f-score span { color: var(--ink-2); font-weight: 600; margin-left: 2px; }
.f-syn .syn { font-size: 13.5px; line-height: 1.6; color: #D4D6DE; }
.f-syn .syn.clamp { max-height: calc(13.5px * 1.6 * 4); }
.f-syn .link { padding: 4px 0; font-size: 13px; }
.f-acts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -2px; padding: 2px; }
.f-acts::-webkit-scrollbar { display: none; }
.f-acts .pillbtn { flex: 1 0 auto; padding-inline: 10px; font-size: 12.5px; }
/* « Ajouter à une liste » */
.al-sub { margin: -4px 0 10px; }
.al-row .al-cov { flex: none; width: 46px; aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--ink-2); }
.al-row .al-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-row .al-cov svg { width: 18px; height: 18px; }
.al-row small { display: block; font-size: 12px; color: var(--ink-2); }
.al-row .al-tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s; }
.al-row .al-tick svg { width: 16px; height: 16px; }
.al-row[aria-pressed="true"] .al-tick { background: var(--grad); color: var(--accent-ink); box-shadow: none; }
.al-new { display: flex; gap: 8px; margin-top: 12px; }
.al-new .field { flex: 1; min-width: 0; }
/* Modifier la liste : nom et couverture */
.lm-l { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0; }
.lm-cov { display: grid; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.lm-cov .muted { margin: -6px 0 0; }
.lm-now { display: flex; align-items: center; gap: 12px; }
.lm-now img, .lm-ph { width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.lm-now small { font-size: 12.5px; color: var(--ink-2); }
.lm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; max-height: 236px; overflow-y: auto; padding: 2px; }
.lm-p { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 2 / 3; background: rgba(255, 255, 255, .06); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.lm-p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lm-p[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); transform: scale(.94); }
.lm-up { cursor: pointer; text-align: center; }
.f-blk { display: grid; gap: 12px; }
.f-blk > h3 { font-size: 16px; }
.pub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; padding: 16px; border-radius: 26px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.pub-cols { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; height: 132px; }
.pc { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; }
.pc b { font-size: 9px; letter-spacing: -.02em; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .2s; }
.pc i { display: block; width: 100%; min-height: 3px; border-radius: 8px 8px 4px 4px; background: linear-gradient(to top, rgba(var(--halo), .35), rgba(230, 235, 240, .85)); transform-origin: bottom; animation: bar-up .7s var(--ease) backwards; transition: filter .2s; }
.pc:nth-child(2) i { animation-delay: 30ms; } .pc:nth-child(3) i { animation-delay: 60ms; } .pc:nth-child(4) i { animation-delay: 90ms; } .pc:nth-child(5) i { animation-delay: 120ms; }
.pc:nth-child(6) i { animation-delay: 150ms; } .pc:nth-child(7) i { animation-delay: 180ms; } .pc:nth-child(8) i { animation-delay: 210ms; } .pc:nth-child(9) i { animation-delay: 240ms; } .pc:nth-child(10) i { animation-delay: 270ms; }
@keyframes bar-up { from { transform: scaleY(0); opacity: 0; } }
.pc span { font-size: 11px; color: var(--ink-2); }
.pc.sel b { color: var(--ink); }
.pc.sel i { filter: brightness(1.35); }
.pub-side { text-align: right; min-width: 78px; }
.pub-avg { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pub-pick { margin-top: 8px; font-size: 12.5px; min-height: 18px; font-variant-numeric: tabular-nums; }
.my-top { display: flex; align-items: baseline; gap: 10px; }
.my-num { border: 0; background: none; padding: 0; color: var(--ink); font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.my-num span { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-left: 3px; }
input.my-num.in { width: 3.2ch; border-bottom: 2px solid var(--accent); outline: none; border-radius: 0; }
.my-lbl { flex: 1; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.my-top .link { padding: 2px 0; font-size: 13px; }
.my-stars, .cr-stars { touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none; border-radius: 10px; }
.my-stars .stars.ten { --s: min(34px, calc((100vw - 68px) / 10)); display: block; }
/* Icônes de note propres à l'œuvre (cineco-notes-icones.js) : la forme remplace l'étoile,
   la couleur vient de l'affiche (--pa), éclaircie pour rester lisible sur le fond sombre */
.oeuvre.tinted .stars.ten { --star: color-mix(in srgb, rgb(var(--pa)) 70%, #fff); --star-off: rgba(var(--pa), .2); }
.oeuvre.note-ic .stars.ten { -webkit-mask-image: var(--note-mask); mask-image: var(--note-mask);
  -webkit-mask-size: calc(100% / 10 * .84) 84%; mask-size: calc(100% / 10 * .84) 84%;
  -webkit-mask-repeat: space no-repeat; mask-repeat: space no-repeat; -webkit-mask-position: center; mask-position: center; }
.my-more > summary, .my-crit > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 14.5px; padding: 6px 0; }
.my-more > summary::-webkit-details-marker, .my-crit > summary::-webkit-details-marker { display: none; }
.my-more > summary::after, .my-crit > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.8px solid var(--ink-2); border-bottom: 1.8px solid var(--ink-2); transform: rotate(45deg); transition: transform .3s var(--ease); margin-right: 4px; }
.my-more[open] > summary::after, .my-crit[open] > summary::after { transform: rotate(-135deg); }
.my-more { border-top: 1px solid var(--line); padding-top: 6px; }
.my-more > * + * { margin-top: 10px; }
.my-f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.my-h { font-size: 13px; font-weight: 600; }
.oeuvre .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.oeuvre .chip, .avis .chip { min-height: 34px; padding: 5px 12px; font-size: 12.5px; color: var(--ink-2); transition: background .25s, color .25s, transform .3s var(--spring); }
.oeuvre .chip[aria-pressed="true"] { background: var(--grad); color: var(--accent-ink); box-shadow: none; font-weight: 600; }
.cr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 0; }
.cr span { font-size: 13.5px; }
.cr output { font-weight: 700; font-variant-numeric: tabular-nums; }
.cr-stars { grid-column: 1 / -1; }
.cr-stars .stars.ten { --s: min(24px, calc((100vw - 68px) / 10)); display: block; }
.f-foot { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; gap: 10px; padding: 8px; border-radius: 26px; background: rgba(24, 25, 30, .82); box-shadow: inset 0 0 0 1px var(--line), var(--sh); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.f-foot.solo { position: static; background: none; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.f-foot:empty { display: none; }
.f-foot .btn.arm { background: var(--bad-bg); }
.wh { display: grid; gap: 8px; }
.wh-l { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }
.wh-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.wh-row::-webkit-scrollbar, .prow-scroll::-webkit-scrollbar { display: none; }
.wh-p { flex: none; width: 62px; display: grid; gap: 5px; justify-items: center; text-align: center; }
.wh-p img { width: 50px; height: 50px; border-radius: 14px; display: block; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.wh-p small { font-size: 10.5px; color: var(--ink-2); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.pcard { flex: none; width: 86px; display: grid; gap: 4px; align-content: start; text-decoration: none; color: inherit; transition: transform .3s var(--spring); }
.pcard:active { transform: scale(.95); }
.pcard .pp { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #1D1E24; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 4px; }
.pcard .pp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard b { font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard small { font-size: 11px; color: var(--ink-2); text-align: center; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ═════════ Avis d'un ami ═════════ */
.avis { display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.avis.page { padding-top: 6px; }
.av-head { display: flex; gap: 14px; }
.av-poster { flex: none; width: 84px; aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #1D1E24; }
.av-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-user { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: 14px; }
.av-title { font-size: 16px; font-weight: 600; margin-top: 6px; line-height: 1.25; }
.av-rate { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.av-rate b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.av-rate span { color: var(--ink-2); font-size: 13px; }
.av-rate .stars { margin-left: 8px; align-self: center; }
.chips.ro { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.ro .chip { min-height: 28px; padding: 3px 11px; font-size: 12px; display: inline-flex; align-items: center; }
.chips.ro .chip.pos { color: var(--good); background: var(--good-bg); box-shadow: none; }
.chips.ro .chip.neg { color: var(--bad); background: var(--bad-bg); box-shadow: none; }
.av-text { font-size: 14.5px; line-height: 1.6; padding: 14px 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.av-h { font-size: 15px; margin-top: 4px; }
#av-cm { display: grid; gap: 14px; }
.cm { display: flex; gap: 10px; animation: cine-tab .35s var(--ease) backwards; }
.cm.child { margin-left: 36px; }
.cm-b { min-width: 0; font-size: 14px; }
.cm-t { margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; }
.cm .link { padding: 4px 0 0; color: var(--ink-2); text-decoration: none; }
.avis .bar-in { margin-top: auto; }

/* Éléments repris de l’ancienne page compte, stylés ici car ils sont à la racine de la page */
.lock { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; place-items: center; padding: 24px; }
.lock .card { max-width: 420px; }
.update-banner { display: flex; justify-content: space-between; gap: 12px; align-items: center; max-width: 680px; margin: 0 auto 8px; padding: 10px 16px; background: var(--good-bg); color: var(--good); }
dialog { border: 0; border-radius: 28px; padding: 18px; background: rgba(24, 25, 30, .96); color: var(--ink); width: min(92vw, 380px); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line); }
dialog::backdrop { background: rgba(6, 7, 9, .62); }

/* ═════════ Accueil ═════════ */
.sg-entry { position: relative; overflow: hidden; isolation: isolate; min-height: 84px; padding: 14px; transition: transform .3s var(--spring); }
.sg-entry:active { transform: scale(.98); }
.sg-bg { position: absolute; inset: -60% -10%; z-index: -1; display: flex; flex-wrap: wrap; gap: 8px; align-content: center; justify-content: center; transform: rotate(-16deg); opacity: 0; transition: opacity 1s ease; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 35%, #000 100%); }
.sg-bg.on { opacity: .22; }
.sg-bg img { width: 52px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; display: block; }
.poster-row.ft-row { grid-auto-columns: 96px; gap: 10px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; scroll-snap-type: x proximity; }
.ft-row > * { scroll-snap-align: start; }
.ft-row .ptile .pw { border-radius: 18px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.ptile.ft .sc { top: 6px; right: 6px; font-size: 11.5px; padding: 2px 7px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ft-who { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 5px; padding: 18px 6px 6px; background: linear-gradient(to top, rgba(8, 9, 11, .88), transparent); }
.ft-av { flex: none; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #3a3d46; font-size: 10.5px; font-weight: 700; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
.ft-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-n { min-width: 0; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px #000; }

/* ═════════ Listes d'œuvres (Vu par tes amis, Watchlist…) ═════════ */
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-head h2 { min-width: 0; }
.m-tools { display: flex; gap: 8px; align-items: center; }
.m-search { position: relative; }
.m-search svg { position: absolute; z-index: 1; left: 16px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.m-search .field { padding-left: 46px; }
#m-view > * + *, #m-view > .m-page > * + * { margin-top: 16px; }
.m-page { animation: none; }
.g3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100px, 30%), 1fr)); gap: 14px 10px; }
.g3 .ptile .pw { border-radius: 18px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.g3 .ptile { animation: cardin .45s var(--ease) backwards; }
@keyframes cardin { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.frow { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px; border: 0; border-radius: 22px; text-align: left; color: inherit; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--spring); animation: cardin .45s var(--ease) backwards; }
.frow:active { transform: scale(.98); }
.frow .fp { aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: #1D1E24; }
.frow .fp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frow .fi { display: grid; gap: 3px; min-width: 0; }
.frow .ft1 { font-weight: 600; font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.frow .fu { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.frow .fx { font-size: 12.5px; color: var(--ink-2); }
.frow .fr { text-align: right; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.frow .fr small { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-2); }
.sortbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 13px; font-weight: 600; }
.sortbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.opt-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 10px 16px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: inherit; font-weight: 600; text-align: left; }
.opt-row[aria-pressed="true"] { background: var(--grad); color: var(--accent-ink); box-shadow: none; }

/* ═════════ Suggestions ═════════ */
.deck-card { touch-action: pan-y; user-select: none; -webkit-user-select: none; will-change: transform; min-height: min(46dvh, 400px); }
.deck-card.in-r { animation: deck-r .32s var(--ease) backwards; }
.deck-card.in-l { animation: deck-l .32s var(--ease) backwards; }
@keyframes deck-r { from { opacity: 0; transform: translateX(60px) rotate(4deg) scale(.96); } }
@keyframes deck-l { from { opacity: 0; transform: translateX(-60px) rotate(-4deg) scale(.96); } }
.deck-card img { pointer-events: none; -webkit-user-drag: none; }
.deck-card .fit { color: #D4D6DE; font-weight: 600; }
.deck-acts { gap: 26px; }
.deck-acts button { transition: transform .3s var(--spring), background .25s, color .25s; }
.deck-acts button:active { transform: scale(.86); }
.deck-acts button.on, .deck-acts button.like.on { background: var(--grad); color: var(--accent-ink); box-shadow: none; }
.deck-links { display: flex; justify-content: center; gap: 22px; }
.deck-links a { color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 2px; }
.peek { border-radius: 16px; background-size: cover; background-position: center; opacity: .45; }

/* ═════════ Aléatoire ═════════ */
.al-form { gap: 10px; }
.al-l { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.al-go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 6px; }
.al-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#m-view .opts button { transition: background .25s, color .25s, transform .3s var(--spring); border: 0; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
#m-view .opts button[aria-pressed="true"] { background: var(--grad); color: var(--accent-ink); box-shadow: none; }
.frow.big { grid-template-columns: 84px minmax(0, 1fr) auto; align-items: start; }
.frow.big .fx { white-space: normal; line-height: 1.35; }
.frow.big .fr { align-self: center; }

/* ═════════ Historique ═════════ */
.hi-year { width: auto; min-height: 42px; padding: 8px 14px; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .chip { flex: none; white-space: nowrap; min-height: 40px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background .25s, color .25s, transform .3s var(--spring); }
.chip-scroll .chip span { opacity: .7; font-weight: 500; margin-left: 2px; font-variant-numeric: tabular-nums; }
.chip-scroll .chip[aria-pressed="true"] { background: var(--grad); color: var(--accent-ink); box-shadow: none; }
.chip-scroll .chip[data-empty] { opacity: .55; }
.cal { padding: 14px; gap: 12px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; }
.cal-nav b { font-size: 16px; font-weight: 600; }
.cal-nav .ibtn { width: 38px; height: 38px; }
.ibtn.flip svg { transform: rotate(180deg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-d { text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-2); padding-bottom: 2px; }
.cal-c { position: relative; aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden; display: block; padding: 0; border: 0; background: rgba(255, 255, 255, .04); color: var(--ink-2); }
.cal-c em { position: absolute; left: 4px; top: 3px; font-style: normal; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-c.today { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); }
.cal-c.has { color: #fff; animation: cardin .45s var(--ease) backwards; transition: transform .3s var(--spring); }
.cal-c.has:active { transform: scale(.92); }
.cal-c.has img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-c.has::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(8, 9, 11, .62), transparent 46%); }
.cal-c.has em { z-index: 1; text-shadow: 0 1px 3px #000; }
.cal-c u { position: absolute; right: 3px; bottom: 3px; z-index: 1; text-decoration: none; font-size: 9.5px; font-weight: 700; padding: 1px 4px; border-radius: 99px; background: rgba(14, 15, 18, .78); }
.frow.flash { box-shadow: inset 0 0 0 2px var(--accent); }

/* ═════════ Statistiques ═════════ */
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-t { display: grid; gap: 2px; padding: 14px 16px; border-radius: 24px; background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: cardin .45s var(--ease) backwards; }
.st-t .k { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.st-t .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.st-t .a { font-size: 12px; color: var(--ink-2); min-height: 16px; }
.st-body { gap: 14px; }
.st-h { font-size: 14px; margin-top: 4px; }
.sbar { display: grid; grid-template-columns: minmax(78px, 32%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.sb-l { overflow-wrap: anywhere; line-height: 1.25; }
.sb-t { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sb-t i { display: block; height: 100%; border-radius: 99px; background: var(--grad-line); transform-origin: left; animation: bar-grow .7s var(--ease) backwards; }
@keyframes bar-grow { from { transform: scaleX(0); } }
.sb-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 58px; }
.sb-v small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-2); }
.st-hist { height: 150px; --halo: 150, 160, 175; }
.st-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 11.5px; color: var(--ink-2); }
.st-facts b { display: block; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-body .best { margin: 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 6px; }

/* ═════════ Recherche ═════════ */
.btn.rnd { display: inline-flex; align-items: center; gap: 8px; }
.btn.rnd svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chips.tools .chip { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; }

/* Acteurs, réalisateurs */
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(92px, 30%), 1fr)); gap: 18px 10px; }
.faces.row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.faces.row::-webkit-scrollbar { display: none; }
.faces.row .face { flex: none; width: 84px; }
.face { display: grid; gap: 8px; justify-items: center; text-decoration: none; color: inherit; animation: cardin .45s var(--ease) backwards; transition: transform .3s var(--spring); }
.face:active { transform: scale(.94); }
.face .pp { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #1D1E24; box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px rgba(0, 0, 0, .3); }
.face .pp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face b { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Fiche d'une personne */
.pe-head { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: center; }
.pe-photo { display: block; aspect-ratio: 2 / 3; border-radius: 22px; overflow: hidden; background: #1D1E24; box-shadow: 0 14px 34px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--line); }
.pe-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-id { display: grid; gap: 6px; justify-items: start; }
.pe-id h2 { font-size: 22px; overflow-wrap: anywhere; }
.pe-id .pillbtn { flex: none; margin-top: 6px; padding-inline: 14px; }
.pe-facts { margin: 0; gap: 0; padding: 6px 16px; }
.pe-facts div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.pe-facts div:first-child { border-top: 0; }
.pe-facts dt { color: var(--ink-2); flex: none; }
.pe-facts dd { margin: 0; text-align: right; font-weight: 600; }
.pe-bio .syn { font-size: 14px; line-height: 1.65; color: #D4D6DE; margin-top: 8px; }
.pe-bio .syn.clamp { max-height: calc(14px * 1.65 * 5); }
.pe-bio .link { padding: 6px 0; font-size: 13px; }
.cap2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.cap3 { display: block; font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g3 .ptile { text-align: left; }

/* Mes favoris, coups de cœur */
.fav5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fav5 .ptile .pw { border-radius: 14px; box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
.fav-empty { aspect-ratio: 2 / 3; border: 0; border-radius: 14px; display: grid; place-items: center; color: var(--ink-2); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .3s var(--spring), background .2s; }
.fav-empty:active { transform: scale(.92); background: rgba(255, 255, 255, .09); }
.fav-empty svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mini { flex: none; width: 38px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: #1D1E24; }
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-field { position: relative; }
.search-field .search-ico { position: absolute; left: 16px; top: 50%; margin-top: -10px; z-index: 1; color: var(--ink-2); pointer-events: none; }
.search-field .field { padding-left: 46px; }

/* ═════════ Profil ═════════ */
.pf { position: relative; }
.pf-banner { height: 150px; margin-inline: -16px; margin-top: -14px; border-radius: 0 0 32px 32px; background: linear-gradient(135deg, #23262d, #14161b) center / cover no-repeat; position: relative; }
.pf-banner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 40%, rgba(14, 15, 18, .72)); }
.pf-banner.short { height: 110px; margin-top: 0; margin-inline: 0; border-radius: 26px; }
.pf > .pf-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -52px !important; position: relative; z-index: 1; }
.pf-av { flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--grad); color: var(--accent-ink); font-weight: 700; font-size: 34px; box-shadow: 0 0 0 4px var(--bg), 0 12px 28px rgba(0, 0, 0, .45); }
.pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-acts { display: flex; gap: 8px; padding-bottom: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pf-acts .ibtn { text-decoration: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgba(30, 31, 37, .7); }
.pillbtn.slim { flex: none; min-height: 38px; padding: 6px 14px; font-size: 12.5px; text-decoration: none; }
.pillbtn.arm { background: var(--bad-bg); color: var(--bad); }
.pf-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px !important; }
.pf-name h2 { font-size: 24px; overflow-wrap: anywhere; }
.pf-lvl { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .10); }
.pf-status { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: var(--accent-ink); text-decoration: none; }
.pf-handle { margin-top: 2px !important; font-size: 12px; color: var(--ink-2); }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.pf-tags span { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; color: #D4D6DE; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.pf-box { display: grid; gap: 12px; padding: 16px; border-radius: 28px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.pf-xp { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pf-xp b { display: block; font-size: 15px; font-weight: 600; }
.pf-xp small { color: var(--ink-2); font-size: 12px; }
.pf-xp > span { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-bar { height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .10); overflow: hidden; }
.pf-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6E7F91 0%, #B9C7D4 55%, #F4F6F8 100%); transform-origin: left; animation: bar-grow .9s var(--ease) backwards; }
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.pf-stats > * { display: grid; gap: 2px; padding: 12px 6px; border-radius: 20px; background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; font-size: 12.5px; transition: transform .3s var(--spring); }
.pf-stats a:active { transform: scale(.95); }
.pf-stats b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-links { display: flex; gap: 8px; }
.pf-links .pillbtn { text-decoration: none; }
.fav-cell { position: relative; }
.fav-x2 { position: absolute; top: -5px; right: -5px; width: 22px; height: 22px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; background: rgba(30, 31, 37, .92); color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.fav-x2 svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.fav-empty.off { opacity: .45; }
.fav5 .ptile .sc { top: 4px; right: 4px; font-size: 10.5px; padding: 2px 5px; }
.lib-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; border-radius: 24px; color: var(--ink); text-decoration: none; font-weight: 600; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .3s var(--spring); }
.lib-btn:active { transform: scale(.97); }
.lib-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lib-btn .spines { display: flex; align-items: flex-end; gap: 3px; }
.lib-btn .spines i { width: 4px; border-radius: 1.5px; background: var(--grad); display: block; }

/* Trophées */
.tro-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tro-c { display: grid; gap: 6px; justify-items: center; text-align: center; }
.tro-c small { font-size: 10.5px; color: var(--ink-2); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tro-card { display: grid; gap: 5px; justify-items: center; text-align: center; padding: 16px 10px; border-radius: 24px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); animation: cardin .45s var(--ease) backwards; }
.tro-card b { font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.tro-card small { font-size: 11.5px; color: var(--ink-2); line-height: 1.3; }
.tro-card.off { opacity: .62; }
.tro-card.off b { color: var(--ink-2); }
.tro-p { width: 70%; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .10); overflow: hidden; margin-top: 4px; }
.tro-p i { display: block; height: 100%; background: var(--ink-2); border-radius: 99px; }

/* Niveaux */
.st-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px; border: 0; border-radius: 20px; text-align: left; color: inherit; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation: cardin .45s var(--ease) backwards; transition: transform .3s var(--spring), background .25s; }
.st-row:active { transform: scale(.98); }
.st-row b { display: block; font-size: 15px; font-weight: 600; }
.st-row small { font-size: 12px; color: var(--ink-2); }
.st-row svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-row[aria-pressed="true"] { background: var(--grad); color: var(--accent-ink); box-shadow: none; }
.st-row[aria-pressed="true"] small { color: rgba(15, 18, 22, .7); }
.st-row.off { opacity: .45; cursor: default; }

/* Amis */
.prow-l { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.prow .ibtn { width: 38px; height: 38px; text-decoration: none; }

/* Modifier le profil */
.ed-card { border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.ed-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 12px 16px; border: 0; border-top: 1px solid rgba(255, 255, 255, .06); background: none; color: inherit; text-align: left; font-weight: 500; transition: background .2s; }
.ed-row:first-child { border-top: 0; }
.ed-row:active { background: rgba(255, 255, 255, .06); }
.ed-row svg { flex: none; width: 19px; height: 19px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ed-row small { color: var(--ink-2); font-size: 13px; }
.opt-row svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opt-row.danger { color: var(--bad); }
.cs-ov.light.on { background: rgba(6, 7, 9, .38); }
.stack2 { display: grid; gap: 10px; }
#cr-cv { width: 100%; height: auto; border-radius: 18px; background: #000; touch-action: none; cursor: grab; display: block; }
#cr-cv.avatar { border-radius: 50%; }
.cr-zoom { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cr-zoom input { accent-color: var(--accent); width: 100%; }
.tag-edit { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; align-items: center; }
.tag-c { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--grad); color: var(--accent-ink); animation: cine-press .3s var(--spring); }
.tag-c button { width: 22px; height: 22px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; background: rgba(15, 18, 22, .16); color: inherit; }
.tag-c svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
#ed-tags { display: grid; gap: 12px; }
#ed-tags .bar-in { position: static; }

/* ═════════ Paramètres ═════════ */
.set-me { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 26px; text-align: left; color: inherit; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: transform .3s var(--spring); }
.set-me:active { transform: scale(.98); }
.set-me b { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.set-me small { font-size: 12.5px; color: var(--ink-2); }
.set-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--accent-ink); }
.set-av svg, .si svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chev { flex: none; color: var(--ink-2); font-weight: 500; font-size: 14px; }
#view-parametres .set-label { margin: 22px 6px 8px; font-size: 11.5px; }
.set-card { border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.set-card .set-row { margin: 0; border-radius: 0; background: none; box-shadow: none; min-height: 56px; padding: 12px 16px; gap: 14px; justify-content: flex-start; font-weight: 500; border-top: 1px solid rgba(255, 255, 255, .06); transition: background .2s; }
.set-card .set-row:first-child { border-top: 0; }
.set-card .set-row:active { background: rgba(255, 255, 255, .06); transform: none; }
.si { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #D4D6DE; }
.si svg { width: 18px; height: 18px; }
#view-parametres.on > * { animation: cardin .42s var(--ease) backwards; }
#view-parametres.on > *:nth-child(3) { animation-delay: 40ms; } #view-parametres.on > *:nth-child(4) { animation-delay: 70ms; }
#view-parametres.on > *:nth-child(5) { animation-delay: 100ms; } #view-parametres.on > *:nth-child(6) { animation-delay: 130ms; }
#view-parametres.on > *:nth-child(n+7) { animation-delay: 160ms; }
#admin-slot .set-row { border-radius: 20px; min-height: 56px; font-weight: 500; }

/* ═════════ Compte, sauvegarde, Letterboxd : même verre, entrées douces ═════════ */
#view-compte.on > *, #view-sauvegarde.on > *, #view-lbx-import.on > *, #view-lbx-export.on > *, #view-interesse.on > *, #view-pas-interesse.on > * { animation: cardin .42s var(--ease) backwards; }
#view-compte.on > *:nth-child(n+4), #view-lbx-import.on > *:nth-child(n+3), #view-lbx-export.on > *:nth-child(n+3), #view-sauvegarde.on > *:nth-child(n+3) { animation-delay: 70ms; }
.opt { border-top-color: rgba(255, 255, 255, .07); transition: opacity .2s; }
.opt input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 8px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); display: grid; place-items: center; transition: background .2s, transform .3s var(--spring); }
.opt input[type="checkbox"]:checked { background: var(--grad); box-shadow: none; transform: scale(1.05); }
.opt input[type="checkbox"]:checked::after { content: ""; width: 11px; height: 6px; margin-top: -2px; border-left: 2.2px solid var(--accent-ink); border-bottom: 2.2px solid var(--accent-ink); transform: rotate(-45deg); }
input[type="file"].field { padding: 10px; font-size: 13.5px; color: var(--ink-2); }
input[type="file"].field::file-selector-button { margin-right: 12px; padding: 9px 14px; border: 0; border-radius: 14px; font: inherit; font-weight: 600; background: var(--grad); color: var(--accent-ink); }
.lbx-steps li::before { transition: background .4s ease; }
.lbx-steps li.on::before { background: var(--grad-line); }
.lbx-panel, .lbx-done { animation: cine-tab .45s var(--ease) backwards; }
.lbx-check { animation: cine-press .5s var(--spring); }
.progress > div { transition: width .35s var(--ease); }

/* ═════════ Critiques sur la fiche ═════════ */
.crit-grid { display: grid; gap: 14px; }
.crit-col { display: grid; gap: 8px; align-content: start; }
.crit-h { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.crit { margin: 0; display: grid; gap: 8px; padding: 13px 15px; border-radius: 20px; background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px var(--line); animation: cardin .45s var(--ease) backwards; }
.crit blockquote { margin: 0; font-size: 13.5px; line-height: 1.5; color: #D4D6DE; overflow-wrap: anywhere; }
.crit figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-2); }
.crit figcaption b { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crit figcaption span { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.sortbtn { white-space: nowrap; }

/* ═════════ Chargements : le cornet de pop-corn, comme à l'ouverture ═════════ */
.ld { height: 104px; margin: 18px 0; background: url(/popcorn.svg) center / contain no-repeat; animation: cine-fade .3s ease both; }
.cs-panel .ld, .cs-list .ld { height: 84px; margin: 10px 0; }
.ld-t { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: -8px; }
/* Suggestions : le cornet remplace la barre, le texte d'avancement reste dessous */
#sg-progress { display: grid; justify-items: center; gap: 2px; padding: 26px 0; }
#sg-progress::before { content: ""; width: 150px; height: 150px; background: url(/popcorn.svg) center / contain no-repeat; }
#sg-progress .progress { width: min(220px, 60%); height: 4px; margin-top: 6px; opacity: .7; }
#sg-progress #sg-status { text-align: center; margin-top: 8px !important; }
/* Import Letterboxd : cornet au-dessus du pourcentage */
.lbx-pct::before { content: ""; display: block; width: 120px; height: 120px; margin: 0 auto 4px; background: url(/popcorn.svg) center / contain no-repeat; }

/* ═════════ Suggestions : cartes au format téléphone, aussi hautes que l'écran le permet ═════════ */
.deck-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); justify-content: center; }
.deck-card { width: min(calc(100vw - 96px), 560px, calc((100dvh - 330px) * 2 / 3)); min-width: 220px; aspect-ratio: 2 / 3; min-height: 0; }
.deck-row .peek { min-width: 14px; max-width: 46px; width: 100%; justify-self: end; }
.deck-row .peek:last-child { justify-self: start; }

/* Suggestions : pendant le calcul, seulement le cornet, au milieu de l'écran */
#sg-progress { min-height: calc(100dvh - 360px); align-content: center; padding: 0; }
#sg-progress .progress, #sg-progress #sg-status { display: none; }
/* Brouillon d'avis repris */
.my-draft { font-style: normal; font-weight: 600; font-size: 11px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .10); color: var(--ink); }
#lock-text { white-space: pre-line; }

/* L'avis de mes critiques */
.crit figcaption { order: -1; }
.cr-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cr-note { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.cr-note i { font-style: normal; color: var(--bad); }
.cr-link { justify-self: start; font-size: 11.5px; color: var(--ink-2); text-decoration: none; }
.crit-tip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px; color: inherit; text-decoration: none; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.crit-tip b { display: block; font-size: 14px; }
.crit-tip span { display: block; font-size: 12.5px; color: var(--ink-2); flex: 1; }
.crit-tip > b, .crit-tip > span { flex: none; }
.crit-tip { flex-wrap: wrap; }
.crit-tip svg { margin-left: auto; width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
/* Écran « Cinéphiles suivis » */
.cri-row { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation: cardin .4s var(--ease) backwards; }
.cri-row b { display: block; font-size: 14.5px; }
.cri-row small { font-size: 12px; color: var(--ink-2); }
.cri-prev { display: grid; gap: 12px; padding: 16px; border-radius: 24px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); animation: cardin .4s var(--ease) backwards; }
.cri-posters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cri-posters img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 9px; display: block; }
/* Profil d'un cinéphile */
.cri-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.cri-open small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
a.cr-who { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cn-page h3 { margin-top: 22px; }
.cn-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cn-head h2 { margin: 0; }
.cn-head p { margin: 2px 0 0; }
.cn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cn-stat { display: grid; gap: 2px; padding: 12px 8px; border-radius: 18px; text-align: center; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.cn-stat b { font-size: 19px; font-variant-numeric: tabular-nums; }
.cn-stat small { font-size: 11px; color: var(--ink-2); line-height: 1.25; }
@media (max-width: 420px) { .cn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cn-btns { margin-top: 12px; }
.cn-list { display: grid; gap: 10px; }
.cn-avis { display: grid; gap: 8px; padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px var(--line); animation: cardin .4s var(--ease) backwards; }
.cn-film { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.cn-film .mini { flex: none; width: 40px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .06); display: grid; place-items: center; }
.cn-film .mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-film b { display: block; font-size: 14.5px; }
.cn-film b small { font-weight: 500; color: var(--ink-2); }
.cn-film > .grow > small { font-size: 12px; color: var(--ink-2); }
.cn-stars { color: #7FD8A6; letter-spacing: 1px; }
.cn-heart { color: #FF8A7A; font-style: normal; }
.cn-txt { font-size: 13.5px; line-height: 1.5; color: #D4D6DE; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.cn-txt p { margin: 0; }
.cn-txt p + p { margin-top: 8px; }
.cn-txt.open { display: block; -webkit-line-clamp: unset; line-clamp: unset; }
.cn-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cn-acts .cn-more { font-weight: 700; }

/* Historique : plusieurs œuvres le même jour = paquet de cartes décalées (comme des cartes à collectionner) */
.cal-c.stack { overflow: visible; background: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: pan-y; }
.cal-c.stack::after { display: none; }
.cal-l { position: absolute; left: 0; bottom: 0; width: calc(100% - var(--n) * 3px); height: calc(100% - var(--n) * 3px); border-radius: 8px; overflow: hidden; background: #1D1E24;
  transform: translate(calc(var(--k) * 3px), calc(var(--k) * -3px)) rotate(calc(var(--k) * 1.4deg)); transform-origin: 0 100%;
  box-shadow: -1px 2px 5px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .35s var(--spring); }
.cal-l:not([style*="--k:0"]) { box-shadow: -1px 2px 5px rgba(0, 0, 0, .55), 0 0 0 1px rgba(170, 214, 228, .65); }
.cal-l:not([style*="--k:0"]) img { filter: brightness(.6) saturate(.8); }
.cal-l img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-l[style*="--k:0"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(8, 9, 11, .62), transparent 46%); }
.cal-c.stack em { z-index: 20; }
.cal-c.stack u { z-index: 20; right: auto; left: 3px; bottom: 3px; background: linear-gradient(135deg, rgba(200, 230, 240, .95), rgba(150, 190, 205, .95)); color: #0d1114; }
.cal-c.stack:hover .cal-l, .cal-c.stack.pressing .cal-l { transform: translate(calc(var(--k) * 3px), calc(var(--k) * -4px)) rotate(calc(var(--k) * 2.4deg)); }
.cal-c.stack.pressing { transform: scale(.94); }

/* L'éventail qui s'ouvre au-dessus du calendrier */
.fan-ov { position: fixed; inset: 0; z-index: 90; touch-action: none; background: rgba(6, 7, 9, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background .3s, backdrop-filter .3s, -webkit-backdrop-filter .3s; }
.fan-ov.on { background: rgba(6, 7, 9, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.fan-c { position: absolute; left: 50%; top: var(--cy); width: var(--w); aspect-ratio: 2 / 3; margin: calc(var(--w) * -.75) 0 0 calc(var(--w) * -.5); padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #1D1E24;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .14);
  transform: translate(var(--x0), var(--y0)) scale(.3) rotate(0); opacity: 0; transform-origin: 50% 100%;
  transition: transform .5s var(--spring), opacity .2s, box-shadow .25s, filter .25s; }
.fan-c img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.fan-ov.on .fan-c { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); filter: brightness(.62); }
.fan-ov.on .fan-c.sel { transform: translate(var(--x), calc(var(--y) - 26px)) rotate(0) scale(1.14); filter: none; z-index: 50 !important;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .6), 0 0 0 1.5px rgba(200, 230, 240, .8); }
.fan-ov.on .fan-c.go { transform: translate(var(--x), calc(var(--y) - 40px)) scale(1.3); opacity: 0; transition: transform .26s var(--ease), opacity .26s; }
.fan-ov.off .fan-c { transform: translate(var(--x0), var(--y0)) scale(.3); opacity: 0; }
.fan-info { position: absolute; left: 50%; transform: translateX(-50%); width: min(86vw, 420px); display: grid; gap: 4px; justify-items: center; text-align: center; opacity: 0; transition: opacity .3s .1s; }
.fan-ov.on .fan-info { opacity: 1; }
.fan-info b { font-size: 16px; font-weight: 600; }
.fan-info small { font-size: 12.5px; color: var(--ink-2); }
.fan-info span { margin-top: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); opacity: .8; }
@media (prefers-reduced-motion: reduce) { .fan-c, .cal-l { transition: none; } }

/* Où regarder : onglets + tuiles de verre */
.wh-head { display: flex; align-items: center; justify-content: space-between; }
.wh-flag { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; padding: 4px 9px; border-radius: 99px; color: var(--ink-2); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.wh-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
.wh-tabs::-webkit-scrollbar { display: none; }
.wh-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 99px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s, box-shadow .25s; }
.wh-tab span { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font-size: 10.5px; background: rgba(255, 255, 255, .08); }
.wh-tab[aria-selected="true"] { color: var(--ink); background: linear-gradient(135deg, rgba(var(--halo), .30), rgba(255, 255, 255, .08)); box-shadow: inset 0 0 0 1px rgba(var(--halo), .55), 0 6px 18px -8px rgba(var(--halo), .7); }
.wh-tab[aria-selected="true"] span { background: rgba(255, 255, 255, .18); }
.wh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.wh-tile { display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 20px; text-align: center; color: inherit; text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: cardin .4s var(--ease) backwards; transition: transform .3s var(--spring), box-shadow .25s; }
a.wh-tile:hover { box-shadow: inset 0 0 0 1px rgba(var(--halo), .5), 0 10px 24px -12px rgba(var(--halo), .8); }
a.wh-tile:active { transform: scale(.95); }
.wh-logo { width: 48px; height: 48px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.wh-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wh-logo i { width: 100%; height: 100%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 20px; color: #0d0e11; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 100%, #fff 25%), var(--c)); }
.wh-tile b { font-size: 12px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wh-tile small { font-size: 10.5px; color: var(--ink-2); }
.wh-foot { font-size: 11.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wh-foot .link { font-size: 12px; }

/* Dans le même esprit : la bulle « pourquoi » en bas à droite de l'affiche */
.sim-t { position: relative; flex: none; display: grid; }
.why { position: absolute; right: 5px; bottom: 5px; z-index: 2; max-width: calc(100% - 10px); padding: 3px 8px 4px; border: 0; border-radius: 10px 10px 3px 10px; font: inherit; font-size: 9.5px; font-weight: 700; letter-spacing: .01em; line-height: 1.15;
  color: #0e1013; background: linear-gradient(135deg, rgba(240, 244, 248, .96), rgba(196, 208, 220, .94)); box-shadow: 0 4px 12px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: why-in .45s var(--spring) backwards; }
.why[hidden] { display: none; }
@keyframes why-in { from { opacity: 0; transform: scale(.6) translateY(4px); } }
.sim-row { padding-bottom: 8px; }
.why-pop { position: fixed; z-index: 95; width: min(270px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 18px; background: rgba(30, 31, 37, .95); box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .2s, transform .3s var(--spring); }
.why-pop.on { opacity: 1; transform: none; }
.why-pop b { display: block; font-size: 13px; margin-bottom: 4px; }
.why-pop p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }

/* Réalisation et casting : bulle rectangulaire arrondie à deux onglets */
.cast-box { display: grid; gap: 14px; padding: 16px 0 14px; border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; }
.cast-top { display: grid; gap: 12px; padding: 0 16px; }
.cast-top h3 { font-size: 16px; }
.cast-tabs { position: relative; display: inline-flex; justify-self: start; padding: 4px; border-radius: 99px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--line); }
.cast-tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 16px; border: 0; border-radius: 99px; background: none; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; transition: color .25s; }
.cast-tab span { font-size: 10.5px; padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.cast-tab[aria-selected="true"] { color: var(--ink); }
.cast-ind { position: absolute; z-index: 0; left: 0; top: 4px; bottom: 4px; border-radius: 99px; background: linear-gradient(135deg, rgba(var(--halo), .32), rgba(255, 255, 255, .10)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 6px 16px -8px rgba(var(--halo), .8); transition: transform .4s var(--spring), width .4s var(--spring); }
.cast-scroll { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 84px; gap: 16px 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 4px; scroll-padding-inline: 16px; }
.cast-scroll::-webkit-scrollbar { display: none; }
.cast-scroll .pcard { width: auto; }
.cast-scroll.in .pcard { animation: cardin .4s var(--ease) backwards; }
.cast-scroll.in .pcard:nth-child(2n) { animation-delay: 40ms; }
.cast-scroll.in .pcard:nth-child(n+5) { animation-delay: 80ms; }
/* Bulle « pourquoi » : posée dans le coin, débordant de l'affiche, blanche et lisible */
.sim-row { padding-bottom: 14px; padding-right: 10px; }
.sim-row .why { right: -7px; bottom: -9px; max-width: calc(100% + 4px); padding: 5px 10px 6px; border-radius: 12px 12px 4px 12px; font-size: 10.5px; font-weight: 700; color: #0b0c0f;
  background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .9); }

/* Recherche intelligente : durées expliquées en heures */
.opts.sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.sub button { display: grid; gap: 3px; justify-items: start; align-content: center; text-align: left; padding: 10px 14px; height: auto; min-height: 60px; border-radius: 18px; }
.opts.sub button small { font-size: 10.5px; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.opts.sub button[aria-pressed="true"] small { color: inherit; opacity: .8; }

/* ═════════ Compte ═════════ */
.acc-head { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 26px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .12); }
.acc-head b { display: block; font-size: 17px; }
.acc-head small { font-size: 13px; color: var(--ink-2); }
.set-card .set-row .grow small, .acc-fold .grow small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-2); margin-top: 2px; }
.si svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.si.acc-blue { color: #9fd3ff; background: rgba(90, 170, 255, .14); }
.si.acc-green { color: #8ee6b4; background: rgba(80, 200, 140, .14); }
.acc-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; }
.acc-fold > summary::-webkit-details-marker { display: none; }
.acc-fold > summary .chev { font-size: 0; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--ink-2); border-top: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .3s var(--ease); }
.acc-fold[open] > summary .chev { transform: rotate(135deg); }
.acc-fold + .set-row, .set-card .acc-fold + * { border-top: 1px solid rgba(255, 255, 255, .06); }
.acc-form { display: grid; gap: 12px; padding: 4px 16px 18px; animation: cardin .35s var(--ease) backwards; }
.acc-f { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.acc-info { cursor: default; }
.acc-out { color: #FFC56B; width: 100%; border: 0; font: inherit; text-align: left; }
.acc-out .si { color: #FFC56B; background: rgba(255, 190, 90, .13); }
.acc-danger-l { color: #FF8A8A; }
.acc-danger { box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .28); background: linear-gradient(160deg, rgba(255, 90, 90, .07), rgba(255, 255, 255, .02)); }
.acc-danger summary { color: #FF8A8A; }
.acc-danger .si { color: #FF8A8A; background: rgba(255, 107, 107, .14); }

/* Fenêtre du code à 6 chiffres */
.sc-box { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 18px 4px 4px; }
.sc-box h3 { margin: 0; font-size: 18px; }
.sc-box p { margin: 0; }
.sc-box .btn { width: 100%; }
.sc-ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #bfe3ff; background: linear-gradient(145deg, rgba(120, 190, 255, .25), rgba(120, 190, 255, .06)); box-shadow: inset 0 0 0 1px rgba(160, 210, 255, .3); }
.sc-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sc-otp { margin: 6px 0; }
.sc-box.shake .sc-otp { animation: otp-shake .4s; }
.sc-again { font-size: 13px; }

/* ═════════ Sauvegarde ═════════ */
.sv-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sv-act:not(.main) { padding: 14px 12px; }
.sv-act { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px; border: 0; border-radius: 22px; font: inherit; color: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .12); transition: transform .3s var(--spring); }
.sv-act:active { transform: scale(.96); }
.sv-act svg { width: 22px; height: 22px; margin-bottom: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: #D4D6DE; }
.sv-act b { font-size: 14px; }
.sv-act small { font-size: 11.5px; color: var(--ink-2); }
.sv-act.main { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(225, 232, 240, .94), rgba(180, 194, 208, .86)); color: #0e1013; }
.sv-act.main svg { color: #0e1013; }
.sv-act.main small { color: rgba(14, 16, 19, .65); }
.sv-h { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.sv-all { color: #FF8A8A; font-size: 13px; }
.sv-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border-radius: 20px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); animation: cardin .4s var(--ease) backwards; }
.sv-row b { display: block; font-size: 14px; }
.sv-row small { font-size: 12px; color: var(--ink-2); }
.sv-row .pillbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sv-del { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #FF8A8A; background: rgba(255, 107, 107, .12); }
.sv-del svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Compte et Sauvegarde, version sobre : pas de couleurs d'accent, seul « Supprimer » reste en rouge discret */
.si.acc-blue, .si.acc-green, .acc-out .si, .acc-danger .si { color: #D4D6DE; background: rgba(255, 255, 255, .07); }
.acc-out { color: var(--ink); }
.acc-danger-l { color: var(--ink-2); }
.acc-danger { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); }
.acc-danger summary { color: #E57373; }
.acc-head { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); }
.sc-ico { color: #D4D6DE; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); }
.sv-act, .sv-act.main { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); color: inherit; }
.sv-act.main svg { color: #D4D6DE; } .sv-act.main small { color: var(--ink-2); }
.sv-all { color: var(--ink-2); }
.sv-del { color: var(--ink-2); background: rgba(255, 255, 255, .06); }

/* Watchlist : l'onglet « Pas encore sortie » est plus large que les autres */
#w2-kind { grid-auto-flow: row; grid-template-columns: repeat(4, auto) minmax(0, 1fr); }
#w2-kind button { min-width: 0; padding-left: 5px; padding-right: 5px; white-space: nowrap; }
/* sur un petit téléphone, il passe sur deux lignes au lieu de faire déborder la page */
#w2-kind button[data-v="soon"] { white-space: normal; line-height: 1.15; }
@media (min-width: 520px) { #w2-kind { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.9fr); } }

/* Fiche : pastilles d'ambiance (moteur de recommandation) */
.f-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.f-pills span { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: var(--ink-2); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: cardin .35s var(--ease) backwards; }

/* ── Questionnaire de goûts et réglages avancés (cineco-questionnaire.js) ── */
.q-card { padding: 14px 16px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.q-card + .q-card { margin-top: 10px; }
.q-card p { margin: 0; }
.q-card p + p { margin-top: 8px; }
.q-list { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.q-head h3 { margin: 0; font-size: 15px; }
.q-mod { min-height: 34px; padding: 5px 14px; font-size: 13px; border-radius: 999px; }
.q-step { margin: 0; font-size: 12.5px; color: var(--ink-2); font-weight: 600; letter-spacing: .02em; }
.q-bar { height: 5px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-top: 8px !important; }
.q-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .4s var(--spring); }
.q-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.q-chips .chip { min-height: 38px; padding: 6px 13px; font-size: 13px; color: var(--ink-2); transition: background .25s, color .25s, transform .3s var(--spring); }
.q-chips .chip[aria-pressed="true"] { background: var(--grad); color: var(--accent-ink); box-shadow: none; font-weight: 600; }
.q-sub { margin: 14px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.q-sep { margin-top: 22px; }
.q-acts { display: grid; gap: 8px; margin-top: 22px !important; }
.q-row { display: flex; gap: 8px; }
.q-row .btn { flex: 1; }
.q-x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink-2); font-size: 18px; line-height: 1; }
.q-posters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.q-posters::-webkit-scrollbar { display: none; }
.q-post { flex: none; width: 64px; display: grid; gap: 4px; }
.q-post img, .q-post .ph { width: 64px; height: 96px; border-radius: 12px; object-fit: cover; }
.q-post small { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-maj { text-align: center; }
.beta { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); }
.av-row { padding: 12px 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.av-row.on { box-shadow: inset 0 0 0 1px var(--accent, var(--line)); }
.av-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.av-top label { display: grid; gap: 2px; }
.av-top small { color: var(--ink-2); font-size: 12.5px; }
.av-top output { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.av-row input[type="range"] { width: 100%; margin: 10px 0 4px; accent-color: var(--accent); }
.av-foot { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.av-reset { border: 0; background: none; color: var(--ink); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }

/* Questionnaire v2 : rangées de choix, duels, œuvres et leur « pourquoi » */
.q-seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.q-seg button { flex: 1; min-height: 38px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 1.2; transition: background .25s, color .25s; }
.q-seg button[aria-pressed="true"] { background: var(--grad); color: var(--accent-ink); }
.q-line { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; }
.q-line + .q-line { margin-top: 8px; }
.q-line > span { font-size: 14px; font-weight: 600; }
/* Genres : 4 choix, « Sans préférence » (neutre) plus discret quand il est actif */
.q-genre .q-seg button { padding: 6px 4px; font-size: 12px; }
.q-genre .q-seg button[data-v="n"][aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: var(--ink); }
@media (max-width: 520px) { .q-line.q-genre { grid-template-columns: 1fr; gap: 4px; } }
.q-duel + .q-duel { margin-top: 14px; }
.q-duel p { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.q-sub small, .q-count { font-weight: 500; color: var(--ink-2); }
.q-count { margin: 0 0 8px; font-size: 12.5px; text-align: right; }
.q-oeuvre { padding: 6px 6px 6px 0; align-items: center; }
.q-oeuvre.a-faire { box-shadow: inset 0 0 0 1px var(--accent, var(--line)); }
.q-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 4px 0 4px 14px; border: 0; background: none; color: inherit; text-align: left; }
.q-open .grow, .q-oeuvre .grow { display: grid; gap: 2px; min-width: 0; }
.q-ok, .q-ko, .q-todo { font-size: 12px; line-height: 1.35; }
.q-ok { color: var(--good); }
.q-ko { color: var(--ink-2); }
.q-todo { color: var(--ink); font-weight: 600; }
.q-why h3 { margin: 0 0 4px; }
.q-plus { margin-top: 12px; }
.q-mini { margin: 4px 0 6px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.q-mini + .chips + .q-mini, .chips.ro + .q-mini, .muted + .q-mini { margin-top: 12px; }
.q-dl { margin: 0; display: grid; gap: 6px; }
.q-dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.q-dl dt { color: var(--ink-2); }
.q-dl dd { margin: 0; text-align: right; font-weight: 600; }
@media (max-width: 380px) { .q-line { grid-template-columns: 1fr; gap: 4px; } }

/* ═════════ Suggestions : animations des cartes ═════════ */
.deck-card { position: relative; overflow: hidden; }
/* Apparition : la carte surgit, un éclat de couleurs la balaie et un halo arc-en-ciel s'éteint */
.deck-card.fx-in { animation: fx-pop .7s cubic-bezier(.2, .9, .25, 1.18) backwards, fx-halo 1s ease-out; }
.deck-card.fx-in::after { content: ""; position: absolute; inset: -10%; pointer-events: none; z-index: 5; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 20%, rgba(91, 141, 239, .7) 34%, rgba(180, 110, 255, .65) 44%, rgba(255, 110, 170, .65) 54%, rgba(255, 200, 110, .6) 64%, transparent 80%);
  transform: translateX(-120%) skewX(-8deg); animation: fx-sweep .85s cubic-bezier(.35, .1, .25, 1) .08s forwards; }
@keyframes fx-pop { from { opacity: 0; transform: perspective(900px) rotateX(14deg) scale(.8) translateY(34px); filter: blur(8px) saturate(2.2) brightness(1.4); } 55% { filter: blur(0) saturate(1.4) brightness(1.1); } }
@keyframes fx-sweep { to { transform: translateX(120%) skewX(-8deg); } }
@keyframes fx-halo { 0% { box-shadow: 0 0 0 0 rgba(91, 141, 239, 0); } 30% { box-shadow: 0 0 0 2px rgba(150, 120, 255, .9), 0 0 38px 4px rgba(91, 141, 239, .55); } 60% { box-shadow: 0 0 0 2px rgba(255, 120, 170, .7), 0 0 46px 6px rgba(255, 140, 120, .4); } 100% { box-shadow: 0 0 0 0 rgba(255, 200, 110, 0); } }

/* J'aime : voile rouge, onde de choc, grand cœur qui bat et petits cœurs projetés */
.fx-like { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 40, 70, .8), rgba(220, 20, 60, .5) 58%, rgba(150, 0, 40, .35)); animation: fx-like-bg .82s ease forwards; }
.fx-like > * { grid-area: 1 / 1; }
.fx-heart { width: 60%; display: block; animation: fx-heart .82s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.fx-heart svg { width: 100%; display: block; fill: #ff2c4f; filter: drop-shadow(0 0 22px rgba(255, 60, 90, .95)) drop-shadow(0 12px 30px rgba(120, 0, 30, .8)); }
.fx-ring { width: 40%; aspect-ratio: 1; border-radius: 50%; border: 6px solid rgba(255, 200, 210, .9); animation: fx-ring .7s ease-out .08s both; }
.fx-mini { width: 13%; display: block; opacity: 0; transform: rotate(var(--a)) translateY(0) scale(var(--s)); animation: fx-mini .62s cubic-bezier(.15, .8, .3, 1) forwards; }
.fx-mini svg { width: 100%; display: block; fill: #ff6f8a; }
@keyframes fx-like-bg { 0% { opacity: 0; } 18% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fx-heart { 0% { transform: scale(.15) rotate(-12deg); opacity: 0; } 30% { transform: scale(1.15) rotate(4deg); opacity: 1; } 45% { transform: scale(.95) rotate(0); } 58% { transform: scale(1.08); } 72% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes fx-ring { from { transform: scale(.3); opacity: 1; border-width: 10px; } to { transform: scale(2.6); opacity: 0; border-width: 1px; } }
@keyframes fx-mini { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.2); } 20% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(var(--s)); } }
.deck-card.fx-like-out { animation: fx-like-out .82s ease forwards; }
@keyframes fx-like-out { 0% { transform: scale(1); } 22% { transform: scale(1.03); } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.1) translateY(-10px); opacity: 0; } }

/* Watchlist : signet qui tombe sur la carte, traînées de lumière, la carte décolle vers le haut */
.fx-watch { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden;
  background: linear-gradient(0deg, rgba(91, 141, 239, .8), rgba(120, 90, 255, .35) 55%, rgba(91, 141, 239, 0) 85%); animation: fx-watch-bg .76s ease forwards; }
.fx-watch b { position: absolute; left: 50%; top: 38%; width: 30%; margin-left: -15%; animation: fx-mark .76s cubic-bezier(.2, 1.3, .4, 1) forwards; }
.fx-watch b svg { width: 100%; display: block; fill: #fff; filter: drop-shadow(0 0 18px rgba(140, 180, 255, 1)); }
.fx-watch i { position: absolute; bottom: -40%; width: 3px; height: 60%; border-radius: 3px; background: linear-gradient(0deg, transparent, rgba(255, 255, 255, .9)); animation: fx-streak .5s ease-in .2s both; }
.fx-watch i:nth-child(1) { left: 18%; animation-delay: .18s; } .fx-watch i:nth-child(2) { left: 39%; animation-delay: .26s; }
.fx-watch i:nth-child(3) { left: 63%; animation-delay: .21s; } .fx-watch i:nth-child(4) { left: 84%; animation-delay: .3s; }
@keyframes fx-watch-bg { from { opacity: 0; } 25% { opacity: 1; } to { opacity: 1; } }
@keyframes fx-mark { 0% { transform: translateY(-160%) scale(.6); opacity: 0; } 35% { transform: translateY(0) scale(1.1); opacity: 1; } 50% { transform: scale(.95); } 62% { transform: scale(1); opacity: 1; } 100% { transform: translateY(-40%) scale(1); opacity: 1; } }
@keyframes fx-streak { from { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-260%); opacity: 0; } }
.deck-card.fx-watch-out { animation: fx-watch-out .76s cubic-bezier(.55, 0, .85, .35) forwards; }
@keyframes fx-watch-out { 0% { transform: translateY(0) scale(1); opacity: 1; } 35% { transform: translateY(10px) scale(.96); opacity: 1; } 100% { transform: translateY(-120vh) scale(.72) rotate(-5deg); opacity: 0; } }

/* J'aime pas : la carte tremble, se fissure, puis vole en éclats rougis */
.deck-card.fx-shake { animation: fx-shake .23s linear; }
@keyframes fx-shake { 0%, 100% { transform: translate(0, 0) rotate(0); } 20% { transform: translate(-5px, 1px) rotate(-1deg); } 40% { transform: translate(5px, -1px) rotate(1deg); } 60% { transform: translate(-4px, 0) rotate(-.6deg); } 80% { transform: translate(3px, 1px) rotate(.4deg); } }
.fx-crack { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.fx-crack path { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linejoin: bevel; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(255, 60, 80, 1)); stroke-dasharray: 400; stroke-dashoffset: 400; animation: fx-crack .2s ease-out forwards; }
@keyframes fx-crack { to { stroke-dashoffset: 0; } }
.fx-shard { position: absolute; z-index: 7; pointer-events: none; will-change: transform; animation: fx-shard .85s cubic-bezier(.4, 0, .9, .6) forwards; }
.fx-shard .fx-clone { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; margin: 0; transform: none; opacity: 1; animation: none; }
.fx-shard::after { content: ""; position: absolute; inset: 0; background: rgba(255, 40, 60, .6); mix-blend-mode: multiply; animation: fx-shard-red .85s ease forwards; }
@keyframes fx-shard { 0% { transform: translate(0, 0) rotate(0); opacity: 1; filter: brightness(1.6); } 15% { transform: translate(calc(var(--tx) * .14), -10px) rotate(calc(var(--rz) * .12)); opacity: 1; filter: brightness(1); } 100% { transform: translate(var(--tx), var(--ty)) rotate(var(--rz)) scale(.85); opacity: 0; } }
@keyframes fx-shard-red { from { opacity: 1; } to { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .deck-card.fx-in, .deck-card.fx-in::after { animation: none; } }
.deck-row .peek.none { visibility: hidden; }

/* Anti-spoil (web/cineco-antispoil.js) : passage masqué, avis marqué « spoilers » */
.sp-warn { color: var(--ink-2); font-style: italic; }
.sp-note { color: var(--ink-2); font-size: .9em; }
.sp-btn { margin-top: 4px; }

/* Suggestions : bouton « Mon envie » (contexte du moment) */
.sg-ctx { margin-left: 8px; }
.sg-ctx.on { background: var(--grad); color: var(--accent-ink); box-shadow: none; }
.ctx-opts { margin-bottom: 4px; }
.ctx-tard { margin-top: 12px; }
.ctx-ok { width: 100%; margin-top: 18px; }

/* Guide « Ajouter à l'écran d'accueil » sur iPhone (cineco-iphone.js) */
.ip-non .ip-row { display: none; }
.ip-box { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 8px 4px 4px; }
.ip-box > img { border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.ip-box h3 { margin: 4px 0 0; font-size: 18px; }
.ip-box p { margin: 0; }
.ip-steps { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 8px; width: 100%; text-align: left; }
.ip-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-size: 14px; }
.ip-steps i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .08); }
.ip-steps svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ip-steps i img { width: 28px; height: 28px; border-radius: 7px; }
.ip-box .btn { width: 100%; margin-top: 4px; }

/* Import Letterboxd : fenêtre de recherche à la main (index.html, rvSearch) */
.rvs { display: grid; gap: 10px; width: min(520px, 100%); }
.rvs h3 { margin: 0; font-size: 18px; }
.rvs p { margin: 0; }
.rvs .row { display: flex; gap: 8px; }
.rvs-list { display: grid; gap: 6px; max-height: min(52vh, 420px); overflow: auto; overscroll-behavior: contain; }
.rvs-list .cand { width: 100%; text-align: left; border: 0; cursor: pointer; }
.rvs-list .cand[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--ink, #fff); background: rgba(255, 255, 255, .1); }
.rvs-go { width: 100%; }
/* passe devant l'écran d'import (z-index 60) et floute ce qu'il y a derrière */
.cs-ov.rvs-ov { z-index: 80; }
.cs-ov.rvs-ov.on { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* Mon avis : 2 lignes de points, puis « Voir plus ». Pas de flou d'arrière-plan sur ces étiquettes : des dizaines de flous faisaient perdre beaucoup d'images par seconde */
.my-chips { max-height: 78px; overflow: hidden; }
.my-chips.tout { max-height: none; }
.my-plus { font-size: 13px; margin-top: 4px; }
.oeuvre .my-more .chip { -webkit-backdrop-filter: none; backdrop-filter: none; }
.my-more:not([open]) > :not(summary) { display: none; }

/* Écran Carte (cineco-carte.js) : cartes à collectionner, bientôt */
.ct-page { min-height: 62vh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding-inline: 12px; }
.ct-page h2 { margin: 18px 0 0; }
.ct-page p { margin: 0; max-width: 320px; }
.ct-pile { position: relative; width: 120px; height: 170px; }
.ct-pile i { position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 14px 30px rgba(0, 0, 0, .4); animation: ct-flot 4s ease-in-out infinite alternate; }
.ct-pile i:nth-child(1) { transform: rotate(-12deg) translateX(-18px); animation-delay: -1s; }
.ct-pile i:nth-child(2) { transform: rotate(9deg) translateX(16px); animation-delay: -2s; }
.ct-pile i:nth-child(3) { background: linear-gradient(160deg, rgba(57, 255, 138, .22), rgba(255, 255, 255, .05)); }
@keyframes ct-flot { to { translate: 0 -6px; } }
.ct-bientot { display: inline-block; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
@media (prefers-reduced-motion: reduce) { .ct-pile i { animation: none; } }

/* Suggestions : la carte jouée se range derrière (copie fixe, sous la nouvelle) et la suivante passe par-dessus (cineco-decouvrir.js, flyOut) */
.deck-ghost { z-index: 1; pointer-events: none; will-change: transform, filter, opacity; }
#sg-list .deck-card { z-index: 2; }
.deck-card.deck-sur { animation: deck-sur .46s cubic-bezier(.2, .85, .25, 1) both; }
.deck-card.deck-sur-g { animation: deck-sur-g .46s cubic-bezier(.2, .85, .25, 1) both; }
@keyframes deck-sur { from { transform: translateX(105%) rotate(5deg); } to { transform: none; } }
@keyframes deck-sur-g { from { transform: translateX(-105%) rotate(-5deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .deck-card.deck-sur, .deck-card.deck-sur-g { animation: none; } .deck-ghost { display: none; } }

/* Fiche : bande son (cineco.js, chargerBandeSon) */
.son-l { display: grid; gap: 2px; }
.son-l.court .son-plus { display: none; }
.son-p { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-radius: 12px; color: inherit; text-decoration: none; }
.son-p:active { background: rgba(255, 255, 255, .06); }
.son-p b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.son-p small { display: block; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.son-p .grow { min-width: 0; }
.son-n { flex: none; width: 26px; text-align: center; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.son-n svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.son-d { flex: none; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.son-tout { margin-top: 6px; font-size: 13px; }

/* Où regarder : 2 tuiles, puis « Voir plus » (cineco.js, whereTab) */
.wh-tile.wh-cache { display: none; }
.wh-plus { grid-column: 1 / -1; justify-self: start; font-size: 13px; margin-top: 2px; }

/* Bande son : bouton « Toutes les musiques » (playlist) */
.son-pl { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; padding: 11px 14px; border-radius: 16px; color: inherit; text-decoration: none; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.son-pl svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.son-pl b { display: block; font-size: 14px; }
.son-pl small { display: block; font-size: 12px; color: var(--ink-2); }
.son-pl .grow { min-width: 0; }
