/* ─────────────────────────────────────────
   videos.css — Galeria de vídeos (retrato 9:16)
   Fazenda dos Pinheiros
───────────────────────────────────────── */

.video-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1020px;
  margin: 0 auto;
}

.vid-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* ── Moldura retrato ── */
.vid-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-gold-mid);
  background: var(--ink-mid);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}

.vid-card:hover .vid-frame {
  transform: translateY(-6px);
  border-color: var(--border-gold-strong);
  box-shadow:
    0 26px 62px rgba(0, 0, 0, 0.52),
    0 0 44px var(--lavender-glow);
}

.vid-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Véu para assentar o botão sobre o poster; some ao tocar */
.vid-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 14, 31, 0.18) 0%,
    rgba(19, 14, 31, 0) 34%,
    rgba(19, 14, 31, 0) 62%,
    rgba(19, 14, 31, 0.58) 100%
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--duration) var(--ease-out);
}

.vid-frame.is-playing::after {
  opacity: 0;
}

/* ── Botão de play ── */
.vid-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid var(--border-gold-strong);
  background: rgba(19, 14, 31, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--parchment);
  transition:
    transform var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}

.vid-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  fill: currentColor;
}

.vid-play:hover,
.vid-play:focus-visible {
  background: var(--moss);
  border-color: var(--amber);
  transform: translate(-50%, -50%) scale(1.08);
  outline: none;
}

/* Anel pulsante dourado */
.vid-play-ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--border-gold-mid);
  animation: vidPulse 2.6s var(--ease-out) infinite;
  pointer-events: none;
}

@keyframes vidPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.vid-frame.is-playing .vid-play {
  display: none;
}

/* ── Legenda (acima do vídeo) ── */
.vid-cap {
  order: -1;
  padding: 0 4px 16px;
  text-align: center;
}

.vid-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.vid-title em {
  font-style: italic;
  color: var(--lavender);
}

.vid-sub {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Responsivo ── */
@media (max-width: 900px) {
  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 640px;
  }
}

@media (max-width: 560px) {
  .video-gallery {
    grid-template-columns: 1fr;
    max-width: 340px;
  }
  .vid-play {
    width: 66px;
    height: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vid-play-ring {
    animation: none;
  }
  .vid-card:hover .vid-frame {
    transform: none;
  }
}
