:root {
  --forest-950: #0a140d;
  --forest-900: #152819;
  --forest-850: #1b3420;
  --forest-800: #224126;
  --forest-700: #2f5a33;
  --moss-700: #485735;
  --moss-600: #59693f;
  --moss-500: #6d8350;
  --moss-400: #8a9f6e;
  --earth-950: #211a13;
  --earth-900: #352b1f;
  --earth-800: #4a3d2b;
  --parchment-100: #f5f2ed;
  --parchment-200: #ebe4d9;
  --parchment-300: #dfd4c1;
  --parchment-400: #d3c4a9;
  --ink-muted: rgba(223, 212, 193, 0.76);
  --line: rgba(223, 212, 193, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --soft-shadow: 0 12px 42px rgba(0, 0, 0, 0.25);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--parchment-100);
  background:
    radial-gradient(circle at 18% 8%, rgba(109, 131, 80, 0.26), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(74, 61, 43, 0.32), transparent 28rem),
    linear-gradient(180deg, var(--forest-950), var(--forest-900) 45%, var(--earth-950));
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 212, 193, 0.10);
  background: rgba(10, 20, 13, 0.84);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: var(--parchment-100);
  background: linear-gradient(135deg, var(--moss-600), var(--forest-700));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  font-weight: 900;
  font-size: 1.25rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  color: var(--parchment-100);
  font-size: 1.16rem;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text em {
  color: var(--parchment-400);
  font-size: 0.78rem;
  font-style: normal;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.nav-link {
  color: var(--parchment-300);
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 180ms ease, transform 180ms ease;
}

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

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(53, 43, 31, 0.55);
  color: var(--parchment-100);
  cursor: pointer;
}

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

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #050905;
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 20, 13, 0.94), rgba(10, 20, 13, 0.64) 42%, rgba(10, 20, 13, 0.18)),
    linear-gradient(0deg, rgba(10, 20, 13, 1), rgba(10, 20, 13, 0.24) 58%, rgba(10, 20, 13, 0.52));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 74px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--moss-400);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  max-width: 790px;
  margin: 0 0 18px;
  color: var(--parchment-100);
  font-size: clamp(2.45rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--parchment-200);
  font-size: clamp(1rem, 1.8vw, 1.26rem);
}

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

.hero-meta {
  margin-bottom: 30px;
}

.hero-meta span,
.movie-meta-line span,
.detail-meta span,
.year-pill,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(223, 212, 193, 0.13);
  border-radius: 999px;
  color: var(--parchment-300);
  background: rgba(10, 20, 13, 0.38);
  font-size: 0.82rem;
  font-weight: 650;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(223, 212, 193, 0.14);
  border-radius: 14px;
  color: var(--parchment-100);
  background: rgba(53, 43, 31, 0.56);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 159, 110, 0.50);
  background: rgba(74, 61, 43, 0.78);
}

.btn.primary {
  border-color: rgba(138, 159, 110, 0.60);
  background: linear-gradient(135deg, var(--moss-600), var(--moss-500));
  box-shadow: 0 18px 34px rgba(72, 87, 53, 0.24);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(245, 242, 237, 0.12);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 22px;
  transform: translateY(-50%);
}

.hero-next {
  right: 22px;
  transform: translateY(-50%);
}

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

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

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

.section {
  padding: 74px 0;
}

.section.alt {
  background: rgba(53, 43, 31, 0.28);
}

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

.section-head h2,
.page-hero h1,
.detail-main h1,
.content-section h2 {
  margin: 0;
  color: var(--parchment-100);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.section-head p,
.page-hero p,
.category-card p,
.content-section p,
.detail-main p {
  color: var(--ink-muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(223, 212, 193, 0.10);
  border-radius: 20px;
  background: rgba(53, 43, 31, 0.38);
  box-shadow: var(--soft-shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(138, 159, 110, 0.25), transparent 18rem),
    linear-gradient(135deg, var(--forest-850), var(--earth-900));
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.74));
}

.year-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--parchment-100);
  background: rgba(0, 0, 0, 0.56);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--parchment-100);
  background: linear-gradient(135deg, var(--moss-600), var(--moss-500));
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.movie-card-body {
  padding: 18px;
}

.movie-meta-line {
  margin-bottom: 12px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--parchment-100);
  font-size: 1.15rem;
  line-height: 1.25;
}

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

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--parchment-300);
  font-size: 0.94rem;
}

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

.page-hero {
  padding: 72px 0 46px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.15rem, 4vw, 4rem);
}

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  font-size: 1.08rem;
}

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

