:root {
  --earth-950: #2a1711;
  --earth-900: #573729;
  --earth-800: #6a4130;
  --earth-700: #814e34;
  --earth-600: #9b5f3c;
  --bronze-700: #7e5d41;
  --bronze-600: #98724c;
  --bronze-500: #a68558;
  --bronze-300: #d0bd9f;
  --bronze-100: #f1ede3;
  --clay-100: #f0ebe6;
  --stone-50: #f8f7f4;
  --stone-100: #efede6;
  --stone-200: #ddd9cc;
  --stone-500: #998d73;
  --stone-600: #8b7d67;
  --stone-700: #746957;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(42, 23, 17, 0.12);
  --shadow-card: 0 16px 30px rgba(87, 55, 41, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--earth-900);
  background: linear-gradient(135deg, var(--stone-50), var(--bronze-100));
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(87, 55, 41, 0.92);
  color: var(--stone-50);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--earth-900);
  background: linear-gradient(135deg, var(--bronze-300), var(--bronze-500));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.brand-name {
  font-size: 1.08rem;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--bronze-100);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 4px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 60px 0 54px;
  color: var(--white);
  background: var(--earth-950);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(166, 133, 88, 0.35), transparent 30%),
    linear-gradient(135deg, rgba(87, 55, 41, 0.92), rgba(42, 23, 17, 0.92));
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-frame {
  position: relative;
  min-height: 510px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 48px;
}

.hero-slide.is-active {
  display: grid;
}

.hero-media {
  position: relative;
  order: 2;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--earth-800), var(--bronze-500));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.hero-media img {
  height: 430px;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 46%);
}

.hero-glow {
  position: absolute;
  right: -20%;
  bottom: -24%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: rgba(208, 189, 159, 0.32);
  filter: blur(48px);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--bronze-500);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--bronze-300);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h2 + .hero-lead,
.hero-copy h1 + h2 {
  margin-top: -4px;
}

.hero-copy h1 + h2 {
  margin-bottom: 18px;
  color: var(--bronze-300);
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 20px;
  color: var(--stone-200);
  font-size: 1.06rem;
}

.hero-meta,
.detail-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--bronze-100);
  background: rgba(255, 255, 255, 0.12);
}

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

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

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

.btn.primary {
  color: var(--earth-900);
  background: linear-gradient(135deg, var(--bronze-300), var(--bronze-500));
  box-shadow: 0 14px 28px rgba(166, 133, 88, 0.28);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.btn.text {
  color: var(--bronze-300);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  width: min(640px, 100%);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hero-dot {
  min-height: 58px;
  padding: 10px;
  color: var(--bronze-100);
  text-align: left;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-dot span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-dot.is-active,
.hero-dot:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.hero-search {
  display: grid;
  max-width: 780px;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 24px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-search input,
.hero-search button {
  min-height: 48px;
  border: 0;
  outline: 0;
  border-radius: 999px;
}

.hero-search input {
  min-width: 0;
  padding: 0 18px;
  color: var(--white);
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
  padding: 0 24px;
  color: var(--earth-900);
  font-weight: 800;
  background: var(--bronze-300);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-strip a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--bronze-100);
  background: rgba(255, 255, 255, 0.1);
}

.category-strip a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

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

.section-block.muted {
  background: rgba(255, 255, 255, 0.35);
}

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

.section-head.simple {
  margin-bottom: 18px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-text h2,
.detail-side h2,
.side-column h2 {
  margin: 0;
  color: var(--earth-900);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(129, 78, 52, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 45px rgba(87, 55, 41, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--earth-800), var(--bronze-500));
}

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

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

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

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.meta-row {
  color: var(--stone-600);
  font-size: 0.82rem;
}

.meta-row a,
.meta-row span {
  display: inline-flex;
  align-items: center;
}

.meta-row a {
  color: var(--earth-700);
  font-weight: 800;
}

.movie-card h3 {
  margin: 9px 0 8px;
  color: var(--earth-900);
  font-size: 1.08rem;
  line-height: 1.32;
}

.movie-card p {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 0;
  overflow: hidden;
  color: var(--stone-700);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-card.compact p {
  min-height: 3.2em;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--bronze-700);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bronze-100);
}

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

.category-card {
  min-height: 146px;
  padding: 22px;
  border: 1px solid rgba(129, 78, 52, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(241, 237, 227, 0.9));
  box-shadow: var(--shadow-card);
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--earth-800);
  font-size: 1.2rem;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: var(--stone-700);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}

.rank-panel,
.side-column,
.detail-side {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid rgba(129, 78, 52, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-card);
}

.rank-item {
  display: grid;
  grid-template-columns: 84px 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(129, 78, 52, 0.12);
}

.rank-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--earth-800), var(--bronze-500));
}

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

