.watch-film {
  position: absolute;
  inset: auto auto clamp(16px, 2vw, 32px) clamp(16px, 2vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 18px 5px 5px;
  border: 2px solid #fffdf9;
  border-radius: 32px;
  color: #fff;
  background: #123a4a;
  font: 760 clamp(15px, 1.15vw, 17px)/1.15 Manrope, sans-serif;
  cursor: pointer;
}
.film-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #bd3029;
  color: white;
}
.film-icon svg { width: 26px; height: 26px; margin-left: 2px; }
.film-time { color: #c2deeb; font-size: 13px; font-variant-numeric: tabular-nums; border-left: 1px solid #75939e; padding-left: 12px; }
.watch-film:hover { background: #204e60; }
.watch-film:focus-visible, #film-close:focus-visible { outline: 3px solid white; outline-offset: 2px; box-shadow: 0 0 0 6px #14394a; }
html:has(#film-viewer[open]) { overflow: hidden; }
#film-viewer {
  width: min(960px, calc(100vw - 32px), calc((100dvh - 100px) * 1.7778));
  max-width: none;
  margin: auto;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #102f41;
  color: white;
}
#film-viewer::backdrop { background: rgb(7 20 27 / 85%); }
#film-close { position: absolute; z-index: 1; inset: 8px 8px auto auto; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(12 32 42 / 80%); color: white; cursor: pointer; }
#film-close:hover { background: #295367; }
#film-viewer video { width: 100%; aspect-ratio: 16/9; display: block; background: #080e11; }
.film-error { padding: 14px 18px; }
.film-error a { color: white; }
@media print { .watch-film, #film-viewer { display: none; } }
