:root {
  --background: 248 42% 97%;
  --foreground: 246 34% 13%;
  --primary: 263 91% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 186 90% 45%;
  --secondary-foreground: 245 35% 10%;
  --muted: 248 22% 90%;
  --muted-foreground: 247 13% 44%;
  --destructive: 348 86% 56%;
  --destructive-foreground: 0 0% 100%;
  --border: 248 25% 84%;
  --card: 0 0% 100%;
  --card-foreground: 246 34% 13%;
  --shadow-sm: 0 8px 18px hsl(246 34% 13% / 0.08);
  --shadow-md: 0 18px 45px hsl(246 34% 13% / 0.13);
  --shadow-lg: 0 28px 70px hsl(263 91% 30% / 0.22);
  --transition-fast: 150ms ease;
  --transition-smooth: 280ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.75rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
}

.dark {
  --background: 246 34% 8%;
  --foreground: 248 42% 96%;
  --primary: 267 95% 68%;
  --primary-foreground: 246 34% 8%;
  --secondary: 184 88% 55%;
  --secondary-foreground: 246 34% 8%;
  --muted: 247 25% 16%;
  --muted-foreground: 248 18% 72%;
  --destructive: 350 88% 64%;
  --destructive-foreground: 246 34% 8%;
  --border: 247 22% 24%;
  --card: 246 28% 12%;
  --card-foreground: 248 42% 96%;
  --shadow-sm: 0 8px 18px hsl(0 0% 0% / 0.18);
  --shadow-md: 0 18px 45px hsl(0 0% 0% / 0.28);
  --shadow-lg: 0 30px 80px hsl(263 91% 6% / 0.52);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: hsl(var(--background));
}

body {
  margin: 0;
  min-height: 100vh;
  color: hsl(var(--foreground));
  background:
    radial-gradient(circle at 12% 8%, hsl(var(--primary) / 0.24), transparent 28rem),
    radial-gradient(circle at 88% 14%, hsl(var(--secondary) / 0.22), transparent 26rem),
    linear-gradient(180deg, hsl(var(--background)), hsl(var(--muted) / 0.52));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea {
  font: inherit;
}

::selection {
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
}

.glass-panel {
  background: linear-gradient(145deg, hsl(var(--card) / 0.92), hsl(var(--card) / 0.72));
  border: 1px solid hsl(var(--border) / 0.78);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.gradient-text {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)), hsl(314 90% 62%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.media-stage {
  background:
    linear-gradient(135deg, hsl(var(--primary) / 0.16), hsl(var(--secondary) / 0.12)),
    repeating-linear-gradient(45deg, hsl(var(--border) / 0.38) 0 1px, transparent 1px 14px);
}

.pulse-ring {
  animation: pulseRing 1.8s ease-in-out infinite;
}

.float-in {
  animation: floatIn 520ms var(--transition-smooth) both;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.07); opacity: 1; }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.range-track {
  accent-color: hsl(var(--primary));
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}