/* ==========================================================================
   Showreel — Full-width YouTube facade with play/pause overlay toggle
   ========================================================================== */

/* ── Section ─────────────────────────────────────────────────────────────── */
.showreel-section {
  padding: 0;
  background: var(--color-noir, #0D0D0D);
}

.showreel-section-inner {
  max-width: none;
  margin: 0;
}

/* ── Facade Container ────────────────────────────────────────────────────── */
.showreel-container {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  max-width: none;
  margin: 0;
  cursor: pointer;
}

/* ── Poster ──────────────────────────────────────────────────────────────── */
.showreel-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 400ms var(--ease-out);
}

/* Placeholder gradient when no poster image is provided */
.showreel-poster-placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      155deg,
      #1a1410 0%,
      #12100e 35%,
      #0d0d0d 100%
    );
}

/* ── Dark Overlay ────────────────────────────────────────────────────────── */
.showreel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: opacity 500ms var(--ease-out);
}

/* ── Overlay Text ────────────────────────────────────────────────────────── */
.showreel-overlay-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: rgba(255, 255, 255, 0.70);
}

.showreel-overlay-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}

/* ── Play Button ─────────────────────────────────────────────────────────── */
.showreel-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-out);
}

.showreel-container:hover .showreel-play {
  transform: scale(1.08);
  box-shadow: var(--shadow-accent-glow), var(--shadow-lg);
}

.showreel-play svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 3px; /* optical centering for triangle */
}

.showreel-play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ── YouTube player wrapper (injected by showreel-facade.js) ─────────────── */
.showreel-player-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.showreel-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Has-video State — poster hidden permanently ─────────────────────────── */
.showreel-container.has-video .showreel-poster,
.showreel-container.has-video .showreel-poster-placeholder {
  opacity: 0;
  pointer-events: none;
}

/* ── Playing State — overlay hidden ──────────────────────────────────────── */
.showreel-container.playing .showreel-overlay {
  opacity: 0;
  pointer-events: none;
}

/* ── Paused State — overlay visible (clickable to resume) ────────────────── */
.showreel-container.has-video:not(.playing) .showreel-overlay {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.45);
}

/* ── Reduced Motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .showreel-overlay {
    transition: none;
  }
}
