html {
  scroll-behavior: smooth;
}

body {
  background-color: #0f172a;
}

.site-logo-mark {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
  font-size: 0.75rem;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

.site-logo-mark.small {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.625rem;
}

.site-header a {
  white-space: nowrap;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 800ms ease, transform 1200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.14), transparent 38%),
    linear-gradient(to bottom, rgba(2, 6, 23, 0.32), rgba(15, 23, 42, 0.94));
  backdrop-filter: blur(2px);
}

.hero-content {
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

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

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

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

.search-hero-form,
.search-page-form {
  display: flex;
  gap: 0.75rem;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.8);
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.search-input,
.filter-select {
  width: 100%;
  min-height: 3rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
  color: #e5e7eb;
  padding: 0 1.25rem;
  outline: none;
}

.search-input:focus,
.filter-select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.search-button {
  flex: 0 0 auto;
  border-radius: 9999px;
  background: #f59e0b;
  color: #ffffff;
  padding: 0 1.75rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.search-button:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stats-grid div {
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.65);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
}

.stats-grid strong {
  display: block;
  color: #fbbf24;
  font-size: 2rem;
  line-height: 1;
}

.stats-grid span {
  display: block;
  color: #9ca3af;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.card-poster {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.movie-card img,
.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-dot {
  color: #ffffff;
  padding-left: 0.125rem;
}

.category-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 1rem;
  background: #1e293b;
  border: 1px solid rgba(51, 65, 85, 0.7);
}

.category-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transform: scale(1.04);
  transition: transform 400ms ease, opacity 400ms ease;
}

.category-tile:hover .category-tile-bg {
  opacity: 0.48;
  transform: scale(1.1);
}

.category-tile-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.12));
}

.category-tile-content h3 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.category-tile-content p {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.category-tile-content span {
  color: #fbbf24;
  font-weight: 700;
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 220px;
  gap: 1rem;
}

.filter-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

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

.rank-list {
  display: grid;
  gap: 1rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 70px 88px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 1rem;
  padding: 0.875rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(51, 65, 85, 0.72);
}

.rank-number {
  color: #fbbf24;
  font-size: 1.75rem;
  font-weight: 900;
  text-align: center;
}

.rank-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #0f172a;
}

.rank-info h3 {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.rank-info p {
  color: #cbd5e1;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.rank-meta span {
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.8);
  color: #94a3b8;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.58));
  transition: opacity 250ms ease, visibility 250ms ease;
}

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

.play-overlay-icon {
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 2rem;
  padding-left: 0.25rem;
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.35);
}

.play-overlay-title {
  max-width: 80%;
  text-align: center;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.search-summary {
  min-height: 1.5rem;
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1024px) {
  .category-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }
}

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

  .stats-grid,
  .category-tile-grid {
    grid-template-columns: 1fr;
  }

  .search-hero-form,
  .search-page-form {
    border-radius: 1.25rem;
    flex-direction: column;
  }

  .search-button {
    min-height: 3rem;
  }

  .rank-row {
    grid-template-columns: 48px 72px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .rank-number {
    font-size: 1.25rem;
  }

  .category-overview-head {
    flex-direction: column;
  }
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-14 {
  margin-top: 3.5rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-14 {
  margin-bottom: 3.5rem;
}

.gap-5 {
  gap: 1.25rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.bg-slate-800\/80 {
  background-color: rgba(30, 41, 59, 0.8);
}

@media (min-width: 768px) {
  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
