:root {
  --forest-900: #1f321e;
  --forest-800: #2b4529;
  --forest-700: #3c5238;
  --forest-600: #4a6644;
  --forest-100: #ecf4e9;
  --earth-950: #15100d;
  --earth-900: #241b16;
  --earth-800: #3a2b22;
  --cream: #f8f4eb;
  --paper: #fffdf8;
  --text: #1f2933;
  --muted: #6b7280;
  --line: rgba(31, 41, 51, 0.12);
  --shadow-soft: 0 18px 45px rgba(37, 45, 35, 0.10);
  --shadow-hover: 0 24px 60px rgba(37, 45, 35, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbf8f0 0%, #f4efe5 48%, #fffdf8 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(74, 102, 68, 0.12);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--forest-800);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--forest-600), #86a36f);
  box-shadow: 0 12px 26px rgba(74, 102, 68, 0.28);
}

.brand-text {
  font-size: 21px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #566052;
}

.nav-link {
  padding: 10px 4px;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--forest-600);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--forest-100);
  cursor: pointer;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--forest-800);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 10px 22px 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-nav-link {
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 700;
  background: rgba(74, 102, 68, 0.06);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--earth-950);
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 700ms ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(221, 179, 92, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(20, 16, 12, 0.94) 0%, rgba(31, 50, 30, 0.72) 48%, rgba(20, 16, 12, 0.36) 100%),
    linear-gradient(0deg, rgba(20, 16, 12, 0.96) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 118px 22px 86px;
  margin: 0 auto;
  color: #ffffff;
}

.hero-content h1 {
  max-width: 820px;
  margin: 16px 0 12px;
  font-size: clamp(34px, 7vw, 76px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: #f0dfad;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.9;
}

.eyebrow {
  margin: 0 0 8px;
  color: #78946e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0dfad;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--forest-800);
  background: rgba(74, 102, 68, 0.10);
  font-size: 12px;
  font-weight: 800;
}

.hero-tags .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--forest-600), var(--forest-800));
  box-shadow: 0 16px 34px rgba(74, 102, 68, 0.28);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.primary-button.small {
  min-height: 42px;
  border: 0;
  cursor: pointer;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.ghost-button.dark {
  color: var(--forest-800);
  border-color: rgba(74, 102, 68, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #f0dfad;
}

.category-strip {
  margin-top: -42px;
  position: relative;
  z-index: 6;
  padding: 0 22px;
}

.category-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.category-chip {
  padding: 16px;
  border-radius: 20px;
  background: rgba(74, 102, 68, 0.08);
  transition: transform 180ms ease, background 180ms ease;
}

.category-chip:hover {
  transform: translateY(-2px);
  background: rgba(74, 102, 68, 0.14);
}

.category-chip span,
.category-chip em {
  display: block;
}

.category-chip span {
  font-weight: 900;
  color: var(--forest-800);
}

.category-chip em {
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.content-section,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 22px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.text-panel h2 {
  margin: 0;
  color: var(--forest-900);
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--forest-700);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(240, 223, 173, 0.42), transparent 32%),
    linear-gradient(135deg, #20361f, #14100c);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, opacity 240ms ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.52));
}

.poster-badge,
.rank-mark,
.play-dot {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(74, 102, 68, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.rank-mark {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #201812;
  background: #f0dfad;
  font-weight: 900;
}

.play-dot {
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.88);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  color: #1e2b1d;
}

.movie-card h3 a:hover {
  color: var(--forest-600);
}

.card-meta,
.card-line {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.card-line {
  margin: 8px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  line-height: 1.5;
}

.page-hero {
  min-height: 280px;
  border-radius: 34px;
  padding: 46px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 22%, rgba(240, 223, 173, 0.28), transparent 30%),
    linear-gradient(135deg, var(--earth-950), var(--forest-800));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 58px);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

.filter-panel {
  margin: 24px 22px 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.filter-panel label,
.filter-panel span {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--forest-800);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  outline: none;
  background: #ffffff;
}

.detail-main {
  max-width: 1180px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 28px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(240, 223, 173, 0.24), transparent 30%),
    linear-gradient(135deg, var(--earth-950), var(--forest-900));
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  border-radius: 26px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(32px, 5vw, 62px);
}

.detail-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-meta {
  margin: 26px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-meta div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.player-section,
.text-panel {
  margin-top: 28px;
  padding: 22px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.player-start.is-hidden {
  display: none;
}

.player-start span {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(74, 102, 68, 0.92);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
  font-size: 30px;
}

.player-start strong {
  font-size: 18px;
}

.player-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.text-panel h2 {
  margin-top: 8px;
  font-size: 28px;
}

.text-panel p {
  color: #485244;
  font-size: 16px;
  line-height: 2;
}

.site-footer {
  margin-top: 70px;
  color: #d8d0c2;
  background: var(--earth-900);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.footer-main p {
  max-width: 560px;
  color: #c3b8aa;
  line-height: 1.8;
}

.footer-col h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #a99d8d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

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

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

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 94px;
  }

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

  .category-strip-inner,
  .filter-panel,
  .detail-meta,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero {
    padding: 30px;
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .header-inner {
    padding: 0 16px;
  }

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

  .movie-grid {
    gap: 12px;
  }

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

  .content-section,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}
