.lcv-film-commun { margin:0; height:210svh; background:#0b1929; color:#fff; }
.lcv-film-cadre { position:sticky; top:0; height:100svh; display:grid; grid-template-rows:minmax(0,1fr) 48px; background:#0b1929; }
.lcv-film-cadre video { width:100%; height:100%; object-fit:contain; }
.lcv-film-direct {
  position: absolute;
  inset-inline-start: max(12px, env(safe-area-inset-left));
  bottom: 92px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .75rem;
  border: 1px solid #d5bc87;
  border-radius: 6px;
  color: white;
  background: #102236;
  font: 600 .875rem/1.2 system-ui, sans-serif;
}
.lcv-film-cadre input { width:94%; justify-self:center; min-height:44px; accent-color:#daaf68; }
.lcv-portrait-ouverture { position:absolute!important; inset:0!important; width:100%!important; height:100%!important; object-fit:contain!important; background:#0b1929; z-index:1; pointer-events:none; }
.lcv-film-cadre .lcv-portrait-ouverture { height:calc(100% - 48px)!important; }
.lcv-portrait-ouverture[hidden] { display:none!important; }
.lcv-ouverture-visible .film-opening { visibility:hidden!important; }
.lcv-ouverture-visible :is(.language-strip,.film-fullscreen-actions,.lcv-subpage-film__languages) { z-index:3; }
body #film #lcv-home-film-player .film-controls:not([hidden]),body #film .film-journey:not([data-film-locked]) #lcv-home-film-player .film-controls { display:grid!important; visibility:visible!important; }
body #film #lcv-home-film-player .film-track,body #film #lcv-home-film-player #film-position {display:block!important; visibility:visible!important; opacity:1!important;}
body #film #lcv-home-film-player #film-position {min-height:44px; width:100%; touch-action:pan-y;}
@media (prefers-reduced-motion:reduce) { .lcv-film-commun {height:auto} .lcv-film-cadre {position:relative;height:min(85svh,850px)} }
.lcv-film-agrandir {position:absolute;right:max(12px,env(safe-area-inset-right));bottom:60px;z-index:3;min-width:44px;min-height:44px;border:1px solid #d5bc87;border-radius:6px;background:#102236;color:white;font-size:22px}
.lcv-film-cadre:is(:fullscreen,.lcv-film-superpose) {height:100dvh;width:100vw;background:#0b1929}
.lcv-film-cadre.lcv-film-superpose {position:fixed;inset:0;z-index:2147483000}
body:has(.lcv-film-superpose) {overflow:hidden}

@media (max-width: 760px) and (orientation: portrait) {
  /* First paint reserves the measured header, reader and contact bar. The player then measures this viewport. */
  .lcv-film-cadre:not(:fullscreen):not(.lcv-film-superpose) {height:min(100svh,var(--lcv-hauteur-visible,max(180px,calc(100svh - 334px))));}
}

body #film #lcv-home-film-player:not([data-film-fullscreen]) {
  grid-template-rows: minmax(0, 1fr) auto auto !important;
  grid-template-columns: minmax(0, 1fr) !important;
  height: calc(100svh - var(--lcv-cookie-reserve, 0px)) !important;
  min-height: 0 !important;
}
body #film #lcv-home-film-player:not([data-film-fullscreen]) .film-stage { grid-area: 1 / 1 !important; min-height: 0 !important; }
body #film #lcv-home-film-player:not([data-film-fullscreen]) .film-quick-actions,
body #film #lcv-home-film-player:not([data-film-fullscreen]) .film-controls {
  position: relative !important;
  inset: auto !important;
  width: min(44rem, calc(100% - var(--lcv-cookie-left, 0px) - var(--lcv-cookie-right, 0px))) !important;
  margin: 0 auto !important;
  translate: calc((var(--lcv-cookie-left, 0px) - var(--lcv-cookie-right, 0px)) / 2) 0;
  box-sizing: border-box;
  align-self: stretch !important;
  justify-self: center !important;
}
body #film #lcv-home-film-player:not([data-film-fullscreen]) .film-quick-actions { grid-area: 2 / 1 !important; }
body #film #lcv-home-film-player:not([data-film-fullscreen]) .film-controls {
  grid-area: 3 / 1 !important; grid-template: auto / auto minmax(0,1fr) !important;
  background:#0d2032; color:white; padding:0 .65rem max(2px,env(safe-area-inset-bottom)) !important; align-items:center;
}
body #film #lcv-home-film-player:not([data-film-fullscreen]) .film-play {grid-area:1/1!important; margin:0!important;}
body #film #lcv-home-film-player:not([data-film-fullscreen]) .film-track {grid-area:1/2!important; width:auto!important; min-width:0!important;}
body #film #lcv-home-film-player:not([data-film-fullscreen]) .film-track label {
  position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip-path:inset(50%);
}
body #film #lcv-home-film-player:not([data-film-fullscreen]) #film-position {width:100%!important; min-height:44px!important; margin:0!important;}

.lcv-film-cadre > .lcv-affiche-responsive {display:contents}
@media (scripting:none) {
  .lcv-film-commun {height:auto}
  .lcv-film-cadre {position:relative;display:block;height:auto!important}
  .lcv-film-cadre video {display:block;width:100%;height:auto;aspect-ratio:16/9}
  .lcv-film-cadre > .lcv-affiche-responsive {display:none}
}

/* The page reader adds a 44px control and 14px of spacing above the film. */
@media (scripting:enabled) {
  .page-reader-mount:empty {display:block;height:58px}
}

/* Float the scrubber above the native controls so the whole 16:9 picture fits. */
@media (min-width: 961px) and (min-height: 550px), (display-mode: fullscreen) {
  .lcv-film-cadre { display: block; }
  .lcv-film-cadre video, .lcv-film-cadre .lcv-portrait-ouverture { height: 100% !important; }
  .lcv-film-cadre input {
    position: absolute;
    inset-inline: 5rem;
    bottom: 46px;
    width: calc(100% - 10rem);
    z-index: 3;
  }
}

.lcv-film-langues, .lcv-film-contacts {
  position: absolute;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: .2rem;
  inset-inline: 0;
  margin-inline: auto;
  width: max-content;
  max-width: 100%;
}
.lcv-film-langues { top: max(4px, env(safe-area-inset-top)); }
.lcv-film-contacts { bottom: 92px; }
.lcv-film-langues a, .lcv-film-contacts a {
  display: grid;
  align-content: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding-inline: .55rem;
  border: 1px solid #d5bc87;
  border-radius: 4px;
  background: #102236;
  color: white;
  font: 600 .875rem/1.15 system-ui, sans-serif;
  text-decoration: none;
}
.lcv-film-langues a[aria-current="page"] { background: #f4deba; color: #102236; }
.lcv-film-cadre :focus-visible { outline: 3px solid #efc15d; outline-offset: 2px; }
@media (max-width: 780px) {
  .lcv-film-cadre:not(:fullscreen):not(.lcv-film-superpose) .lcv-film-contacts { display: none; }
  .lcv-film-langues { gap: 2px; }
  .lcv-film-langues a { min-width: 30px; padding-inline: .25rem; }
}
@media (max-width: 600px) {
  .lcv-film-cadre:is(:fullscreen,.lcv-film-superpose) .lcv-film-contacts { bottom: 145px; }
}
