/* Custom Scrollbars & Core Netflix Styling */
body {
  background-color: #0d0d11;
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(229, 9, 20, 0.12), transparent 65%),
    radial-gradient(circle at 12% 35%, rgba(255, 255, 255, 0.025), transparent 45%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.bg-netflix-card {
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #141414;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Hide scrollbar for horizontal carousels */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/* Subtle Hero Vignette */
.hero-vignette {
  background: linear-gradient(
    to top,
    #111111 4%,
    rgba(17, 17, 17, 0.88) 28%,
    rgba(17, 17, 17, 0.35) 70%,
    rgba(17, 17, 17, 0.8) 100%
  );
}
.hero-side-vignette {
  background: linear-gradient(
    to right,
    rgba(17, 17, 17, 0.96) 0%,
    rgba(17, 17, 17, 0.65) 45%,
    rgba(17, 17, 17, 0.1) 100%
  );
}

/* Glass Card Effect */
.glass-panel {
  background: rgba(24, 24, 27, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Smooth Card & Modal Scale Animation */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fade-scale {
  animation: fadeInScale 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Show Card Hover Glow */
.show-card-glow:hover {
  box-shadow: 0 20px 40px -15px rgba(229, 9, 20, 0.28);
}
.movie-card-glow:hover {
  box-shadow: 0 20px 40px -15px rgba(245, 158, 11, 0.25);
}

/* Mobile Safe Area & Touch Optimizations */
.pb-safe {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}


/* TV / D-Pad Focus Ring */
button:focus-visible,
[tabindex]:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #E50914 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(229, 9, 20, 0.25);
}

/* Android TV APK Optimization & Auto-Fit */
html.tv-apk-mode,
html.tv-apk-mode body {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
html.tv-apk-mode ::-webkit-scrollbar {
  display: none;
}
html.tv-apk-mode * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


@media (max-width: 640px) {
  input[type="range"].netflix-slider::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    margin-top: -6px;
  }
  .hero-side-vignette {
    background: linear-gradient(
      to top,
      rgba(17, 17, 17, 0.92) 0%,
      rgba(17, 17, 17, 0.35) 60%,
      transparent 100%
    );
  }
}

