/**
 * Papyrus Video Gallery - Styles v2
 * Version: 2.0.0 Final
 * Includes: Sticky navs, search mode, skeleton loading, video preview
 */

/* ============================================
   CSS VARIABLES
============================================ */
:root {
  --vg-primary: #6bb8be;
  --vg-primary-dark: #5aa8ae;
  --vg-primary-darker: #4a9da3;
  --vg-primary-light: rgba(107, 184, 190, 0.12);
  --vg-primary-glow: rgba(107, 184, 190, 0.25);
  
  --vg-bg: #f5f7fa;
  --vg-bg-dark: #0f172a;
  --vg-bg-darker: #0a0f1a;
  --vg-bg-card: #ffffff;
  
  --vg-text: #1e293b;
  --vg-text-secondary: #64748b;
  --vg-text-light: #94a3b8;
  --vg-text-white: #ffffff;
  
  --vg-border: #e2e8f0;
  --vg-border-light: #f1f5f9;
  
  --vg-success: #10b981;
  --vg-warning: #f59e0b;
  --vg-error: #ef4444;
  
  --vg-radius-sm: 6px;
  --vg-radius: 10px;
  --vg-radius-lg: 14px;
  --vg-radius-xl: 18px;
  --vg-radius-2xl: 24px;
  
  --vg-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --vg-shadow: 0 4px 12px rgba(0,0,0,0.06);
  --vg-shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --vg-shadow-xl: 0 24px 48px rgba(0,0,0,0.15);
  
  --vg-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --vg-transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --vg-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Sticky nav heights */
  --vg-sticky-nav-height: 56px;
  --vg-sticky-filter-height: 52px;
  --vg-mainmenu-height: 60px;
}

/* ============================================
   BASE / RESET
============================================ */
.video-gallery-page {
  background: var(--vg-bg);
  min-height: 100vh;
}

.vg-container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HERO SECTION
============================================ */
.vg-hero {
  background: linear-gradient(135deg, var(--vg-bg-darker) 0%, #141c2e 40%, #1a2540 70%, var(--vg-bg-dark) 100%);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic animated background */
.vg-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(107, 184, 190, 0.12) 0%, transparent 50%);
  pointer-events: none;
  animation: vg-float-1 20s ease-in-out infinite;
}

.vg-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -15%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(107, 184, 190, 0.08) 0%, transparent 45%);
  pointer-events: none;
  animation: vg-float-2 25s ease-in-out infinite;
}

/* Third floating element for more depth */
.vg-hero .vg-hero__inner::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(107, 184, 190, 0.06) 0%, transparent 60%);
  pointer-events: none;
  animation: vg-pulse 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes vg-float-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(3%, 2%) rotate(1deg); }
  50% { transform: translate(1%, 4%) rotate(-1deg); }
  75% { transform: translate(-2%, 1%) rotate(0.5deg); }
}

@keyframes vg-float-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-2%, -3%) rotate(-1deg); }
  66% { transform: translate(2%, -1%) rotate(1deg); }
}

@keyframes vg-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0.3; }
}

/* Search Mode - Hero Transforms */
.vg-hero.search-active .vg-hero__featured,
.vg-hero.saved-active .vg-hero__featured {
  display: none;
}

.vg-hero.search-active .vg-hero__inner,
.vg-hero.saved-active .vg-hero__inner {
  padding-bottom: 0;
}

/* Hide search bar in saved mode */
.vg-hero.saved-active .vg-search {
  display: none;
}

/* Hide tabs in saved mode */
.vg-hero.saved-active .vg-tabs {
  display: none;
}

/* Show German toggle in saved mode - keep it visible */
.vg-hero.saved-active .vg-hero__actions {
  display: flex;
  gap: 12px;
}

/* Saved mode close button */
.vg-hero__close-saved {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
}

.vg-hero__close-saved:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--vg-text-white);
}

.vg-hero.saved-active .vg-hero__close-saved {
  display: flex;
}

/* Clear all button for saved view */
.vg-saved-clear-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.vg-saved-clear-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.vg-saved-clear-btn i {
  font-size: 0.9rem;
}

.vg-hero__inner {
  position: relative;
  z-index: 1;
  padding: 32px 0 40px;
}

/* Hero Top Bar */
.vg-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.vg-hero__title-wrap {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.vg-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--vg-text-white);
  margin: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vg-hero__video-count {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.vg-hero__video-count strong {
  color: var(--vg-primary);
}

/* Hero Controls */
.vg-hero__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search Box */
.vg-search {
  position: relative;
}

.vg-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transition: color 0.2s ease;
}

.vg-search input {
  width: 240px;
  padding: 11px 14px 11px 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-family: inherit;
  color: var(--vg-text-white);
  outline: none;
  transition: all 0.3s ease;
}

.vg-search input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(107, 184, 190, 0.5);
  width: 300px;
}

.vg-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* German Toggle */
.vg-german-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.vg-german-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.vg-german-toggle.active {
  background: rgba(107, 184, 190, 0.2);
  border-color: rgba(107, 184, 190, 0.4);
  color: var(--vg-text-white);
}

.vg-german-toggle__switch {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.vg-german-toggle.active .vg-german-toggle__switch {
  background: var(--vg-primary);
}

.vg-german-toggle__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--vg-text-white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.vg-german-toggle.active .vg-german-toggle__switch::after {
  transform: translateX(16px);
}

.vg-german-toggle__text {
  font-weight: 500;
}

/* ============================================
   FEATURED VIDEO + FILTER CARDS
============================================ */
.vg-hero__featured {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: stretch;
}

/* Featured Video */
.vg-featured {
  position: relative;
  border-radius: var(--vg-radius-xl);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

.vg-featured__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.vg-featured:hover .vg-featured__thumb {
  transform: scale(1.03);
}

/* Featured Video Preview on Hover */
.vg-featured__preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: var(--vg-radius-xl);
  overflow: hidden;
}

.vg-featured__preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.vg-featured__preview.loaded {
  opacity: 1;
}

.vg-featured__preview.loaded ~ .vg-featured__thumb {
  opacity: 0;
}

/* Featured Loading Ring - around play button */
.vg-featured__loading-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  border: 4px solid transparent;
  border-top-color: var(--vg-primary);
  border-right-color: var(--vg-primary);
  border-radius: 50%;
  animation: vg-spin 0.9s linear infinite;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.vg-featured--loading .vg-featured__loading-ring {
  opacity: 1;
}

/* Hide play button when video is playing */
.vg-featured__preview.loaded ~ * .vg-featured__play {
  opacity: 0 !important;
}

.vg-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  z-index: 2;
}

.vg-featured__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--vg-text-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 4;
}

.vg-featured__badge i {
  color: #fbbf24;
  font-size: 0.9rem;
}

.vg-featured__badge svg {
  width: 14px;
  height: 14px;
  color: #fbbf24;
}

.vg-featured__duration {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--vg-text-white);
  z-index: 4;
  font-variant-numeric: tabular-nums;
}

.vg-featured__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.vg-featured__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vg-primary) 0%, #4ecdc4 100%);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(107, 184, 190, 0.6);
}

.vg-featured__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 88px;
  height: 88px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  z-index: 3;
}

.vg-featured:hover .vg-featured__play {
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
}

.vg-featured__play i {
  font-size: 2rem;
  color: var(--vg-text);
  margin-left: 4px;
}

.vg-featured__play svg {
  width: 32px;
  height: 32px;
  color: var(--vg-text);
  margin-left: 4px;
}

.vg-featured__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  z-index: 2;
}

.vg-featured__category {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(107, 184, 190, 0.25);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--vg-primary);
  margin-bottom: 12px;
}

.vg-featured__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--vg-text-white);
  line-height: 1.25;
  margin: 0 0 12px 0;
}

.vg-featured__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.vg-featured__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vg-featured__meta svg {
  width: 14px;
  height: 14px;
}

/* Hero Sidebar - Filter Cards */
.vg-hero__sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vg-filter-card {
  flex: 1;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  min-height: 0;
  transition: all 0.3s ease;
}

.vg-filter-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  transition: background 0.3s ease;
}

.vg-filter-card:hover .vg-filter-card__bg {
  background: linear-gradient(135deg, rgba(40, 51, 69, 0.98) 0%, rgba(40, 51, 69, 0.9) 100%);
}

.vg-filter-card.active .vg-filter-card__bg {
  background: linear-gradient(135deg, rgba(107, 184, 190, 0.2) 0%, rgba(107, 184, 190, 0.1) 100%);
  border: 1px solid rgba(107, 184, 190, 0.3);
}

.vg-filter-card__content {
  position: relative;
  z-index: 1;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
}

.vg-filter-card__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(107, 184, 190, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vg-primary);
  transition: all 0.3s ease;
}

.vg-filter-card:hover .vg-filter-card__icon,
.vg-filter-card.active .vg-filter-card__icon {
  background: var(--vg-primary);
  color: var(--vg-text-white);
}

.vg-filter-card__icon svg {
  width: 20px;
  height: 20px;
}

.vg-filter-card__text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vg-text-white);
  margin: 0 0 2px 0;
}

.vg-filter-card__text p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.vg-filter-card__arrow {
  margin-left: auto;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.vg-filter-card:hover .vg-filter-card__arrow {
  background: rgba(255, 255, 255, 0.15);
  color: var(--vg-text-white);
  transform: translateX(3px);
}

.vg-filter-card__arrow svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   STICKY NAVIGATION BAR 1 (View Tabs + Search)
============================================ */
.vg-sticky-nav {
  position: fixed;
  top: var(--vg-mainmenu-height);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--vg-bg-card);
  border-bottom: 1px solid var(--vg-border);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, top 0.25s ease;
}

.vg-sticky-nav.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.vg-sticky-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--vg-sticky-nav-height);
  gap: 20px;
}

/* View Tabs */
.vg-sticky-nav__tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vg-sticky-tab {
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  color: var(--vg-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.vg-sticky-tab:hover {
  background: var(--vg-border-light);
  color: var(--vg-text);
}

.vg-sticky-tab.active {
  background: var(--vg-primary-light);
  color: var(--vg-primary);
}

/* Sticky Nav Controls */
.vg-sticky-nav__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sticky Search (Light Theme) */
.vg-sticky-search {
  position: relative;
}

.vg-sticky-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--vg-text-light);
  pointer-events: none;
}

