:root {
  --background: 222 47% 97%;
  --foreground: 230 28% 12%;
  --primary: 257 88% 62%;
  --secondary: 190 85% 46%;
  --muted: 222 24% 92%;
  --destructive: 0 78% 58%;
  --border: 226 24% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 10px 24px rgba(22, 28, 45, 0.08);
  --shadow-md: 0 18px 42px rgba(43, 26, 95, 0.14);
  --shadow-lg: 0 24px 68px rgba(82, 43, 171, 0.28);
  --transition-fast: 140ms ease;
  --transition-smooth: 260ms cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 0.625rem;
  --radius-md: 0.95rem;
  --radius-lg: 1.35rem;
}

.dark {
  --background: 228 33% 8%;
  --foreground: 220 20% 94%;
  --primary: 262 90% 68%;
  --secondary: 188 87% 55%;
  --muted: 224 22% 16%;
  --destructive: 0 76% 60%;
  --border: 224 20% 20%;
  --card: 226 28% 12%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
iframe {
  font: inherit;
}

button {
  cursor: pointer;
}

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

code {
  border-radius: 0.45rem;
  background: hsl(var(--muted));
  padding: 0.15rem 0.4rem;
  font-size: 0.9em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary) / 0.5);
}

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

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

@media (min-width: 480px) {
  .xs\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Netflix-like Fade */
.netflix-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
