/* ==========================================
   VIBE - TikTok-Style Video Platform
   Design System & Global Styles
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Dark Theme with Vibrant Accents */
  --color-bg-primary: #0a0a0f;
  --color-bg-secondary: #15151f;
  --color-bg-tertiary: #1f1f2e;
  --color-bg-elevated: #2a2a3e;

  /* Gradient Accents */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-glow: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

  /* Solid Colors */
  --color-primary: #667eea;
  --color-secondary: #f5576c;
  --color-accent: #00f2fe;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #a1a1aa;
  --color-text-tertiary: #71717a;
  --color-text-muted: #52525b;

  /* Border & Divider */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-divider: rgba(255, 255, 255, 0.05);

  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(10px);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Z-Index Layers */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
  --z-toast: 50;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* ==========================================
   LAYOUT
   ========================================== */

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 80px;
  /* Space for mobile nav */
}

/* ==========================================
   SYSTEM BANNER
   ========================================== */
.system-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 16px;
  border-radius: 50px;

  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

  animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 90%;
  width: auto;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -100px);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-text {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
  /* Truncate on huge messages */
}

@media (max-width: 480px) {
  .banner-text {
    font-size: 0.8rem;
    max-width: 200px;
  }
}

.banner-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  display: flex;
  align-items: center;
}

.banner-close:hover {
  color: white;
}

/* Banner Types */
.banner-info {
  border-left: 4px solid #4ecdc4;
}

.banner-warning {
  border-left: 4px solid #f1c40f;
}

