/* Card thumbnails */
.video-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.video-wrapper video {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  position: relative;
  transition: transform 0.3s ease;
}

.video-wrapper:hover .play-button {
  transform: scale(1.1);
}

.play-button:after {
  content: '';
  position: absolute;
  left: 28px;
  top: 22px;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #000;
}

/* Hover effect on slides (make hovered video stand out) */
.video-swiper .swiper-slide {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-swiper .swiper-slide:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

/* VIDEO MODAL STYLES */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.video-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-modal-content {
  width: 90%;
  max-width: 1400px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { 
    transform: translateY(50px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

.video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: #090b19;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.video-modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.video-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
  border-radius: 50%;
}

.video-close-btn:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.1);
}

.video-modal-player {
  position: relative;
  background: #000;
}

.video-modal-player video {
  width: 100%;
  display: block;
  max-height: 80vh;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .video-modal-content {
    width: 95%;
  }
  
  .video-modal-header {
    padding: 15px 20px;
  }
  
  .video-modal-header h3 {
    font-size: 16px;
  }
  
  .video-close-btn {
    font-size: 32px;
    width: 35px;
    height: 35px;
  }
}
