.overlay.theater {
  padding: 0;
  overflow: hidden;
  background: #000;
}

.overlay-card.player, .overlay-card.embed-player {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  color: #f6f8fc;
}

.embed-player {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.embed-player-title {
  margin: 0;
  min-height: 64px;
  padding: 20px 72px 20px 24px;
  font-size: 18px;
}

.embed-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.player video, .watch-chrome {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.watch-chrome { pointer-events: none; opacity: 1; transition: opacity .22s ease; }
.player.chrome-hidden { cursor: none; }
.player.chrome-hidden .watch-chrome { opacity: 0; }
.player.chrome-hidden .watch-header, .player.chrome-hidden .watch-footer, .player.chrome-hidden .watch-status { pointer-events: none; }
.watch-header, .watch-footer {
  position: absolute;
  right: 0;
  left: 0;
  pointer-events: auto;
  padding-right: 4%;
  padding-left: 4%;
}

.watch-header { top: 0; padding-top: 25px; padding-bottom: 30px; background: linear-gradient(rgba(0,0,0,.72),transparent); }
.watch-footer { bottom: 0; padding-top: 70px; padding-bottom: 28px; background: linear-gradient(transparent,rgba(0,0,0,.79) 46%,rgba(0,0,0,.96)); }
.watch-title { font-size: 30px; line-height: 1.1; font-weight: 800; margin: 0 0 16px; }
.watch-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 43px;
  height: 43px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
}
.watch-button:hover, .watch-button[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.watch-button svg { width: 25px; height: 25px; }
.watch-button#toggle svg { width: 29px; height: 29px; }
.watch-header .watch-back.close {
  position: static;
  padding: 0 10px 0 7px;
  background: transparent;
  font-weight: 700;
  font-size: 15px;
}
.watch-header .watch-back:hover { background: rgba(255,255,255,.14); }
.watch-back span { margin-left: 7px; }
.watch-timeline, .watch-controls, .watch-group, .watch-volume { display: flex; align-items: center; }
.watch-timeline { margin-bottom: 7px; }
.watch-controls { justify-content: space-between; }
.watch-group > * + * { margin-left: 10px; }
.watch-skip-number { position: absolute; top: 15px; font-size: 10px; font-weight: 800; line-height: 1; }
.watch-timeline span { flex-shrink: 0; margin-left: 17px; min-width: 92px; text-align: right; color: #e2e8f0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.watch-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 18px;
  margin: 0;
  background: none;
  cursor: pointer;
}
.watch-range:disabled { cursor: default; }
.watch-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg,#6ee6cb var(--fill,0%),rgba(255,255,255,.34) var(--fill,0%)); }
.watch-range::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg,#6ee6cb var(--fill,0%),rgba(255,255,255,.34) var(--fill,0%)); }
.watch-range::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4.5px; border-radius: 50%; border: 0; background: #f6f8fc; }
.watch-range::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; border: 0; background: #f6f8fc; }
.watch-volume .watch-range { width: 74px; margin: 0 4px 0 2px; }
.watch-language-label { margin-left: 9px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.captions-on svg { color: #6ee6cb; }
.watch-captions {
  position: absolute;
  z-index: 2;
  right: 9%;
  bottom: 160px;
  left: 9%;
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-size: clamp(17px,2.2vw,35px);
  font-weight: 700;
  line-height: 1.33;
  pointer-events: none;
}
.watch-captions div { display: table; margin: 4px auto; padding: 1px 8px; border-radius: 3px; white-space: pre-line; background: rgba(0,0,0,.82); text-shadow: 0 1px 2px #000; }
.player.chrome-hidden .watch-captions { bottom: 8%; }
.watch-language-menu {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 114px;
  display: flex;
  padding: 17px;
  border: 1px solid rgba(220,235,255,.22);
  border-radius: 13px;
  background: #131c2a;
  box-shadow: 0 12px 32px rgba(0,0,0,.65);
}
.watch-language-menu > div { min-width: 158px; }
.watch-language-menu > div + div { margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(220,235,255,.14); }
.watch-language-menu h3 { padding: 0 8px; margin: 0 0 8px; font-size: 17px; }
.watch-option { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 4px 8px; color: #e5edf7; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 14px; }
.watch-option:hover, .watch-option[aria-pressed="true"] { background: #26364b; }
.watch-option-check { display: inline-flex; align-items: center; width: 23px; margin-right: 6px; color: #6ee6cb; flex-shrink: 0; }
.watch-option-check svg { width: 17px; height: 17px; }
.watch-no-captions { max-width: 148px; color: #abb6c7; font-size: 14px; margin: 8px; }
.watch-status {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  max-width: 86%;
  padding: 12px 18px;
  border-radius: 9px;
  background: rgba(10,15,24,.92);
  color: #edf5fc;
  text-align: center;
  transform: translate(-50%,-50%);
  pointer-events: auto;
}
.watch-status a { display: block; margin-top: 7px; color: #6ee6cb; }

@media (max-width: 640px) {
  .watch-header { padding-top: 12px; }
  .watch-footer { padding-bottom: 15px; padding-bottom: calc(15px + env(safe-area-inset-bottom)); }
  .watch-title { font-size: 24px; margin-bottom: 12px; }
  .watch-button { min-width: 39px; height: 41px; padding: 0 5px; }
  .watch-group > * + * { margin-left: 4px; }
  .watch-volume .watch-range, .watch-language-label { display: none; }
  .watch-timeline span { margin-left: 9px; min-width: 73px; font-size: 11px; }
  .watch-language-menu { left: 4%; right: 4%; bottom: 124px; padding: 12px; }
  .watch-language-menu > div { flex: 1 1 50%; min-width: 0; }
  .watch-language-menu > div + div { margin-left: 8px; padding-left: 8px; }
  .watch-option { padding: 4px; }
  .watch-option-check { width: 16px; margin-right: 3px; }
  .watch-captions { bottom: 133px; }
}

@media (prefers-reduced-motion: reduce) {
  .watch-chrome { transition: none; }
}
