:root {
  --forest-50: #f5f7f5;
  --forest-100: #e8ede7;
  --forest-600: #4a6644;
  --forest-700: #3f573a;
  --deer-500: #a88558;
  --earth-900: #423a32;
  --earth-300: #c5bcaa;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-200: #e5e7eb;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.09);
  --shadow-hover: 0 24px 60px rgba(74, 102, 68, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--forest-50) 0%, #ffffff 52%, #f8fafc 100%);
  color: var(--gray-900);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--forest-700);
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(74, 102, 68, 0.25);
}

.logo-text {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.22rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--gray-700);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 0;
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--forest-600);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--forest-50);
  color: var(--forest-700);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1rem;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 12px 16px 18px;
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
}

.mobile-nav a:hover {
  background: var(--forest-50);
  color: var(--forest-700);
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(168, 133, 88, 0.22), transparent 30%), linear-gradient(135deg, #22301f, #4a6644 58%, #a88558);
  color: #ffffff;
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 700ms ease, transform 900ms ease;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.48) 48%, rgba(17, 24, 39, 0.18)),
    var(--hero-image),
    linear-gradient(135deg, #22301f, #4a6644 58%, #a88558);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 340px;
  gap: 46px;
  align-items: center;
  padding: 92px 0 112px;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f5efe5;
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 22px 0 16px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 640px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.85;
}

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

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--forest-50);
  color: var(--forest-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero .tag-pill {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

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

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--forest-700);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-card {
  align-self: stretch;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  min-height: 440px;
  background: linear-gradient(135deg, rgba(74, 102, 68, 0.55), rgba(168, 133, 88, 0.55));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), transparent);
}

.hero-card-title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}

.hero-card-title strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.hero-card-title span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 30px;
  background: #ffffff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(17, 24, 39, 0.28);
  color: #ffffff;
  cursor: pointer;
}

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

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

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

.quick-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.quick-search input,
.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--gray-900);
  font: inherit;
  outline: none;
}

.quick-search input:focus,
.search-panel input:focus {
  border-color: var(--forest-600);
  box-shadow: 0 0 0 4px rgba(74, 102, 68, 0.12);
}

.section {
  padding: 28px 0 54px;
}

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

.section-head h2,
.page-title,
.detail-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  color: var(--gray-900);
  letter-spacing: -0.035em;
}

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

.section-head p,
.page-lead {
  margin: 8px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.section-link {
  color: var(--forest-700);
  font-weight: 900;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  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-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(74, 102, 68, 0.2), rgba(168, 133, 88, 0.26));
}

.poster-wrap::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(74, 102, 68, 0.5);
  font-size: 3rem;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 800;
}

.poster-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.poster-img.is-missing {
  display: none;
}

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

.card-badge {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(74, 102, 68, 0.94);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
}

.play-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.42);
  opacity: 0;
  transition: opacity 180ms ease;
}

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

.card-body {
  padding: 14px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 900;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-line {
  margin: 0 0 12px;
  min-height: 2.8em;
  color: var(--gray-600);
  font-size: 0.83rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.category-card {
  display: block;
  min-height: 168px;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #f6f8f6);
  border: 1px solid rgba(229, 231, 235, 0.96);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 102, 68, 0.35);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.page-hero {
  padding: 64px 0 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 133, 88, 0.2), transparent 34%),
    linear-gradient(180deg, #ffffff, rgba(245, 247, 245, 0.72));
}

.page-title {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--gray-600);
  font-size: 0.88rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--forest-700);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--forest-50);
  color: var(--forest-700);
  font-weight: 900;
}

.rank-title {
  margin: 0 0 4px;
  font-weight: 900;
  color: var(--gray-900);
}

.rank-desc {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding: 36px 0 64px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.25);
  aspect-ratio: 16 / 9;
}

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(74, 102, 68, 0.4), transparent 22%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.player-start span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--forest-600), var(--deer-500));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  font-size: 2rem;
  padding-left: 4px;
}

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

.detail-card,
.sidebar-card,
.search-panel {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.86);
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--gray-600);
  font-weight: 800;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--forest-50);
}

.article-block {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--gray-200);
}

.article-block h2,
.sidebar-card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.article-block p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.95;
}

.sidebar-card {
  padding: 20px;
  position: sticky;
  top: 94px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.92rem;
}

.info-list strong {
  color: var(--gray-900);
}

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

.related-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-thumb {
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(74, 102, 68, 0.2), rgba(168, 133, 88, 0.28));
}

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

.related-title {
  display: block;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.45;
}

.related-meta {
  display: block;
  margin-top: 4px;
  color: var(--gray-600);
  font-size: 0.8rem;
}

.search-panel {
  padding: 22px;
  margin-bottom: 28px;
}

.empty-result {
  padding: 32px;
  text-align: center;
  color: var(--gray-600);
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
}

.site-footer {
  margin-top: 72px;
  padding: 54px 0 36px;
  background: var(--earth-900);
  color: var(--earth-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p,
.site-footer li {
  color: var(--earth-300);
  line-height: 1.8;
}

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

.footer-bottom {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(197, 188, 170, 0.18);
  font-size: 0.88rem;
  color: rgba(197, 188, 170, 0.76);
}

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

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

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

  .hero-card {
    display: none;
  }

  .sidebar-card {
    position: static;
  }
}

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

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

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

  .hero-track {
    min-height: 560px;
  }

  .hero-content {
    padding: 76px 0 104px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-box {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .rank-row .btn {
    grid-column: 2;
    justify-self: start;
  }

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

  .detail-card {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }
}
