:root {
  --sand-50: #faf7f2;
  --sand-100: #f2eadf;
  --sand-200: #e2d0ba;
  --sand-400: #b8926a;
  --sand-600: #7d5a3b;
  --sand-700: #63452d;
  --sand-800: #3c2a1f;
  --sand-900: #201812;
  --desert-50: #fff5e8;
  --desert-100: #ffe5c2;
  --desert-300: #f2b46d;
  --desert-400: #df9240;
  --desert-500: #c97822;
  --desert-600: #ad5f18;
  --desert-700: #8e4616;
  --ink: #1f1812;
  --paper: #fffdf9;
  --shadow-soft: 0 18px 55px rgba(57, 37, 18, 0.14);
  --shadow-warm: 0 18px 45px rgba(173, 95, 24, 0.22);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sand-50), #ffffff 42%, var(--sand-50));
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

img.is-missing {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fffaf1;
  background: linear-gradient(90deg, var(--sand-800), var(--desert-700));
  box-shadow: 0 10px 28px rgba(32, 24, 18, 0.2);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--desert-300), var(--desert-600));
  box-shadow: 0 10px 24px rgba(223, 146, 64, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255, 250, 241, 0.9);
  font-size: 14px;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 18% 20%, rgba(223, 146, 64, 0.42), transparent 32%), linear-gradient(135deg, #1d1510, #4a2f1d 52%, #8e4616);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--sand-50));
  pointer-events: none;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.7fr);
  align-items: center;
  gap: 54px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff5e8;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 750;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-copy {
  max-width: 760px;
  color: rgba(255, 250, 241, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.chip,
.tag,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--sand-800);
  background: var(--desert-50);
  font-size: 13px;
  font-weight: 700;
}

.hero .chip {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  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: #fff;
  background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
  box-shadow: var(--shadow-warm);
}

.btn-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-ghost {
  color: var(--desert-700);
  background: var(--desert-50);
}

.hero-poster {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand-700), var(--desert-600));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.36), transparent 58%);
  filter: blur(30px);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.72;
}

.hero-poster-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(32, 24, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-poster-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

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

.hero-dot,
.hero-arrow {
  border: 0;
  cursor: pointer;
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--desert-300);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

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

.section.alt {
  width: min(1220px, calc(100% - 32px));
  margin-top: 20px;
  padding: 54px 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--desert-50), var(--sand-50));
}

.section.solid {
  width: min(1220px, calc(100% - 32px));
  padding: 54px 30px;
  border-radius: var(--radius-xl);
  background: var(--sand-100);
}

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

.section-title {
  margin: 0;
  color: var(--sand-900);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-subtitle {
  max-width: 720px;
  margin: 10px 0 0;
  color: #6d5a4b;
  line-height: 1.8;
}

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

.feature-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.86fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.movie-card:hover,
.category-card:hover,
.ranking-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
}

.poster-frame,
.card-poster,
.detail-poster,
.video-shell {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.32), transparent 28%), linear-gradient(135deg, var(--sand-700), var(--desert-600));
}

.feature-card img,
.movie-card img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.feature-card:hover img,
.movie-card:hover img {
  transform: scale(1.07);
}

.feature-card .poster-frame {
  min-height: 250px;
}

.feature-body,
.movie-body,
.category-body {
  padding: 22px;
}

.feature-body h3,
.movie-body h3,
.category-body h2,
.category-body h3 {
  margin: 0 0 10px;
  color: var(--sand-900);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.25;
}

.feature-body p,
.movie-body p,
.category-body p,
.detail-copy p,
.rich-text p {
  margin: 0;
  color: #665447;
  line-height: 1.78;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(57, 37, 18, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-poster {
  aspect-ratio: 3 / 4;
}

.card-poster.wide {
  aspect-ratio: 16 / 10;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(32, 24, 18, 0.7);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
  font-size: 13px;
  font-weight: 900;
}

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

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

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background: radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.22), transparent 30%), linear-gradient(135deg, var(--sand-800), var(--desert-700));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 250, 241, 0.82);
  line-height: 1.7;
}

.page-hero {
  color: #fff;
  background: radial-gradient(circle at 12% 15%, rgba(242, 180, 109, 0.5), transparent 28%), linear-gradient(135deg, var(--sand-800), var(--desert-700));
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.page-hero p {
  max-width: 820px;
  color: rgba(255, 250, 241, 0.84);
  font-size: 19px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px;
  gap: 14px;
  margin: 28px 0 34px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #eadfd4;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--sand-900);
  background: var(--sand-50);
  font: inherit;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--desert-400);
  box-shadow: 0 0 0 4px rgba(223, 146, 64, 0.16);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 72px 72px minmax(0, 1fr) 130px 110px;
  gap: 18px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(57, 37, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-num {
  color: var(--desert-600);
  font-size: 22px;
  font-weight: 900;
}

.rank-thumb {
  width: 72px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand-700), var(--desert-600));
}

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

.rank-main h2,
.rank-main h3 {
  margin: 0 0 8px;
  color: var(--sand-900);
  font-size: 20px;
  font-weight: 850;
}

.rank-main p {
  margin: 0;
  color: #665447;
  line-height: 1.6;
}

.detail-hero {
  color: #fff;
  background: radial-gradient(circle at 18% 18%, rgba(242, 180, 109, 0.42), transparent 32%), linear-gradient(135deg, var(--sand-900), var(--sand-800) 48%, var(--desert-700));
}

.detail-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 62px 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 250, 241, 0.72);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.detail-poster {
  min-height: 460px;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.detail-title {
  color: #fff;
  font-size: clamp(34px, 5.8vw, 66px);
}

.detail-lead {
  color: rgba(255, 250, 241, 0.84);
  font-size: 19px;
  line-height: 1.84;
}

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

.video-shell {
  position: relative;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-soft);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.55));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
  box-shadow: var(--shadow-warm);
  font-size: 28px;
}

.video-shell.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
}

.detail-card,
.side-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 18px;
  color: var(--sand-900);
  font-size: 26px;
  font-weight: 900;
}

.detail-copy {
  display: grid;
  gap: 18px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--sand-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-link:hover {
  background: var(--desert-50);
  transform: translateX(3px);
}

.side-link img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sand-700), var(--desert-600));
}

.side-link strong {
  display: block;
  margin-bottom: 5px;
  color: var(--sand-900);
  line-height: 1.35;
}

.side-link small {
  color: var(--sand-600);
  font-weight: 700;
}

.site-footer {
  margin-top: 72px;
  color: var(--sand-200);
  background: linear-gradient(180deg, var(--sand-800), var(--sand-900));
}

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

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 12px;
  color: #fff7eb;
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 250, 241, 0.72);
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  color: rgba(255, 250, 241, 0.58);
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 18px;
  text-align: center;
  color: var(--sand-600);
  background: #fff;
}

.empty-state.is-visible {
  display: block;
}

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

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

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

  .hero-poster {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero,
  .hero-carousel {
    min-height: 780px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 0 90px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 310px;
  }

  .feature-grid,
  .feature-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

  .ranking-row {
    grid-template-columns: 44px 64px minmax(0, 1fr);
  }

  .ranking-row .rank-score,
  .ranking-row .rank-link {
    display: none;
  }

  .detail-poster {
    min-height: 360px;
  }

  .detail-card,
  .side-card {
    padding: 22px;
  }
}
