/* Video Thumbnail Cards */
.video-thumb {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}

.video-thumb:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
}

.video-thumb:hover .video-thumb-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.video-title {
  color: #fff;
  font-family: 'Khand', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  padding: 8px 12px;
}

/* Popup / Lightbox */
.video-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
}

.video-popup.active {
  display: flex;
}

.video-popup-inner {
  position: relative;
  width: 80vw;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
}

.video-popup-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

.video-popup .close-btn {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  z-index: 100000;
  background: none;
  border: none;
  font-family: Arial, sans-serif;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.video-popup .close-btn:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .video-popup-inner {
    width: 95vw;
  }

  .video-title {
    font-size: 14px;
  }

  .video-popup .close-btn {
    top: 10px;
    right: 14px;
    font-size: 32px;
  }
}