.vg-sticky-search input {
  width: 200px;
  padding: 9px 12px 9px 36px;
  background: var(--vg-border-light);
  border: 1px solid var(--vg-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--vg-text);
  outline: none;
  transition: all 0.25s ease;
}

.vg-sticky-search input:focus {
  background: var(--vg-bg-card);
  border-color: var(--vg-primary);
  width: 260px;
  box-shadow: 0 0 0 3px rgba(107, 184, 190, 0.1);
}

.vg-sticky-search input::placeholder {
  color: var(--vg-text-light);
}

/* Sticky German Toggle (Light Theme) */
.vg-sticky-german {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--vg-border-light);
  border: 1px solid var(--vg-border);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--vg-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vg-sticky-german:hover {
  background: var(--vg-bg-card);
  border-color: var(--vg-primary);
}

.vg-sticky-german.active {
  background: var(--vg-primary-light);
  border-color: var(--vg-primary);
  color: var(--vg-primary);
}

.vg-sticky-german__switch {
  width: 32px;
  height: 18px;
  background: var(--vg-border);
  border-radius: 9px;
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.vg-sticky-german.active .vg-sticky-german__switch {
  background: var(--vg-primary);
}

.vg-sticky-german__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--vg-text-white);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.vg-sticky-german.active .vg-sticky-german__switch::after {
  transform: translateX(14px);
}

/* ============================================
   STICKY FILTER BAR (Category Pills)
============================================ */
.vg-sticky-filter {
  position: fixed;
  top: calc(var(--vg-mainmenu-height) + var(--vg-sticky-nav-height));
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--vg-bg-card);
  border-bottom: 1px solid var(--vg-border);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, top 0.25s ease;
}

.vg-sticky-filter.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.vg-sticky-filter__inner {
  max-height: 54px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vg-sticky-filter:hover .vg-sticky-filter__inner,
.vg-sticky-filter.expanded .vg-sticky-filter__inner {
  max-height: 400px;
}

/* Wrapper to position More button */
.vg-sticky-filter__wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Pills container - takes available space, wraps */
.vg-sticky-filter__pills {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  min-width: 0;
}

.vg-sticky-filter__label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--vg-text-secondary);
  margin-right: 4px;
  white-space: nowrap;
}

/* "More" button - flex-shrink: 0 prevents wrapping, stays on first row */
.vg-sticky-filter__more {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 12px 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hide when expanded */
.vg-sticky-filter:hover .vg-sticky-filter__more,
.vg-sticky-filter.expanded .vg-sticky-filter__more {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.vg-sticky-filter__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--vg-primary) 0%, #5aa8ae 100%);
  border: none;
  border-radius: 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(107, 184, 190, 0.3);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.vg-sticky-filter__more-btn:hover {
  box-shadow: 0 4px 14px rgba(107, 184, 190, 0.45);
  transform: translateY(-1px);
}

.vg-sticky-filter__more-btn i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.vg-sticky-filter:hover .vg-sticky-filter__more-btn i {
  transform: rotate(180deg);
}

/* ============================================
   SEARCH MODE
============================================ */
.vg-search-mode {
  display: none;
}

.vg-search-mode.active {
  display: block;
}

.vg-search-mode__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vg-search-mode__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--vg-text-white);
  margin: 0;
  animation: vg-titleFadeIn 0.4s ease forwards;
}

@keyframes vg-titleFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.vg-search-mode__count {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.5);
}

.vg-search-mode__count strong {
  color: var(--vg-primary);
}

/* Clear search button - X icon style */
.vg-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vg-search-clear:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.vg-search-clear svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   SUB-FILTERS (Inline)
============================================ */
.vg-subfilters {
  background: var(--vg-bg-card);
  border-bottom: 1px solid var(--vg-border);
  padding: 14px 0;
  display: none;
  position: relative;
}

.vg-subfilters.visible {
  display: block;
}

/* Toggle button - hidden on desktop */
.vg-subfilters__toggle {
  display: none;
}

.vg-subfilters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vg-subfilters__label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--vg-text-secondary);
  white-space: nowrap;
  margin-right: 8px;
}

/* Category Pills */
.vg-pill {
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid var(--vg-border);
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vg-pill:hover {
  border-color: var(--vg-primary);
  color: var(--vg-text);
}

.vg-pill.active {
  background: var(--vg-primary);
  border-color: var(--vg-primary);
  color: var(--vg-text-white);
}

.vg-pill__count {
  opacity: 0.7;
}

/* ============================================
   MAIN CONTENT AREA
============================================ */
.vg-main {
  padding: 40px 0 80px;
  transition: padding-top 0.3s ease;
}

/* Adjust for sticky navs */
.vg-main.has-sticky {
  padding-top: calc(40px + var(--vg-sticky-nav-height) + var(--vg-sticky-filter-height));
}

/* Section */
.vg-section {
  margin-bottom: 48px;
}

.vg-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.vg-section__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--vg-text);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.vg-section__title-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--vg-primary) 0%, #4da5ab 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(107, 184, 190, 0.35);
  flex-shrink: 0;
}

.vg-section__title-icon i {
  color: #ffffff;
  font-size: 1.2rem;
}

.vg-section__title-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  fill: none;
}

/* Section Controls */
.vg-section__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vg-section__btn {
  width: 36px;
  height: 36px;
  background: var(--vg-bg-card);
  border: 1px solid var(--vg-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vg-section__btn:hover {
  border-color: var(--vg-primary);
  color: var(--vg-primary);
}

.vg-section__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vg-section__btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   CAROUSEL (3 cards, autoplay)
============================================ */
.vg-carousel {
  position: relative;
  margin: 0 -24px;
  padding: 0 24px;
  overflow: visible;
}

.vg-carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 12px 0;
  margin: -12px 0;
}

.vg-carousel__track::-webkit-scrollbar {
  display: none;
}

.vg-carousel .vg-card {
  min-width: calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  flex-shrink: 0;
}

/* Carousel Dots - positioned between navigation arrows */
.vg-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 8px;
}

.vg-carousel-dot {
  width: 8px;
  height: 8px;
  background: var(--vg-border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.vg-carousel-dot:hover {
  background: var(--vg-text-light);
}

.vg-carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--vg-primary);
}

/* ============================================
   VIDEO GRID
============================================ */
.vg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  padding: 12px;
  margin: -12px;
}

/* Collapsed state */
.vg-grid--collapsed {
  max-height: 400px;
  overflow: hidden;
}

/* Only show gradient if more than one row (determined by JS via data attribute) */
.vg-grid--collapsed.has-overflow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, var(--vg-bg) 90%);
  pointer-events: none;
  z-index: 10;
}

.vg-grid.expanded {
  max-height: none;
}

.vg-grid.expanded::after {
  display: none;
}

/* Show More Button */
.vg-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 20px auto 0;
  padding: 12px 28px;
  background: var(--vg-bg-card);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  font-weight: 600;
  color: var(--vg-text);
  cursor: pointer;
  transition: all 0.25s ease;
}

.vg-show-more:hover {
  border-color: var(--vg-primary);
  color: var(--vg-primary);
}

.vg-show-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.vg-show-more.expanded svg {
  transform: rotate(180deg);
}

/* ============================================
   VIDEO CARD (Updated Design)
============================================ */
.vg-card {
  background: var(--vg-bg-card);
  border-radius: var(--vg-radius-lg);
  overflow: hidden;
  box-shadow: var(--vg-shadow-sm);
  transition: transform var(--vg-transition), box-shadow var(--vg-transition);
  cursor: pointer;
  position: relative;
}

.vg-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--vg-shadow-lg);
}

.vg-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--vg-border-light);
  overflow: hidden;
}

.vg-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.vg-card:hover .vg-card__thumb img {
  transform: scale(1.05);
}

/* Video Preview on Hover */
.vg-card__preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  background: transparent;
}

.vg-card__preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

/* Only show preview when loaded */
.vg-card__preview.loaded {
  opacity: 1;
}

.vg-card__preview.loaded ~ img {
  opacity: 0 !important;
}

/* Hide play button when video is playing */
.vg-card__preview.loaded ~ .vg-card__play {
  opacity: 0;
}

/* Loading Ring - around play button */
.vg-card__loading-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border: 3px solid transparent;
  border-top-color: var(--vg-primary);
  border-right-color: var(--vg-primary);
  border-radius: 50%;
  animation: vg-spin 0.9s linear infinite;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.vg-card--loading .vg-card__loading-ring {
  opacity: 1;
}

@keyframes vg-spin {
  to { transform: rotate(360deg); }
}

/* Play Button */
.vg-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.vg-card:hover .vg-card__play {
  opacity: 1;
}

.vg-card__play-circle {
  width: 52px;
  height: 52px;
  background: var(--vg-bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.vg-card:hover .vg-card__play-circle {
  transform: scale(1);
}

.vg-card__play-circle i {
  font-size: 1.2rem;
  color: var(--vg-text);
  margin-left: 3px;
}

.vg-card__play-circle svg {
  width: 20px;
  height: 20px;
  color: var(--vg-text);
  margin-left: 3px;
}

/* Duration Badge - Bottom Right */
.vg-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--vg-text-white);
  z-index: 4;
}

/* Language Badge - Top Left (same size as NEW label) */
.vg-card__lang {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--vg-text-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 4;
}

/* If NEW label exists, move lang badge next to it */
.vg-card__new + .vg-card__lang {
  left: auto;
  left: 75px;
}

/* NEW Label - Modern Gradient Style */
.vg-card__new {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #ff5d2e 0%, #ff7a52 100%);
  box-shadow: 0 2px 6px rgba(255, 93, 46, 0.3);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--vg-text-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}

/* Card Info */
.vg-card__info {
  padding: 16px;
}

.vg-card__title {
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--vg-text);
  line-height: 1.4;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vg-card__tag {
  display: inline-block;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--vg-primary);
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--vg-primary);
}

/* ============================================
   PLAYLIST CARD (Stacked Effect per Image)
============================================ */
.vg-card--playlist .vg-card__thumb {
  position: relative;
}

.vg-card--playlist .vg-card__thumb::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 8px;
  right: 8px;
  height: 100%;
  background: rgba(30, 41, 59, 0.4);
  border-radius: 0 0 12px 12px;
  z-index: -1;
}

