:root {
  --ancient-50: #f9f7f4;
  --ancient-100: #f0ebe3;
  --ancient-200: #e4dac8;
  --ancient-300: #d4c3a4;
  --ancient-600: #a67f4d;
  --ancient-700: #8b6a40;
  --ancient-800: #725739;
  --ancient-900: #5f4930;
  --earth-50: #f7f4f0;
  --earth-100: #edeae5;
  --earth-400: #a39684;
  --earth-500: #8d7c6b;
  --earth-600: #79685a;
  --earth-700: #64544a;
  --earth-800: #554840;
  --earth-900: #4a3f38;
  --sage-50: #f6f7f6;
  --sage-100: #e3e7e3;
  --sage-600: #505c50;
  --sage-700: #424a42;
  --white: #ffffff;
  --shadow-soft: 0 20px 50px rgba(74, 63, 56, 0.13);
  --shadow-card: 0 12px 30px rgba(74, 63, 56, 0.16);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--earth-900);
  background: linear-gradient(180deg, var(--ancient-50), #ffffff 42%, var(--sage-50));
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 244, 0.94);
  border-bottom: 1px solid var(--ancient-200);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 12px rgba(95, 73, 48, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  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;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ancient-600), var(--ancient-800));
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(139, 106, 64, 0.26);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: var(--ancient-900);
  letter-spacing: 0.02em;
}

.brand-copy small {
  font-size: 12px;
  color: var(--ancient-600);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--ancient-700);
  font-weight: 600;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--ancient-600);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ancient-900);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--ancient-800);
  background: var(--ancient-100);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-nav .nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.hero {
  position: relative;
  height: 72vh;
  min-height: 540px;
  overflow: hidden;
  background: var(--earth-900);
}

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

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 16, 12, 0.88), rgba(74, 63, 56, 0.58) 50%, rgba(74, 63, 56, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
  color: #ffffff;
}

.eyebrow {
  width: max-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--ancient-200);
  background: rgba(166, 127, 77, 0.28);
  border: 1px solid rgba(212, 195, 164, 0.34);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--ancient-100);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  color: #ffffff;
  background: rgba(166, 127, 77, 0.88);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-button {
  min-height: 52px;
  padding: 0 28px;
  color: #ffffff;
  background: var(--ancient-600);
  box-shadow: 0 14px 30px rgba(139, 106, 64, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--ancient-700);
}

.ghost-button {
  min-height: 52px;
  padding: 0 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.section {
  padding: 68px 0;
}

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

.section-heading p {
  margin: 0 0 8px;
  color: var(--ancient-600);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--earth-900);
}

.section-more {
  min-height: 42px;
  padding: 0 16px;
  color: var(--ancient-700);
  background: var(--ancient-100);
}

.section-more:hover {
  color: #ffffff;
  background: var(--ancient-600);
}

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

.category-card,
.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--ancient-200);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  transition: transform 0.5s ease;
}

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

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  display: block;
  margin: 88px 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ancient-900);
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 150px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--ancient-200);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ancient-200);
  border-radius: 12px;
  color: var(--earth-900);
  background: #ffffff;
  outline: 0;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--ancient-600);
  box-shadow: 0 0 0 4px rgba(166, 127, 77, 0.12);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--ancient-200);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--earth-800);
}

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

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

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

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(166, 127, 77, 0.94);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  min-width: 42px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ancient-600), var(--ancient-800));
  border-radius: 999px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--earth-500);
  font-size: 13px;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: var(--earth-900);
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--ancient-700);
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--earth-600);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-strip {
  background: linear-gradient(90deg, var(--sage-50), var(--ancient-50), var(--sage-50));
}

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

.page-hero {
  padding: 82px 0 54px;
  color: #ffffff;
  background: radial-gradient(circle at 15% 25%, rgba(212, 195, 164, 0.28), transparent 26%), linear-gradient(135deg, var(--earth-900), var(--ancient-800));
}

.page-hero p {
  margin: 0 0 10px;
  color: var(--ancient-200);
  font-weight: 700;
}

.page-hero h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 60px);
}

.hero-intro {
  max-width: 760px;
  color: var(--ancient-100) !important;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--ancient-200);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  min-height: 210px;
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  height: 164px;
}

.overview-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.overview-card h2 {
  margin: 16px 0 10px;
  font-size: 26px;
  color: var(--ancient-900);
}

.overview-card p {
  color: var(--earth-600);
  line-height: 1.8;
}

.overview-card span {
  color: var(--ancient-700);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: #ffffff;
  background: var(--earth-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(0.85);
  transform: scale(1.08);
  opacity: 0.52;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 16, 12, 0.9), rgba(74, 63, 56, 0.68));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 840px;
  margin: 0 0 22px;
  color: var(--ancient-100);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta span {
  padding: 8px 12px;
  color: var(--ancient-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.player-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: #ffffff;
  background: rgba(166, 127, 77, 0.92);
  border-radius: 50%;
  font-size: 38px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-overlay:hover .player-button {
  transform: scale(1.08);
  background: var(--ancient-700);
}

.player-overlay strong {
  font-size: 22px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-article,
.detail-side {
  padding: 28px;
  border: 1px solid var(--ancient-200);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ancient-900);
  font-size: 28px;
}

.detail-article p {
  margin: 0 0 24px;
  color: var(--earth-700);
  font-size: 17px;
  line-height: 2;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px 18px;
  margin: 0;
}

.detail-side dt {
  color: var(--earth-500);
}

.detail-side dd {
  margin: 0;
  color: var(--earth-900);
  font-weight: 700;
}

.detail-side dd span {
  display: inline-flex;
  margin: 0 5px 6px 0;
  padding: 5px 9px;
  color: var(--ancient-800);
  background: var(--ancient-100);
  border-radius: 999px;
  font-size: 12px;
}

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

.site-footer {
  margin-top: 36px;
  color: var(--earth-100);
  background: var(--earth-900);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ancient-200);
  font-size: 24px;
  font-weight: 800;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: var(--earth-400);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--ancient-300);
}

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

.site-footer a {
  color: var(--earth-400);
}

.site-footer a:hover {
  color: var(--ancient-300);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid var(--earth-800);
  color: var(--earth-500);
  font-size: 14px;
}

.movie-card[hidden] {
  display: none;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--ancient-600);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 16px;
  }

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-arrow {
    display: none;
  }

  .category-grid,
  .movie-grid,
  .ranking-grid,
  .ranking-list,
  .overview-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-card {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 560px) {
  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

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

  .category-grid,
  .movie-grid,
  .ranking-grid,
  .ranking-list,
  .overview-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .detail-copy h1 {
    font-size: 36px;
  }

  .player-button {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
