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

body {
  background: #06060c;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a14; }
::-webkit-scrollbar-thumb { background: #7c3aed44; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed88; }

/* Hero animated gradient */
@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 0%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

.hero-gradient {
  background: linear-gradient(135deg, #06060c 0%, #1a0533 20%, #0c1445 40%, #06060c 60%, #1a0533 80%, #0c1445 100%);
  background-size: 400% 400%;
  animation: heroGradient 12s ease infinite;
}

/* Particle shimmer */
@keyframes shimmer {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  50% { opacity: 1; transform: translateY(-20px) scale(1); }
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: shimmer var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0;
}

/* Glow pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3), 0 0 40px rgba(124, 58, 237, 0.1); }
  50% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.5), 0 0 60px rgba(124, 58, 237, 0.2); }
}

.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Generate button pulse */
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.7), 0 0 80px rgba(168, 85, 247, 0.3); }
}

.btn-pulse {
  animation: btnPulse 2s ease-in-out infinite;
}

/* Glassmorphism card */
.glass-card {
  background: rgba(15, 15, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
  transform: translateY(-4px);
}

/* Image hover zoom */
.img-zoom {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover {
  transform: scale(1.05);
}

/* Fade in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Spinner */
@keyframes spin-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-glow {
  width: 48px;
  height: 48px;
  border: 3px solid transparent;
  border-top: 3px solid #a855f7;
  border-right: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin-glow 1s linear infinite;
}

/* Tab pill */
.tab-pill {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tab-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(59, 130, 246, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-pill:hover::before,
.tab-pill.active::before {
  opacity: 1;
}

.tab-pill.active {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

/* Lightbox overlay */
.lightbox-overlay {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Masonry-ish grid */
.masonry-grid {
  columns: 1;
  column-gap: 16px;
}

@media (min-width: 640px) {
  .masonry-grid { columns: 2; }
}

@media (min-width: 1024px) {
  .masonry-grid { columns: 3; }
}

@media (min-width: 1280px) {
  .masonry-grid { columns: 4; }
}

.masonry-grid > * {
  break-inside: avoid;
  margin-bottom: 16px;
}

/* Input glow */
.input-glow {
  transition: all 0.3s ease;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.input-glow:focus {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2), 0 0 40px rgba(168, 85, 247, 0.05);
  outline: none;
}

/* Play button overlay */
.play-overlay {
  transition: all 0.3s ease;
}

.play-overlay:hover {
  background: rgba(168, 85, 247, 0.3);
}

/* Loading skeleton */
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.skeleton {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* Stagger animations */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }
.stagger-9 { animation-delay: 0.45s; }
.stagger-10 { animation-delay: 0.5s; }
.stagger-11 { animation-delay: 0.55s; }
.stagger-12 { animation-delay: 0.6s; }