.vg-card--playlist .vg-card__thumb::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 16px;
  right: 16px;
  height: 100%;
  background: rgba(30, 41, 59, 0.25);
  border-radius: 0 0 10px 10px;
  z-index: -2;
}

/* Playlist Badge - Bottom Left with Stack Icon (like reference) */
.vg-card__playlist-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 6px 12px;
  background: var(--vg-primary);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--vg-text-white);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
}

.vg-card__playlist-badge i {
  font-size: 0.9rem;
}

.vg-card--playlist .vg-card__info {
  padding-top: 22px;
}

/* ============================================
   SKELETON LOADING
============================================ */
.vg-skeleton {
  background: linear-gradient(90deg, var(--vg-border-light) 25%, var(--vg-border) 50%, var(--vg-border-light) 75%);
  background-size: 200% 100%;
  animation: vg-skeleton-shimmer 1.5s infinite;
  border-radius: var(--vg-radius);
}

@keyframes vg-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.vg-card--skeleton .vg-card__thumb {
  background: var(--vg-border-light);
}

.vg-card--skeleton .vg-card__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.5) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: vg-skeleton-shimmer 1.5s infinite;
}

.vg-card--skeleton .vg-skeleton-title {
  height: 20px;
  width: 80%;
  margin-bottom: 10px;
}

.vg-card--skeleton .vg-skeleton-tag {
  height: 24px;
  width: 60px;
}

/* ============================================
   VIDEO POPUP (Modern Dark Style)
============================================ */
.vg-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.vg-popup.active {
  opacity: 1;
  visibility: visible;
}

.vg-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 26, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vg-popup__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  max-height: 85vh;
  display: grid;
  grid-template-columns: 1fr 320px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98) 0%, rgba(20, 28, 46, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--vg-radius-2xl);
  overflow: hidden;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vg-popup.active .vg-popup__container {
  transform: scale(1) translateY(0);
}

/* Mobile floating buttons - hidden on desktop */
.vg-popup__mobile-actions,
.vg-popup__mobile-close {
  display: none;
}

/* Floating buttons over video - hidden on desktop */
.vg-popup__float-btn {
  display: none;
}

/* Mobile filters button - hidden on desktop */
.vg-mobile-filters-btn {
  display: none;
}

/* Mobile filters panel - hidden on desktop */
.vg-mobile-filters {
  display: none;
}

/* Main Video Section */
.vg-popup__main {
  display: flex;
  flex-direction: column;
  position: relative;
}

.vg-popup__player {
  aspect-ratio: 16 / 9;
  background: #000;
}

.vg-popup__player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Info Section with Share Button Aligned Right */
.vg-popup__info {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.vg-popup__info-left {
  flex: 1;
  min-width: 0;
}

.vg-popup__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--vg-text-white);
  margin: 0 0 12px 0;
  line-height: 1.35;
}

.vg-popup__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vg-popup__tag {
  padding: 5px 12px;
  background: rgba(107, 184, 190, 0.15);
  border-radius: 6px;
  font-weight: 600;
  color: var(--vg-primary);
}

/* Action buttons wrapper */
.vg-popup__info-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Share Button - Right Side, Aligned with Title */
.vg-popup__share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all var(--vg-transition);
  white-space: nowrap;
}

.vg-popup__share-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--vg-primary);
  color: var(--vg-text-white);
}

.vg-popup__share-btn svg {
  width: 16px;
  height: 16px;
}

/* Sidebar */
.vg-popup__sidebar {
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 85vh;
  overflow: hidden;
}

