:root {
  --site-sky: #0ea5e9;
  --site-blue: #2563eb;
  --site-dark: #111827;
}

html {
  background: #f9fafb;
}

body {
  min-height: 100vh;
}

.site-logo-icon {
  width: 2rem;
  height: 2rem;
  color: #ffffff;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: round;
}

.site-logo-icon path {
  fill: currentColor;
  stroke: none;
}

@media (min-width: 768px) {
  .site-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.nav-active {
  color: #e0f2fe;
}

.menu-line {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
}

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

.hero-arrow {
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-meta span {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  background: rgba(14, 165, 233, 0.88);
  color: #ffffff;
  font-size: 0.875rem;
  backdrop-filter: blur(4px);
}

.hero-search-form {
  position: absolute;
  left: 50%;
  bottom: 5.5rem;
  z-index: 20;
  display: flex;
  width: min(92%, 42rem);
  transform: translateX(-50%);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.22);
}

.hero-search-form input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.25rem;
  color: #111827;
  outline: none;
}

.hero-search-form button {
  padding: 0.9rem 1.5rem;
  background: var(--site-sky);
  color: #ffffff;
  font-weight: 700;
}

.hero-search-form button:hover {
  background: #0284c7;
}

.filter-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus {
  border-color: var(--site-sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.movie-card[hidden] {
  display: none;
}

.no-results {
  display: none;
  margin-top: 2rem;
}

.no-results.is-visible {
  display: block;
}

.category-hero::after {
  content: "";
  position: absolute;
  inset: auto -4rem -6rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.rank-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: stretch;
  overflow: hidden;
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  font-size: 1.35rem;
  font-weight: 800;
  background: #f0f9ff;
}

.player-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #000000;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.site-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.58));
  color: #ffffff;
  transition: opacity 0.25s ease;
}

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

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.88);
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-overlay:hover .play-button {
  transform: scale(1.08);
  background: rgba(2, 132, 199, 0.94);
}

@media (max-width: 767px) {
  .hero-search-form {
    bottom: 4.5rem;
  }

  .hero-search-form input {
    padding: 0.75rem 1rem;
  }

  .hero-search-form button {
    padding: 0.75rem 1rem;
  }

  .rank-row {
    grid-template-columns: 3rem 1fr;
  }
}
