:root {
  --sand-50: #fdfbf7;
  --sand-100: #f8f4ea;
  --sand-200: #f0e7d3;
  --sand-300: #e6d5b3;
  --desert-50: #fef9f3;
  --desert-100: #fdf2e5;
  --desert-500: #e88c45;
  --desert-600: #d66f2e;
  --desert-700: #b35a26;
  --dune-50: #f9f7f4;
  --dune-100: #f1ece4;
  --dune-500: #ad835d;
  --earth-50: #f7f6f4;
  --earth-100: #ede9e4;
  --earth-200: #dbd2c9;
  --earth-600: #7a6758;
  --earth-700: #655243;
  --earth-800: #594737;
  --earth-900: #504035;
  --ink: #2e261f;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(80, 64, 53, 0.12);
  --shadow-card: 0 14px 30px rgba(80, 64, 53, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sand-50) 0%, var(--white) 42%, var(--sand-100) 100%);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--sand-200);
  backdrop-filter: blur(18px);
}

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

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

.brand {
  font-size: 22px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--desert-500), var(--dune-500));
  box-shadow: 0 12px 28px rgba(214, 111, 46, 0.32);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a,
.mobile-nav a {
  color: var(--earth-700);
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a {
  padding: 10px 15px;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-nav a:hover {
  color: var(--desert-700);
  background: var(--desert-50);
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--sand-200);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
}

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

.hero {
  position: relative;
  min-height: 520px;
  height: min(68vh, 660px);
  overflow: hidden;
  background: var(--earth-900);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at center, var(--dune-500), var(--earth-900));
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.50) 44%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(80, 64, 53, 0.12), rgba(80, 64, 53, 0.74));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(720px, 100%);
  color: var(--white);
  padding-top: 24px;
}

.hero-copy h1 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 14px;
  color: var(--sand-200);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
}

.hero-copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.58);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dots button.is-active {
  background: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--desert-600), var(--desert-500));
  box-shadow: 0 14px 30px rgba(214, 111, 46, 0.30);
}

.btn-light {
  color: var(--earth-900);
  background: rgba(255, 255, 255, 0.88);
}

.section-block {
  padding: 74px 0;
}

.alt-block {
  background: linear-gradient(180deg, rgba(248, 244, 234, 0.72), rgba(253, 251, 247, 0.96));
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--desert-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2,
.compact-hero h1,
.ranking-layout h2,
.prose-card h2,
.player-title h2,
.ranking-wide h2 {
  margin: 0;
  color: var(--earth-800);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head h2,
.compact-hero h1,
.ranking-layout h2 {
  font-size: clamp(30px, 5vw, 46px);
}

.text-link {
  color: var(--desert-700);
  font-weight: 800;
}

.text-link:hover {
  color: var(--desert-600);
}

.search-panel {
  position: relative;
  z-index: 10;
  margin-top: -36px;
}

.search-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: center;
  gap: 28px;
  padding: 24px;
  border: 1px solid rgba(240, 231, 211, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.search-inner h2 {
  margin: 0 0 8px;
  color: var(--earth-800);
  font-size: 24px;
}

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

.search-box {
  display: grid;
  gap: 8px;
  color: var(--earth-700);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  color: var(--earth-900);
  border: 1px solid var(--sand-300);
  border-radius: 16px;
  outline: none;
  background: var(--sand-50);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--desert-500);
  box-shadow: 0 0 0 4px rgba(232, 140, 69, 0.16);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--sand-200);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(80, 64, 53, 0.16);
}

.poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--sand-300), var(--earth-900));
}

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

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

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

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

.movie-card p {
  display: -webkit-box;
  min-height: 72px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--earth-600);
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: var(--desert-700);
  border-radius: 999px;
  background: var(--desert-50);
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

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

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

.category-tile {
  min-height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--sand-200);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(232, 140, 69, 0.16), transparent 34%),
    var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border 0.25s ease;
}

.category-tile:hover {
  border-color: var(--desert-500);
  transform: translateY(-5px);
}

.category-tile span {
  color: var(--earth-800);
  font-size: 24px;
  font-weight: 900;
}

.category-tile em {
  color: var(--earth-600);
  font-style: normal;
  line-height: 1.7;
}

.ranking-home {
  background: var(--earth-900);
  color: var(--sand-100);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.ranking-layout h2,
.ranking-layout .eyebrow {
  color: var(--sand-50);
}

.ranking-layout p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}

.rank-item strong {
  color: var(--desert-500);
  font-size: 20px;
}

.rank-item span {
  color: var(--white);
  font-weight: 800;
}

.rank-item em {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-style: normal;
}

.ranking-wide {
  padding: 28px;
  border-radius: 28px;
  background: var(--earth-900);
  box-shadow: var(--shadow-soft);
}

.ranking-wide h2 {
  color: var(--white);
  margin-bottom: 22px;
}

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

.page-hero {
  padding: 78px 0 112px;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(232, 140, 69, 0.38), transparent 28%),
    linear-gradient(135deg, var(--earth-900), #2d241d);
}

.compact-hero h1 {
  color: var(--white);
  max-width: 840px;
}

.compact-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.8;
}

.detail-hero {
  padding: 70px 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(232, 140, 69, 0.26), transparent 32%),
    linear-gradient(135deg, var(--sand-100), var(--white));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(230px, 340px) 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.detail-copy h1 {
  margin: 18px 0 12px;
  color: var(--earth-900);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--earth-700);
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-meta div {
  padding: 14px;
  border: 1px solid var(--sand-200);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.detail-meta dt {
  color: var(--earth-600);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 5px 0 0;
  color: var(--earth-900);
  font-weight: 900;
}

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

.player-card,
.prose-card {
  overflow: hidden;
  border: 1px solid var(--sand-200);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #080605;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #080605;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  background: var(--desert-600);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.38);
  font-size: 34px;
}

.play-overlay strong {
  display: block;
  font-size: 22px;
}

.video-frame.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-title {
  padding: 24px;
}

.player-title p {
  margin: 10px 0 0;
  color: var(--earth-600);
  line-height: 1.75;
}

.prose-card {
  padding: 34px;
}

.prose-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 28px;
}

.prose-card h2:not(:first-child) {
  margin-top: 28px;
}

.prose-card p {
  margin: 0;
  color: var(--earth-700);
  font-size: 18px;
  line-height: 1.95;
}

.site-footer {
  padding: 58px 0 0;
  color: rgba(255, 255, 255, 0.74);
  background: var(--earth-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
  margin-top: 48px;
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

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

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

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

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

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

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

  .hero {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    padding: 92px 0 82px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .movie-grid,
  .movie-grid-featured,
  .all-movie-grid,
  .category-grid,
  .category-grid-large,
  .rank-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-copy p,
  .lead,
  .compact-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions,
  .detail-meta,
  .movie-grid,
  .movie-grid-featured,
  .all-movie-grid,
  .category-grid,
  .category-grid-large,
  .rank-list-wide {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

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

  .rank-item em {
    grid-column: 2;
  }

  .section-block {
    padding: 54px 0;
  }
}
