body {
  background: #f9fafb;
  color: #1f2937;
}

.site-header a {
  text-decoration: none;
}

.nav-link-active {
  color: #fde047;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-link {
  border-radius: 0.5rem;
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-section {
  min-height: 540px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 3rem;
  min-height: 540px;
}

.hero-search {
  display: flex;
  max-width: 620px;
  overflow: hidden;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.2rem;
  color: #fff;
  background: transparent;
  outline: none;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search button {
  padding: 0 1.2rem;
  color: #1f2937;
  font-weight: 700;
  background: #facc15;
}

.hero-carousel {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateX(22px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.hero-slide-body {
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.96));
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  margin-bottom: 0.75rem;
  color: #fef3c7;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
}

.hero-controls {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-controls button,
.hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.26);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-controls button {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
}

.hero-controls button:hover,
.hero-dot:hover {
  background: rgba(250, 204, 21, 0.55);
  transform: translateY(-1px);
}

.hero-dots {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  font-size: 0;
}

.hero-dot.is-active {
  width: 1.8rem;
  background: #facc15;
}

.card-play {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.82);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.category-tile {
  min-height: 180px;
}

.rank-list {
  counter-reset: rank;
}

.rank-row {
  counter-increment: rank;
}

.rank-row::before {
  content: counter(rank);
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #f59e0b);
}

.catalog-tools .tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 1rem;
}

.tool-input,
.tool-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  padding: 0.78rem 1rem;
  background: #fff;
  outline: none;
}

.tool-input:focus,
.tool-select:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease;
  cursor: pointer;
}

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

.video-play {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.35rem;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-play:hover {
  transform: translateY(-2px) scale(1.02);
  background: #ef4444;
}

.video-play-icon {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  border-radius: 999px;
  background: #fff;
}

.breadcrumb a {
  color: #dc2626;
}

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

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-carousel {
    min-height: 390px;
  }
}

@media (max-width: 768px) {
  .hero-section,
  .hero-layout {
    min-height: auto;
  }

  .hero-search {
    flex-direction: column;
  }

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

  .hero-slide img {
    height: 255px;
  }

  .catalog-tools .tool-grid {
    grid-template-columns: 1fr;
  }
}
