/* StreamFlix Pro Cinema UI (Netflix / Prime Video Grade) + Admin Studio */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  background-color: #0b021a;
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

#root {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fluid Responsive Poster Grid */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  width: 100%;
}

@media (min-width: 480px) {
  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1280px) {
  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 22px;
  }
}

/* Netflix-style Top 10 hollow rank number */
.top10-rank {
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 0.85;
  color: #0b021a;
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.35);
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  user-select: none;
}

.group:hover .top10-rank {
  -webkit-text-stroke: 3px #f71f20;
}

/* Admin scraper results grid */
.wawa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
}

/* Fluid Typography */
.hero-title {
  font-size: clamp(1.85rem, 4.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Custom sleek scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #080114;
}
::-webkit-scrollbar-thumb {
  background: #28114c;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f71f20;
}

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

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

.screen-animate {
  animation: fadeIn 0.22s ease-out forwards;
}
