/* ==========================================================================
   VIDEO & ANIMATION GALLERY - Masonry Grid & Video Player UI
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.video-card {
  background: var(--bg-obsidian-card);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition-normal);
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), var(--shadow-neon-cyan);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.85;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.06);
  opacity: 1;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-neon-cyan);
  transition: var(--transition-fast);
}

.video-card:hover .video-play-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 30px var(--accent-cyan);
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.video-info {
  padding: 20px;
}

.video-tag {
  display: inline-block;
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.video-title {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.video-description {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video Modal Player */
.video-modal-content {
  max-width: 900px;
  background: #060810;
  border: 1px solid var(--accent-cyan);
  border-radius: 20px;
  overflow: hidden;
}

.video-player-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  background: #000;
}

.video-player-wrapper iframe, .video-player-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
