* {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  box-sizing: border-box;
}

html, body {
  background-color: #141414;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  color: #ffffff;
}

/* App shell (index.html only): fixed full-height phone-like column */
body.app-shell {
  height: 100%;
  overflow: hidden;
}

/* Responsive web container: centered max-width column on desktop, full bleed on mobile */
#app-container {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  background: #141414;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Standalone pages (search / details): normal document scroll */
.page-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: #000000;
  min-height: 100dvh;
}

/* Scrollbars */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Glassmorphism & Overlays */
#home-header.solid {
  background: transparent;
}
.glass-bottom {
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-blur {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

/* Bottom navigation: solid translucent blur */
#bottom-nav {
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Number typography for Top 10 */
.top10-number {
  font-size: clamp(70px, 18vw, 92px);
  line-height: clamp(60px, 16vw, 78px);
  font-weight: 900;
  color: #000;
  -webkit-text-stroke: 3px #595959;
  letter-spacing: -6px;
}

/* Netflix-style card hover (desktop, fine pointer only) */
@media (hover: hover) and (pointer: fine) {
  .movie-item-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
  }
  .movie-item-card:hover {
    transform: scale(1.06);
    z-index: 5;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  }
}

/* Screen Views (profiles / home toggling on index.html) */
.screen-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  background: #000000;
  z-index: 10;
  opacity: 0;
  transform: scale(0.99);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.screen-view.active {
  display: flex;
  opacity: 1;
  transform: scale(1);
  z-index: 20;
}
