:root {
  --ancient-50: #f9f7f4;
  --ancient-100: #efe7da;
  --ancient-200: #e3d2b8;
  --ancient-300: #d4c3a4;
  --ancient-600: #a67f4d;
  --ancient-700: #8b6a40;
  --ancient-800: #725739;
  --ancient-900: #5f4930;
  --earth-50: #f7f4f0;
  --earth-100: #eee7df;
  --earth-600: #7a6b60;
  --earth-700: #64564d;
  --earth-800: #554840;
  --earth-900: #4a3f38;
  --sage-50: #f6f7f6;
  --sage-100: #e3e7e3;
  --sage-600: #697769;
  --sage-700: #424a42;
  --white: #ffffff;
  --black: #050505;
  --shadow-soft: 0 18px 45px rgba(74, 63, 56, 0.12);
  --shadow-strong: 0 28px 60px rgba(74, 63, 56, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--ancient-50), var(--sage-50));
  color: var(--earth-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 244, 0.95);
  border-bottom: 1px solid rgba(166, 127, 77, 0.18);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--earth-900);
  letter-spacing: 0.04em;
}

.logo-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ancient-600), var(--sage-600));
  color: var(--white);
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

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

.nav-link,
.mobile-link {
  color: var(--earth-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--ancient-700);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--ancient-100);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--earth-900);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-nav.open {
  display: grid;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(166, 127, 77, 0.22), transparent 34%), linear-gradient(135deg, #4a3f38, #8b6a40 52%, #424a42);
  color: var(--white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transform: scale(1.04);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 24, 20, 0.92), rgba(30, 24, 20, 0.68) 46%, rgba(30, 24, 20, 0.22)), linear-gradient(0deg, rgba(30, 24, 20, 0.86), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 72px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

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

.hero p {
  max-width: 650px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  background: var(--ancient-600);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(166, 127, 77, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(166, 127, 77, 0.16);
  color: var(--ancient-800);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}

.hero-panel {
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(20px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--ancient-700), var(--sage-700));
}

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

.hero-mini-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
}

.hero-mini-card img {
  width: 70px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: var(--ancient-700);
}

.hero-mini-card strong {
  display: block;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-mini-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.active {
  width: 32px;
  background: var(--white);
}

.page-shell {
  padding: 48px 0 64px;
}

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

.section-title h1,
.section-title h2 {
  margin: 0;
  color: var(--earth-900);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.16;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--earth-600);
}

.section-more {
  white-space: nowrap;
  color: var(--ancient-700);
  font-weight: 800;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ancient-200), var(--sage-100));
}

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

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

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

.play-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(166, 127, 77, 0.92);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--earth-900);
  font-size: 17px;
  line-height: 1.35;
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--sage-700);
  font-size: 13px;
  font-weight: 700;
}

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

.category-card {
  display: block;
  min-height: 145px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--white), var(--ancient-100));
  border: 1px solid rgba(166, 127, 77, 0.18);
  box-shadow: var(--shadow-soft);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--earth-600);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 112px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-index {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ancient-600);
  color: var(--white);
  font-weight: 900;
}

.rank-item img {
  width: 112px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  background: var(--ancient-200);
}

.rank-info h3 {
  margin: 0 0 5px;
}

.rank-info p {
  margin: 0;
  color: var(--earth-600);
  font-size: 14px;
}

.rank-score {
  color: var(--ancient-700);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(166, 127, 77, 0.26);
  border-radius: 14px;
  background: var(--ancient-50);
  padding: 0 14px;
  color: var(--earth-900);
  outline: none;
}

.search-results {
  min-height: 320px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--black);
  box-shadow: var(--shadow-strong);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--black);
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  transition: opacity 0.25s ease;
}

.player-overlay.hidden {
  opacity: 0;
}

.player-button {
  pointer-events: auto;
  display: inline-flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(166, 127, 77, 0.92);
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
}

.player-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 10px;
}

.player-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.detail-card,
.content-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-card {
  padding: 24px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
}

.detail-card .intro {
  margin: 0 0 20px;
  color: var(--earth-600);
  font-style: italic;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.detail-list dt {
  color: var(--earth-600);
}

.detail-list dd {
  margin: 0;
  font-weight: 800;
}

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

.content-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0 0 18px;
  color: var(--earth-700);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--earth-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--ancient-700);
  font-weight: 800;
}

.site-footer {
  background: var(--earth-900);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 40px;
}

.footer-inner {
  padding: 40px 0;
  display: grid;
  gap: 16px;
}

.footer-logo {
  color: var(--white);
}

.footer-inner p {
  margin: 0;
  max-width: 680px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

  .menu-button {
    display: inline-flex;
  }

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

  .hero-panel {
    max-width: 620px;
  }

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

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

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

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

  .rank-score {
    grid-column: 3;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

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

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

  .rank-item img {
    display: none;
  }

  .rank-score {
    grid-column: 2;
  }
}