.vg-popup__sidebar-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.vg-popup__sidebar-title {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.vg-popup__close {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.6rem;
  cursor: pointer;
  transition: all var(--vg-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vg-popup__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--vg-text-white);
}

/* Mobile close button - hidden on desktop */
.vg-popup__mobile-close {
  display: none;
}

/* ============================================
   PLAYLIST SECTION (Above Up Next)
============================================ */
.vg-popup__playlist {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: none;
}

.vg-popup__playlist.visible {
  display: block;
}

.vg-popup__playlist-header {
  padding: 16px 18px;
  background: rgba(107, 184, 190, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vg-popup__playlist-header:hover {
  background: rgba(107, 184, 190, 0.15);
}

.vg-popup__playlist-title {
  font-weight: 700;
  color: var(--vg-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vg-popup__playlist-title > i:first-child {
  font-size: 1.1rem;
}

.vg-popup__playlist-title > span {
  flex: 1;
}

.vg-popup__playlist-toggle {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.vg-popup__playlist-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.vg-popup__playlist-toggle i {
  font-size: 0.8rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.vg-popup__playlist.collapsed .vg-popup__playlist-toggle i {
  transform: rotate(180deg);
}

/* Stats row - 3 elegant boxes */
.vg-popup__playlist-info {
  display: flex;
  gap: 12px;
}

.vg-popup__playlist-stat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.vg-popup__playlist-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.vg-popup__playlist-stat i {
  font-size: 1rem;
  color: var(--vg-primary);
}

/* Playlist items container with smooth height transition */
.vg-popup__playlist-items {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

.vg-popup__playlist.collapsed .vg-popup__playlist-items {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

/* Playlist Item */
.vg-playlist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  min-height: 56px;
}

.vg-playlist-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.vg-playlist-item.active {
  background: rgba(107, 184, 190, 0.15);
  border-color: rgba(107, 184, 190, 0.3);
}

.vg-playlist-item.completed {
  opacity: 0.75;
}

.vg-playlist-item.completed:hover {
  opacity: 1;
}

/* Status icon area with number and overlay */
.vg-playlist-item__status {
  width: 36px;
  height: 36px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.vg-playlist-item__num {
  width: 36px;
  height: 36px;
  background: rgba(107, 184, 190, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--vg-primary);
  transition: all 0.2s ease;
}

.vg-playlist-item.active .vg-playlist-item__num {
  background: var(--vg-primary);
  color: var(--vg-text-white);
}

.vg-playlist-item.completed .vg-playlist-item__num {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.vg-playlist-item.playing .vg-playlist-item__num {
  background: var(--vg-primary);
  color: var(--vg-text-white);
}

/* Status overlay badge */
.vg-playlist-item__overlay {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--vg-bg-darker);
  box-sizing: border-box;
}

.vg-playlist-item__overlay i {
  color: #fff !important;
  font-size: 0.5rem;
  line-height: 1;
}

.vg-playlist-item__overlay svg {
  width: 10px;
  height: 10px;
  stroke: #fff;
}

.vg-playlist-item.completed .vg-playlist-item__overlay {
  background: #10b981;
}

.vg-playlist-item.in-progress .vg-playlist-item__overlay {
  background: #f59e0b;
}

.vg-playlist-item.playing .vg-playlist-item__overlay {
  background: var(--vg-primary);
  animation: vg-pulse-badge 1.5s ease-in-out infinite;
}

@keyframes vg-pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Content area */
.vg-playlist-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vg-playlist-item__part {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vg-playlist-item.active .vg-playlist-item__part {
  color: var(--vg-primary);
}

.vg-playlist-item__title {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.vg-playlist-item.active .vg-playlist-item__title {
  color: var(--vg-text-white);
  font-weight: 600;
}

.vg-playlist-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 0.9rem;
}

.vg-playlist-item__duration {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.5);
}

.vg-playlist-item__duration i {
  font-size: 0.75rem;
  opacity: 0.7;
}

.vg-playlist-item__resume {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f59e0b;
  font-weight: 500;
}

.vg-playlist-item__resume i {
  font-size: 0.7rem;
}

/* Currently playing indicator - legacy, keeping for backwards compat */
.vg-playlist-item__playing {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vg-primary);
  animation: vg-pulse 1.5s ease-in-out infinite;
  margin-top: 2px;
}

@keyframes vg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Progress bar on item */
.vg-playlist-item__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.vg-playlist-item__progress-fill {
  height: 100%;
  background: var(--vg-primary);
  transition: width 0.3s ease;
}

/* ============================================
   UP NEXT LIST (18 items, modern scrollbar)
============================================ */
.vg-upnext {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 184, 190, 0.3) transparent;
}

.vg-upnext::-webkit-scrollbar {
  width: 6px;
}

.vg-upnext::-webkit-scrollbar-track {
  background: transparent;
}

.vg-upnext::-webkit-scrollbar-thumb {
  background: rgba(107, 184, 190, 0.3);
  border-radius: 3px;
}

.vg-upnext::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 184, 190, 0.5);
}

.vg-upnext__item {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: var(--vg-radius);
  cursor: pointer;
  transition: all var(--vg-transition);
  opacity: 0;
  transform: translateY(10px);
  animation: vg-fadeInUp 0.3s ease forwards;
}

@keyframes vg-fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for lazy load effect */
.vg-upnext__item:nth-child(1) { animation-delay: 0.05s; }
.vg-upnext__item:nth-child(2) { animation-delay: 0.1s; }
.vg-upnext__item:nth-child(3) { animation-delay: 0.15s; }
.vg-upnext__item:nth-child(4) { animation-delay: 0.2s; }
.vg-upnext__item:nth-child(5) { animation-delay: 0.25s; }
.vg-upnext__item:nth-child(6) { animation-delay: 0.3s; }
.vg-upnext__item:nth-child(7) { animation-delay: 0.35s; }
.vg-upnext__item:nth-child(8) { animation-delay: 0.4s; }
.vg-upnext__item:nth-child(9) { animation-delay: 0.45s; }
.vg-upnext__item:nth-child(10) { animation-delay: 0.5s; }
.vg-upnext__item:nth-child(11) { animation-delay: 0.55s; }
.vg-upnext__item:nth-child(12) { animation-delay: 0.6s; }
.vg-upnext__item:nth-child(13) { animation-delay: 0.65s; }
.vg-upnext__item:nth-child(14) { animation-delay: 0.7s; }
.vg-upnext__item:nth-child(15) { animation-delay: 0.75s; }
.vg-upnext__item:nth-child(16) { animation-delay: 0.8s; }
.vg-upnext__item:nth-child(17) { animation-delay: 0.85s; }
.vg-upnext__item:nth-child(18) { animation-delay: 0.9s; }

.vg-upnext__item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.vg-upnext__item.active {
  background: rgba(107, 184, 190, 0.12);
  border-color: rgba(107, 184, 190, 0.25);
}

.vg-upnext__thumb {
  width: 80px;
  min-width: 80px;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.vg-upnext__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vg-upnext__duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--vg-text-white);
}

.vg-upnext__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vg-upnext__title {
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vg-upnext__item.active .vg-upnext__title {
  color: var(--vg-primary);
}

.vg-upnext__tag {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   SHARE MODAL
============================================ */
.vg-share-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vg-share-modal.active {
  opacity: 1;
  visibility: visible;
}

.vg-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(4px);
}

.vg-share-modal__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--vg-bg-card);
  border-radius: var(--vg-radius-xl);
  padding: 28px;
  box-shadow: var(--vg-shadow-xl);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.vg-share-modal.active .vg-share-modal__content {
  transform: scale(1);
}

.vg-share-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.vg-share-modal__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--vg-text);
  margin: 0;
}

.vg-share-modal__close {
  width: 42px;
  height: 42px;
  background: var(--vg-border-light);
  border: none;
  border-radius: 50%;
  color: var(--vg-text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.vg-share-modal__close:hover {
  background: var(--vg-border);
  color: var(--vg-text);
}

.vg-share-modal__preview {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--vg-border-light);
  border-radius: var(--vg-radius);
  margin-bottom: 24px;
}

.vg-share-modal__preview-thumb {
  width: 100px;
  min-width: 100px;
  aspect-ratio: 16 / 9;
  background: var(--vg-border);
  border-radius: 8px;
  overflow: hidden;
}

.vg-share-modal__preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vg-share-modal__preview-info h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--vg-text);
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vg-share-modal__preview-info p {
  font-size: 0.75rem;
  color: var(--vg-text-secondary);
  margin: 0;
}

/* Share Platforms */
.vg-share-platforms {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.vg-share-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.vg-share-platform__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--vg-transition);
}

.vg-share-platform:hover .vg-share-platform__icon {
  transform: scale(1.1);
}

.vg-share-platform__icon svg {
  width: 24px;
  height: 24px;
  color: var(--vg-text-white);
}

.vg-share-platform__icon--linkedin { background: #0077b5; }
.vg-share-platform__icon--x { background: #000; }
.vg-share-platform__icon--facebook { background: #1877f2; }
.vg-share-platform__icon--email { background: var(--vg-text-secondary); }

.vg-share-platform span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--vg-text-secondary);
}

/* Copy Link */
.vg-share-link {
  display: flex;
  gap: 10px;
}

.vg-share-link input {
  flex: 1;
  padding: 13px 16px;
  background: var(--vg-border-light);
  border: 1px solid var(--vg-border);
  border-radius: 10px;
  font-family: inherit;
  color: var(--vg-text);
  outline: none;
}

.vg-share-link input:focus {
  border-color: var(--vg-primary);
}

.vg-share-link button {
  padding: 13px 22px;
  background: var(--vg-primary);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  color: var(--vg-text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--vg-transition);
}

.vg-share-link button:hover {
  background: var(--vg-primary-dark);
}

.vg-share-link button svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   TOAST & EMPTY STATE
============================================ */
.vg-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  padding: 14px 28px;
  background: var(--vg-bg-dark);
  color: var(--vg-text-white);
  border-radius: var(--vg-radius);
  font-weight: 500;
  box-shadow: var(--vg-shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 99999;
}

.vg-toast.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.vg-toast svg {
  width: 20px;
  height: 20px;
  color: var(--vg-success);
}

/* Empty State */
.vg-empty {
  text-align: center;
  padding: 80px 24px;
}

.vg-empty__icon {
  width: 80px;
  height: 80px;
  background: var(--vg-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.vg-empty__icon svg {
  width: 36px;
  height: 36px;
  color: var(--vg-primary);
}

.vg-empty__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--vg-text);
  margin: 0 0 10px 0;
}

.vg-empty__text {
  font-size: 0.95rem;
  color: var(--vg-text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
============================================ */
@media (max-width: 1200px) {
  .vg-hero__featured {
    grid-template-columns: 1fr 340px;
    gap: 20px;
  }
  
  .vg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .vg-carousel .vg-card {
    min-width: calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
  }
  
  .vg-popup__container {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 992px) {
  :root {
    --vg-mainmenu-height: 56px;
  }
  
  .vg-hero__featured {
    grid-template-columns: 1fr;
  }
  
  .vg-hero__sidebar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  .vg-filter-card__text p {
    display: none;
  }
  
  .vg-filter-card__content {
    padding: 14px 16px;
  }
  
  .vg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .vg-carousel .vg-card {
    min-width: calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
  
  .vg-popup__container {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .vg-popup__sidebar {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 300px;
  }
  
  .vg-sticky-nav__tabs {
    gap: 2px;
  }
  
  .vg-sticky-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  
  .vg-sticky-german__text {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --vg-sticky-nav-height: 50px;
    --vg-sticky-filter-height: 46px;
  }
  
  .vg-container {
    padding: 0 16px;
  }
  
  .vg-hero__inner {
    padding: 24px 0 32px;
  }
  
  .vg-hero__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .vg-hero__controls {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .vg-search {
    flex: 1;
    min-width: 200px;
  }
  
  .vg-search input {
    width: 100%;
  }
  
  .vg-search input:focus {
    width: 100%;
  }
  
  .vg-hero__sidebar {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .vg-featured__title {
    font-size: 1.3rem;
  }
  
  .vg-featured__play {
    width: 70px;
    height: 70px;
  }
  
  .vg-featured__play svg {
    width: 26px;
    height: 26px;
  }
  
  .vg-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .vg-section__title {
    font-size: 1.1rem;
  }
  
  .vg-sticky-nav__inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
    gap: 10px;
  }
  
  .vg-sticky-search input {
    width: 100%;
  }
  
  .vg-popup {
    padding: 16px;
  }
  
  .vg-popup__info {
    flex-direction: column;
    gap: 14px;
  }
  
  .vg-popup__share-btn {
    align-self: flex-start;
  }
}

@media (max-width: 576px) {
  .vg-hero__title {
    font-size: 1.5rem;
  }
  
  .vg-hero__sidebar {
    grid-template-columns: 1fr 1fr;
  }
  
  .vg-filter-card__icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
  
  .vg-filter-card__text h3 {
    font-size: 0.85rem;
  }
  
  .vg-filter-card__arrow {
    display: none;
  }
  
  .vg-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .vg-carousel .vg-card {
    min-width: calc(100% - 48px);
    max-width: calc(100% - 48px);
  }
  
  .vg-german-toggle__text {
    display: none;
  }
  
  .vg-sticky-tab {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  
  .vg-share-modal__content {
    padding: 20px;
  }
  
  .vg-share-platforms {
    gap: 16px;
  }
  
  .vg-share-platform__icon {
    width: 46px;
    height: 46px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .vg-popup,
  .vg-share-modal,
  .vg-toast,
  .vg-sticky-nav,
  .vg-sticky-filter {
    display: none !important;
  }
}

/* ============================================
   RECENTLY WATCHED SECTION
============================================ */
.vg-recently-watched {
  margin-bottom: 48px;
}

.vg-recently-watched__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.vg-recently-watched__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--vg-text);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.vg-recently-watched__title-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--vg-primary) 0%, #4da5ab 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(107, 184, 190, 0.35);
  flex-shrink: 0;
}

.vg-recently-watched__title-icon i {
  color: #ffffff;
  font-size: 1.2rem;
}

.vg-recently-watched__title-icon svg {
  width: 18px;
  height: 18px;
}

.vg-recently-watched__clear {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--vg-border);
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--vg-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vg-recently-watched__clear:hover {
  border-color: var(--vg-error);
  color: var(--vg-error);
}

.vg-recently-watched__clear svg {
  width: 16px;
  height: 16px;
}

.vg-recently-watched__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 12px;
  margin: -12px;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
============================================ */

/* Focus visible for all interactive elements */
.vg-card:focus-visible,
.vg-filter-card:focus-visible,
.vg-pill:focus-visible,
.vg-sticky-tab:focus-visible,
.vg-german-toggle:focus-visible,
.vg-sticky-german:focus-visible,
.vg-search input:focus-visible,
.vg-sticky-search input:focus-visible,
.vg-section__btn:focus-visible,
.vg-show-more:focus-visible,
.vg-carousel-dot:focus-visible,
.vg-popup__close:focus-visible,
.vg-popup__share-btn:focus-visible,
.vg-share-modal__close:focus-visible,
.vg-share-platform:focus-visible,
.vg-share-link button:focus-visible,
.vg-upnext__item:focus-visible,
.vg-playlist-item:focus-visible,
.vg-search-clear:focus-visible,
.vg-recently-watched__clear:focus-visible {
  outline: 2px solid var(--vg-primary);
  outline-offset: 2px;
}

/* Remove outline for mouse users */
.vg-card:focus:not(:focus-visible),
.vg-filter-card:focus:not(:focus-visible),
.vg-pill:focus:not(:focus-visible),
.vg-sticky-tab:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to content link */
.vg-skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--vg-primary);
  color: var(--vg-text-white);
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  transition: top 0.2s ease;
}

.vg-skip-link:focus {
  top: 0;
}

/* Screen reader only text */
.vg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ensure interactive elements have adequate touch targets */
@media (pointer: coarse) {
  .vg-pill,
  .vg-sticky-tab,
  .vg-section__btn,
  .vg-carousel-dot,
  .vg-card__save,
  .vg-card__share {
    min-height: 44px;
    min-width: 44px;
  }
  
  .vg-carousel-dot {
    width: 12px;
    height: 12px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .vg-card {
    border: 2px solid var(--vg-text);
  }
  
  .vg-pill,
  .vg-sticky-tab {
    border-width: 2px;
  }
  
  .vg-card__new,
  .vg-card__playlist-badge {
    border: 2px solid var(--vg-text-white);
  }
}

/* Reduced transparency for better readability */
@media (prefers-reduced-transparency) {
  .vg-popup__backdrop {
    background: var(--vg-bg-darker);
  }
  
  .vg-share-modal__backdrop {
    background: var(--vg-bg-dark);
  }
  
  .vg-featured__badge,
  .vg-german-toggle,
  .vg-search input {
    backdrop-filter: none;
    background: rgba(30, 41, 59, 0.95);
  }
}

/* ============================================
   CARD ACTIONS (Save & Share buttons)
============================================ */
.vg-card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 6;
}

.vg-card:hover .vg-card__actions {
  opacity: 1;
  transform: translateY(0);
}

.vg-card__save,
.vg-card__share {
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--vg-text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.vg-card__save:hover,
.vg-card__share:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.vg-card__save.saved {
  background: var(--vg-primary);
  border-color: var(--vg-primary);
  color: var(--vg-text-white);
}

.vg-card__save.saved:hover {
  background: var(--vg-primary-dark);
  border-color: var(--vg-primary-dark);
}

/* ============================================
   SAVED VIDEOS SECTION (Homepage)
============================================ */
.vg-saved-videos {
  margin-bottom: 48px;
}

.vg-saved-videos__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.vg-saved-videos__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--vg-text);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.vg-saved-videos__title-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--vg-primary) 0%, #4da5ab 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(107, 184, 190, 0.35);
  flex-shrink: 0;
}

.vg-saved-videos__title-icon i {
  color: #ffffff;
  font-size: 1.2rem;
}

.vg-saved-videos__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: var(--vg-primary);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vg-text-white);
}

.vg-saved-videos__view-all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--vg-border);
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--vg-text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vg-saved-videos__view-all:hover {
  border-color: var(--vg-primary);
  color: var(--vg-primary);
  text-decoration: none;
}

