.vnv-caption-frame {
  container-type: inline-size;
}

.vnv-caption-frame video::cue {
  color: #fff;
  background-color: rgba(12, 18, 22, .9);
  font-family: system-ui, sans-serif;
  font-weight: 550;
  font-size: clamp(13px, 2.55cqi, 25px);
  text-shadow: 0 1px 2px #111;
}

.vnv-caption-frame video:fullscreen::cue {
  font-size: 4.4vh;
}

.vnv-film-captions { margin-top: .5rem; }
.vnv-film-captions [hidden], .vnv-film-captions[hidden] { display: none; }
.vnv-film-captions button {
  appearance: none;
  border: 1px solid currentColor;
  border-radius: .4rem;
  background: transparent;
  color: #263943;
  padding: .35rem .7rem;
  min-height: 36px;
  font: 600 .85rem/1.3 system-ui, sans-serif;
  cursor: pointer;
}
.vnv-film-captions button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.vnv-film-captions button[aria-pressed="true"] { color: #fff; background: #203238; border-color: #203238; }
.vnv-film-captions__text {
  display: grid;
  align-content: center;
  margin-top: .4rem;
  padding: .35em .65em;
  min-height: 3.5em;
  box-sizing: border-box;
  border-radius: .4rem;
  color: #fff;
  background: #172327;
  font: 500 clamp(14px, 2.4cqi, 21px)/1.35 system-ui, sans-serif;
  text-align: center;
  white-space: pre-line;
}
