.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.intro-play {
  border: 1px solid #26637050;
  border-radius: 30px;
  background: #f0faf66e;
  padding: 10px 16px;
  font-size: 11px;
}
.intro-play span {
  margin-right: 6px;
  font-size: 9px;
}
.intro-play:hover {
  background: #f0faf6;
}
.intro-play:disabled {
  opacity: 0.4;
  cursor: wait;
}
.cinema {
  --cinema-bar: 12vh;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  color: #f2f2e8;
}
.cinema[hidden] {
  display: none;
}
.cinema-active .ocean-app {
  min-height: 0;
}
.cinema-active .topbar,
.cinema-active .scene-title,
.cinema-active .scene-note,
.cinema-active .control-deck,
.cinema-active .footer {
  visibility: hidden;
}
.cinema-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--cinema-bar);
  background: #070b0c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  gap: 20px;
  transition: transform 650ms cubic-bezier(0.2, 0.65, 0.3, 1);
}
.cinema-bar-top {
  top: 0;
  transform: translateY(-100%);
}
.cinema-bar-bottom {
  bottom: 0;
  transform: translateY(100%);
}
.cinema-active .cinema-bar {
  transform: translateY(0);
}
.cinema-brand {
  font-size: 10px;
  letter-spacing: 2.7px;
  font-weight: 600;
}
.cinema-brand i {
  color: #697e80;
  padding: 0 12px;
  font-style: normal;
}
.cinema-edition {
  font-size: 9px;
  letter-spacing: 2px;
  color: #96a9aa;
}
.cinema-shot {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #b7c5c1;
  min-width: 260px;
}
.cinema-clock {
  min-width: 110px;
  text-align: right;
  font-size: 10px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  color: #96a9aa;
}
.cinema-actions {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}
.cinema-actions button {
  border: 1px solid #5a6c6b;
  background: transparent;
  color: #f2f2e8;
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 11px;
  white-space: nowrap;
}
.cinema-actions button:hover {
  background: #203333;
  border-color: #a5c5bf;
}
.cinema-actions button span {
  margin-left: 13px;
}
.cinema-actions button[aria-pressed='true'] {
  background: #203333;
}
.cinema:not([hidden]) .cinema-actions {
  visibility: hidden;
}
.cinema-active .cinema:not([hidden]) .cinema-actions {
  visibility: visible;
}
.cinema-progress-track {
  position: absolute;
  height: 2px;
  bottom: 0;
  left: 0;
  right: 0;
  background: #233132;
}
#cinema-progress {
  height: 100%;
  background: #90bfb0;
  transform-origin: left;
  transform: scaleX(0);
}
.cinema-dip {
  position: absolute;
  inset: 0;
  background: #070b0c;
  opacity: 1;
}
.cinema-vignette {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 45%,
    #02171a38 100%
  );
  transition: opacity 500ms ease;
}
.cinema-active .cinema-vignette {
  opacity: 1;
}
.cinema-title {
  position: absolute;
  left: 5vw;
  bottom: calc(var(--cinema-bar) + 5vh);
  text-shadow: 0 3px 30px #00273366;
  opacity: 0;
}
.cinema-title > span {
  font-size: 9px;
  letter-spacing: 3px;
  color: #d7e9db;
}
.cinema-title h2 {
  font-size: clamp(35px, 4.7vw, 78px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -3px;
  margin: 20px 0 18px;
}
.cinema-title p {
  font-size: 12px;
  letter-spacing: 1px;
  margin: 0;
  color: #d6e6db;
}
@media (max-width: 850px) {
  .cinema-edition,
  .cinema-clock {
    display: none;
  }
  .cinema-shot {
    min-width: 0;
    font-size: 8px;
    letter-spacing: 0.9px;
  }
  .cinema-brand {
    font-size: 9px;
    letter-spacing: 1.8px;
  }
  .cinema-bar {
    gap: 10px;
  }
  .cinema-actions button {
    padding: 9px 12px;
    font-size: 10px;
  }
}
@media (max-width: 650px) {
  .header-actions {
    gap: 10px;
  }
  .intro-play {
    padding: 8px 10px;
    font-size: 10px;
  }
  .header-actions .back-link {
    display: none;
  }
  .cinema-bar-bottom {
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 7px;
  }
  .cinema-shot {
    width: 100%;
    text-align: center;
    font-size: 7px;
  }
  .cinema-actions button {
    padding: 6px 14px;
    min-height: 28px;
  }
  .cinema-title {
    left: 6vw;
    bottom: calc(var(--cinema-bar) + 6vh);
  }
  .cinema-title h2 {
    font-size: 39px;
    letter-spacing: -1.5px;
    margin: 13px 0;
  }
  .cinema-title > span {
    font-size: 7px;
    letter-spacing: 1.8px;
  }
  .cinema-title p {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cinema-bar,
  .cinema-vignette {
    transition: none;
  }
}
/* Keep the return to free view usable on a short landscape screen, too. */
@media (orientation: landscape) and (max-height: 540px) {
  .ocean-app {
    min-height: 0;
  }
}
