/* The stage reserves the CRT status line and footer in both layouts. */
.stage.trailer-ready {
  inset: calc(var(--inset-y) + 2rem) 0 calc(var(--inset-y) + 2.8rem);
}
.trailer-ready .identity {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: clamp(4px, 1.25vmin, 14px);
  animation: none;
}
.trailer-ready .release { margin: 0; }
.trailer-ready.is-open .identity { grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; }
.trailer-ready.is-open h1 { width: min(66%, 85svh); }
.trailer-slot { width: 100%; display: grid; place-items: center; min-height: 0; }
.trailer-ready.is-open .trailer-slot { align-self: stretch; container-type: size; }
.trailer-frame {
  position: relative;
  width: 13rem; height: 44px; max-width: 90%; overflow: hidden;
  background: #0b268c; border: 1px solid var(--green); color: var(--green);
  pointer-events: auto;
}
.trailer-ready.is-open .trailer-frame {
  width: min(89cqw, 172cqh, 70rem); height: auto; aspect-ratio: 16 / 9;
  background: #07110e; box-shadow: 0 2px 0 #05114f;
}
.trailer-frame:has(button:focus-visible) { outline: 2px solid #c4ffc5; outline-offset: 2px; }
.trailer-toggle {
  position: absolute; z-index: 1; inset: 0; padding: 0 .75rem;
  display: flex; justify-content: center; align-items: center; gap: .6em;
  color: var(--green); background: transparent; border: 0; cursor: pointer;
  white-space: nowrap; font: inherit; font-size: clamp(.85rem, 1.7vmin, 1.05rem); letter-spacing: .03em;
}
.trailer-toggle::before {
  content: ""; width: .65em; height: .8em; background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.trailer-toggle:hover, .trailer-toggle:focus-visible { color: #cdffd1; background-color: #163986; }
.trailer-ready.is-open .trailer-toggle {
  inset: 0 0 auto auto; width: 44px; height: 44px; padding: 0;
  background: rgb(2 13 9 / 85%);
}
.trailer-ready.is-open .trailer-toggle::before, .trailer-ready.is-open .trailer-toggle::after {
  content: ""; position: absolute; width: 16px; height: 2px; background: currentColor;
  clip-path: none; transform: rotate(45deg);
}
.trailer-ready.is-open .trailer-toggle::after { transform: rotate(-45deg); }
.trailer-ready.is-open .play-label { display: none; }
.trailer-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
#trailer-panel, #trailer-panel video { width: 100%; height: 100%; }
#trailer-panel video { display: block; object-fit: contain; }
#trailer-panel [hidden] { display: none; }
.trailer-error {
  position: absolute; inset: 44px 1rem 0; color: #dcffe3; text-align: center;
  font: .95rem/1.4 ui-monospace, monospace;
}
@media (max-height: 450px) and (orientation: landscape) {
  .stage.trailer-ready { inset-block: max(20px, var(--inset-y)) max(56px, calc(var(--inset-y) + 34px)); }
  .trailer-ready.is-open h1 { width: min(42%, 49svh); }
  .trailer-ready .identity { gap: 3px; }
}

.trailer-ready.is-closing .trailer-toggle { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .trailer-ready:not(.is-open) h1 .wordmark { animation: osd-jitter 10.7s steps(1, end) infinite; }
}
