:root {
  color-scheme: dark;
  --site-bg: #06100d;
  --panel-bg: #0d1a16;
  --panel-soft: #10221c;
  --line: #243329;
  --moss: #7fb77e;
  --moss-bright: #a7d99b;
  --text: #eff8ef;
  --muted: #a9b8a8;
  --deep-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(77, 115, 72, 0.28), transparent 35%),
    radial-gradient(circle at 90% 15%, rgba(43, 84, 56, 0.22), transparent 32%),
    var(--site-bg);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 16, 13, 0.92);
  border-bottom: 1px solid rgba(127, 183, 126, 0.18);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  max-width: 80rem;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #06200e;
  background: linear-gradient(135deg, #a7d99b, #5f9b5e);
  box-shadow: 0 12px 34px rgba(127, 183, 126, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-logo {
  color: var(--moss-bright);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-text small {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.1rem;
}

.nav-link {
  color: #cbd9c8;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--moss-bright);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-button {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: var(--moss-bright);
  border: 1px solid rgba(127, 183, 126, 0.28);
  border-radius: 0.9rem;
  background: rgba(16, 34, 28, 0.85);
}

.mobile-nav {
  display: none;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid rgba(127, 183, 126, 0.16);
  background: rgba(6, 16, 13, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.7rem;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-size: cover;
  background-position: center;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 16, 13, 0.95), rgba(6, 16, 13, 0.72), rgba(6, 16, 13, 0.16)),
    linear-gradient(0deg, #06100d, rgba(6, 16, 13, 0.18) 48%, rgba(6, 16, 13, 0.72));
}

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

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--moss-bright);
  background: rgba(127, 183, 126, 0.13);
  border: 1px solid rgba(127, 183, 126, 0.24);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #ffffff;
  text-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  margin-top: 1.2rem;
  color: #dbe7d9;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.85;
  max-width: 43rem;
}

.hero-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #04130d;
  background: linear-gradient(135deg, #c3efb2, #79ba71);
  box-shadow: 0 18px 45px rgba(127, 183, 126, 0.24);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(167, 217, 155, 0.28);
  background: rgba(13, 26, 22, 0.72);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

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

.hero-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  width: 2.2rem;
  background: var(--moss-bright);
}

.page-hero,
.content-section,
.detail-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.page-hero {
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 52rem;
  line-height: 1.85;
}

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

.section-heading h2 {
  color: var(--moss-bright);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 44rem;
}

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(127, 183, 126, 0.14);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(16, 34, 28, 0.96), rgba(10, 21, 17, 0.96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 217, 155, 0.36);
  box-shadow: var(--deep-shadow);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--panel-soft);
}

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

.movie-cover img {
  transition: transform 0.38s ease, filter 0.38s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.07);
  filter: saturate(1.1) contrast(1.04);
}

.movie-year,
.rank-badge {
  position: absolute;
  top: 0.75rem;
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-year {
  right: 0.75rem;
  color: #06100d;
  background: rgba(195, 239, 178, 0.92);
}

.rank-badge {
  left: 0.75rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
}

.movie-card-body {
  padding: 0.9rem;
}

.movie-card h3,
.ranking-item h3,
.related-card h3 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover,
.related-card h3 a:hover {
  color: var(--moss-bright);
}

.movie-meta,
.movie-line {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.movie-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-row span,
.info-chip,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
  color: #cfe4ce;
  background: rgba(127, 183, 126, 0.12);
  border: 1px solid rgba(127, 183, 126, 0.15);
  font-size: 0.78rem;
}

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

.category-card {
  padding: 1.3rem;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.25rem;
  border: 1px solid rgba(127, 183, 126, 0.18);
  background:
    linear-gradient(135deg, rgba(127, 183, 126, 0.16), rgba(16, 34, 28, 0.94)),
    var(--panel-soft);
  box-shadow: var(--deep-shadow);
}

.category-card h2,
.category-card h3 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-card p {
  margin-top: 0.7rem;
  color: var(--muted);
  line-height: 1.75;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.category-samples a {
  color: #d7e4d4;
  font-size: 0.85rem;
}

.category-samples a:hover {
  color: var(--moss-bright);
}

.mini-cover-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1rem 0;
}

.mini-cover-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.7rem;
  background: var(--panel-soft);
}