.banner-error {
  border-left: 4px solid #e74c3c;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  z-index: var(--z-sticky);
  display: block;
  /* Always visible */
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-nav {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: none;
  color: var(--color-text-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

.nav-link.active {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

.nav-link .icon {
  font-size: 1.25rem;
}

.navbar-actions {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}




/* Bottom Navigation (Mobile) */
.bottom-nav {
  display: none;
  /* Hidden - using top nav only on desktop */
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
  color: var(--color-text-tertiary);
  transition: all var(--transition-fast);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-item.active {
  color: var(--color-text-primary);
}

.nav-item .icon {
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
}

.nav-item:hover .icon,
.nav-item.active .icon {
  transform: scale(1.1);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-primary);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid var(--glass-border);
  color: var(--color-text-primary);
  font-size: 1.25rem;
}

.btn-icon:hover {
  background: var(--color-bg-elevated);
  transform: scale(1.1);
}

/* ==========================================
   CARDS & CONTAINERS
   ========================================== */

.card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.glass-card {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */

.input {
  width: 100%;
  padding: var(--spacing-md);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input::placeholder {
  color: var(--color-text-muted);
}

textarea.input {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-secondary);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--spacing-sm);
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ==========================================
   ANIMATIONS & SKELETONS
   ========================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

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

  100% {
    background-position: 200% 0;
  }
}

.fade-in {
  animation: fadeIn var(--transition-base) ease forwards;
}

.slide-up {
  animation: slideUp var(--transition-base) ease;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg,
      var(--color-bg-secondary) 25%,
      var(--color-bg-elevated) 50%,
      var(--color-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 1rem;
  margin-bottom: var(--spacing-xs);
  width: 100%;
}

.skeleton-text.short {
  width: 60%;
}

/* Specific Component Skeletons */
.video-card-skeleton {
  height: 100vh;
  max-height: calc(100vh - 126px);
  /* Mobile height */
  width: 100%;
  margin-bottom: var(--spacing-sm);
  position: relative;
  background: var(--color-bg-secondary);
}

.profile-header-skeleton {
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.skeleton-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.skeleton-info {
  flex: 1;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (min-width: 768px) {
  .navbar {
    display: block;
  }

  .bottom-nav {
    /* display: none; */
  }

  .main-content {
    padding-top: 60px;
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .main-content {
    max-width: 1400px;
  }
}

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ==========================================
   LEGAL MODAL
   ========================================== */

/* Global Legal Modal (Detached Strategy) */
#legal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#legal-content-box {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  background-color: #ffffff;
  color: #1a1a1a;
  z-index: 2001;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  /* display: flex; REMOVED to prevent blocking clicks when native display is none */
  flex-direction: column;
  overflow: hidden;
  /* Contains scrollable body */
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#legal-content-box.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.legal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.legal-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.legal-close-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-close-btn:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.legal-body {
  padding: 24px;
  overflow-y: auto;
  line-height: 1.6;
  color: #374151;
  font-size: 0.95rem;
}

.legal-body h2 {
  color: #111827;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.legal-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body p {
  margin-bottom: 1rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 9999;
  /* Max z-index */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #ffffff !important;
  /* Force Solid White */
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: 12px;
  border: 1px solid #ccc;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
  color: #000000 !important;
  /* Force Black Text Base */
  /* Removed transforms to avoid rendering issues */
}

.modal-header {
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eeeeee;
  /* Light border */
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #000000 !important;
}

.close-btn {
  background: transparent;
  border: none;
  color: #333333 !important;
  /* Dark gray close button */
  font-size: 2rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  line-height: 1;
  transition: color var(--transition-fast);
}

.close-btn:hover {
  color: #000000 !important;
}

.modal-body {
  padding: var(--spacing-lg);
  overflow-y: auto;
  font-size: 0.95rem;
  color: #000000 !important;
  /* Force Black Body Text */
  line-height: 1.6;
  background-color: #ffffff !important;
}

.modal-body h2,
.modal-body h3,
.modal-body h4,
.modal-body strong {
  color: #000000 !important;
  margin-top: 1rem;
  font-weight: 700;
}

.modal-body p,
.modal-body ul,
.modal-body li {
  color: #000000 !important;
  /* Slightly softer white for body text */
}

.modal-body h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.modal-body ul {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.modal-body li {
  margin-bottom: var(--spacing-xs);
}

.auth-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.auth-link:hover {
  color: var(--color-accent);
}

/* DELETE VIDEO BUTTON (Mini) */
.delete-mini-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  /* Red */
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.delete-mini-btn:hover {
  background: #ef4444;
  /* Brighter red on hover */
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

/* UPLOAD PAGE STYLES */
.upload-modes {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding: 4px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
  width: fit-content;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn.active {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.upload-icon-large {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.stitch-timeline {
  margin-bottom: 1.5rem;
  background: var(--color-bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.timeline-tracks {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.timeline-clip {
  flex: 0 0 80px;
  height: 60px;
  background: #333;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.timeline-clip.active {
  border-color: var(--color-primary);
}

.timeline-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-video-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;

  z-index: 5;
}

/* ==========================================
   EXPLORE PAGE STYLES
   ========================================== */

.explore-container {
  padding: var(--spacing-md);
  max-width: 1200px;
  /* Constrain width on large screens */
  margin: 0 auto;
}

.explore-header h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-xl);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Grids */
.hashtags-grid,
.creators-grid {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  padding-bottom: var(--spacing-md);
  padding-left: 2px;
  /* Fix scroll clipping */
}

/* Hashtag Cards */
.hashtag-card {
  min-width: 160px;
  background: var(--color-bg-elevated);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.hashtag-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.hashtag-card.trending {
  border-color: rgba(245, 87, 108, 0.3);
  background: linear-gradient(135deg, var(--color-bg-elevated), rgba(245, 87, 108, 0.1));
}

.hashtag-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
  font-weight: 800;
}

.hashtag-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.hashtag-count {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* Creator Cards */
.creator-card {
  min-width: 150px;
  background: var(--color-bg-elevated);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--color-border);
  gap: var(--spacing-sm);
}

.creator-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.creator-name {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.creator-username {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.creator-stats {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

/* Video Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Explore Video Card */
.explore-video-card {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-secondary);
  transition: transform 0.2s;
}

.explore-video-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  background: var(--color-bg-tertiary);
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-sm);
}

.video-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-sm);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 2;
}

.video-card-stats {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  margin-bottom: 40px;
  /* Make room for creator info */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.video-card-creator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.creator-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  object-fit: cover;
}