/* intro/player.css: the narrated walkthrough player on /intro.php */
/* Sized so the picture, caption and controls fit one screen on a laptop without scrolling. */
.fli { max-width: max(640px, min(1100px, calc((100vh - 300px) * 1.777))); margin: 0 auto; }
.fli-stage { position: relative; aspect-ratio: 1283 / 722; background: #0f172a; border-radius: 14px; overflow: hidden; box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, .22); cursor: pointer; }
.fli-stage img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s ease; }
.fli-stage img.on { opacity: 1; }
/* The spotlight: a ring around the part being described, with everything else dimmed. */
.fli-box { position: absolute; border: 3px solid #01a8df; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .38); opacity: 0; pointer-events: none;
    transition: left .6s ease, top .6s ease, width .6s ease, height .6s ease, opacity .4s ease; }
.fli-box.on { opacity: 1; }
.fli-cover, .fli-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; color: #fff; cursor: default; }
.fli-cover { background: rgba(15, 23, 42, .55); }
.fli-end { background: rgba(15, 23, 42, .86); }
.fli-cover[hidden], .fli-end[hidden] { display: none; }
.fli-big { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.6rem; border: 0; border-radius: 999px; background: #01a8df; color: #fff; font: 700 1.1rem Nunito, sans-serif; cursor: pointer; box-shadow: 0 .5rem 1.5rem rgba(1, 168, 223, .45); }
.fli-big:hover { background: #0190bf; }
.fli-big::before { content: ''; border-style: solid; border-width: .5rem 0 .5rem .85rem; border-color: transparent transparent transparent #fff; }
.fli-end h2 { margin: 0; font-size: 1.6rem; color: #fff; }
.fli-end p { margin: 0; color: #cbd5e1; }
.fli-end a.fli-cta { display: inline-block; padding: .8rem 1.5rem; border-radius: .35rem; background: #01a8df; color: #fff; font-weight: 700; text-decoration: none; }
.fli-end a.fli-cta:hover { background: #0190bf; }
.fli-link { background: none; border: 0; color: #cbd5e1; text-decoration: underline; cursor: pointer; font: inherit; }
.fli-cap { min-height: 4.2rem; margin: 1rem 0 .5rem; padding: .9rem 1.1rem; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; font-size: 1.1rem; line-height: 1.45; color: #0f172a; }
.fli-bar { display: flex; gap: 4px; margin: .25rem 0 .75rem; }
.fli-seg { flex: 1; height: 6px; padding: 0; border: 0; border-radius: 3px; background: #cbd5e1; cursor: pointer; }
.fli-seg.done { background: #7dd3f0; }
.fli-seg.now { background: #01a8df; }
.fli-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.fli-ctl button { padding: .45rem .9rem; border: 1px solid #cbd5e1; border-radius: .35rem; background: #fff; color: #0f172a; font: 600 .9rem Nunito, sans-serif; cursor: pointer; }
.fli-ctl button:hover { border-color: #01a8df; color: #0190bf; }
.fli-ctl #fliPlay { min-width: 5rem; background: #01a8df; border-color: #01a8df; color: #fff; }
.fli-ctl #fliPlay:hover { background: #0190bf; color: #fff; }
.fli-count { margin-left: auto; font-size: .9rem; color: #64748b; }
@media (max-width: 640px) {
    .fli-cap { font-size: 1rem; min-height: 5.6rem; }
    .fli-box { border-width: 2px; }
    .fli-end h2 { font-size: 1.2rem; }
}
