/* ═══════════════════════════════════════════
   CARDS — Video / Stream Grid
   ═══════════════════════════════════════════ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.video-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  will-change: transform, box-shadow;
  text-decoration: none;
  color: inherit;
}

.video-card:hover {
  border-color: rgba(133, 199, 66, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(133, 199, 66, 0.1);
  z-index: 10;
}

/* Thumbnail */
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-secondary);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Overlay */
.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Play Button */
.play-btn {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

.video-card:hover .play-btn {
  transform: scale(1);
  opacity: 1;
}

.play-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
  margin-left: 2px;
}

/* Badges */
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
}

.video-live-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--live);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-live-tag .livedot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse-live 1.5s ease-in-out infinite;
}

.video-premium-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--gold), #e8960f);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #1a1200;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Info */
.video-info {
  padding: 14px 16px;
}

.video-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 6px;
}

.video-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.video-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-meta-item svg {
  width: 13px;
  height: 13px;
  opacity: 0.5;
}

/* Channel */
.video-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.channel-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  transition: transform 0.2s ease;
}

.video-card:hover .channel-avatar {
  transform: scale(1.1) rotate(-5deg);
}

.channel-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Price Badge — top-right of thumbnail */
.video-price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--accent), #6aad2d);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.3px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(133, 199, 66, 0.3);
}

.video-price-badge.purchased {
  background: linear-gradient(135deg, rgba(133, 199, 66, 0.15), rgba(133, 199, 66, 0.08));
  border: 1px solid rgba(133, 199, 66, 0.3);
  color: var(--accent);
  box-shadow: none;
  font-size: 11px;
}

/* Video Purchase Modal */
.video-purchase-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.video-purchase-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.video-purchase-category {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
