/* =========================================
   SMOOTH VEGA PODCAST — Netflix-Style Carousel
   Hero card, horizontal swipe, snap scroll
   ========================================= */

/* ---- Hero Featured Card ---- */
.video-hero-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 16px;
  transition: transform 200ms ease;
}

.video-hero-card:active {
  transform: scale(0.98);
}

.hero-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
}

.hero-card-thumb .video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.video-hero-card:hover .video-thumb {
  transform: scale(1.02);
}

.hero-card-thumb .video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 1;
}

.hero-card-thumb .video-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 200ms ease;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.video-hero-card:hover .hero-card-thumb .video-play-icon {
  transform: scale(1.08);
}

.hero-card-thumb .video-play-icon svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.hero-card-thumb .video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  z-index: 2;
}

.hero-card-info {
  padding: 12px 4px 4px;
}

.hero-card-guest {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hero-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-views {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ---- Carousel Container ---- */
.video-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 8px;
  margin: 0 -16px;

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-carousel::-webkit-scrollbar {
  display: none;
}

/* ---- Individual Card ---- */
.video-card {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 200ms ease;
}

.video-card:active {
  transform: scale(0.97);
}

.video-card:first-child {
  margin-left: 0;
}

/* ---- Thumbnail Wrapper ---- */
.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

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

/* ---- Play Overlay ---- */
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 0;
  transition: opacity 200ms ease;
}

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

@media (hover: none) {
  .video-play-overlay {
    opacity: 1;
    background: transparent;
  }
}

.video-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 200ms ease;
}

.video-card:hover .video-play-icon {
  transform: scale(1.08);
}

.video-play-icon svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

/* ---- Duration Badge ---- */
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  z-index: 2;
}

/* ---- Card Info ---- */
.video-info {
  padding: 10px 2px 4px;
}

.video-info-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-info-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  color: var(--text-dim);
}

.video-info-meta svg {
  width: 10px;
  height: 10px;
  color: #FF0000;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ---- Edge Fade Hint ---- */
.video-carousel-wrap {
  position: relative;
}

.video-carousel-wrap::after {
  display: none;
}

/* ---- Scroll Indicator Dots ---- */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 300ms ease;
}

.carousel-dot.active {
  background: var(--accent);
  width: 18px;
  border-radius: 3px;
}

/* ---- Compact Carousel (Clips) ---- */
.compact-carousel .video-card {
  width: 220px;
}

.compact-carousel .video-card-thumb {
  aspect-ratio: 16/9;
  border-radius: 8px;
}

.compact-carousel .video-info-title {
  font-size: 0.72rem;
  -webkit-line-clamp: 1;
}

.compact-carousel .video-play-icon {
  width: 36px;
  height: 36px;
}

.compact-carousel .video-play-icon svg {
  width: 16px;
  height: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .video-card {
    width: 260px;
  }
  .compact-carousel .video-card {
    width: 200px;
  }
  .hero-card-thumb .video-play-icon {
    width: 52px;
    height: 52px;
  }
  .hero-card-thumb .video-play-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 769px) {
  .video-card {
    width: 320px;
  }
  .compact-carousel .video-card {
    width: 260px;
  }
}
