/* Trailer section. Plain CSS on the page's own tokens (declared in main.css), so no Tailwind rebuild is needed. */
.trailer { background: var(--color-void, #0d0f13); }
.trailer .wrap { max-width: 1100px; }
.trailer .h2 { margin-bottom: clamp(20px, 3vw, 32px); }

.trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-line, #252a33);
  border-radius: var(--radius-card, 10px);
  background: var(--color-raise, #13161c);
}
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.trailer-play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.trailer-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease-out-soft, ease-out), filter 0.4s; filter: brightness(0.82); }
.trailer-play:hover img { transform: scale(1.025); filter: brightness(0.95); }

.trailer-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(64px, 9vw, 92px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--color-signal, #d7a04a);
  background: rgba(13, 15, 19, 0.55);
  backdrop-filter: blur(3px);
  transition: transform 0.3s var(--ease-out-soft, ease-out), background 0.3s;
}
.trailer-icon::before {
  content: "";
  position: absolute;
  left: 53%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.6em 0 0.6em 1em;
  border-color: transparent transparent transparent var(--color-signal, #d7a04a);
  font-size: clamp(18px, 2.6vw, 26px);
}
.trailer-play:hover .trailer-icon { transform: translate(-50%, -50%) scale(1.07); background: rgba(13, 15, 19, 0.75); }
.trailer-play:focus-visible { outline: 3px solid var(--color-signal, #d7a04a); outline-offset: -3px; }

.trailer-meta { margin-top: 14px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-dim, #a5a29b); }

@media (prefers-reduced-motion: reduce) {
  .trailer-play img, .trailer-icon { transition: none; }
  .trailer-play:hover img { transform: none; }
}
