/* ==========================================================================
   3D Coverflow Video Carousel
   ========================================================================== */

.highlights-carousel {
  position: relative;
  width: 100%;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: hidden;
  margin: 2rem 0 4rem;
}

.highlights-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-card {
  position: absolute;
  width: 300px;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, filter 0.6s ease;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 20px rgba(157, 78, 221, 0.3);
  pointer-events: none;
  z-index: 2;
  border-radius: 20px;
}

.highlight-card .card-glow {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
}

.highlight-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.carousel-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 20;
}

.carousel-controls button {
  background: rgba(13, 8, 28, 0.8);
  border: 1px solid var(--accent-purple);
  color: var(--text-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(5px);
}

.carousel-controls button:hover {
  background: var(--accent-purple);
  transform: scale(1.1);
}

/* Modal specific styles */
.video-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(157, 78, 221, 0.4);
  border: 1px solid var(--accent-purple);
  z-index: 10000;
}

.modal-video-element {
  width: 100%;
  height: 100%;
  outline: none;
  border-radius: 20px;
}

.btn-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn-modal-close:hover {
  transform: scale(1.1);
  color: var(--accent-light);
}
