:root {
  --forest-950: #0a140d;
  --forest-900: #152819;
  --forest-800: #224126;
  --earth-950: #1c1710;
  --earth-900: #352b1f;
  --earth-800: #4a3d2b;
  --moss-400: #8a9f6e;
  --moss-500: #6d8350;
  --moss-600: #59693f;
  --parchment-100: #f5f2ed;
  --parchment-200: #ebe4d9;
  --parchment-300: #dfd4c1;
  --parchment-400: #d3c4a9;
  --line: rgba(245, 242, 237, 0.12);
  --shadow-medium: 0 4px 25px -5px rgba(0, 0, 0, 0.35), 0 10px 30px -5px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 8px 40px -8px rgba(0, 0, 0, 0.45), 0 15px 50px -10px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 40, 25, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--parchment-100);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--moss-500), var(--earth-800));
  box-shadow: var(--shadow-medium);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--parchment-300);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
  background: rgba(109, 131, 80, 0.22);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--parchment-100);
  background: rgba(255, 255, 255, 0.06);
  font-size: 22px;
  padding: 8px 12px;
}

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

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

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--forest-950) 0%, rgba(10, 20, 13, 0.82) 45%, rgba(10, 20, 13, 0.12) 100%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0;
  padding-bottom: 72px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--moss-400);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--parchment-100);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--parchment-200);
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.detail-meta span,
.movie-meta-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--parchment-300);
  background: rgba(10, 20, 13, 0.36);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  color: white;
  background: var(--moss-600);
  box-shadow: var(--shadow-medium);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--moss-500);
  box-shadow: var(--shadow-strong);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.btn.compact {
  min-height: 40px;
  padding: 0 16px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  font-size: 30px;
  cursor: pointer;
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 32px;
  background: var(--moss-500);
}

.quick-search {
  margin-top: -34px;
  position: relative;
  z-index: 10;
}

.filter-panel,
.search-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(21, 40, 25, 0.86);
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(16px);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--parchment-300);
  font-size: 13px;
  font-weight: 700;
}

.search-box input,
.filter-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--parchment-100);
  background: rgba(10, 20, 13, 0.72);
  outline: none;
  padding: 0 14px;
}

.search-box input:focus,
.filter-panel select:focus {
  border-color: rgba(138, 159, 110, 0.6);
  box-shadow: 0 0 0 4px rgba(109, 131, 80, 0.15);
}

.content-section,
.article-section,
.player-section,
.category-hero {
  padding: 64px 0;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.section-title span {
  color: var(--moss-400);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-title h2,
.category-hero h1,
.story-card h2,
.side-panel h2 {
  margin: 0;
  color: var(--parchment-100);
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(34, 65, 38, 0.6);
  box-shadow: var(--shadow-medium);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(138, 159, 110, 0.5);
  background: rgba(34, 65, 38, 0.82);
}

.movie-card.is-hidden,
.rank-item.is-hidden {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--forest-800), var(--earth-900));
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 45%);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: white;
  background: rgba(89, 105, 63, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 12px 0 8px;
  color: var(--parchment-100);
  font-size: 18px;
  line-height: 1.35;
}

.movie-info p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--parchment-300);
  font-size: 14px;
  line-height: 1.65;
}

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

.tag-row span {
  border: 1px solid rgba(138, 159, 110, 0.3);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--moss-400);
  background: rgba(109, 131, 80, 0.12);
  font-size: 12px;
}

.tag-row.large span {
  padding: 7px 11px;
  font-size: 13px;
}

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

.category-pill,
.category-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(34, 65, 38, 0.78), rgba(53, 43, 31, 0.66));
  box-shadow: var(--shadow-medium);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-pill:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 159, 110, 0.5);
}

.category-pill strong,
.category-card strong {
  display: block;
  color: var(--parchment-100);
  font-size: 20px;
}

.category-pill span,
.category-card span {
  display: block;
  margin-top: 8px;
  color: var(--parchment-400);
  font-size: 13px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 56px 72px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: rgba(21, 40, 25, 0.72);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item a:hover {
  transform: translateX(4px);
  background: rgba(34, 65, 38, 0.88);
}

.rank-no {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moss-400);
  font-size: 22px;
  font-weight: 900;
}

.rank-item img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--earth-900);
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  color: var(--parchment-100);
  font-size: 17px;
}

.rank-copy em {
  margin-top: 7px;
  color: var(--parchment-400);
  font-size: 13px;
  font-style: normal;
}

.category-hero {
  background: radial-gradient(circle at top left, rgba(109, 131, 80, 0.22), transparent 32%), rgba(21, 40, 25, 0.24);
}

.category-hero p {
  max-width: 760px;
  color: var(--parchment-300);
  line-height: 1.8;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: var(--forest-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(22px);
  transform: scale(1.08);
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--forest-950), rgba(10, 20, 13, 0.68), var(--forest-950));
}

.detail-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-strong);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--earth-900);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--parchment-400);
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  color: var(--parchment-100);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.lead {
  max-width: 780px;
  color: var(--parchment-200);
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  padding-top: 48px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: var(--shadow-strong);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
  cursor: pointer;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  background: rgba(89, 105, 63, 0.92);
  box-shadow: var(--shadow-strong);
  font-size: 36px;
}

.play-overlay.hidden {
  display: none;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.story-card,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(21, 40, 25, 0.72);
  box-shadow: var(--shadow-medium);
  padding: 26px;
}

.story-card p {
  color: var(--parchment-300);
  font-size: 16px;
  line-height: 1.95;
}

.side-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.side-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.side-list img {
  width: 64px;
  height: 86px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--earth-900);
}

.side-list strong,
.side-list em {
  display: block;
}

.side-list strong {
  color: var(--parchment-100);
}

.side-list em {
  margin-top: 6px;
  color: var(--parchment-400);
  font-style: normal;
  font-size: 13px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: rgba(10, 20, 13, 0.78);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0;
  color: var(--parchment-400);
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--parchment-100);
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 14px;
}

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

.empty-tip {
  display: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  color: var(--parchment-300);
  background: rgba(21, 40, 25, 0.72);
}

.empty-tip.show {
  display: block;
}

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

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

  .rank-layout,
  .two-column,
  .detail-wrap,
  .filter-panel,
  .search-card {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 260px;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    background: rgba(21, 40, 25, 0.98);
    box-shadow: var(--shadow-medium);
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    height: 76vh;
    min-height: 600px;
  }

  .hero-content {
    padding-bottom: 78px;
  }

  .hero-arrow {
    display: none;
  }

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

  .movie-info {
    padding: 14px;
  }

  .movie-info p {
    min-height: auto;
  }

  .rank-item a {
    grid-template-columns: 44px 58px 1fr;
  }

  .rank-item img {
    width: 58px;
    height: 78px;
  }
}

@media (max-width: 460px) {
  .container,
  .nav-wrap {
    width: min(100% - 24px, 1200px);
  }

  .movie-grid,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p,
  .lead {
    font-size: 16px;
  }
}