.rank-number {
  color: var(--bronze-600);
  font-size: 1.4rem;
  font-weight: 900;
}

.rank-copy h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.rank-copy p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--stone-700);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-shell {
  min-height: 70vh;
}

.page-hero {
  padding: 70px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 10%, rgba(166, 133, 88, 0.24), transparent 30%),
    linear-gradient(135deg, var(--earth-900), var(--earth-950));
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--stone-200);
}

.compact-hero {
  padding: 58px 0 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--bronze-300);
  font-size: 0.9rem;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(129, 78, 52, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
}

.category-cover img {
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
  background: var(--earth-700);
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--stone-700);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(129, 78, 52, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--stone-700);
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(129, 78, 52, 0.18);
  border-radius: 14px;
  color: var(--earth-900);
  background: var(--white);
  outline: 0;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--bronze-500);
  box-shadow: 0 0 0 3px rgba(166, 133, 88, 0.18);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.rank-list {
  overflow: hidden;
  border: 1px solid rgba(129, 78, 52, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-card);
}

.rank-list .rank-item {
  padding: 18px;
}

.side-movie-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.detail-hero {
  padding: 58px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 10%, rgba(166, 133, 88, 0.28), transparent 30%),
    linear-gradient(135deg, var(--earth-900), var(--earth-950));
}

.detail-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--earth-800), var(--bronze-500));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.detail-copy .breadcrumb {
  color: var(--bronze-300);
}

.detail-lead {
  max-width: 780px;
  margin: 18px 0 20px;
  color: var(--stone-200);
  font-size: 1.08rem;
}

.detail-tags span {
  color: var(--earth-900);
  background: var(--bronze-300);
}

.player-section h2 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

.player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 26px;
  color: var(--earth-900);
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--bronze-300), var(--bronze-500));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.play-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--earth-800);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.detail-text {
  padding: 30px;
  border: 1px solid rgba(129, 78, 52, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
}

.detail-text h2 + p {
  margin-bottom: 28px;
}

.detail-text p {
  margin: 0;
  color: var(--stone-700);
  font-size: 1.02rem;
  line-height: 1.9;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(129, 78, 52, 0.12);
}

.info-list dt {
  color: var(--stone-600);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: var(--earth-900);
}

.site-footer {
  padding: 40px 0;
  color: var(--bronze-100);
  background: var(--earth-900);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--bronze-300);
}

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

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

[hidden] {
  display: none !important;
}

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

  .split-layout,
  .ranking-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .side-column,
  .detail-side {
    position: static;
  }
}

@media (max-width: 880px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: rgba(87, 55, 41, 0.98);
    box-shadow: var(--shadow-soft);
  }

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

  .nav-link {
    justify-content: center;
  }

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

  .hero-media {
    order: 0;
    min-height: 320px;
  }

  .hero-media img {
    height: 320px;
  }

  .hero-dots {
    position: static;
    margin-top: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-frame {
    min-height: auto;
  }

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

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

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

  .hero-slider {
    min-height: auto;
    padding: 36px 0;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .hero-search input,
  .hero-search button {
    border-radius: 16px;
  }

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

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

  .rank-item,
  .rank-list .rank-item {
    grid-template-columns: 76px 40px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

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

  .detail-text,
  .detail-side {
    padding: 20px;
  }
}
