.video-wrapper {
  position: relative;
  margin: 20px 0;
}

.video-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.video-card {
  min-width: 220px;
  cursor: pointer;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
}

.video-card img {
  width: 100%;
  display: block;
}

.video-card::after {
  content: "▶";
  position: absolute;
  font-size: 40px;
  color: white;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: rgba(0,0,0,0.5);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none; /* ocultas por defecto */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.arrow.left { left: 0; }
.arrow.right { right: 0; }

.player {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.player iframe {
  width: 90%;
  height: 60%;
  max-width: 1000px;
  max-height: 600px;
}

/* Móvil: 1 por fila */
@media (max-width: 767px) {
  .video-card {
    min-width: 100%;
  }
}

/* Desktop: flechas visibles si JS las activa */
@media (min-width: 768px) {
  .arrow.show {
    display: flex;
  }
}
