html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.logo-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(187 247 208);
  pointer-events: none;
}

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #15803d, #059669);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 900ms ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(250, 204, 21, 0.28), transparent 30%), linear-gradient(90deg, rgba(21, 128, 61, 0.96), rgba(5, 150, 105, 0.78), rgba(6, 78, 59, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.hero-dots button {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 9999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.hero-dots button.active {
  width: 2rem;
  background: #fff;
}

.cover-shell {
  background: linear-gradient(135deg, #16a34a, #065f46);
}

.cover-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-shell img.image-missing {
  opacity: 0;
}

.movie-card {
  height: 100%;
}

.category-tile,
.movie-card,
.ranking-row,
.player-card {
  will-change: transform;
}

.tile-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.9rem;
}

.rank-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.ranking-number {
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #16a34a, #059669);
}

.ranking-cover {
  flex: 0 0 auto;
  width: 8rem;
  height: 5.5rem;
  overflow: hidden;
  border-radius: 0.75rem;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.55));
  cursor: pointer;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.25rem;
  font-size: 2rem;
  background: rgba(22, 163, 74, 0.95);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}

.detail-cover {
  height: 22rem;
  overflow: hidden;
  border-radius: 1rem;
}

.movie-meta dt {
  color: #6b7280;
}

.movie-meta dd {
  margin-top: 0.2rem;
  color: #111827;
  font-weight: 600;
}

.empty-state {
  margin: 2rem 0;
  padding: 3rem 1rem;
  text-align: center;
  color: #6b7280;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

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

.breadcrumb a:hover {
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .hero-section,
  .hero-content {
    min-height: 620px;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }

  .ranking-cover {
    width: 6.5rem;
    height: 5rem;
  }

  .detail-cover {
    height: 18rem;
  }
}
