/* Seção "Vídeos" da home + lightbox de reprodução. Escrito à mão (não faz parte
   do build Tailwind reaproveitado do Next em site.css — ver includes/helpers.php
   e templates/home), usando as mesmas variáveis de marca (--brand-*) definidas
   em site.css pra ficar visualmente consistente com o resto do site. */

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.video-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 40px rgb(1 1 1 / 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgb(1 1 1 / 0.16);
}
.video-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-primary-light), 0 18px 50px rgb(1 1 1 / 0.16);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-orange));
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255 255 255 / 0.92);
  color: var(--brand-purple);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgb(1 1 1 / 0.3);
  transition: transform 0.25s ease, background 0.25s ease;
}
.video-card:hover .video-play-btn,
.video-card:focus-visible .video-play-btn {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}

.video-info {
  padding: 18px 20px 22px;
}
.video-info h3 {
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--brand-ink);
  margin: 0 0 6px;
}
.video-info p {
  font-family: var(--font-nunito), "Nunito", sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--brand-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lightbox */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(1 1 1 / 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 0;
  width: 100%;
  height: 100%;
}

.video-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 1100px;
  z-index: 1;
}

.video-modal-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgb(1 1 1 / 0.55);
}
.video-modal-stage iframe,
.video-modal-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(1 1 1 / 0.55);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.video-modal-close:hover,
.video-modal-close:focus-visible { background: rgb(1 1 1 / 0.8); }

body.video-modal-open { overflow: hidden; }
