/* ===== Découverte (suggestions du Bilan, catégories de Chercher) ===== */
.h3{font:800 12px/1.2 var(--f-body);letter-spacing:.14em;text-transform:uppercase;
  color:var(--t2);margin:var(--sp-4) 0 var(--sp-2)}
/* Une carte ne mène nulle part tant que la série n'est pas suivie : pas de lien,
   un bouton. */
.sg{display:grid;gap:var(--sp-2);align-content:start}
.sg .wrap{position:relative}
/* Progression d'une série suivie : une barre au pied de l'affiche plutôt qu'un
   « 45 % » qu'on ne savait pas lire. */
.tile-bar{position:absolute;left:var(--sp-2);right:var(--sp-2);bottom:var(--sp-2);height:4px;border-radius:2px;
  background:rgba(15,15,16,.72);overflow:hidden}
.tile-bar i{display:block;height:100%;border-radius:2px;background:var(--acc)}
.tile-done{position:absolute;left:var(--sp-2);bottom:var(--sp-2);display:inline-flex;align-items:center;gap:var(--sp-1);
  height:24px;padding:0 var(--sp-2);border-radius:var(--r-xl);background:var(--acc);color:var(--acc-ink);
  font:800 12px/1 var(--f-body);white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.45)}
.tile-done svg{width:14px;height:14px}
/* Carte de Chercher : la note occupe le bas, « Vu » prend le coin haut. */
.tile-done.at-top{left:auto;right:var(--sp-2);top:var(--sp-2);bottom:auto}
.sg .poster{width:100%}
/* Toute l'affiche ouvre la fiche ; la pastille « Suivre » reste au-dessus. */
.sg-open{position:absolute;inset:0;border-radius:var(--r-s)}
.sg .chip.add{z-index:1}
.sg .chip.sq{position:absolute;left:var(--sp-2);bottom:var(--sp-2);background:rgba(15,15,16,.82);color:var(--acc)}
.rail .sg{flex:none;width:112px;scroll-snap-align:start}
/* L'ajout est une pastille sur l'affiche : 22px suffisent à l'œil, pas au
   doigt — la cible fait la taille minimale recommandée. */
.sg .chip.sq.add{position:absolute;right:var(--sp-2);top:var(--sp-2);bottom:auto;left:auto;
  width:32px;height:32px;padding:0;border-radius:50%;justify-content:center;
  background:var(--acc);color:var(--acc-ink);border:0}
.sg .add svg{width:16px;height:16px;stroke-width:2.5}
/* « Déjà vu » : même cible, coin opposé, fond sombre pour rester second. */
.sg .chip.sq.sg-eye{position:absolute;left:var(--sp-2);top:var(--sp-2);bottom:auto;z-index:1;
  width:32px;height:32px;padding:0;border-radius:50%;justify-content:center;border:0;
  background:rgba(15,15,16,.82);color:var(--acc)}
.sg .sg-eye svg{width:16px;height:16px;stroke-width:2.5}
.sg .chip.sq.on{position:absolute;right:var(--sp-2);top:var(--sp-2);bottom:auto;left:auto;
  width:32px;height:32px;border-radius:50%;background:rgba(15,15,16,.82);color:var(--acc)}
.sg .chip.sq.on svg{width:16px;height:16px}
/* Note : pastille lisible posée sur l'affiche, en bas à gauche. */
.sg-rate{position:absolute;left:var(--sp-2);bottom:var(--sp-2);display:inline-flex;align-items:center;gap:var(--sp-1);
  height:24px;padding:0 var(--sp-2);border-radius:var(--r-xl);background:rgba(15,15,16,.86);color:#fff;
  font:800 13px/1 var(--f-body);pointer-events:none}
