html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

img {
  display: block;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(120 113 108);
  font-weight: 700;
  pointer-events: none;
}

.mobile-menu.hidden,
.hidden {
  display: none !important;
}

.poster-frame {
  aspect-ratio: 2 / 3;
}

.hero-slider {
  min-height: 500px;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-dot.active {
  width: 2rem;
  background: #ffffff;
}

.hero-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  transition: all 300ms ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.movie-card,
.rank-card,
.category-tile {
  height: 100%;
}

.movie-title {
  min-height: 1.75rem;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  background: rgb(240 253 244);
  color: rgb(22 101 52);
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 600;
}

.watch-dot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(22, 163, 74, 0.92);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.28);
}

.rank-poster {
  width: 5.5rem;
  height: 7.5rem;
}

.rank-num {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  min-width: 1.85rem;
  height: 1.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgb(22 163 74);
  font-size: 0.8rem;
  font-weight: 800;
}

.filter-button {
  border: 1px solid rgb(214 211 209);
  background: #ffffff;
  color: rgb(68 64 60);
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  transition: all 200ms ease;
  font-weight: 600;
}

.filter-button:hover,
.filter-button.active {
  border-color: rgb(22 163 74);
  background: rgb(22 163 74);
  color: #ffffff;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgb(12 10 9);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.64), rgba(22, 101, 52, 0.34));
  cursor: pointer;
}

.player-overlay span {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(22 163 74);
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 20px 40px rgba(22, 163, 74, 0.35);
}

.player-overlay strong {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: rgb(22 101 52);
}

.library-hero {
  background-image: radial-gradient(circle at 20% 20%, rgba(22, 163, 74, 0.15), transparent 35%), radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.12), transparent 32%);
}

.empty-state {
  display: none;
}

.search-empty .empty-state {
  display: block;
}

@media (max-width: 768px) {
  .hero-slider {
    min-height: 560px;
  }

  .rank-poster {
    width: 4.75rem;
    height: 6.7rem;
  }

  .player-shell {
    border-radius: 1rem;
  }
}