.vg-saved-videos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 12px;
  margin: -12px;
}

/* ============================================
   SAVED VIDEOS FULL VIEW
============================================ */
.vg-saved-full {
  padding: 24px 0;
}

.vg-saved-full__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--vg-border);
}

.vg-saved-full__back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--vg-bg-card);
  border: 1px solid var(--vg-border);
  border-radius: 10px;
  font-weight: 500;
  color: var(--vg-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vg-saved-full__back:hover {
  border-color: var(--vg-primary);
  color: var(--vg-primary);
}

.vg-saved-full__info {
  flex: 1;
}

.vg-saved-full__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--vg-text);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vg-saved-full__title i {
  color: var(--vg-primary);
}

.vg-saved-full__count {
  font-size: 1rem;
  color: var(--vg-text-secondary);
}

.vg-saved-full__clear {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--vg-border);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--vg-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vg-saved-full__clear:hover {
  border-color: var(--vg-error);
  color: var(--vg-error);
}

/* Empty State for Saved */
.vg-saved-full__empty {
  text-align: center;
  padding: 80px 24px;
}

.vg-saved-full__empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--vg-border-light) 0%, var(--vg-border) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--vg-text-secondary);
}

.vg-saved-full__empty h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vg-text);
  margin: 0 0 8px 0;
}

.vg-saved-full__empty p {
  color: var(--vg-text-secondary);
  margin: 0 0 24px 0;
}

.vg-saved-full__browse {
  padding: 12px 28px;
  background: var(--vg-primary);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  color: var(--vg-text-white);
  cursor: pointer;
  transition: background 0.2s ease;
}

.vg-saved-full__browse:hover {
  background: var(--vg-primary-dark);
}

/* ============================================
   KEYBOARD NAVIGATION
============================================ */
.vg-card:focus {
  outline: none;
}

.vg-card:focus-visible {
  outline: 3px solid var(--vg-primary);
  outline-offset: 4px;
  border-radius: var(--vg-radius);
}

/* Arrow key navigation visual indicator */
.vg-card.keyboard-focus {
  box-shadow: 0 0 0 3px var(--vg-primary), var(--vg-shadow-lg);
}

/* Popup Save Button */
.vg-popup__save-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all var(--vg-transition);
  white-space: nowrap;
}

.vg-popup__save-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.vg-popup__save-btn.saved {
  background: var(--vg-primary);
  border-color: var(--vg-primary);
  color: var(--vg-text-white);
}

.vg-popup__save-btn.saved:hover {
  background: var(--vg-primary-dark);
}

/* Responsive for Saved Videos */
@media (max-width: 992px) {
  .vg-saved-videos__grid,
  .vg-saved-full .vg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .vg-saved-full__header {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .vg-saved-full__info {
    order: 2;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .vg-saved-videos__grid,
  .vg-saved-full .vg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .vg-saved-full__title {
    font-size: 1.4rem;
  }
  
  .vg-card__actions {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 576px) {
  .vg-saved-videos__grid,
  .vg-saved-full .vg-grid {
    grid-template-columns: 1fr;
  }
  
  .vg-saved-videos__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Highlight animation for newly visible sections */
@keyframes vg-highlight {
  0% { 
    box-shadow: 0 0 0 0 rgba(107, 184, 190, 0);
  }
  30% { 
    box-shadow: 0 0 0 4px rgba(107, 184, 190, 0.3);
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(107, 184, 190, 0);
  }
}

/* Smooth section transitions */
.vg-recently-watched,
.vg-saved-videos {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Card removal animation */
.vg-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
}


/* ============================================
   VIDEO CARD PROGRESS BAR
============================================ */
.vg-card__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 8;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, height 0.2s ease, visibility 0.3s ease;
}

/* Only show progress bar on hover IF it has actual progress */
.vg-card:hover .vg-card__progress.has-progress {
  opacity: 1;
  visibility: visible;
  height: 5px;
}

/* Show always if has progress */
.vg-card__progress.has-progress {
  opacity: 1;
  visibility: visible;
}

.vg-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vg-primary) 0%, #4ecdc4 100%);
  border-radius: 0 2px 2px 0;
  transition: width 0.3s ease;
  min-width: 0;
}

/* Glow effect when has progress */
.vg-card__progress.has-progress .vg-card__progress-fill {
  box-shadow: 0 0 8px rgba(107, 184, 190, 0.5);
}

/* Resume time badge for videos with progress */
.vg-card__resume-time {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(107, 184, 190, 0.95);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vg-text-white);
  z-index: 5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.vg-card__resume-time i {
  font-size: 0.7rem;
}

/* Mobile adjustments for resume badge */
@media (max-width: 768px) {
  .vg-card__resume-time {
    padding: 4px 8px;
    font-size: 0.75rem;
    gap: 4px;
  }
  
  .vg-card__resume-time i {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .vg-card__resume-time {
    padding: 3px 6px;
    font-size: 0.7rem;
    bottom: 6px;
    left: 6px;
  }
}

/* Thumbnail loading state - blur + spinner */
.vg-card--thumb-loading .vg-card__thumb img {
  filter: blur(4px);
  transition: filter 0.3s ease;
}

.vg-card--thumb-loading .vg-card__thumb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--vg-primary);
  border-radius: 50%;
  animation: vg-thumb-spin 0.8s linear infinite;
  z-index: 10;
}

@keyframes vg-thumb-spin {
  to { transform: rotate(360deg); }
}

/* Smooth transition when new thumbnail loads */
.vg-card__thumb img {
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   AUTO-ADVANCE OVERLAY (Glassmorphism style)
============================================ */
.vg-auto-advance {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 20;
}

.vg-auto-advance.visible {
  opacity: 1;
  visibility: visible;
}

.vg-auto-advance__content {
  text-align: center;
  max-width: 480px;
  width: 90%;
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.vg-auto-advance__label {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.vg-auto-advance__label span {
  color: var(--vg-primary);
  font-weight: 700;
}

.vg-auto-advance__card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.vg-auto-advance__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
}

.vg-auto-advance__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Smooth loading spinner on thumbnail */
.vg-auto-advance__thumb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--vg-primary);
  border-radius: 50%;
  animation: vg-spin-smooth 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 2;
}

@keyframes vg-spin-smooth {
  to { transform: rotate(360deg); }
}

.vg-auto-advance__duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.vg-auto-advance__info {
  padding: 20px 24px;
  text-align: left;
}

.vg-auto-advance__part {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--vg-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.vg-auto-advance__title {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.vg-auto-advance__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 24px;
}

.vg-auto-advance__cancel {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.25s ease;
}

.vg-auto-advance__cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.vg-auto-advance__play {
  padding: 14px 32px;
  background: var(--vg-primary);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(107, 184, 190, 0.4);
}

.vg-auto-advance__play:hover {
  background: var(--vg-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 184, 190, 0.5);
}

.vg-auto-advance__progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.vg-auto-advance__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vg-primary), #4ecdc4);
  border-radius: 2px;
  transition: width 1s linear;
}

/* ============================================
   SMART BADGE (replaces separate playlist-badge and resume-time)
============================================ */
.vg-card__smart-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--vg-text-white);
  z-index: 5;
}

.vg-card__smart-badge i {
  font-size: 0.85rem;
  opacity: 0.8;
}

.vg-card__smart-badge--resume {
  background: rgba(107, 184, 190, 0.95);
}

