/* Modern Video Card Styles */
.video-card-modern {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
}

.video-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--main-600, #6366f1);
}

.video-card-modern.active {
  border-color: var(--main-600, #6366f1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.video-card-modern.locked {
  opacity: 0.7;
  background: #f8f9fa;
}

.video-card-modern.locked:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Thumbnail */
.video-card-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-card-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.video-card-modern:hover .video-card-thumbnail img {
  transform: scale(1.05);
}

.video-card-thumbnail-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 48px;
}

/* Overlay */
.video-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card-modern:hover .video-card-overlay {
  opacity: 1;
}

.video-card-modern.locked .video-card-overlay {
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

/* Play Button */
.video-card-play-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--main-600, #6366f1);
  transform: scale(0.9);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.video-card-modern:hover .video-card-play-button {
  transform: scale(1);
  background: var(--main-600, #6366f1);
  color: white;
}

.video-card-modern.locked .video-card-play-button {
  background: rgba(255, 255, 255, 0.9);
  color: #6c757d;
}

/* Playing Indicator */
.video-card-playing-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--main-600, #6366f1);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.video-card-playing-indicator i {
  font-size: 14px;
  animation: sound-wave 1s infinite;
}

@keyframes sound-wave {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Content */
.video-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-card-number {
  font-size: 11px;
  font-weight: 700;
  color: var(--main-600, #6366f1);
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.video-card-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-card-badge i {
  font-size: 12px;
}

.video-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 40px;
}

.video-card-modern.active .video-card-title {
  color: var(--main-600, #6366f1);
}

.video-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.video-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.video-card-meta-item i {
  font-size: 14px;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  .video-card-modern {
    border-radius: 12px;
  }

  .video-card-play-button {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .video-card-content {
    padding: 12px;
  }

  .video-card-title {
    font-size: 13px;
  }
}

/* Grid Layout for Videos */
.section-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .section-videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Dark Mode */
html.dark-mode .video-card-modern {
  background: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.dark-mode .video-card-modern:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

html.dark-mode .video-card-modern.active {
  background: linear-gradient(135deg, #1e293b 0%, #1a1f3a 100%);
}

html.dark-mode .video-card-modern.locked {
  background: #0f172a;
}

html.dark-mode .video-card-title {
  color: #f1f5f9;
}

html.dark-mode .video-card-modern.active .video-card-title {
  color: #93c5fd;
}

html.dark-mode .video-card-meta-item {
  color: #94a3b8;
}

html.dark-mode .video-card-meta-item i {
  color: #64748b;
}

html.dark-mode .video-card-number {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}
