html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #f9fafb;
  color: #1f2937;
}

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

img {
  display: block;
  background: linear-gradient(135deg, #dbeafe 0%, #cffafe 55%, #f8fafc 100%);
}

.poster-bg {
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.36), transparent 38%), linear-gradient(135deg, #e0f2fe 0%, #f8fafc 100%);
}

.image-missing {
  opacity: 0;
}

.site-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #14b8a6);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(14, 165, 233, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.group:hover .site-logo-icon,
.site-logo-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.38);
}

.footer-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.nav-dropdown-panel {
  display: none;
}

.nav-dropdown:hover .nav-dropdown-panel {
  display: block;
}

.mobile-menu.is-open {
  display: block;
}

.hero-section {
  isolation: isolate;
  overflow: hidden;
}

.hero-light {
  background: radial-gradient(circle at 72% 20%, rgba(34, 211, 238, 0.28), transparent 32%), radial-gradient(circle at 45% 85%, rgba(59, 130, 246, 0.22), transparent 36%);
}

.hero-mini-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-mini-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
}

.category-tile {
  border: 1px solid rgba(229, 231, 235, 0.78);
}

.movie-card,
.rank-card,
.category-tile {
  will-change: transform;
}

.play-pill {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.focus-ring:focus {
  outline: 2px solid rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.filter-card.is-hidden {
  display: none;
}

.player-shell video {
  background: #000000;
}

.player-center-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 4.75rem;
  height: 4.75rem;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 9999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.player-center-button:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #ffffff;
}

.player-center-button.is-playing {
  opacity: 0;
  pointer-events: none;
}

.player-loading.is-ready {
  display: none;
}

.player-error {
  z-index: 6;
  color: #f87171;
  text-align: center;
  padding: 2rem;
}

.player-error.is-visible {
  display: flex;
}

@media (max-width: 767px) {
  .hero-section {
    height: 640px;
  }

  .hero-section h1 {
    font-size: 2.75rem;
  }

  .player-center-button {
    width: 3.75rem;
    height: 3.75rem;
    font-size: 1.5rem;
  }
}
