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

body {
  background-color: #06060b;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Aurora background */
@keyframes aurora {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 0%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 100%;
  }
}

.aurora-bg {
  background: linear-gradient(
    135deg,
    #06060b 0%,
    #0d0620 15%,
    #150a30 25%,
    #1a0535 35%,
    #200840 45%,
    #150a30 55%,
    #0a1025 65%,
    #061520 75%,
    #06060b 100%
  );
  background-size: 400% 400%;
  animation: aurora 20s ease infinite;
}

/* Floating orbs */
@keyframes float-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, -50px) scale(1.1); }
  66% { transform: translate(-50px, 50px) scale(0.9); }
}

@keyframes float-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, 60px) scale(0.95); }
  66% { transform: translate(60px, -40px) scale(1.05); }
}

@keyframes float-orb-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 80px) scale(1.1); }
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  top: 10%; left: 10%;
  animation: float-orb-1 15s ease-in-out infinite;
}

.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(236,72,153,0.12) 0%, transparent 70%);
  top: 40%; right: 5%;
  animation: float-orb-2 18s ease-in-out infinite;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation: float-orb-3 12s ease-in-out infinite;
}

/* Shimmer animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-btn {
  background: linear-gradient(
    90deg,
    #8b5cf6 0%,
    #ec4899 25%,
    #8b5cf6 50%,
    #06b6d4 75%,
    #8b5cf6 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.shimmer-btn:hover {
  animation-duration: 1.5s;
  box-shadow: 0 0 30px rgba(139,92,246,0.4), 0 0 60px rgba(236,72,153,0.2);
}

/* Glow input */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(139,92,246,0.2), 0 0 40px rgba(139,92,246,0.05); }
  50% { box-shadow: 0 0 30px rgba(139,92,246,0.4), 0 0 60px rgba(236,72,153,0.1); }
}

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

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

@keyframes spin-ring-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.spinner-ring {
  border: 2px solid transparent;
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin-ring 1s linear infinite;
}

.spinner-ring-2 {
  border: 2px solid transparent;
  border-top-color: #ec4899;
  border-radius: 50%;
  animation: spin-ring-reverse 0.8s linear infinite;
}

.spinner-ring-3 {
  border: 2px solid transparent;
  border-top-color: #06b6d4;
  border-radius: 50%;
  animation: spin-ring 1.2s linear infinite;
}

/* Card hover */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 30px rgba(139,92,246,0.15), 0 0 60px rgba(139,92,246,0.05);
}

/* Glass effect */
.glass {
  background: rgba(18, 18, 31, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.glass-strong {
  background: rgba(18, 18, 31, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

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

.tab-pill.active {
  background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(236,72,153,0.2));
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 0 20px rgba(139,92,246,0.2);
}

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

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

/* Skeleton loading */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.skeleton {
  background: linear-gradient(90deg, #12121f 25%, #1a1a2e 50%, #12121f 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Lightbox */
.lightbox-overlay {
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

/* Category filter */
.filter-tag {
  transition: all 0.25s ease;
}

.filter-tag.active {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(139,92,246,0.3);
}

/* Play icon overlay */
@keyframes pulse-play {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #06060b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#8b5cf6, #ec4899);
  border-radius: 3px;
}

/* Masonry-like with columns */
@media (min-width: 768px) {
  .masonry-grid {
    columns: 2;
    column-gap: 16px;
  }
}

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

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

/* Title gradient text */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #8b5cf6 40%, #ec4899 60%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Image frame glow */
.image-frame {
  box-shadow: 0 0 40px rgba(139,92,246,0.1), 0 0 80px rgba(139,92,246,0.05);
}