* {
  box-sizing: border-box;
}

:root {
  --forest-950: #0a140d;
  --forest-900: #152819;
  --forest-800: #224126;
  --forest-700: #2f5a33;
  --earth-950: #1c1710;
  --earth-900: #352b1f;
  --earth-800: #4a3d2b;
  --moss-700: #455234;
  --moss-600: #59693f;
  --moss-500: #6d8350;
  --moss-400: #8a9f6e;
  --parchment-100: #f5f2ed;
  --parchment-200: #ebe4d9;
  --parchment-300: #dfd4c1;
  --parchment-400: #d3c4a9;
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.28);
  --shadow-medium: 0 18px 45px rgba(0, 0, 0, 0.36);
  --shadow-strong: 0 24px 70px rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--parchment-100);
  background: linear-gradient(180deg, var(--forest-950), var(--forest-900) 45%, var(--earth-950));
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 40, 25, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--forest-700);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--parchment-100);
  background: linear-gradient(135deg, var(--moss-700), var(--moss-500));
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

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

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--parchment-300);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.mobile-link {
  color: var(--parchment-200);
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--parchment-100);
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--parchment-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--parchment-100);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px 18px;
  border-top: 1px solid var(--forest-700);
}

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

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--forest-950);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 20, 13, 0.96), rgba(10, 20, 13, 0.62), rgba(10, 20, 13, 0.2)),
    linear-gradient(0deg, var(--forest-950), rgba(10, 20, 13, 0.2) 55%, rgba(10, 20, 13, 0.15));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--moss-400);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-panel h1 {
  margin: 0;
  color: var(--parchment-100);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--parchment-200);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--parchment-300);
  font-size: 14px;
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.card-meta span {
  border: 1px solid rgba(223, 212, 193, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.small-actions {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.btn-primary {
  background: var(--moss-600);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--moss-500);
}

.btn-ghost {
  color: var(--parchment-100);
  border-color: rgba(245, 242, 237, 0.28);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.btn-small {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  background: var(--moss-600);
  color: white;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.48);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--moss-500);
}

.search-section,
.content-section,
.category-section,
.ribbon-section {
  padding: 72px 0;
}

.category-section,
.ribbon-section {
  background: rgba(53, 43, 31, 0.32);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.footer-heading {
  margin: 0;
  color: var(--parchment-100);
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.text-link,
.pager-links a {
  color: var(--moss-400);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  margin-bottom: 26px;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(223, 212, 193, 0.16);
  border-radius: 14px;
  color: var(--parchment-100);
  background: rgba(34, 65, 38, 0.62);
  outline: 0;
}

.filter-search input {
  padding: 0 16px;
}

.filter-selects {
  display: flex;
  gap: 10px;
}

.filter-selects select {
  min-width: 130px;
  padding: 0 12px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(223, 212, 193, 0.12);
  border-radius: 22px;
  background: rgba(34, 65, 38, 0.6);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 159, 110, 0.48);
  box-shadow: var(--shadow-strong);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--forest-800);
}

.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.movie-card:hover .poster {
  transform: scale(1.05);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: white;
  background: rgba(0, 0, 0, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.card-title a:hover,
.rank-main h2 a:hover,
.overview-body h2 a:hover {
  color: var(--moss-400);
}

.card-desc {
  display: -webkit-box;
  min-height: 52px;
  margin: 0;
  overflow: hidden;
  color: var(--parchment-300);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--parchment-200);
  background: rgba(89, 105, 63, 0.42);
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--forest-800);
  box-shadow: var(--shadow-soft);
}

.category-tile img,
.category-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
}

.category-overlay {
  background: linear-gradient(0deg, rgba(10, 20, 13, 0.92), rgba(10, 20, 13, 0.12));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 48px;
  font-size: 21px;
}

.category-tile em {
  bottom: 18px;
  color: var(--parchment-300);
  font-size: 13px;
  font-style: normal;
}

.wide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(223, 212, 193, 0.12);
  border-radius: 18px;
  padding: 10px;
  background: rgba(21, 40, 25, 0.68);
}

.mini-card img {
  width: 92px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--forest-800);
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  font-size: 16px;
}

.mini-card em {
  color: var(--parchment-300);
  font-size: 13px;
  font-style: normal;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  padding: 84px 0 34px;
}

.compact-hero {
  max-width: 1180px;
}

.compact-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--parchment-300);
  font-size: 18px;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  overflow: hidden;
  border: 1px solid rgba(223, 212, 193, 0.12);
  border-radius: 24px;
  background: rgba(34, 65, 38, 0.6);
  box-shadow: var(--shadow-soft);
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 230px;
}

.overview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--forest-800);
}

.overview-body {
  padding: 26px;
}

.overview-body h2 {
  margin: 0 0 10px;
}

.overview-body p {
  color: var(--parchment-300);
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 58px 118px 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(223, 212, 193, 0.12);
  border-radius: 20px;
  padding: 12px 16px;
  background: rgba(34, 65, 38, 0.58);
}

.rank-number {
  color: var(--moss-400);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-poster img {
  width: 118px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--forest-800);
}

.rank-main h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.rank-main p {
  margin: 0 0 10px;
  color: var(--parchment-300);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  color: var(--parchment-300);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--moss-400);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 28px;
  padding: 32px 0 42px;
}

.player-card,
.detail-panel,
.text-card {
  border: 1px solid rgba(223, 212, 193, 0.12);
  border-radius: 24px;
  background: rgba(21, 40, 25, 0.72);
  box-shadow: var(--shadow-medium);
}

.player-card {
  padding: 14px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  z-index: 2;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--moss-600);
  font-size: 34px;
  box-shadow: var(--shadow-strong);
}

.detail-panel {
  padding: 28px;
}

.detail-panel h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.detail-line {
  color: var(--parchment-200);
  font-size: 17px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.info-list div {
  border: 1px solid rgba(223, 212, 193, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.info-list dt {
  color: var(--parchment-400);
  font-size: 12px;
}

.info-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.article-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.text-card {
  padding: 28px;
}

.text-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.text-card p {
  margin: 0;
  color: var(--parchment-200);
  font-size: 17px;
}

.pager-links {
  display: flex;
  gap: 16px;
}

.site-footer {
  border-top: 1px solid var(--forest-700);
  background: var(--forest-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-desc {
  max-width: 520px;
  color: var(--parchment-300);
}

.footer-heading {
  margin-bottom: 14px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--parchment-300);
}

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

.footer-bottom {
  border-top: 1px solid rgba(223, 212, 193, 0.1);
  padding: 16px;
  color: var(--parchment-400);
  text-align: center;
}

.is-filter-hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .wide-list,
  .overview-grid,
  .article-section,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .overview-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    bottom: 12%;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .split-heading,
  .filter-panel,
  .filter-selects {
    display: grid;
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .quick-grid,
  .related-grid,
  .category-grid,
  .wide-list {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 88px 1fr;
  }

  .rank-row .btn {
    grid-column: 2 / 4;
  }

  .rank-poster img {
    width: 88px;
    height: 64px;
  }

  .page-hero {
    padding-top: 54px;
  }

  .detail-layout {
    padding-top: 18px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}
