/* trailer landing page — layers on top of home.css, reuses its palette,
   nav, footer, buttons and subscribe-form styles */

.trailer-head {
  width: 100%;
  padding: 7vh 8vw 4vh;
  text-align: center;
}

.trailer-title {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.trailer-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-style: italic;
  color: var(--ink-dim);
  max-width: 44ch;
  margin: 0 auto;
  line-height: 1.5;
  text-wrap: balance;
}

/* player */
.trailer-stage {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6vw;
}

.trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  box-shadow: 0 24px 60px -28px rgba(42, 33, 23, 0.55);
}

.trailer-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* click-to-play overlay — sits on the poster, gone once playback starts */
.trailer-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(
    to bottom,
    rgba(20, 16, 12, 0.15),
    rgba(20, 16, 12, 0.45)
  );
  transition: opacity 0.35s ease;
}

.trailer-frame.is-playing .trailer-play {
  opacity: 0;
  pointer-events: none;
}

.trailer-play-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 8vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 230, 0.7);
  background: rgba(246, 241, 230, 0.12);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.trailer-play-ring svg {
  width: 42%;
  height: 42%;
  fill: var(--paper);
  transform: translateX(8%); /* optically centre the triangle in the ring */
}

.trailer-play:hover .trailer-play-ring,
.trailer-play:focus-visible .trailer-play-ring {
  background: rgba(246, 241, 230, 0.24);
  transform: scale(1.06);
}

.trailer-play:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.trailer-play-label {
  font-family: var(--serif-en);
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* subscribe block */
.trailer-join {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 8vh 6vw 9vh;
  text-align: center;
}

.trailer-all-stories {
  display: inline-block;
  margin-top: 2.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.trailer-all-stories:hover {
  border-bottom-color: var(--purple);
}

@media (max-width: 640px) {
  .trailer-head {
    padding: 5vh 7vw 3.5vh;
  }

  .trailer-stage {
    padding: 0;
  }

  .trailer-frame {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trailer-play,
  .trailer-play-ring {
    transition: none;
  }
}
