html {
  scroll-behavior: smooth;
}

.site-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #fffbeb 0%, #fafaf9 48%, #f0fdf4 100%);
  color: #1c1917;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.site-header {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.logo-icon svg,
.site-logo svg {
  display: block;
}

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

.hero-slider {
  position: relative;
  height: 60vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  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-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 82%) 0%, rgb(0 0 0 / 55%) 48%, rgb(0 0 0 / 8%) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero-copy {
  max-width: 42rem;
}

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

.hero-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 72%);
  background: rgb(255 255 255 / 32%);
  transition: width 260ms ease, background 260ms ease;
}

.hero-dot.active {
  width: 2rem;
  background: #16a34a;
  border-color: #16a34a;
}

.hero-quick-links {
  position: absolute;
  right: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
  bottom: 2rem;
  z-index: 3;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-quick-links a {
  color: #fff;
  background: rgb(255 255 255 / 16%);
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  padding: .5rem .9rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-quick-links a:hover {
  background: rgb(22 163 74 / 78%);
}

.filter-panel {
  border: 1px solid rgb(231 229 228 / 90%);
}

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

.search-field {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 3rem;
  border: 1px solid #e7e5e4;
  border-radius: .9rem;
  padding: 0 1rem;
  background: #fff;
  color: #16a34a;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #292524;
  background: transparent;
}

.filter-grid select {
  min-height: 3rem;
  border: 1px solid #e7e5e4;
  border-radius: .9rem;
  padding: 0 .9rem;
  background: #fff;
  color: #44403c;
  outline: 0;
}

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

.card-cover {
  background: linear-gradient(135deg, #292524, #14532d);
}

.card-cover img {
  min-height: 100%;
}

.section-panel {
  background: rgb(255 255 255 / 76%);
  border: 1px solid rgb(231 229 228 / 82%);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 18px 42px rgb(28 25 23 / 8%);
}

.category-tile {
  display: block;
  min-height: 11rem;
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #fff 0%, #fffbeb 52%, #f0fdf4 100%);
  border: 1px solid #e7e5e4;
  box-shadow: 0 12px 28px rgb(28 25 23 / 8%);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px rgb(28 25 23 / 12%);
  border-color: #86efac;
}

.category-tile h3 {
  color: #1c1917;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: .7rem;
}

.category-tile p {
  color: #57534e;
  line-height: 1.75;
}

.rank-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
}

.rank-row-link {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 4.25rem;
  border-radius: 1rem;
  padding: .8rem 1rem;
  background: #fff;
  border: 1px solid #e7e5e4;
  box-shadow: 0 8px 20px rgb(28 25 23 / 6%);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.rank-row-link:hover {
  transform: translateY(-2px);
  border-color: #86efac;
  box-shadow: 0 16px 30px rgb(28 25 23 / 10%);
}

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .9rem;
  color: #fff;
  background: linear-gradient(135deg, #d97706, #15803d);
  font-weight: 800;
}

.rank-title {
  color: #1c1917;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: #78716c;
  font-size: .9rem;
}

.breadcrumb {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  color: #78716c;
  font-size: .95rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #15803d;
  font-weight: 600;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 1.25rem;
  box-shadow: 0 28px 50px rgb(0 0 0 / 24%);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  z-index: 2;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 72%), rgb(0 0 0 / 18%));
}

.player-cover.is-hidden {
  display: none;
}

.player-start {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #15803d);
  border-radius: 999px;
  padding: 1rem 1.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 18px 35px rgb(0 0 0 / 32%);
  transition: transform 220ms ease, filter 220ms ease;
}

.player-start:hover {
  transform: scale(1.05);
  filter: brightness(1.06);
}

.detail-poster {
  background: linear-gradient(135deg, #292524, #14532d);
}

.detail-poster img {
  width: 100%;
  border-radius: 1.25rem;
  box-shadow: 0 16px 36px rgb(28 25 23 / 14%);
}

.prose-block p {
  margin-bottom: .85rem;
}

@media (min-width: 640px) {
  .hero-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 900px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .hero-quick-links {
    display: none;
  }

  .rank-row-link {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 2;
  }
}

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

  .hero-copy {
    padding-top: 1.5rem;
  }

  .section-panel {
    padding: 1rem;
    border-radius: 1.1rem;
  }
}

.related-thumb {
  width: 4.5rem;
  height: 6rem;
  object-fit: cover;
  border-radius: .75rem;
  background: linear-gradient(135deg, #292524, #14532d);
  flex: 0 0 auto;
}

.movie-card-compact h3 {
  font-size: 1rem;
}
