:root {
  --sand-50: #fbf7ef;
  --sand-100: #f4ecdf;
  --sand-200: #e8dac5;
  --sand-300: #dcc6aa;
  --earth-50: #faf8f5;
  --earth-100: #efe6da;
  --earth-300: #c2b4a3;
  --earth-500: #8b735f;
  --earth-600: #6f5846;
  --earth-700: #5b4738;
  --earth-800: #47362b;
  --earth-900: #2d211a;
  --desert-50: #fff3e8;
  --desert-100: #ffe0c2;
  --desert-400: #f1a15d;
  --desert-500: #ec8b3b;
  --desert-600: #d96d1c;
  --desert-700: #b95514;
  --white: #ffffff;
  --black: #0e0906;
  --shadow-sm: 0 8px 20px rgba(45, 33, 26, 0.08);
  --shadow-md: 0 18px 40px rgba(45, 33, 26, 0.12);
  --shadow-lg: 0 30px 70px rgba(45, 33, 26, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sand-50);
  color: var(--earth-900);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(45, 33, 26, 0.08);
}

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

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

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
  color: var(--white);
  box-shadow: 0 14px 24px rgba(217, 109, 28, 0.25);
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--earth-700);
  font-weight: 700;
}

.nav-links a {
  padding: 20px 0;
  transition: color 0.2s ease;
}

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

.nav-search {
  position: relative;
  width: min(280px, 30vw);
}

.search-shell {
  position: relative;
}

.search-input,
.catalog-search {
  width: 100%;
  border: 1px solid var(--sand-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--earth-800);
  padding: 11px 16px;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-input:focus,
.catalog-search:focus,
.filter-select:focus {
  border-color: var(--desert-500);
  box-shadow: 0 0 0 4px rgba(236, 139, 59, 0.14);
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 80;
  display: none;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--sand-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

.search-results.is-open {
  display: block;
}

.search-result-link {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 9px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result-link:hover {
  background: var(--sand-100);
}

.search-result-link img {
  width: 70px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-link strong {
  display: block;
  color: var(--earth-900);
  line-height: 1.35;
  margin-bottom: 2px;
}

.search-result-link span {
  color: var(--earth-600);
  font-size: 12px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--sand-100);
  color: var(--earth-800);
}

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

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--earth-700);
  font-weight: 700;
}

.hero {
  position: relative;
  height: 76vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--black);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide.is-active .hero-image {
  animation: slowZoom 9s ease both;
}

.hero::after,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::after {
  background: radial-gradient(circle at 75% 20%, rgba(236, 139, 59, 0.26), transparent 34%);
  pointer-events: none;
}

.hero-slide::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 60px 0 96px;
  color: var(--white);
}

.hero-copy {
  width: min(780px, 100%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

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

.btn-primary {
  background: var(--desert-600);
  color: var(--white);
  box-shadow: 0 16px 32px rgba(217, 109, 28, 0.3);
}

.btn-primary:hover {
  background: var(--desert-700);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.btn-light {
  background: var(--white);
  color: var(--earth-800);
  box-shadow: var(--shadow-sm);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.page-main {
  padding: 64px 0;
}

.section-stack {
  display: grid;
  gap: 78px;
}

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

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

.section-subtitle {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--earth-600);
}

.more-link {
  color: var(--desert-600);
  font-weight: 800;
  white-space: nowrap;
}

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

.card-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

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

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

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--earth-100);
}

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

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

.movie-card:hover .poster-wrap img,
.related-card:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.card-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--earth-900);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: var(--desert-600);
}

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

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.meta-row {
  color: var(--earth-500);
  font-size: 13px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--sand-100);
  color: var(--earth-700);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.feature-band {
  border-radius: 34px;
  background: linear-gradient(135deg, var(--desert-50), var(--sand-100));
  padding: clamp(28px, 5vw, 48px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.horizontal-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
  width: 300px;
  min-width: 300px;
  scroll-snap-align: start;
}

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

.category-card {
  display: block;
  min-height: 170px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--white), var(--sand-100));
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  color: var(--earth-900);
}

.category-card span {
  color: var(--earth-600);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 128px 1fr;
  align-items: center;
  gap: 16px;
  border-radius: 22px;
  background: var(--white);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--earth-900);
  color: var(--white);
  font-weight: 900;
}

.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
}

.rank-item img {
  width: 128px;
  height: 82px;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rank-title {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-hero {
  background: linear-gradient(120deg, var(--desert-100), var(--sand-100) 58%, var(--earth-100));
  padding: 62px 0;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--earth-700);
  font-size: 18px;
}

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

.filter-select {
  width: 100%;
  border: 1px solid var(--sand-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--earth-700);
  padding: 11px 14px;
  outline: none;
}

.no-results {
  display: none;
  border-radius: 24px;
  background: var(--white);
  color: var(--earth-700);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.no-results.is-visible {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  gap: 32px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--black);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--black);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.1));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  display: grid;
  place-items: center;
  width: clamp(70px, 10vw, 98px);
  height: clamp(70px, 10vw, 98px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--desert-600);
  font-size: 34px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay:hover .play-button {
  transform: scale(1.06);
  background: var(--white);
}

.content-card,
.sidebar-card {
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 4vw, 34px);
}

.content-card h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

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

.breadcrumb a {
  color: var(--desert-600);
  font-weight: 800;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--sand-200);
}

.detail-meta span {
  border-radius: 999px;
  background: var(--sand-100);
  color: var(--earth-700);
  padding: 7px 12px;
  font-weight: 700;
  font-size: 13px;
}

.article-section {
  margin-top: 26px;
}

.article-section h2 {
  margin: 0 0 12px;
  color: var(--earth-900);
  font-size: 22px;
}

.article-section p {
  margin: 0;
  color: var(--earth-700);
  font-size: 16px;
  line-height: 1.9;
}

.review-box {
  border-radius: 20px;
  background: linear-gradient(135deg, var(--desert-50), var(--sand-100));
  padding: 22px;
}

.sidebar-card {
  position: sticky;
  top: 88px;
}

.sidebar-card h2 {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.2;
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  border-radius: 16px;
  padding: 8px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: var(--sand-100);
}

.related-card img {
  width: 112px;
  height: 74px;
  border-radius: 13px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 6px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card span {
  color: var(--earth-600);
  font-size: 12px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 44px 0 30px;
}

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

.site-footer p,
.site-footer a {
  color: var(--earth-300);
}

.site-footer a {
  display: block;
  margin: 8px 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(194, 180, 163, 0.24);
  padding: 22px 0;
  color: var(--earth-300);
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

@keyframes slowZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.09);
  }
}

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

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

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

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

  .sidebar-card {
    position: static;
  }
}

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

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

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

  .hero {
    height: 74vh;
    min-height: 520px;
  }

  .hero-content {
    padding: 46px 0 84px;
  }

  .hero-control {
    display: none;
  }

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

  .card-grid,
  .card-grid.compact,
  .category-cards,
  .rank-list,
  .card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-item img {
    width: 96px;
    height: 70px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .logo {
    font-size: 22px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-kicker {
    font-size: 13px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .page-main {
    padding: 44px 0;
  }

  .section-stack {
    gap: 54px;
  }

  .card-grid,
  .card-grid.compact,
  .category-cards,
  .rank-list,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .horizontal-scroll .movie-card {
    width: 258px;
    min-width: 258px;
  }

  .rank-item {
    grid-template-columns: 38px 94px 1fr;
    gap: 10px;
  }

  .rank-num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .related-card {
    grid-template-columns: 96px 1fr;
  }

  .related-card img {
    width: 96px;
    height: 68px;
  }

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