/* ROW */
.row-wrapper {
  position: relative;
}

.row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 4%;
  scrollbar-width: none;
}

.row::-webkit-scrollbar {
  display: none;
}

/* CARD */
.card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(140px, 16vw, 220px);
  aspect-ratio: 9/16; /* vertical estilo pôster */
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: transform .25s ease, z-index .25s ease;
}

.card img,
.card video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* vídeo escondido */
.card video {
  opacity: 0;
  transition: opacity .25s ease;
}

/* HOVER (apenas desktop) */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: scale(1.35);
    z-index: 20;
  }

  .card:hover video {
    opacity: 1;
  }

  .card:hover img {
    opacity: 0;
  }
}

/* BOTÕES */
.nav {
  position: absolute;
  top: 200px;
  bottom: 0;
  width: 60px;
  border: none;
  /*background: linear-gradient(to right, rgba(20,20,20,.9), transparent);*/
  color: white;
  font-size: 32px;
  cursor: pointer;
  z-index: 30;
  display: none;
}

.nav.next {
  right: 0;
}

.nav.prev {
  left: 0;
}

/* mostrar setas só no desktop */
@media (min-width: 768px) {
  .nav {
    display: block;
  }
}




/* ===== MODAL PLAYER ===== */
.player-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.player-modal.active {
  display: flex;
}

.player-content {
  width: 95vw;
  height: 90vh;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* 🔥 necessário para o botão posicionar certo */
}

.player-content video {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
}

.close-player {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 38px;
  /*background: rgba(0,0,0,.6);*/
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1000; /* 🔥 garante ficar acima do vídeo */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
}