.vg-card__smart-badge--resume i {
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .vg-card__smart-badge {
    padding: 5px 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .vg-card__smart-badge {
    padding: 4px 8px;
    font-size: 0.8rem;
    bottom: 6px;
    left: 6px;
  }
}

/* Featured Video Action Buttons */
.vg-featured__actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.vg-featured:hover .vg-featured__actions {
  opacity: 1;
  transform: translateY(0);
}

.vg-featured__save,
.vg-featured__share-btn {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vg-featured__save:hover,
.vg-featured__share-btn:hover {
  background: rgba(107, 184, 190, 0.9);
  border-color: var(--vg-primary);
  transform: scale(1.1);
}

.vg-featured__save.saved {
  background: var(--vg-primary);
  border-color: var(--vg-primary);
}

.vg-featured__save i,
.vg-featured__share-btn i {
  font-size: 1.1rem;
}

/* Auto-advance button icons */
.vg-auto-advance__cancel i,
.vg-auto-advance__play i {
  margin-right: 8px;
  font-size: 0.85rem;
}

/* ============================================
   MOBILE APP EXPERIENCE
   ============================================
   Breakpoint: 768px and below
   ============================================ */

/* ============================================
   STEP 1: BOTTOM NAVIGATION BAR
   ============================================ */

.vg-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 768px) {
  .vg-bottom-nav {
    display: block;
  }
}

.vg-bottom-nav__inner {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 64px;
  max-width: 500px;
  margin: 0 auto;
  padding-top: 4px;
}

.vg-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  min-width: 64px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.vg-bottom-nav__item::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 32px;
  height: 3px;
  background: var(--vg-primary);
  border-radius: 0 0 3px 3px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.vg-bottom-nav__item.active::before {
  transform: translateX(-50%) scaleX(1);
}

.vg-bottom-nav__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.vg-bottom-nav__icon i {
  font-size: 1.5rem;
}

.vg-bottom-nav__item.active .vg-bottom-nav__icon {
  color: var(--vg-primary);
  transform: scale(1.1);
}

.vg-bottom-nav__item:active .vg-bottom-nav__icon {
  transform: scale(0.9);
}

.vg-bottom-nav__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.vg-bottom-nav__item.active .vg-bottom-nav__label {
  color: var(--vg-primary);
}

/* Badge for saved count - positioned on top of icon - LARGE */
.vg-bottom-nav__badge {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(6px) scale(0);
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: linear-gradient(135deg, rgb(255, 93, 46) 0%, rgb(255, 122, 82) 100%);
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(255, 93, 46, 0.6);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
}

.vg-bottom-nav__badge.visible {
  transform: translateX(6px) scale(1);
}

/* Adjust body padding when bottom nav is visible */
@media (max-width: 768px) {
  body.video-gallery-page {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0));
  }
  
  /* Hide desktop filter cards on mobile */
  .vg-hero__sidebar {
    display: none;
  }
  
  /* Hide sticky nav tabs on mobile (replaced by bottom nav) */
  .vg-sticky-nav__tabs {
    display: none;
  }
  
  /* Adjust featured section to be full width */
  .vg-hero__featured {
    grid-template-columns: 1fr;
  }
}

/* Landscape adjustments */
@media (max-width: 896px) and (orientation: landscape) {
  .vg-bottom-nav__inner {
    height: 50px;
  }
  
  .vg-bottom-nav__label {
    display: none;
  }
  
  .vg-bottom-nav__icon i {
    font-size: 1.35rem;
  }
}

/* ============================================
   HIDE FLOATING CTAs ON MOBILE (Video Gallery)
   They overlap with bottom navigation bar
   ============================================ */
@media (max-width: 768px) {
  .video-gallery-page .oh26-floating-ctas-wrapper {
    display: none !important;
  }
}

/* Hide floating CTAs in landscape mode */
@media (max-width: 896px) and (orientation: landscape) {
  .video-gallery-page .oh26-floating-ctas-wrapper {
    display: none !important;
  }
}

/* ============================================
   GERMAN TOGGLE - ENSURE LABEL IS VISIBLE
   ============================================ */
@media (max-width: 576px) {
  /* Override the hide on small screens - we need the label */
  .vg-german-toggle__text {
    display: block;
    font-size: 0.8rem;
  }
  
  .vg-german-toggle {
    padding: 8px 12px;
  }
}

/* ============================================
   STEP 2: MOBILE HERO & CONTROLS
   ============================================ */

