/* Lecteur des films de Creatifi (v2, 3 nov. 2026) : barre de commandes du lecteur du site (PlayerShell.tsx).
   Verre noir de la charte : 55 % / flou 12, survol 70 % ; texte blanc. Valeurs du site : barre posée sur l'image
   à 24 px des bords et 20 px du bas (12 et 12 au téléphone), haute de 28 px (40 au téléphone), écart 8 px (6),
   boutons de 36 px (40), icônes 16 px trait 1,6, texte 12 px à chiffres tabulaires. Effacée après 3 s sans geste. */
.cfv{--cfv-x:12px;--cfv-y:12px;--cfv-h:40px;--cfv-gap:6px;--cfv-bw:40px}
@media (min-width:640px){.cfv{--cfv-x:24px;--cfv-y:20px;--cfv-h:28px;--cfv-gap:8px;--cfv-bw:36px}}
/* les anciennes commandes laissent la place à la barre */
html body .cl-ctl,html body .cl-film>.cl-bar,html body .cl-fsv .fs-bar,html body .cl-fsv .fs-snd{display:none!important}
html body .cl-fsv.cc-off .cl-fsub{visibility:hidden}
/* verre */
.cfv :is(.cfv-b,.cfv-prog,.cfv-menu),html body .cl-fsv .fs-x,html body .cl-pip button{background-color:rgba(0,0,0,.55);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:#fff;border:0;transition:background-color .2s}
.cfv :is(.cfv-b:hover,.cfv-b.on),html body .cl-fsv .fs-x:hover,html body .cl-pip button:hover{background-color:rgba(0,0,0,.7)}
html body .cl-fsv .fs-x{width:40px;height:40px}
/* barre */
.cfv-bar{position:absolute;left:var(--cfv-x);right:var(--cfv-x);bottom:var(--cfv-y);z-index:4;height:var(--cfv-h);display:flex;align-items:stretch;gap:var(--cfv-gap);
  font:400 12px/1 var(--sans);font-variant-numeric:tabular-nums;color:#fff;transition:opacity .3s}
.cfv.cfv-idle .cfv-bar{opacity:0;pointer-events:none}
/* dans la page : la barre n'apparaît qu'une fois le film agrandi (ou sous le texte, au téléphone) */
html body .cl:not(.cl-big):not(.cl-short) .cl-frame .cfv-bar{opacity:0;pointer-events:none}
/* au téléphone, le film ne s'agrandit pas : la barre est là dès qu'il est à l'écran (et sert à le lancer) */
@media (max-width:760px){html body .cl.cl.cl .cl-frame:not(.cfv-idle) .cfv-bar{opacity:1;pointer-events:auto}}
.cfv-b{width:var(--cfv-bw);height:100%;flex:none;padding:0;display:grid;place-items:center;cursor:pointer}
.cfv-b svg{width:16px;height:16px}
.cfv :is(.cfv-b,.cfv-menu button):focus-visible{outline:2px solid #fff;outline-offset:2px}
/* progression : la partie lue en noir, les temps écrits dedans ; la durée s'efface sous 104 px */
.cfv-prog{position:relative;flex:1;min-width:0;overflow:hidden;container-type:inline-size}
.cfv-prog i{position:absolute;inset:0 auto 0 0;width:0;background:#000}
.cfv-prog span{position:absolute;top:0;bottom:0;display:flex;align-items:center;pointer-events:none}
.cfv-t0{left:8px}.cfv-t1{right:8px;visibility:hidden}
@container (min-width:6.5rem){.cfv-t1{visibility:visible}}
.cfv-prog input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.cfv-prog input:disabled{cursor:default}
.cfv-prog:has(input:focus-visible){outline:2px solid #fff;outline-offset:2px}
/* sous-titres : menu des langues */
.cfv-sub{position:relative;height:100%;flex:none}.cfv-sub[hidden]{display:none}
.cfv-menu{position:absolute;right:0;bottom:100%;margin-bottom:8px;min-width:144px;display:flex;flex-direction:column;padding:4px 0}
.cfv-menu[hidden]{display:none}
.cfv-menu button{display:flex;gap:8px;align-items:center;padding:10px 12px;border:0;background:none;color:#fff;font:inherit;text-align:left;cursor:pointer;opacity:.7}
.cfv-menu button[aria-checked="true"]{opacity:1;font-weight:600}
.cfv-menu button:hover{background:rgba(255,255,255,.15)}
.cfv-menu button span{width:12px}
@media (min-width:640px){.cfv-menu button{padding:6px 12px}}
/* attente : les deux carrés de :pam au centre, comme le signe du site */
.cfv-wait::before,.cfv-wait::after{content:"";position:absolute;left:50%;top:50%;z-index:3;width:11.93px;height:11.15px;margin-left:-5.97px;background:#fff;pointer-events:none}
.cfv-wait::before{margin-top:-14px;animation:cfp-bounce 1500ms -750ms infinite both}
.cfv-wait::after{margin-top:2.85px;animation:cfp-bounce 1500ms -580ms infinite both}
@media (prefers-reduced-motion:reduce){.cfv-bar{transition:none}.cfv-wait::before,.cfv-wait::after{animation:none}}
/* sous-titres à droite de l'image (bureau), comme le lecteur du site (PlayerShell, `subtitlePosition: "outside"`) :
   deux carrés côte à côte (Julien, 7 nov.) : la vidéo, recadrée au carré, et le panneau noir des sous-titres ; en haut le titre (12 px), au centre le sous-titre
   (600, clamp(18px, 6cqi, 36px), interligne 1,25, mots à venir à 45 %), en bas l'intervenant (12 px). Au téléphone
   et sur un écran haut, le film garde son bandeau de sous-titres dessous. */
.cfv-side{display:none;position:absolute;top:0;right:0;bottom:0;width:50%;z-index:3;background:#000;color:#fff;container-type:inline-size;
  flex-direction:column;align-items:center;justify-content:space-between;gap:24px;padding:24px;text-align:center}
.cfv-side p{margin:0}
.cfv-st,.cfv-sp{font:400 12px/1.3 var(--sans);min-height:1.3em}
.cfv-cue{max-width:36rem;font:600 clamp(18px,6cqi,36px)/1.25 var(--sans)}
.cfv-cue span{opacity:.45;transition:opacity .2s}.cfv-cue span.said{opacity:1}
html body .cl.cc-off .cfv-cue,html body .cl-fsv.cc-off .cfv-cue{visibility:hidden}
@media (min-width:761px) and (min-aspect-ratio:5/4){
  html body .cl:not(.cl-short) .cl-film{--fh:min(calc(100svh - var(--hdt) - 2 * var(--band) - 6px),calc((100vw - 2 * var(--g)) / 2))}
  html body .cl:not(.cl-short) .cl-frame{width:calc(var(--fh) * 2)}
  html body .cl:not(.cl-short) .cl-frame>video{width:50%;right:auto}
  html body .cl:not(.cl-short) .cl-frame .cfv-side{display:flex}
  html body .cl:not(.cl-short) .cl-frame .cfv-bar{right:calc(50% + var(--cfv-x))}
  html body .cl:not(.cl-short) .cl-band .cl-sub{visibility:hidden}
  /* plein écran de la page : même lecteur, plus grand */
  html body .cl-fsv .fv{aspect-ratio:2;width:min(100%,calc((100vh - clamp(56px,8vh,90px) - clamp(24px,4vh,40px)) * 2))}
  html body .cl-fsv .fv>video{width:50%;right:auto}
  html body .cl-fsv .fv .cfv-side{display:flex}
  html body .cl-fsv .fv .cfv-bar{right:calc(50% + var(--cfv-x))}
  html body .cl-fsv .cl-fsub{display:none}
}
