/* The product's own pages in frames on the home page (static/frames.js, frames.py), and the line under the
   calendar. Colours are the tokens of variables.css. */
.shot--screen { position: relative; overflow: hidden; background: var(--bg); }
.shot--screen .shot__frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: var(--bg); opacity: 0; transition: opacity .3s ease; }
.shot--screen.is-framed .shot__frame { opacity: 1; }
/* A place's clip (static/frames.js, variant 2В): over the still, its own first frame; the live page fades in over it. */
.shot--screen > .shot__clip { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; display: block; }
/* The still goes once the frame over it is fully there: gone at once, the place would blink empty during the fade. */
.shot--screen.is-framed > picture { visibility: hidden; transition: visibility 0s .3s; }

/* "This works in the full demo": what a link inside a frame says instead of leaving it. */
.demo-note { position: absolute; z-index: 60; display: grid; gap: 8px; justify-items: start; max-width: min(320px, calc(100vw - 16px)); padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-size: 15px; line-height: 1.4; }
.demo-note a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--teal-btn); color: var(--white); font-weight: 600; font-size: 14px; text-decoration: none; }
.demo-note a::after { content: " \2192"; }
.demo-note a:hover { background: var(--teal-btn-hover); }
.demo-note { padding-right: 44px; }
.demo-note__close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.demo-note__close::before, .demo-note__close::after { content: ""; position: absolute; width: 14px; height: 2px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.demo-note__close::after { transform: rotate(-45deg); }
.demo-note__close:hover { background: var(--bg); }
.demo-note__close:focus-visible { outline: 2px solid var(--teal-btn); outline-offset: 2px; }

/* Under the calendar: the way to the holiday calendar. */
.cal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; margin-top: 16px; font-size: 15px; line-height: 1.5; }
.cal-foot__link { font-weight: 600; color: var(--teal-ink); text-underline-offset: 3px; }
.cal-foot__link::after { content: " \2192"; }

/* A place leaving one recorded page for another (play, screens/shim.js): blank until the next page is ready. */
.shot--screen.is-moving > picture { visibility: hidden; }

/* A film before a framed screen or a whole block (static/film.js, frames.FILMS). While it plays the place has the
   film's shape (--film-h, set by the script); at the end it eases into the product's, and the film fades off what
   is under it. */
.film-place { position: relative; }
.film-place.is-film, .film-place.is-easing { overflow: hidden; }
.film-place.is-film { height: var(--film-h) !important; }
.film-place.is-film.is-narrow { max-width: var(--film-w); margin-inline: auto; }
.film-place.is-easing { transition: height .5s ease, max-width .5s ease; }
.film { position: absolute; inset: 0; z-index: 2; background: var(--sand); transition: opacity .5s ease; }
.film.is-gone { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s ease, visibility 0s .5s; }
.film__video { display: block; width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.film__play { position: absolute; left: 50%; top: 50%; display: none; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--teal-btn); box-shadow: var(--shadow); cursor: pointer; }
.film__play svg { margin-left: 4px; }
.film.is-paused .film__play { display: grid; }
.film__play:hover { color: var(--teal-btn-hover); }
.film__line { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(var(--white-rgb), .55); }
.film__line span { display: block; height: 100%; background: var(--teal-btn); transform: scaleX(0); transform-origin: 0 50%; }

/* Under the place: the sound and a way past the film while it plays; after it, what to try and the film again. */
.film-bar { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; justify-content: space-between; gap: 10px 20px; min-height: 40px; margin-top: 14px; }
.film-bar--above { align-content: flex-end; margin: 0 0 18px; }
.film-bar__try { flex: 1 1 340px; margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.45; }
.film-bar__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 14px/1 var(--text); white-space: nowrap; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.film-bar__btn:hover { border-color: var(--ink); }
.film-bar__btn:focus-visible, .film__play:focus-visible { outline: 2px solid var(--teal-btn); outline-offset: 2px; }
.film-bar__btn svg { flex: none; }
.film-bar[data-state="film"] .film-bar__try, .film-bar[data-state="film"] .film-bar__again,
.film-bar[data-state="screen"] .film-bar__sound, .film-bar[data-state="screen"] .film-bar__skip { display: none; }
.film-bar__skip { margin-left: auto; }
@media (max-width: 699px) {
  .film-bar { max-width: 380px; margin-inline: auto; }
  .film-bar__try { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .film-place.is-easing, .film, .film.is-gone { transition: none; }
}

/* The film over the page behind the hero's "Zobacz film" (static/film-over.js, frames.HERO_FILM): the films' own
   player in a dialog, the film as large as the window allows in its own shape (9:16 on a phone), its buttons under
   it. The page under it is still while it is open. */
.film-over { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: rgba(var(--ink-rgb), .94); color: var(--ink); opacity: 0; transition: opacity .25s ease; }
.film-over[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.film-over.is-open { opacity: 1; }
.film-over::backdrop { background: transparent; }
.film-over__box { position: relative; width: min(100%, calc((100vh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: var(--sand); box-shadow: 0 24px 60px -20px rgba(var(--black-rgb), .6); }
.film-over--tall .film-over__box { width: auto; height: min(calc(100vh - 110px), calc((100vw - 32px) * 16 / 9)); aspect-ratio: 9 / 16; }
@supports (height: 100dvh) {
  .film-over__box { width: min(100%, calc((100dvh - 120px) * 16 / 9)); }
  .film-over--tall .film-over__box { height: min(calc(100dvh - 110px), calc((100vw - 32px) * 16 / 9)); }
}
.film-over__bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.film-over .film-bar__btn:focus-visible, .film-over .film__play:focus-visible { outline-color: var(--ring-on-deep); }
.film-over-open { overflow: hidden; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { .film-over { transition: none; } }