.filter-panel {
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  border: 1px solid rgba(127, 183, 126, 0.16);
  border-radius: 1.2rem;
  background: rgba(13, 26, 22, 0.76);
}

.search-box {
  display: grid;
  gap: 0.5rem;
}

.search-box span {
  color: var(--moss-bright);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid rgba(127, 183, 126, 0.22);
  border-radius: 999px;
  outline: none;
  color: var(--text);
  background: rgba(6, 16, 13, 0.8);
}

.search-box input:focus {
  border-color: rgba(167, 217, 155, 0.7);
  box-shadow: 0 0 0 4px rgba(127, 183, 126, 0.12);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.filter-pill {
  padding: 0.52rem 0.82rem;
  border: 1px solid rgba(127, 183, 126, 0.18);
  border-radius: 999px;
  color: #cfe4ce;
  background: rgba(16, 34, 28, 0.8);
}

.filter-pill.is-active,
.filter-pill:hover {
  color: #04130d;
  background: var(--moss-bright);
}

.empty-state {
  margin-top: 1rem;
  color: var(--muted);
}

.ranking-list {
  display: grid;
  gap: 0.8rem;
}

.ranking-item {
  display: grid;
  grid-template-columns: 3.5rem 4.5rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(127, 183, 126, 0.16);
  border-radius: 1rem;
  background: rgba(13, 26, 22, 0.82);
}

.ranking-number {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  color: #06100d;
  font-weight: 900;
  background: var(--moss-bright);
}

.ranking-poster {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.8rem;
  background: var(--panel-soft);
}

.ranking-item p,
.ranking-item span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.detail-top {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.3rem;
  border: 1px solid rgba(127, 183, 126, 0.18);
  background: #000000;
  box-shadow: var(--deep-shadow);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.52));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: clamp(4rem, 9vw, 6rem);
  height: clamp(4rem, 9vw, 6rem);
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06100d;
  font-size: 2rem;
  background: linear-gradient(135deg, #c3efb2, #79ba71);
  box-shadow: 0 0 0 1rem rgba(127, 183, 126, 0.14), 0 22px 55px rgba(0, 0, 0, 0.4);
}

.detail-copy {
  padding: 1.3rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(127, 183, 126, 0.16);
  background: rgba(13, 26, 22, 0.78);
}

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.85;
}

.detail-info {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-poster {
  overflow: hidden;
  border-radius: 1.3rem;
  background: var(--panel-soft);
  box-shadow: var(--deep-shadow);
}

.article-panel {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(127, 183, 126, 0.16);
  background: rgba(13, 26, 22, 0.72);
}

.article-panel h2 {
  color: var(--moss-bright);
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 0.7rem;
}

.article-panel p {
  color: #d7e4d4;
  line-height: 1.95;
  white-space: pre-wrap;
}

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

.related-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(127, 183, 126, 0.16);
  background: rgba(16, 34, 28, 0.9);
}

.related-card a:first-child {
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--panel-soft);
}

.related-card div {
  padding: 0.8rem;
}

.related-card p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(127, 183, 126, 0.16);
  background: rgba(6, 16, 13, 0.82);
}

.site-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  gap: 1rem;
}

.site-footer p,
.copyright {
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  color: #cfe4ce;
}

.footer-links a:hover {
  color: var(--moss-bright);
}

.copyright {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .menu-button {
    display: none;
  }

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

  .site-footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

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

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

  .detail-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.45fr);
    align-items: start;
  }

  .related-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .brand-text small {
    display: none;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .ranking-item {
    grid-template-columns: 2.8rem 4rem minmax(0, 1fr);
  }
}