@media (max-width: 768px) {
  /* Hero section adjustments */
  .vg-hero__inner {
    padding: 20px 0 24px;
  }
  
  .vg-hero__top {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .vg-hero__title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .vg-hero__title {
    font-size: 1.4rem;
  }
  
  .vg-hero__video-count {
    font-size: 0.85rem;
  }
  
  /* Mobile controls - search and toggle side by side */
  .vg-hero__controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  
  /* Search takes remaining space */
  .vg-search {
    flex: 1;
    min-width: 0;
  }
  
  .vg-search input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    font-size: 0.95rem;
    border-radius: 22px;
  }
  
  .vg-search__icon {
    left: 14px;
    width: 18px;
    height: 18px;
  }
  
  /* German toggle - compact with label on left */
  .vg-german-toggle {
    flex-shrink: 0;
    flex-direction: row-reverse; /* Switch on right, label on left */
    padding: 10px 14px;
    gap: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .vg-german-toggle__switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
  }
  
  .vg-german-toggle__switch::after {
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
  }
  
  .vg-german-toggle.active .vg-german-toggle__switch::after {
    transform: translateX(20px);
  }
  
  .vg-german-toggle__text {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    order: -1; /* Ensure text is first visually */
  }
  
  /* Featured video */
  .vg-hero__featured {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .vg-featured {
    min-height: 200px;
    border-radius: 16px;
  }
  
  .vg-featured__title {
    font-size: 1.1rem;
  }
  
  .vg-featured__play {
    width: 60px;
    height: 60px;
  }
  
  .vg-featured__play i {
    font-size: 1.2rem;
  }
  
  .vg-featured__badge {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  
  .vg-featured__actions {
    top: 12px;
    right: 12px;
    gap: 8px;
  }
  
  .vg-featured__save,
  .vg-featured__share-btn {
    width: 38px;
    height: 38px;
  }
  
  /* Hide filter cards sidebar on mobile - replaced by bottom nav */
  .vg-hero__sidebar {
    display: none;
  }
  
  /* Hide sticky nav tabs - replaced by bottom nav */
  .vg-sticky-nav__tabs {
    display: none;
  }
  
  /* Adjust sticky nav for mobile */
  .vg-sticky-nav {
    top: 78px; /* Below main website mobile header with proper spacing */
  }
  
  .vg-sticky-nav__inner {
    padding: 10px 0;
    gap: 12px;
    height: auto;
  }
  
  /* Controls take full width */
  .vg-sticky-nav__controls {
    flex: 1;
    display: flex;
    gap: 12px;
  }
  
  /* Sticky search - takes remaining space */
  .vg-sticky-search {
    flex: 1;
    min-width: 0;
  }
  
  .vg-sticky-search input {
    width: 100%;
    height: 42px;
    font-size: 0.95rem;
    border-radius: 21px;
  }
  
  /* Hide sticky video count on mobile */
  .vg-sticky-count {
    display: none;
  }
  
  /* Sticky German toggle - styled like hero toggle */
  .vg-sticky-german {
    flex-shrink: 0;
    flex-direction: row-reverse;
    padding: 10px 14px;
    gap: 10px;
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }
  
  .vg-sticky-german__switch {
    width: 40px;
    height: 22px;
    border-radius: 11px;
  }
  
  .vg-sticky-german__switch::after {
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
  }
  
  .vg-sticky-german.active .vg-sticky-german__switch::after {
    transform: translateX(18px);
  }
  
  .vg-sticky-german__text {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
  }
  
  /* Sticky filter bar on mobile - shows when scrolling past subfilters */
  .vg-sticky-filter {
    top: 134px !important; /* 78px header + 56px sticky nav */
    padding: 10px 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(20, 30, 50, 0.96) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(107, 184, 190, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .vg-sticky-filter__inner {
    max-height: 52px;
    padding: 0;
  }
  
  .vg-sticky-filter:hover .vg-sticky-filter__inner,
  .vg-sticky-filter.expanded .vg-sticky-filter__inner {
    max-height: 400px;
  }
  
  .vg-sticky-filter__pills {
    padding: 8px 0;
    gap: 8px;
  }
  
  .vg-sticky-filter__label {
    font-size: 0.8rem;
  }
  
  .vg-sticky-filter .vg-pill {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  
  .vg-sticky-filter__more-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .vg-hero__title {
    font-size: 1.25rem;
  }
  
  .vg-search input {
    height: 42px;
    font-size: 0.9rem;
  }
  
  .vg-german-toggle {
    padding: 8px 10px;
    gap: 8px;
  }
  
  .vg-german-toggle__text {
    font-size: 0.82rem;
  }
  
  .vg-german-toggle__switch {
    width: 40px;
    height: 22px;
    border-radius: 11px;
  }
  
  .vg-german-toggle__switch::after {
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
  }
  
  .vg-german-toggle.active .vg-german-toggle__switch::after {
    transform: translateX(18px);
  }
}

/* Utility: Hide on mobile */
@media (max-width: 768px) {
  .vg-hide-mobile {
    display: none;
  }
}

/* ============================================
   STEP 3: VIDEO CARDS, GRID & PLAYER
   Mobile Optimization
   ============================================ */

@media (max-width: 768px) {
  /* Main content area */
  .vg-main {
    padding-top: 24px;
    padding-bottom: 80px; /* Space for bottom nav */
  }
  
  /* Section spacing */
  .vg-section {
    margin-bottom: 28px;
  }
  
  .vg-section__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
  }
  
  /* All section titles - consistent sizing */
  .vg-section__title,
  .vg-recently-watched__title,
  .vg-saved-videos__title {
    font-size: 1.2rem;
  }
  
  .vg-section__count {
    font-size: 0.8rem;
  }
  
  .vg-expand-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  
  /* Section title icons - smaller on mobile */
  .vg-section__title-icon,
  .vg-recently-watched__title-icon,
  .vg-saved-videos__title-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  
  .vg-section__title-icon i,
  .vg-recently-watched__title-icon i,
  .vg-saved-videos__title-icon i {
    font-size: 1rem;
  }
  
  /* ========== VIDEO GRID ========== */
  .vg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* ========== VIDEO CARDS ========== */
  .vg-card {
    border-radius: 12px;
  }
  
  .vg-card__thumb {
    border-radius: 12px 12px 0 0;
  }
  
  .vg-card__content {
    padding: 12px;
  }
  
  /* Video card titles - bigger and readable */
  .vg-card__title {
    font-size: 0.95rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }
  
  .vg-card__meta {
    margin-top: 8px;
    gap: 6px;
  }
  
  .vg-card__category {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
  
  .vg-card__duration {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
  
  /* Play button circle - properly sized for mobile */
  .vg-card__play-circle {
    width: 48px;
    height: 48px;
  }
  
  .vg-card__play-circle i {
    font-size: 1rem;
  }
  
  .vg-card__save {
    width: 34px;
    height: 34px;
    top: 8px;
    right: 8px;
  }
  
  .vg-card__save i {
    font-size: 0.9rem;
  }
  
  /* Playlist card stack effect - smaller on mobile */
  .vg-card--playlist::before {
    top: -4px;
    border-radius: 10px;
  }
  
  .vg-card--playlist::after {
    top: -8px;
    border-radius: 8px;
  }
  
  .vg-card__playlist-badge {
    padding: 4px 8px;
    font-size: 0.65rem;
    bottom: 8px;
    left: 8px;
  }
  
  /* ========== CAROUSEL ========== */
  .vg-carousel {
    margin: 0 -16px;
    padding: 0 16px;
  }
  
  .vg-carousel__track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .vg-carousel .vg-card {
    min-width: calc(75vw - 24px);
    max-width: calc(75vw - 24px);
    scroll-snap-align: start;
  }
  
  /* ========== CAROUSEL SECTION - MOST VIEWED ========== */
  .vg-section--carousel .vg-section__header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
  }
  
  /* Ensure title is visible */
  .vg-section--carousel .vg-section__title {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
  }
  
  .vg-section--carousel .vg-section__title-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  
  /* Controls - arrows and dots */
  .vg-section--carousel .vg-section__controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  
  /* Small arrow buttons */
  .vg-section--carousel .vg-section__btn {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
  }
  
  .vg-section--carousel .vg-section__btn i {
    font-size: 0.7rem;
  }
  
  /* Dots container - very compact */
  .vg-section--carousel .vg-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 0 4px;
    max-width: 60px;
  }
  
  /* Tiny dots */
  .vg-section--carousel .vg-carousel-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
  }
  
  .vg-section--carousel .vg-carousel-dot.active {
    width: 12px;
    height: 4px;
    border-radius: 2px;
    background: var(--vg-primary);
  }
  
  /* ========== SAVED FOR LATER SECTION ========== */
  .vg-saved-videos {
    margin-bottom: 32px;
  }
  
  .vg-saved-videos__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }
  
  .vg-saved-videos__title {
    flex: 1;
    min-width: 0;
  }
  
  /* View All button - styled like Clear button */
  .vg-saved-videos__view-all {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--vg-border);
  }
  
  .vg-saved-videos__view-all i {
    display: none;
  }
  
  .vg-saved-videos__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 0 12px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  
  .vg-saved-videos__grid::-webkit-scrollbar {
    display: none;
  }
  
  .vg-saved-videos__grid .vg-card {
    flex: 0 0 auto;
    width: calc(70vw - 24px);
    max-width: 280px;
    scroll-snap-align: start;
  }
  
  /* ========== RECENTLY WATCHED ========== */
  .vg-recently-watched {
    margin-bottom: 24px;
  }
  
  .vg-recently-watched__header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  /* Title size set above with other section titles */
  
  .vg-recently-watched__clear {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  /* Continue Watching - horizontal scroll like carousel */
  .vg-recently-watched__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 0 12px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  
  .vg-recently-watched__grid::-webkit-scrollbar {
    display: none;
  }
  
  .vg-recently-watched__grid .vg-card {
    flex: 0 0 auto;
    width: calc(70vw - 24px);
    max-width: 280px;
    scroll-snap-align: start;
  }
  
  /* ========== SUBFILTERS (Category pills) - STICKY ON MOBILE ========== */
  .vg-subfilters {
    position: -webkit-sticky;
    position: sticky;
    top: 134px; /* 78px main header + 56px sticky nav */
    z-index: 97;
    padding: 14px 16px 18px 16px; /* More padding at bottom */
    margin: 0 -16px 20px -16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(20, 30, 50, 0.96) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(107, 184, 190, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  }
  
  /* Collapsed state - single row */
  .vg-subfilters:not(.expanded) {
    max-height: 60px;
    overflow: hidden;
  }
  
  /* Fade gradient on right edge */
  .vg-subfilters:not(.expanded)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to left, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.9) 30%, transparent 100%);
    pointer-events: none;
    z-index: 2;
  }
  
  /* Expanded state */
  .vg-subfilters.expanded {
    max-height: 500px;
    padding-bottom: 20px;
  }
  
  .vg-subfilters.expanded::after {
    display: none;
  }
  
  .vg-subfilters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
  
  .vg-subfilters:not(.expanded) .vg-subfilters__row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-right: 70px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .vg-subfilters:not(.expanded) .vg-subfilters__row::-webkit-scrollbar {
    display: none;
  }
  
  .vg-subfilters__label {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 4px;
  }
  
  /* Pills styling for mobile */
  .vg-subfilters .vg-pill {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
  }
  
  .vg-subfilters .vg-pill.active {
    background: linear-gradient(135deg, var(--vg-primary) 0%, #5aa8ae 100%);
    border-color: var(--vg-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(107, 184, 190, 0.4);
  }
  
  /* Expand/collapse toggle button */
  .vg-subfilters__toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: rgba(107, 184, 190, 0.2);
    border: 1px solid rgba(107, 184, 190, 0.35);
    border-radius: 50%;
    color: var(--vg-primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 5;
  }
  
  .vg-subfilters__toggle:active {
    transform: translateY(-50%) scale(0.9);
    background: rgba(107, 184, 190, 0.3);
  }
  
  .vg-subfilters.expanded .vg-subfilters__toggle {
    top: 12px;
    transform: translateY(0) rotate(180deg);
  }
  
  .vg-subfilters.expanded .vg-subfilters__toggle:active {
    transform: translateY(0) rotate(180deg) scale(0.9);
  }
  
  /* ========== VIDEO POPUP - FULL SCREEN MOBILE ========== */
  .vg-popup {
    padding: 0;
  }
  
  /* Container fills entire viewport */
  .vg-popup__container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--vg-bg-dark);
  }
  
  /* Main section - video + info */
  .vg-popup__main {
    flex-shrink: 0;
    position: relative;
  }
  
  /* Video player - 16:9 ratio */
  .vg-popup__player {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #000;
  }
  
  .vg-popup__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  /* ========== FLOATING BUTTONS OVER VIDEO ========== */
  /* Hide desktop buttons, show floating */
  .vg-popup__float-btn {
    display: flex;
    position: absolute;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.9rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
  }
  
  .vg-popup__float-btn:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.8);
  }
  
  /* Save button - top left */
  .vg-popup__float-save {
    top: 10px;
    left: 10px;
  }
  
  .vg-popup__float-save.saved {
    background: var(--vg-primary);
    border-color: var(--vg-primary);
  }
  
  .vg-popup__float-save.saved i {
    font-weight: 900;
  }
  
  /* Share button - next to save */
  .vg-popup__float-share {
    top: 10px;
    left: 54px;
  }
  
  /* Close button - top right */
  .vg-popup__float-close {
    top: 10px;
    right: 10px;
  }
  
  /* Hide desktop buttons on mobile */
  .vg-popup__info-actions {
    display: none !important;
  }
  
  .vg-popup__mobile-close,
  .vg-popup__mobile-actions {
    display: none !important;
  }
  
  /* Info section - title and tags */
  .vg-popup__info {
    padding: 12px 16px;
    flex-direction: column;
    gap: 6px;
    border-top: none;
    background: var(--vg-bg-dark);
    flex-shrink: 0;
  }
  
  .vg-popup__info-left {
    width: 100%;
  }
  
  .vg-popup__title {
    font-size: 1rem;
    margin-bottom: 4px;
    line-height: 1.3;
    font-weight: 600;
  }
  
  .vg-popup__meta {
    gap: 4px;
    flex-wrap: wrap;
  }
  
  .vg-popup__tag {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
  
  /* Hide sidebar header close button on mobile */
  .vg-popup__sidebar-header .vg-popup__close {
    display: none;
  }
  
  /* ========== SIDEBAR - SCROLLABLE CONTENT AREA ========== */
  .vg-popup__sidebar {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--vg-bg-dark);
  }
  
  .vg-popup__sidebar-header {
    display: none; /* Hide on mobile - use inline headers */
  }
  
  /* ========== PLAYLIST SECTION ========== */
  .vg-popup__playlist {
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .vg-popup__playlist:not(.visible) {
    display: none;
  }
  
  .vg-popup__playlist-header {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(107, 184, 190, 0.1);
    border-bottom: 1px solid rgba(107, 184, 190, 0.15);
  }
  
  .vg-popup__playlist-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vg-primary);
  }
  
  .vg-popup__playlist-title i {
    font-size: 0.9rem;
  }
  
  .vg-popup__playlist-toggle {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--vg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    margin-left: 8px;
  }
  
  .vg-popup__playlist-info {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
  }
  
  .vg-popup__playlist-stat {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .vg-popup__playlist-items {
    max-height: none;
    overflow: visible;
  }
  
  .vg-playlist-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }
  
  .vg-playlist-item:last-child {
    border-bottom: none;
  }
  
  .vg-playlist-item:active {
    background: rgba(107, 184, 190, 0.1);
  }
  
  .vg-playlist-item.active {
    background: rgba(107, 184, 190, 0.15);
    border-left: 3px solid var(--vg-primary);
    padding-left: 13px;
  }
  
  .vg-playlist-item__status {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
  }
  
  .vg-playlist-item.active .vg-playlist-item__status {
    background: var(--vg-primary);
  }
  
  .vg-playlist-item__num {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .vg-playlist-item.active .vg-playlist-item__num {
    color: #fff;
  }
  
  .vg-playlist-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vg-primary);
    border-radius: 50%;
    color: #fff;
    font-size: 0.65rem;
  }
  
  .vg-playlist-item.completed .vg-playlist-item__overlay {
    background: #22c55e;
  }
  
  .vg-playlist-item.completed .vg-playlist-item__overlay svg {
    width: 14px;
    height: 14px;
  }
  
  .vg-playlist-item__content {
    flex: 1;
    min-width: 0;
  }
  
  .vg-playlist-item__title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .vg-playlist-item.active .vg-playlist-item__title {
    color: #fff;
    font-weight: 600;
  }
  
  .vg-playlist-item__meta {
    display: flex;
    gap: 10px;
    margin-top: 2px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
  }
  
  .vg-playlist-item__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
  }
  
  .vg-playlist-item__progress-fill {
    height: 100%;
    background: var(--vg-primary);
  }
  
  /* Collapsed playlist state */
  .vg-popup__playlist.collapsed .vg-popup__playlist-items {
    display: none;
  }
  
  /* ========== UP NEXT SECTION ========== */
  .vg-upnext {
    flex-shrink: 0;
    background: var(--vg-bg-dark);
  }
  
  /* Up Next header on mobile */
  .vg-upnext::before {
    content: 'Up Next';
    display: block;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(20, 30, 50, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 5;
  }
  
  .vg-upnext-item {
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }
  
  .vg-upnext-item:last-child {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
    border-bottom: none;
  }
  
  .vg-upnext-item:active {
    background: rgba(107, 184, 190, 0.08);
  }
  
  .vg-upnext-thumb {
    width: 100px;
    height: 56px;
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
  }
  
  .vg-upnext-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .vg-upnext-thumb .vg-upnext-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.65rem;
    color: #fff;
  }
  
  .vg-upnext-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .vg-upnext-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
  }
  
  .vg-upnext-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
  }
  }
  
  /* ========== MOBILE FILTERS PANEL ========== */
  .vg-mobile-filters-btn {
    display: flex;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 21px;
    color: var(--vg-primary);
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  .vg-mobile-filters-btn:active {
    background: rgba(107, 184, 190, 0.2);
  }
  
  .vg-mobile-filters-btn.has-filter {
    background: var(--vg-primary);
    color: #fff;
  }
  
  .vg-mobile-filters {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .vg-mobile-filters.active {
    pointer-events: auto;
    opacity: 1;
  }
  
  .vg-mobile-filters__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
  }
  
  .vg-mobile-filters__panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: linear-gradient(180deg, rgba(20, 30, 50, 0.99) 0%, rgba(15, 23, 42, 0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  }
  
  .vg-mobile-filters.active .vg-mobile-filters__panel {
    transform: translateX(0);
  }
  
  .vg-mobile-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }
  
  .vg-mobile-filters__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
  }
  
  .vg-mobile-filters__close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  
  .vg-mobile-filters__close:active {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .vg-mobile-filters__content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
  }
  
  .vg-mobile-filters__section {
    margin-bottom: 24px;
  }
  
  .vg-mobile-filters__section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }
  
  .vg-mobile-filters__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .vg-mobile-filters__pill {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .vg-mobile-filters__pill:active {
    transform: scale(0.95);
  }
  
  .vg-mobile-filters__pill.active {
    background: var(--vg-primary);
    border-color: var(--vg-primary);
    color: #fff;
  }
  
  /* Hide desktop sticky filter on mobile */
  .vg-sticky-filter {
    display: none !important;
  }
  
  /* Hide inline subfilters on mobile - use panel instead */
  .vg-subfilters {
    display: none !important;
  }
  
  /* ========== CAROUSEL - HIDE DOTS, OPTIMIZE CONTROLS ========== */
  .vg-section--carousel .vg-section__header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
  }
  
  .vg-section--carousel .vg-section__title {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    font-size: 1rem;
  }
  
  .vg-section--carousel .vg-section__title-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  
  /* Hide dots completely on mobile */
  .vg-carousel-dots {
    display: none !important;
  }
  
  /* Simple arrow controls */
  .vg-section--carousel .vg-section__controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  
  .vg-section--carousel .vg-section__btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .vg-section--carousel .vg-section__btn:active {
    background: rgba(107, 184, 190, 0.3);
  }
  
  .vg-section--carousel .vg-section__btn i {
    font-size: 0.75rem;
  }
  
  /* ========== GRID SECTIONS - LET'S TALK FIX ========== */
  .vg-grid--collapsed {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: 4px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .vg-grid--collapsed::-webkit-scrollbar {
    display: none;
  }
  
  .vg-grid--collapsed .vg-card {
    flex: 0 0 auto;
    width: calc(85vw - 24px);
    max-width: 300px;
    scroll-snap-align: start;
  }
  
  .vg-grid.expanded {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* Show more button styling */
  .vg-show-more {
    display: flex;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--vg-primary);
    font-size: 0.9rem;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
  }
  
  .vg-show-more:active {
    background: rgba(107, 184, 190, 0.15);
  }
  
  .vg-upnext-info {
    gap: 3px;
    min-width: 0;
    flex: 1;
  }
  
  .vg-upnext-title {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
    line-height: 1.3;
    font-weight: 500;
  }
  
  .vg-upnext-duration {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
  }
  
  /* ========== SHARE MODAL ========== */
  .vg-share-modal__content {
    width: calc(100% - 32px);
    max-width: 340px;
    padding: 20px;
    border-radius: 16px;
  }
  
  .vg-share-modal__header {
    margin-bottom: 16px;
  }
  
  .vg-share-modal__title {
    font-size: 1.1rem;
  }
  
  .vg-share-modal__preview {
    padding: 12px;
    margin-bottom: 18px;
  }
  
  .vg-share-modal__preview-thumb {
    width: 80px;
    height: 45px;
  }
  
  .vg-share-modal__preview-info h4 {
    font-size: 0.85rem;
  }
  
  .vg-share-platforms {
    gap: 16px;
    margin-bottom: 18px;
  }
  
  .vg-share-platform__icon {
    width: 50px;
    height: 50px;
  }
  
  .vg-share-platform span {
    font-size: 0.75rem;
  }
  
  .vg-share-link {
    flex-direction: column;
    gap: 10px;
  }
  
  .vg-share-link input {
    width: 100%;
    font-size: 0.82rem;
    padding: 12px;
  }
  
  .vg-share-link button {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  
  /* ========== EMPTY STATE ========== */
  .vg-empty {
    padding: 48px 24px;
  }
  
  .vg-empty__icon {
    width: 70px;
    height: 70px;
  }
  
  .vg-empty__icon i {
    font-size: 2rem;
  }
  
  .vg-empty__title {
    font-size: 1.2rem;
  }
  
  .vg-empty__text {
    font-size: 0.9rem;
  }
  
  /* ========== TOAST NOTIFICATION ========== */
  .vg-toast {
    bottom: calc(84px + env(safe-area-inset-bottom, 0));
    left: 16px;
    right: 16px;
    transform: translateY(100px);
    max-width: none;
    padding: 14px 18px;
    font-size: 0.9rem;
    border-radius: 12px;
  }
  
  .vg-toast.active {
    transform: translateY(0);
  }
  
  /* ========== TOUCH ENHANCEMENTS ========== */
  .vg-card {
    -webkit-tap-highlight-color: transparent;
  }
  
  .vg-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .vg-filter-card {
    -webkit-tap-highlight-color: transparent;
  }
  
  .vg-pill {
    -webkit-tap-highlight-color: transparent;
  }
  
  .vg-pill:active {
    transform: scale(0.95);
  }
  
  /* Show play button on touch devices */
  .vg-card__play {
    opacity: 1;
  }
  
  .vg-card__play-circle {
    transform: scale(1);
  }
  
  /* Disable hover zoom on touch devices */
  .vg-card:hover .vg-card__thumb img {
    transform: none;
  }
  
  .vg-upnext-item:active {
    background: rgba(107, 184, 190, 0.15);
  }


/* ========== SMALL PHONES ========== */
@media (max-width: 480px) {
  .vg-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  /* Single column cards can have bigger titles */
  .vg-card__title {
    font-size: 1rem;
  }
  
  .vg-card__content {
    padding: 14px;
  }
  
  /* Carousel cards full width on small phones */
  .vg-carousel .vg-card {
    min-width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }
  
  /* Saved section cards full width */
  .vg-saved-videos__grid .vg-card {
    width: calc(85vw - 24px);
    max-width: none;
  }
  
  /* Carousel controls even smaller */
  .vg-section--carousel .vg-section__btn {
    width: 28px;
    height: 28px;
  }
  
  .vg-section--carousel .vg-section__btn i {
    font-size: 0.75rem;
  }
  
  .vg-carousel-dot {
    width: 4px;
    height: 4px;
  }
  
  .vg-carousel-dot.active {
    width: 10px;
  }
  
  /* Popup title stays big */
  .vg-popup__title {
    font-size: 1.1rem;
  }
  
  .vg-popup__info {
    padding: 12px 14px;
    gap: 10px;
  }
  
  .vg-popup__save-btn,
  .vg-popup__share-btn {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
  
  .vg-upnext-thumb {
    width: 90px;
    height: 50px;
  }
  
  .vg-upnext-title {
    font-size: 0.82rem;
  }
  
  .vg-upnext-item {
    padding: 8px 14px;
    gap: 10px;
  }
  
  /* Section titles consistent */
  .vg-section__title,
  .vg-recently-watched__title,
  .vg-saved-videos__title {
    font-size: 1.1rem;
  }
  
  /* Section title icons smaller */
  .vg-section__title-icon,
  .vg-recently-watched__title-icon,
  .vg-saved-videos__title-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  
  .vg-section__title-icon i,
  .vg-recently-watched__title-icon i,
  .vg-saved-videos__title-icon i {
    font-size: 0.9rem;
  }
  
  /* Bottom nav compact */
  .vg-bottom-nav__icon i {
    font-size: 1.3rem;
  }
  
  .vg-bottom-nav__label {
    font-size: 0.65rem;
  }
  
  /* Badge stays large on small phones */
  .vg-bottom-nav__badge {
    min-width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }
}

/* ========== LANDSCAPE MODE ========== */
@media (max-width: 896px) and (orientation: landscape) {
  .vg-popup__container {
    flex-direction: row;
    height: 100vh;
    height: 100dvh;
  }
  
  .vg-popup__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  
  .vg-popup__player {
    flex: 1;
    aspect-ratio: unset;
    height: 100%;
  }
  
  .vg-popup__info {
    display: none; /* Hide info in landscape - focus on video */
  }
  
  .vg-popup__sidebar {
    width: 280px;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    height: 100%;
  }
  
  .vg-popup__mobile-close {
    display: flex;
  }
  
  .vg-bottom-nav__inner {
    height: 52px;
  }
  
  .vg-bottom-nav__label {
    display: none;
  }
  
  .vg-bottom-nav__icon i {
    font-size: 1.4rem;
  }
}

/* Very small landscape - hide sidebar, show close button */
@media (max-width: 667px) and (orientation: landscape) {
  .vg-popup__sidebar {
    display: none;
  }
  
  .vg-popup__mobile-close {
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
  }
}

/* ========== iOS SAFE AREAS ========== */
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .vg-popup__container {
      padding-top: env(safe-area-inset-top, 0);
    }
    
    .vg-bottom-nav {
      padding-bottom: env(safe-area-inset-bottom, 0);
    }
    
    .vg-toast {
      bottom: calc(84px + env(safe-area-inset-bottom, 0));
    }
  }
}