:root {
  --site-green: #15803d;
  --site-green-dark: #166534;
  --site-amber: #d97706;
  --site-stone: #1c1917;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: #1c1917;
}

.site-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #d97706, #15803d);
  box-shadow: 0 12px 24px rgba(21, 128, 61, 0.18);
}

.mobile-menu {
  display: none;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 22%, rgba(217, 119, 6, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56) 50%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  height: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
}

.hero-panel {
  max-width: 44rem;
  color: #ffffff;
}

.hero-title {
  margin: 1rem 0;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

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

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: all 220ms ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: #22c55e;
  border-color: #22c55e;
}

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

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .card-grid.card-grid-six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .card-grid.card-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.movie-card {
  display: block;
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.movie-card:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 24px 48px rgba(28, 25, 23, 0.16);
}

.movie-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #dcfce7);
}

.movie-cover.wide {
  aspect-ratio: 16 / 9;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.09);
}

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12), transparent);
  transition: opacity 260ms ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: #166534;
  font-size: 1.35rem;
  transition: transform 260ms ease;
}

.movie-card:hover .play-bubble {
  transform: translate(-50%, -50%) scale(1);
}

.region-pill {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 4;
  padding: 0.25rem 0.55rem;
  border-radius: 0.45rem;
  color: #ffffff;
  background: #d97706;
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-body {
  padding: 1rem;
}

.movie-title {
  min-height: 3rem;
  margin: 0 0 0.55rem;
  color: #1c1917;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover .movie-title {
  color: #15803d;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #15803d;
  background: #f0fdf4;
  font-size: 0.75rem;
  line-height: 1;
}

.section-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  color: #1c1917;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 1rem;
  margin: 1.5rem 0 2rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(214, 211, 209, 0.75);
  border-radius: 1.25rem;
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.07);
  backdrop-filter: blur(16px);
}

@media (min-width: 768px) {
  .filter-panel {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  }
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid #d6d3d1;
  background: #ffffff;
  padding: 0.85rem 1rem;
  outline: none;
  color: #292524;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.hidden-card {
  display: none !important;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(28, 25, 23, 0.08);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.category-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 28px 54px rgba(28, 25, 23, 0.14);
}

.category-card-body {
  position: relative;
  z-index: 2;
  padding: 1.4rem;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.85rem;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 4.5rem 7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.rank-item:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 20px 38px rgba(28, 25, 23, 0.13);
}

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

.rank-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.8rem;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0a09;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #0c0a09;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 220ms ease;
}

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

.play-overlay-circle {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.92);
  box-shadow: 0 18px 38px rgba(21, 128, 61, 0.34);
  font-size: 1.8rem;
}

.detail-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .detail-layout {
    grid-template-columns: minmax(0, 2fr) minmax(20rem, 1fr);
  }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #78716c;
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: #15803d;
}

.prose-text {
  color: #44403c;
  line-height: 1.9;
  font-size: 1rem;
}

.footer-link:hover {
  color: #4ade80;
}

@media (max-width: 767px) {
  .hero-slider {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    padding: 5rem 1rem 5.5rem;
    align-items: flex-end;
  }

  .hero-mask {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.86));
  }

  .rank-item {
    grid-template-columns: 3.5rem 5rem minmax(0, 1fr);
    gap: 0.75rem;
  }
}