.category-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(223, 212, 193, 0.10);
  border-radius: var(--radius);
  padding: 26px;
  background:
    radial-gradient(circle at 85% 8%, rgba(138, 159, 110, 0.22), transparent 16rem),
    rgba(53, 43, 31, 0.36);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

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

.category-card h2 {
  margin: 0 0 10px;
  color: var(--parchment-100);
  font-size: 1.55rem;
}

.category-card p {
  margin: 0 0 18px;
}

.category-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--moss-400);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 210px 210px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(223, 212, 193, 0.10);
  border-radius: 18px;
  background: rgba(10, 20, 13, 0.36);
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--parchment-300);
  font-size: 0.86rem;
  font-weight: 750;
}

.search-field input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(223, 212, 193, 0.14);
  border-radius: 14px;
  outline: 0;
  color: var(--parchment-100);
  background: rgba(53, 43, 31, 0.62);
  padding: 0 14px;
  font: inherit;
}

.search-field input:focus,
.filter-select:focus {
  border-color: rgba(138, 159, 110, 0.62);
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 22px;
  border: 1px solid rgba(223, 212, 193, 0.12);
  border-radius: 18px;
  color: var(--parchment-300);
  background: rgba(53, 43, 31, 0.34);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.detail-page {
  padding: 36px 0 74px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--parchment-400);
  font-size: 0.92rem;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 410px) 1fr;
  gap: 34px;
  align-items: stretch;
  margin-bottom: 34px;
}

.detail-cover {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(223, 212, 193, 0.10);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 20%, rgba(138, 159, 110, 0.22), transparent 20rem),
    rgba(53, 43, 31, 0.42);
  box-shadow: var(--shadow);
}

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

.detail-main {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(223, 212, 193, 0.10);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 46px);
  background:
    radial-gradient(circle at 80% 0%, rgba(138, 159, 110, 0.24), transparent 22rem),
    rgba(10, 20, 13, 0.40);
  box-shadow: var(--soft-shadow);
}

.detail-main h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
}

.detail-main p {
  margin: 0 0 22px;
  font-size: 1.06rem;
}

.detail-meta {
  margin-bottom: 28px;
}

.player-section {
  margin: 34px 0;
}

.player-box {
  overflow: hidden;
  border: 1px solid rgba(223, 212, 193, 0.10);
  border-radius: var(--radius);
  background: #030503;
  box-shadow: var(--shadow);
}

.player-surface {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 20%, rgba(138, 159, 110, 0.16), transparent 20rem),
    #000;
}

.player-surface video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: var(--parchment-100);
  background: linear-gradient(180deg, rgba(10, 20, 13, 0.28), rgba(10, 20, 13, 0.76));
  cursor: pointer;
  transition: opacity 200ms ease, visibility 200ms ease;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--moss-600), var(--moss-500));
  font-size: 1.8rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.player-overlay strong {
  font-size: 1.28rem;
}

.player-overlay span:last-child {
  max-width: min(720px, 82%);
  color: var(--parchment-300);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 26px;
  align-items: start;
}

.content-section,
.side-panel {
  border: 1px solid rgba(223, 212, 193, 0.10);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(53, 43, 31, 0.32);
  box-shadow: var(--soft-shadow);
}

.content-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.content-section p {
  margin: 0 0 24px;
  font-size: 1.02rem;
}

.side-panel h2 {
  margin: 0 0 14px;
  font-size: 1.18rem;
}

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

.side-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  color: var(--parchment-300);
  background: rgba(10, 20, 13, 0.30);
}

.side-list a:hover {
  color: var(--parchment-100);
  background: rgba(89, 105, 63, 0.22);
}

.site-footer {
  border-top: 1px solid rgba(223, 212, 193, 0.10);
  background: rgba(10, 20, 13, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 34px;
  padding: 48px 0 34px;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--parchment-100);
  font-size: 1rem;
}

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

.footer-links.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a {
  color: var(--parchment-300);
  font-size: 0.94rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(223, 212, 193, 0.08);
  color: var(--parchment-400);
  font-size: 0.9rem;
}

img.image-missing {
  visibility: hidden;
}

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

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(223, 212, 193, 0.12);
    border-radius: 18px;
    background: rgba(10, 20, 13, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 12px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(89, 105, 63, 0.18);
  }

  .hero-slider {
    min-height: 76vh;
  }

  .hero-content {
    padding: 96px 0 78px;
  }

  .hero-control {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .brand-text em {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

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

  .movie-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-content h1 {
    font-size: 2.45rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .detail-main,
  .content-section,
  .side-panel {
    padding: 20px;
  }

  .play-icon {
    width: 64px;
    height: 64px;
  }
}

.side-title-spaced {
  margin-top: 24px;
}
