body.is-watch {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  height: 100dvh;
}
.is-watch #header,
.is-watch #footer,
.is-watch #mobile-nav,
.is-watch .skip {
  display: none !important;
}
.is-watch #main {
  margin: 0;
  padding: 0;
  max-width: none;
}
.cinema {
  position: fixed;
  inset: 0;
  height: 100dvh;
  width: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
  font-family: system-ui, sans-serif;
  outline: none;
  isolation: isolate;
}
.cinema > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.cinema > video::cue {
  background: #000b;
  color: #fff;
  font-size: clamp(16px, 2vw, 28px);
}
.cinema-top,
.cinema-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  transition: opacity 0.2s;
}
.cinema-top {
  top: 0;
  display: flex;
  align-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 50px
    max(24px, env(safe-area-inset-left));
  background: linear-gradient(#000c, transparent);
  gap: 20px;
}
.cinema-top h1 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  text-align: center;
  flex: 1;
  padding-right: 64px;
}
.cinema-top.cinema-has-download h1 {
  padding-right: 0;
}
.cinema-bottom {
  bottom: 0;
  padding: 56px max(24px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  background: linear-gradient(transparent, #000d);
}
.cinema-times {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.cinema input[type="range"] {
  accent-color: #438ffe;
  cursor: pointer;
  min-height: 28px;
}
#cinema-seek {
  width: 100%;
  margin: 0;
  display: block;
}
.cinema-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.cinema-button {
  background: none;
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
  padding: 7px;
  text-decoration: none;
}
.cinema-button svg {
  width: 28px;
  height: 28px;
}
.cinema-button small {
  position: absolute;
  font-size: 10px;
  top: 20px;
  left: 17px;
}
.cinema-button:hover {
  background: #ffffff20;
}
.cinema-button:focus-visible,
.cinema select:focus-visible,
.cinema input:focus-visible {
  outline: 2px solid #8cbeff;
  outline-offset: 3px;
}
#cinema-volume {
  width: 84px;
}
.cinema-spacer {
  flex: 1;
}
.cinema-next small {
  display: none;
}
.cinema-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
  padding: 80px 24px 160px;
  text-align: center;
}
.cinema-center button {
  pointer-events: auto;
  color: #fff;
  background: #ffffff18;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  cursor: pointer;
}
#cinema-start {
  width: 76px;
  height: 76px;
  padding: 22px;
}
#cinema-start svg {
  width: 32px;
  height: 32px;
}
#cinema-status {
  max-width: 500px;
  color: #ddd;
  font-size: 15px;
}
#cinema-retry {
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
}
.cinema-settings {
  position: absolute;
  z-index: 4;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(112px, calc(env(safe-area-inset-bottom) + 100px));
  background: #17191ef5;
  box-shadow: 0 8px 36px #0008;
  border: 1px solid #ffffff18;
  border-radius: 12px;
  padding: 16px 20px;
  width: 320px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
}
.cinema-settings-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cinema-settings label {
  display: block;
  font-size: 13px;
  color: #bdc4ce;
  margin: 12px 0;
}
.cinema-settings select {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: #252830;
  border: 1px solid #ffffff20;
  color: white;
  padding: 10px;
  border-radius: 7px;
}
.cinema-settings p {
  font-size: 12px;
  color: #a3adba;
  line-height: 1.5;
}
.cinema-save-status {
  position: absolute;
  top: 100px;
  left: 24px;
  right: 24px;
  z-index: 4;
  font-size: 13px;
  text-align: center;
  color: #ddd;
  background: #181a20df;
  padding: 10px;
  border-radius: 8px;
}
.cinema-hidden-controls .cinema-top,
.cinema-hidden-controls .cinema-bottom {
  opacity: 0;
  pointer-events: none;
}
.cinema-hidden-controls {
  cursor: none;
}
.cinema:focus-within .cinema-top,
.cinema:focus-within .cinema-bottom {
  transition: opacity 0.2s;
}
.cinema [hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .cinema-top {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }
  .cinema-top h1 {
    font-size: 13px;
    padding-right: 44px;
  }
  .cinema-bottom {
    padding-left: 12px;
    padding-right: 12px;
  }
  .cinema-controls {
    flex-wrap: wrap;
    gap: 1px;
  }
  .cinema-button {
    width: 40px;
    height: 44px;
    padding: 7px;
  }
  .cinema-button svg {
    width: 24px;
    height: 24px;
  }
  #cinema-volume,
  .cinema-next {
    display: none;
  }
  .cinema-settings {
    right: 16px;
    bottom: 108px;
  }
  .cinema-times {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cinema-top,
  .cinema-bottom {
    transition: none;
  }
}

.cinema-quality-button {
  width: auto;
  min-width: 52px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .cinema-quality-button {
    width: auto;
    min-width: 48px;
    padding: 7px 5px;
    font-size: 11px;
  }
}
