/* Tarjetas de Video Premium */
.video-card {
  position: relative;
  border-radius: 20px;
  background: rgba(16, 17, 26, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}

.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(72, 8, 170, 0.05), transparent 60%);
  pointer-events: none;
}

/* Efecto de Enfoque Mejorado */
.video-card.focused {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(72, 8, 170, 0.5);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(72, 8, 170, 0.3),
    0 0 30px rgba(72, 8, 170, 0.15);
}

.videos-container.has-focus .video-card:not(.focused) {
  filter: blur(4px) saturate(0.5) brightness(0.5);
  opacity: 0.5;
  transform: scale(0.96);
}

/* Botón de Play Animado */
.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(72, 8, 170, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(72, 8, 170, 0.5);
  transition: all 0.3s ease;
}

.video-card:hover .play-button-overlay {
  background: #4808AA;
  scale: 1.1;
  box-shadow: 0 0 30px rgba(72, 8, 170, 0.8);
}

/* Contenido Detallado */
.video-content {
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(16, 17, 26, 0.9), transparent);
}

.video-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.video-content p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Focus Indicator Ring */
.focus-indicator {
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, #4808AA, #00f5ff);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  padding: 1.5px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
}

.video-card.focused .focus-indicator {
  opacity: 1;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(200%) rotate(45deg); }
}

.video-card.focused::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shine 3s infinite;
  pointer-events: none;
}