.trailer-trigger {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}
.trailer-trigger > span:last-child { text-decoration: underline; text-underline-offset: 5px; }
.trailer-duration { color: var(--muted); }
.trailer-play-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--ink);
  background: var(--mint);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 #000;
  transform: rotate(-5deg);
  transition: transform .18s;
}
.trailer-trigger:hover .trailer-play-icon { transform: rotate(0) translateY(-2px); }
.hero-actions { flex-wrap: wrap; }
html.trailer-is-open { overflow: hidden; }
.trailer-dialog {
  color: var(--ink);
  background: var(--paper);
  border: var(--line);
  padding: 20px 24px 24px;
  width: min(800px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-shadow: 10px 10px 0 #0007;
}
.trailer-dialog::backdrop { background: #08191de8; backdrop-filter: blur(5px); }
.trailer-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.trailer-header .eyebrow { font-size: .65rem; margin: 0; }
.trailer-header form { margin: 0; }
.trailer-close {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: .8rem;
  font-weight: 700;
}
.trailer-close:hover { background: var(--mint); }
.trailer-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.trailer-screen { min-width: 0; text-align: center; }
.trailer-screen video {
  display: block;
  width: auto;
  height: min(650px, calc(100vh - 144px));
  height: min(650px, calc(100dvh - 144px));
  max-width: 100%;
  aspect-ratio: 886 / 1920;
  object-fit: contain;
  margin: auto;
  background: var(--ink);
  border: 2px solid var(--ink);
}
.trailer-copy h2 { font-size: clamp(2.6rem, 4vw, 3.6rem); }
.trailer-copy h2 span { display: inline-block; color: #b44a00; transform: rotate(-3deg); margin-top: 7px; }
.trailer-copy > p:not(.trailer-note) { margin-top: 24px; max-width: 270px; font-size: 1.05rem; }
.trailer-beta { margin-top: 30px; width: 100%; max-width: 270px; font-size: 1.1rem; justify-content: space-between; }
.trailer-walkthrough { display: block; width: fit-content; min-height: 44px; padding-block: 15px; margin-top: 6px; font-size: .85rem; font-weight: 700; }
.trailer-copy .trailer-note { font-size: .72rem; line-height: 1.5; max-width: 270px; margin-top: 14px; }
.trailer-error { margin-top: 12px; border: 2px solid var(--ink); background: var(--mint); padding: 14px; font-size: .8rem; }
.trailer-retry { min-height: 44px; margin-top: 8px; border: 2px solid var(--ink); background: var(--paper); padding: 8px 16px; font-weight: 700; }
@media (max-width: 600px) {
  .trailer-dialog { width: calc(100% - 24px); padding: 12px 16px 16px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .trailer-header { margin-bottom: 12px; gap: 10px; }
  .trailer-header .eyebrow { font-size: .57rem; max-width: 175px; }
  .trailer-layout { display: flex; flex-direction: column; gap: 16px; }
  .trailer-screen { width: 100%; }
  .trailer-screen video { height: min(53vh, 520px); height: min(53dvh, 520px); }
  .trailer-copy { width: 100%; text-align: center; }
  .trailer-copy h2 { font-size: 1.55rem; }
  .trailer-copy h2 br { display: none; }
  .trailer-copy h2 span { margin: 0 0 0 4px; }
  .trailer-copy > p:not(.trailer-note) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
  .trailer-beta { max-width: none; margin-top: 14px; min-height: 48px; }
  .trailer-walkthrough { margin: 8px auto 0; padding-block: 10px; }
  .trailer-copy .trailer-note { max-width: none; margin-top: 2px; font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .trailer-play-icon { transition: none; }
  .trailer-trigger:hover .trailer-play-icon { transform: rotate(-5deg); }
}
@media (max-width: 600px) and (max-height: 650px) {
  .trailer-screen video { height: 40vh; height: 40dvh; }
  .trailer-layout { gap: 10px; }
  .trailer-copy h2 { font-size: 1.4rem; }
  .trailer-beta { margin-top: 10px; }
  .trailer-walkthrough { margin-top: 4px; }
}
@media (min-width: 601px) and (max-height: 550px) {
  .trailer-dialog { padding: 12px 20px 16px; }
  .trailer-header { margin-bottom: 12px; }
  .trailer-screen video { height: calc(100vh - 132px); height: calc(100dvh - 132px); }
  .trailer-copy h2 { font-size: 1.9rem; }
  .trailer-copy > p:not(.trailer-note) { margin-top: 12px; font-size: .85rem; }
  .trailer-beta { margin-top: 14px; padding-block: 11px; font-size: 1rem; }
  .trailer-walkthrough { margin-top: 4px; padding-block: 10px; }
  .trailer-copy .trailer-note { margin-top: 4px; font-size: .62rem; }
}

.trailer-loading { margin-top: 10px; font-size: .8rem; }
