/* FComply: the site player's control bar (Oct 29, 2026).  Gavin: "make sure that on all the web pages, for a person
   watching, there's a bar at the bottom of the video that allows someone to rewind or go forward. If they miss something
   on a video, they can always replay it."  js/fc-scroll.js builds the bar inside .fc-film-ui when a film starts in an
   .fc-loop panel: play and pause, a scrub you can drag, the time, captions (only where the button carries data-vtt),
   sound and full screen, and a Replay button at the end in place of the old close-after-900-ms.  The same controls and
   icons as the film pages' .fc-po-bar (style.css section 31), drawn white on a dark band along the foot of the picture.
   Enqueued by functions.php (fcomply_player_css) after style.css, versioned by file time. */

.fc-film-ctl{pointer-events:auto;position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;align-items:center;gap:6px;
  padding:28px 10px 8px;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.62) 58%,rgba(0,0,0,.72) 100%);
  border-radius:0 0 14px 14px;transition:opacity .45s}
#ajax-content-wrap .fc-film-ctl button.fc-film-cb,.fc-film-ctl button.fc-film-cb{appearance:none;-webkit-appearance:none;position:static;
  flex:0 0 auto;display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;margin:0;padding:0;border:0;border-radius:999px;
  background:transparent;color:#fff;cursor:pointer;box-shadow:none;transform:none;line-height:1}
.fc-film-ctl button.fc-film-cb:hover{background:rgba(255,255,255,.16)}
.fc-film-ctl button.fc-film-cb:focus-visible,.fc-film-replay:focus-visible{outline:2px solid #fff;outline-offset:1px}
.fc-film-ctl button.fc-film-cb[aria-pressed="true"].fc-film-ccbtn{background:#fff;color:#16191f}
.fc-film-ctl .fc-film-mute::before{display:none!important;content:none!important}
.fc-film-ctl .fc-po-ic,.fc-film-replay .fc-po-ic{display:block;width:18px;height:18px;fill:currentColor}
.fc-film-seekwrap{position:relative;flex:1 1 auto;min-width:56px;height:44px;display:flex;align-items:center}
#ajax-content-wrap input.fc-film-seek,input.fc-film-seek{-webkit-appearance:none;appearance:none;display:block;width:100%;height:6px;margin:0;padding:0;
  border:0;border-radius:6px;cursor:pointer;box-shadow:none;outline-offset:6px;
  background:linear-gradient(90deg,#fff 0 var(--p,0%),rgba(255,255,255,.38) var(--p,0%) 100%)}
input.fc-film-seek::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:#fff;border:0;box-shadow:0 1px 5px rgba(0,0,0,.5)}
input.fc-film-seek::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fff;border:0;box-shadow:0 1px 5px rgba(0,0,0,.5)}
input.fc-film-seek:focus-visible{outline:2px solid #fff}
.fc-film-time{flex:0 0 auto;padding:0 4px;font:600 13px/1 "Plus Jakarta Sans",sans-serif;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap;
  text-shadow:0 1px 2px rgba(0,0,0,.5)}

/* captions, drawn above the bar from the track's active cues */
.fc-film-cc{position:absolute;left:8%;right:8%;bottom:66px;z-index:1;text-align:center;white-space:pre-line;pointer-events:none;
  font:600 clamp(13px,1.5vw,18px)/1.35 "Plus Jakarta Sans",sans-serif;color:#fff}
.fc-film-cc:empty{display:none}
.fc-loop.is-cc .fc-film-cc:not(:empty){display:block}
.fc-film-cc{text-shadow:0 0 4px #000,0 1px 3px #000}
.fc-loop:not(.is-cc) .fc-film-cc{display:none}

/* the end: Replay over the last frame; the bar stays */
.fc-film-replay{pointer-events:auto;position:absolute;left:50%;top:50%;transform:translate(-50%,-62%);z-index:3;display:none;align-items:center;gap:10px;
  min-height:48px;padding:0 22px 0 18px;border:0;border-radius:999px;background:#fff;color:#16191f;cursor:pointer;
  font:700 16px/1 "Plus Jakarta Sans",sans-serif;box-shadow:0 18px 40px -16px rgba(0,0,0,.6)}
.fc-film-replay .fc-po-ic{width:20px;height:20px;color:#0809ff}
.fc-film-replay:hover{box-shadow:0 22px 44px -16px rgba(8,9,255,.6)}
.fc-loop.is-ended .fc-film-replay{display:inline-flex}
.fc-loop.is-ended .fc-film-paused{opacity:0}
.fc-loop.is-ended video.fc-film{filter:brightness(.62)}

/* narrow panels: the scrub keeps the room; the time shows only where it fits */
@media only screen and (max-width:520px){
  .fc-film-ctl{gap:2px;padding:24px 4px 4px}
  .fc-film-time{display:none}
  .fc-film-cc{bottom:56px;font-size:13px}
}

/* full screen: the panel fills the screen, the film letterboxed, the bar along the foot */
.fc-loop:fullscreen{width:100vw;height:100vh;max-width:none;border-radius:0;background:#000;display:flex;align-items:center;justify-content:center;aspect-ratio:auto}
.fc-loop:fullscreen video.fc-film{width:100%;height:100%;object-fit:contain;border-radius:0;aspect-ratio:auto}
.fc-loop:fullscreen .fc-film-ctl{border-radius:0;padding:40px 18px 14px}
.fc-loop:fullscreen .fc-film-cc{bottom:84px;font-size:clamp(18px,2.2vw,30px)}
.fc-loop:-webkit-full-screen{width:100vw;height:100vh;background:#000}
.fc-loop:-webkit-full-screen video.fc-film{width:100%;height:100%;object-fit:contain}

/* phones: the bar fades with the speaker and close buttons once the film has played a moment untouched (style.css
   section 30, Q14), and comes back on the tap that pauses; paused or ended, it stays */
/* at every width since November 16, 2026 (the review call; Gavin: "what this should do is auto hide after you hit play ... the video
   controls should auto hide"; on the call the bar stayed up on the desktop and covered the foot of the picture).  The bar, the
   speaker and the close button fade 2.4 s after the film starts with no hand on it, and come back when the pointer moves over the
   film, on a touch, on a key's focus, and when the film pauses or ends.  The pointer itself hides with them. */
.fc-loop.is-idle:not(.is-ended):not(.is-paused) .fc-film-ctl{opacity:0;pointer-events:none}
#ajax-content-wrap .fc-loop.is-idle:not(.is-ended):not(.is-paused) .fc-film-ctl > *,.fc-loop.is-idle:not(.is-ended):not(.is-paused) .fc-film-ctl > *{opacity:0;pointer-events:none}
.fc-film-ctl > *{transition:opacity .45s}
.fc-film-btn{transition:transform .2s,opacity .45s}
.fc-loop.is-idle:not(.is-ended):not(.is-paused) .fc-film-btn{opacity:0;pointer-events:none}
.fc-loop.is-film.is-idle:not(.is-ended):not(.is-paused) video.fc-film{cursor:none}
@media (prefers-reduced-motion:reduce){ .fc-film-ctl,.fc-film-ctl > *{transition:none} }
