:root {
  --forest-950: #06110d;
  --forest-900: #0c1b13;
  --forest-800: #183124;
  --earth-950: #1a130d;
  --earth-900: #2a2118;
  --earth-800: #3b2d20;
  --moss-700: #496b38;
  --moss-600: #5f8245;
  --moss-500: #83a760;
  --moss-300: #b6d68d;
  --parchment-100: #fff6df;
  --parchment-200: #f2e2c3;
  --parchment-300: #d8c5a5;
  --parchment-400: #a99777;
  --shadow-soft: 0 16px 35px rgba(0, 0, 0, 0.22);
  --shadow-strong: 0 28px 60px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--parchment-100);
  background:
    radial-gradient(circle at top left, rgba(131, 167, 96, 0.15), transparent 30rem),
    linear-gradient(180deg, var(--forest-950), var(--forest-900) 46%, var(--earth-950));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 27, 19, 0.94);
  border-bottom: 1px solid rgba(216, 197, 165, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--parchment-100);
  background: linear-gradient(135deg, var(--moss-700), var(--moss-500));
  box-shadow: var(--shadow-soft);
}

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

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

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

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

.desktop-nav a,
.mobile-nav a {
  color: var(--parchment-200);
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--moss-300);
}

.header-search {
  width: min(260px, 24vw);
}

.header-search input,
.mobile-nav input,
.filter-input,
.hero-search input {
  width: 100%;
  color: var(--parchment-100);
  background: rgba(42, 33, 24, 0.72);
  border: 1px solid rgba(216, 197, 165, 0.16);
  border-radius: 999px;
  outline: none;
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-nav input:focus,
.filter-input:focus,
.hero-search input:focus {
  border-color: rgba(131, 167, 96, 0.8);
  box-shadow: 0 0 0 4px rgba(131, 167, 96, 0.14);
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(216, 197, 165, 0.1);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.search-panel {
  position: fixed;
  inset: 72px 16px auto auto;
  z-index: 80;
  width: min(520px, calc(100vw - 32px));
}

.search-panel-inner {
  background: rgba(12, 27, 19, 0.98);
  border: 1px solid rgba(216, 197, 165, 0.14);
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(216, 197, 165, 0.1);
}

.search-panel-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--parchment-100);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.search-results {
  max-height: min(62vh, 520px);
  overflow: auto;
  padding: 10px;
}

.search-result {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-result img {
  width: 78px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result strong {
  display: block;
  margin-bottom: 5px;
}

.search-result span,
.search-empty {
  color: var(--parchment-300);
  font-size: 14px;
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--forest-950), rgba(6, 17, 13, 0.76) 45%, rgba(6, 17, 13, 0.1));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 54px 0 76px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--moss-300);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

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

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

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

.hero-meta span,
.detail-meta span,
.category-chips a,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--parchment-200);
  background: rgba(42, 33, 24, 0.72);
  border: 1px solid rgba(216, 197, 165, 0.12);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.primary-button:hover {
  background: var(--moss-500);
  transform: translateY(-2px);
}

.secondary-button,
.ghost-button {
  color: var(--parchment-100);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.secondary-button:hover,
.ghost-button:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  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.is-active {
  width: 34px;
  background: var(--moss-500);
}

.section {
  padding: 64px 0;
}

.section-muted {
  background: rgba(42, 33, 24, 0.26);
}

.section-forest {
  background: rgba(12, 27, 19, 0.48);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  color: var(--parchment-100);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--parchment-300);
  line-height: 1.8;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(42, 33, 24, 0.56);
  border: 1px solid rgba(216, 197, 165, 0.1);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(131, 167, 96, 0.35);
  box-shadow: var(--shadow-strong);
}

.movie-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--earth-800);
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.movie-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
  transition: opacity 0.24s ease;
}

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

.play-dot {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(95, 130, 69, 0.92);
  box-shadow: var(--shadow-soft);
}

.tag-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--parchment-100);
  background: rgba(12, 27, 19, 0.82);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.movie-body {
  padding: 16px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: var(--parchment-100);
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--moss-300);
}

.movie-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--parchment-300);
  font-size: 14px;
  line-height: 1.58;
}

.movie-meta {
  gap: 8px;
  color: var(--parchment-400);
  font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(216, 197, 165, 0.35);
}

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

.category-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(95, 130, 69, 0.22), rgba(42, 33, 24, 0.76)),
    rgba(12, 27, 19, 0.72);
  border: 1px solid rgba(216, 197, 165, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(131, 167, 96, 0.38);
}

.category-card strong {
  font-size: 22px;
}

.category-card p {
  margin: 12px 0 0;
  color: var(--parchment-300);
  line-height: 1.7;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 98px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(42, 33, 24, 0.56);
  border: 1px solid rgba(216, 197, 165, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(42, 33, 24, 0.78);
}

.rank-number {
  color: var(--moss-300);
  font-size: 24px;
  font-weight: 900;
}

.rank-item img {
  width: 98px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy strong {
  display: block;
  margin-bottom: 6px;
}

.rank-copy em {
  display: block;
  color: var(--parchment-300);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.page-hero {
  padding: 62px 0 42px;
  background:
    radial-gradient(circle at 20% 20%, rgba(131, 167, 96, 0.16), transparent 28rem),
    rgba(12, 27, 19, 0.34);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

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

.filterbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.filter-note {
  color: var(--parchment-400);
  font-size: 14px;
}

.breadcrumb {
  margin: 26px 0;
  color: var(--parchment-300);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 42px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  border: 1px solid rgba(216, 197, 165, 0.12);
  box-shadow: var(--shadow-strong);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(95, 130, 69, 0.94);
  box-shadow: var(--shadow-strong);
  font-size: 28px;
}

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

.detail-panel,
.content-panel {
  border-radius: 22px;
  padding: 24px;
  background: rgba(42, 33, 24, 0.5);
  border: 1px solid rgba(216, 197, 165, 0.1);
  box-shadow: var(--shadow-soft);
}

.detail-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-panel p {
  color: var(--parchment-300);
  line-height: 1.8;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.content-stack {
  display: grid;
  gap: 24px;
  margin-bottom: 56px;
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.content-panel p {
  margin: 0;
  color: var(--parchment-300);
  line-height: 1.95;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-cloud span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--parchment-200);
  background: rgba(12, 27, 19, 0.58);
  border: 1px solid rgba(216, 197, 165, 0.1);
  font-size: 13px;
}

.site-footer {
  margin-top: 60px;
  background: var(--forest-950);
  border-top: 1px solid rgba(216, 197, 165, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 42px 0;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-text,
.footer-links a {
  color: var(--parchment-300);
  line-height: 1.8;
}

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

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

.site-footer h3 {
  margin: 0 0 14px;
}

.footer-bottom {
  padding: 18px 16px;
  color: var(--parchment-400);
  border-top: 1px solid rgba(216, 197, 165, 0.08);
  text-align: center;
  font-size: 14px;
}

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

@media (max-width: 1060px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

  .detail-hero {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    padding: 38px 0 64px;
  }

  .hero-arrow {
    display: none;
  }

  .section-head,
  .filterbar {
    display: block;
  }

  .filter-note {
    margin-top: 12px;
  }

  .movie-grid,
  .category-grid,
  .rank-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-panel,
  .content-panel {
    padding: 18px;
  }
}

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

  .brand-title {
    font-size: 18px;
  }

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

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

  .movie-grid {
    gap: 16px;
  }
}
