:root {
  --background: 228 24% 8%;
  --foreground: 210 20% 96%;
  --primary: 276 100% 66%;
  --secondary: 152 88% 51%;
  --muted: 228 18% 16%;
  --destructive: 0 74% 58%;
  --border: 228 18% 22%;
  --card: 228 22% 11%;
  --shadow-sm: 0 10px 30px hsla(276, 100%, 66%, 0.12);
  --shadow-md: 0 18px 50px hsla(276, 100%, 66%, 0.22);
  --shadow-lg: 0 24px 80px hsla(152, 88%, 51%, 0.16);
  --transition-fast: 160ms ease;
  --transition-smooth: 260ms cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

.dark {
  --background: 228 24% 8%;
  --foreground: 210 20% 96%;
  --primary: 276 100% 66%;
  --secondary: 152 88% 51%;
  --muted: 228 18% 16%;
  --destructive: 0 74% 58%;
  --border: 228 18% 22%;
  --card: 228 22% 11%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, hsla(276, 100%, 66%, 0.18), transparent 30%),
    radial-gradient(circle at top right, hsla(152, 88%, 51%, 0.12), transparent 28%),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: hsla(276, 100%, 66%, 0.35);
}

.focus-ring:focus-visible {
  outline: 2px solid hsl(var(--secondary));
  outline-offset: 2px;
}

.panel {
  background: linear-gradient(180deg, hsla(228, 22%, 14%, 0.94), hsla(228, 22%, 10%, 0.94));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, hsla(276, 100%, 66%, 0.7), hsla(152, 88%, 51%, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-grid {
  background-image:
    linear-gradient(hsla(228, 18%, 22%, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, hsla(228, 18%, 22%, 0.45) 1px, transparent 1px);
  background-size: 30px 30px;
}

.video-frame {
  aspect-ratio: 9 / 16;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, hsla(228, 22%, 18%, 1), hsla(228, 22%, 8%, 1));
  border: 1px solid hsl(var(--border));
}

.subtitle-chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: hsla(276, 100%, 66%, 0.16);
  color: hsl(var(--foreground));
  border: 1px solid hsla(276, 100%, 66%, 0.34);
}

.neon-text {
  text-shadow: 0 0 18px hsla(276, 100%, 66%, 0.35);
}

.skeleton {
  background: linear-gradient(90deg, hsla(228, 18%, 20%, 1) 25%, hsla(228, 18%, 28%, 1) 37%, hsla(228, 18%, 20%, 1) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.6s infinite;
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 hsla(152, 88%, 51%, 0.22); }
  50% { box-shadow: 0 0 0 12px hsla(152, 88%, 51%, 0); }
}

.badge-live {
  animation: pulseGlow 2.2s infinite;
}

.transition-smooth {
  transition: all var(--transition-smooth);
}

.transition-fast {
  transition: all var(--transition-fast);
}

textarea::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

textarea::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: hsla(228, 18%, 28%, 1);
  border-radius: 999px;
}

textarea::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: transparent;
}