.teaser-player {
  box-sizing: border-box;
  width: min(94vw, 1080px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 1px solid #747A80;
  background: #090D12;
  color: #EFE8D8;
  overflow: auto;
  box-shadow: 0 24px 90px #000B;
}
.teaser-player::backdrop {
  background: #03070DF2;
}
.teaser-player > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid #39424D;
}
.teaser-player h2 {
  margin: 0;
  color: #EFE8D8;
  font: 700 clamp(.9rem, 1.5vw, 1.25rem)/1.3 "Archivo", sans-serif;
  text-transform: none;
  letter-spacing: 0;
}
/* v1.97.0: the film's own note ("World scenes visualized") as page text under the title, only while The Toll Bridge is
   in the player. Title and note together are no taller than the 44px Close button beside them, so the header, the
   film and the dialog are the size they were, with the note or without it. */
.teaser-player-titles {
  min-width: 0;
}
.teaser-player-note {
  margin: 2px 0 0;
  color: #B9C0CC;
  font: 400 12px/1.3 "Archivo", sans-serif;
  letter-spacing: .02em;
}
.teaser-player-note[hidden] {
  display: none;
}
.teaser-player-close {
  min-width: 64px;
  min-height: 44px;
  padding: .5rem .8rem;
  border: 1px solid #747A80;
  background: #1B2430;
  color: #EFE8D8;
  font: 700 .85rem/1 "Archivo", sans-serif;
  cursor: pointer;
}
.teaser-player-close:focus-visible {
  outline: 3px solid #F4C552;
  outline-offset: 3px;
}
/* v1.92.0: the band /clips/ gives its player. Every film this player plays on the home page is 9:16 (720 x 1280).
   The box is as wide as the picture and 64px taller, with the picture pinned to its top, so the browser's control
   bar is drawn under the film and not on it (the film's own note sits in its last tenth). The whole box is never
   taller than the 76vh the player had, so the dialog is no taller than before: the picture gives up the band's
   height. --room is the dialog's inner width (its 94vw or 1080px, less the two 1px borders); what the film leaves of
   it stays black, as the box's own sides were, by way of the two side borders. */
.teaser-player > video {
  --band: 64px;
  --room: min(94vw - 2px, 1078px);
  --film: min(var(--room), (76vh - var(--band)) * 9 / 16);
  display: block;
  box-sizing: content-box;
  width: var(--film);
  height: calc(var(--film) * 16 / 9 + var(--band));
  border: solid #000;
  border-width: 0 calc((var(--room) - var(--film)) / 2);
  background: #000;
  object-fit: contain;
  object-position: 50% 0;
}
/* In full screen the browser sizes the box to the screen. The side borders and the pin belong to the dialog only:
   without this the film would be drawn narrower there and against the top. Two rules, so that a browser that knows
   only one of the two names still reads its own. */
.teaser-player > video:fullscreen {
  border-width: 0;
  object-position: 50% 50%;
}
.teaser-player > video:-webkit-full-screen {
  border-width: 0;
  object-position: 50% 50%;
}
/* Chromium draws a shade behind its controls, about 110px tall: taller than the band, so its top 46px would lie on
   the film and dim the film's own note. Here the bar's buttons, time and scrubber all sit on the black band, so the
   shade has nothing to do: it is taken off while the film is in the dialog. In full screen, where the bar is back on
   the picture, the browser's shade stays. A rule of its own: a browser without this name drops it and nothing else. */
.teaser-player > video:not(:fullscreen)::-webkit-media-controls-panel {
  background-image: none;
}
.teaser-player-message {
  margin: 0;
  padding: .5rem 1rem;
  color: #EFE8D8;
  font: 400 .85rem/1.4 "Archivo", sans-serif;
}
.teaser-player-message:empty {
  display: none;
}