.sg-rate svg{width:13px;height:13px;color:var(--acc)}
.sg .note{display:block}
/* Date d'un bandeau : une ligne, réservée pendant l'attente. */
.sg .mst{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Titre + popcorn (film en salle ou bientôt) : l'icône à droite, calée sur la
   première ligne ; vide, l'emplacement ne prend pas de largeur. */
/* min-width:0 : dans une tuile en grille, l'élément prendrait la largeur du titre entier. */
.sg-ttl{display:flex;align-items:flex-start;min-width:0}
.sg-ttl .meta{flex:1;min-width:0}
.mpop{flex:none;display:inline-flex;min-height:18px;align-items:center;color:var(--acc)}
.mpop svg{width:16px;height:16px;margin-left:var(--sp-1);stroke-width:2}
/* Vu (film vu, série terminée) : l'affiche s'efface, la coche reste nette (§6). */
.sg.seen .poster,.sg.seen .bd{filter:brightness(var(--dim))}
/* À voir (Films) : la coche reste neutre tant que le film n'est pas vu :
   fond sombre, pas d'accent plein (Meih, 10/10). */
.sg .chip.sq.mv-check{position:absolute;right:var(--sp-2);top:var(--sp-2);bottom:auto;left:auto;z-index:1;
  width:32px;height:32px;padding:0;border-radius:50%;justify-content:center;
  background:rgba(15,15,16,.82);color:#fff;border:1px solid rgba(255,255,255,.35)}
.sg .mv-check svg{width:16px;height:16px;stroke-width:2.5}
.sg .mv-sub{display:flex;align-items:center;gap:var(--sp-1)}
.sg .mv-sub>svg{width:12px;height:12px;color:var(--acc)}
/* Titre sur deux lignes au plus (Meih, 10/10) : une affiche seule ne dit pas toujours lequel. */
.sg.mv .meta.clamp{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}
.grid-sg{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:var(--sp-3)}
/* À voir Films : note sur l'affiche, titre sur 1 ligne, puis Où voir + durée (Meih 2026-10-11). */
.grid-sg.mvs{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:var(--sp-6)}
.grid-sg.mvs .sg{row-gap:var(--sp-1)}
/* Puce compacte : la carte fait ~110 px de large. */
.grid-sg.mvs .plat-mini .more-n.short{height:24px;gap:var(--sp-1);padding:0 var(--sp-1) 0 var(--sp-2);font-size:12px}
.grid-sg.mvs .plat-mini .more-n svg{width:14px;height:14px}
.grid-sg.mvs .plat-mini .more-n b{min-width:18px;height:18px;border-radius:9px}
.grid-sg.mvs .sg.mv .meta.clamp{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grid-sg.mvs .mv-sub{min-height:24px;white-space:nowrap}
/* Bandeaux de Chercher : la carte de découverte en paysage. Nouveautés large,
   Bientôt plus étroit pour que les rayons remontent dans le premier écran
   (décision Meih, 05/10). La carte suivante dépasse : on voit que ça glisse. */
.band .h2{margin:var(--sp-6) 0 var(--sp-3)}
#band-fresh .h2{margin-top:var(--sp-4)}
.rail .sg.wide{width:78%;max-width:340px}
.band.soon .rail .sg.wide{width:58%;max-width:260px}
.sg.wide .bd{display:block;width:100%;aspect-ratio:16/9;height:auto;object-fit:cover;border-radius:var(--r-s);background:var(--s1)}
.sg.wide .meta{font-weight:700}
.band .rail[hidden]{display:none}   /* .rail est en flex : `hidden` seul ne masque rien */
.band .skel.wide{flex:none;width:78%;aspect-ratio:16/9;border-radius:var(--r-s)}
.band.soon .skel.wide{width:58%}

/* ===== Recherche ===== */
 /* Le champ colle sous l'en-tête : à la prise de focus, le navigateur ne peut
    plus le faire remonter derrière la barre de titre. */
.search{position:sticky;top:calc(var(--safe-t) + var(--top-h) + var(--bar-h));z-index:12;
  margin:0 calc(-1 * var(--gut)) var(--sp-2);padding:var(--sp-2) var(--gut) 0;background:var(--bg)}
.field{position:relative;display:flex;align-items:center;gap:var(--sp-2);height:var(--tap);
  padding:0 var(--sp-3);border-radius:var(--r-s);background:var(--s2)}
.field .lead{display:grid;place-items:center;flex:none;color:var(--t3)}
.field input{flex:1;min-width:0;height:100%;padding:0 var(--sp-2);border:0;background:transparent;font-size:16px;position:relative;z-index:1}
.field input::placeholder{color:var(--t3)}
.field input::-webkit-search-cancel-button,.field input::-webkit-search-decoration{-webkit-appearance:none}
/* Autocomplétion : la partie tapée est transparente, seule la suggestion se voit.
   Nom dédié : « .ghost » seul servirait aussi aux puces .chip.ghost. */
.ac-ghost{position:absolute;left:calc(var(--sp-3) + 20px + var(--sp-2) * 2);right:calc(var(--sp-3) + var(--sp-2));
  display:flex;align-items:center;height:100%;font-size:16px;white-space:pre;overflow:hidden;
  pointer-events:none;z-index:0}
.ac-ghost i{color:transparent;font-style:normal}
.ac-ghost b{color:var(--t3);font-weight:400}
.fbtn{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
  background:var(--s3);color:var(--t2);position:relative;z-index:1}
/* `display` l'emportait sur l'attribut `hidden` : les deux boutons du champ
   restaient visibles alors que rien n'était tapé. */
.fbtn[hidden]{display:none}
/* Œil d'une carte film : masqué tant que le film n'est pas sûr d'être sorti (movie-status.js). */
.sg-eye[hidden]{display:none}
.fbtn .ico{width:16px;height:16px}
.fbtn.go{background:var(--acc-soft);color:var(--acc)}
.hint{margin-top:var(--sp-2);font-size:12px;color:var(--t3);min-height:1em}
/* Recherche en cours : les résultats précédents restent en place, estompés (pas de saut). */
/* Estompé après 250 ms seulement : une réponse rapide ne fait pas clignoter la grille. */
#res[aria-busy],#mres[aria-busy]{opacity:.45;transition:opacity .15s .25s;pointer-events:none}
@media (prefers-reduced-motion:reduce){#res[aria-busy],#mres[aria-busy]{transition:none}}
/* Affiches de recherche : image masquée (la case grise de .poster reste) jusqu'au
   chargement complet, puis fondu. Classe posée par JS (fadePosters) : sans JS, rien ne change. */
.fade-img .poster:not(.on){object-position:-200vw 0}
.fade-img .poster.on{animation:pin .2s ease-out}
@keyframes pin{from{opacity:.35}}
@media (prefers-reduced-motion:reduce){.fade-img .poster.on{animation:none}}

/* Un résultat : affiche, titre, méta, deux lignes de synopsis, deux actions */
.hit{display:flex;gap:var(--sp-3);padding:var(--sp-3) 0;border-top:1px solid var(--line)}
.hit:first-child{border-top:0}
.hit .poster{width:56px}
.hit-body{flex:1;min-width:0;display:grid;gap:var(--sp-1);align-content:start}
.hit-rate{display:inline-flex;align-items:center;gap:var(--sp-1);font-size:13px;color:var(--t1)}
.hit-rate svg{width:18px;height:18px;color:var(--acc)}
.hit-rate b{font:400 22px/1 var(--f-title);color:#fff}
.hit-rate small{color:var(--t2)}
#sugg-sec .h2{margin-top:var(--sp-6)}
.hit-acts{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-top:var(--sp-1)}
.hit-acts .btn:disabled{opacity:.5}


/* Rails de « Pour vous » : le genre à gauche, « Tout voir » à droite. */
.h3.sg-head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--sp-3)}
.h3.sg-head .link-btn{margin:0}
