:root {
  --sand-50: #faf8f3;
  --sand-100: #f5f0e6;
  --sand-200: #ebe2cd;
  --sand-300: #ddc9a3;
  --sand-500: #c49a5c;
  --sand-600: #b07d44;
  --sand-700: #8f6235;
  --sand-800: #6d4a29;
  --sand-900: #4a3218;
  --dune-50: #fdf6ed;
  --dune-100: #fae9d1;
  --dune-500: #d97c1e;
  --dune-600: #c05f14;
  --dune-700: #9c4613;
  --white: #ffffff;
  --black: #10100f;
  --shadow-sm: 0 4px 16px rgba(74, 50, 24, 0.08);
  --shadow-md: 0 12px 30px rgba(74, 50, 24, 0.12);
  --shadow-lg: 0 24px 60px rgba(74, 50, 24, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sand-800);
  background:
    radial-gradient(circle at top left, rgba(217, 124, 30, 0.12), transparent 32rem),
    linear-gradient(180deg, var(--dune-50), var(--sand-50) 28rem, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.lock-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(221, 201, 163, 0.72);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--sand-900);
}

.brand-mark {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--dune-500), var(--sand-700));
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--dune-600), var(--sand-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--sand-700);
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--dune-700);
  background: var(--dune-100);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--sand-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--sand-800);
}

main {
  min-height: 64vh;
}

.section,
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section.tight {
  padding-top: 2rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h1,
.section-head h2,
.hero-copy h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--sand-900);
  line-height: 1.12;
}

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

.section-head p,
.page-hero p,
.detail-title p {
  max-width: 760px;
  margin: 0.6rem 0 0;
  color: var(--sand-600);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  color: var(--dune-600);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--dune-500), var(--dune-700));
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  color: var(--sand-900);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(221, 201, 163, 0.75);
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  padding: 2rem 1.25rem 3.75rem;
  background:
    linear-gradient(135deg, rgba(253, 246, 237, 0.98), rgba(245, 240, 230, 0.86)),
    radial-gradient(circle at 80% 15%, rgba(217, 124, 30, 0.18), transparent 24rem);
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  min-height: 610px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 670px;
  margin: 1.2rem 0 0;
  color: var(--sand-700);
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags {
  margin: 1.25rem 0 1.5rem;
}

.hero-tags span,
.tag-row span,
.detail-tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--dune-700);
  background: rgba(250, 233, 209, 0.95);
  font-size: 0.82rem;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-art {
  position: relative;
  min-height: 520px;
}

.hero-card {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(100%, 500px);
  overflow: hidden;
  border-radius: 2rem;
  background: linear-gradient(135deg, var(--sand-200), var(--dune-100));
  box-shadow: var(--shadow-lg);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-slide.active .hero-card img {
  transform: scale(1.04);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
}

.hero-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  color: var(--white);
}

.hero-caption strong {
  display: block;
  font-size: 1.35rem;
}

.hero-caption span {
  color: rgba(255, 255, 255, 0.82);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 0.6rem;
  z-index: 4;
}

.hero-dot {
  width: 2.4rem;
  height: 0.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--sand-300);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--dune-600);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.4fr);
  gap: 1.5rem;
  align-items: center;
  margin: 0 auto 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(221, 201, 163, 0.72);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.filter-panel h2 {
  margin: 0;
  color: var(--sand-900);
  font-size: 1.4rem;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(120px, 0.45fr));
  gap: 0.75rem;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--sand-300);
  border-radius: 0.85rem;
  color: var(--sand-800);
  background: var(--white);
  padding: 0 0.9rem;
  outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--dune-500);
  box-shadow: 0 0 0 3px rgba(217, 124, 30, 0.16);
}

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

.movie-card,
.category-card,
.rank-card,
.info-card,
.detail-card {
  overflow: hidden;
  border: 1px solid rgba(221, 201, 163, 0.65);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 124, 30, 0.45);
  box-shadow: var(--shadow-md);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand-200), var(--dune-100));
}

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

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

.image-soft-hide {
  opacity: 0;
}

.poster-badge,
.rank-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 1rem;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--sand-600);
  font-size: 0.82rem;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0.35rem 0 0.45rem;
  color: var(--sand-900);
  font-size: 1.05rem;
  line-height: 1.32;
}

.movie-card h3 a:hover,
.archive-list a:hover,
.breadcrumb a:hover {
  color: var(--dune-600);
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.1rem;
  margin: 0 0 0.8rem;
  overflow: hidden;
  color: var(--sand-600);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card.compact .movie-info {
  padding: 0.85rem;
}

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

.category-card {
  min-height: 200px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(250, 233, 209, 0.94), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 100% 0, rgba(217, 124, 30, 0.16), transparent 12rem);
}

.category-card h2,
.category-card h3 {
  margin: 0;
  color: var(--sand-900);
  font-size: 1.2rem;
}

.category-card p {
  margin: 0.8rem 0 1rem;
  color: var(--sand-600);
}

.rank-list {
  display: grid;
  gap: 0.9rem;
}

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 5.2rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
}

.rank-poster {
  position: relative;
  overflow: hidden;
  width: 5.2rem;
  aspect-ratio: 4 / 5;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--sand-200), var(--dune-100));
}

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

.rank-main h3 {
  margin: 0 0 0.35rem;
  color: var(--sand-900);
}

.rank-main p {
  margin: 0;
  color: var(--sand-600);
  font-size: 0.92rem;
}

.rank-score {
  padding-right: 0.65rem;
  color: var(--dune-700);
  font-weight: 850;
}

.page-hero {
  padding: 3.5rem 1.25rem 2rem;
  background:
    radial-gradient(circle at 20% 0, rgba(217, 124, 30, 0.15), transparent 22rem),
    linear-gradient(180deg, rgba(250, 233, 209, 0.9), rgba(250, 248, 243, 0.4));
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--sand-600);
  font-size: 0.92rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.55fr);
  gap: 1.5rem;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #000000;
  box-shadow: var(--shadow-lg);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(217, 124, 30, 0.35), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.65));
  cursor: pointer;
}

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

.play-circle {
  width: 5.5rem;
  height: 5.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dune-500), var(--dune-700));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  font-size: 2rem;
}

.player-state {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.detail-card {
  padding: 1.25rem;
}

.detail-card h2,
.detail-card h3 {
  margin: 0 0 0.8rem;
  color: var(--sand-900);
}

.detail-card p {
  margin: 0 0 1rem;
  color: var(--sand-700);
}

.detail-cover {
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--sand-200), var(--dune-100));
}

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

.detail-title {
  margin-bottom: 1.5rem;
}

.detail-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.archive-list {
  columns: 4 230px;
  column-gap: 1.2rem;
}

.archive-list a {
  display: block;
  break-inside: avoid;
  margin: 0 0 0.55rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(221, 201, 163, 0.64);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--sand-800);
  font-weight: 650;
}

.empty-state {
  display: none;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  color: var(--sand-600);
  background: var(--sand-100);
}

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

.site-footer {
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, var(--sand-900), #2b1d0f);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  color: var(--white);
  font-size: 1.25rem;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: flex-start;
  justify-content: flex-end;
}

.footer-links a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .hero-slide,
  .detail-layout,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 900px;
  }

  .hero-inner {
    min-height: 820px;
  }

  .hero-art {
    min-height: 430px;
  }

  .hero-card,
  .hero-card img {
    min-height: 430px;
  }

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

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

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

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

  .site-nav {
    position: fixed;
    inset: 4.6rem 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid rgba(221, 201, 163, 0.75);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
  }

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

  .hero {
    min-height: 860px;
    padding-top: 1.2rem;
  }

  .hero-inner {
    min-height: 800px;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.8rem);
  }

  .hero-art {
    min-height: 380px;
  }

  .hero-card,
  .hero-card img {
    min-height: 380px;
    width: 100%;
  }

  .hero-dots {
    bottom: -1rem;
  }

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

  .rank-card {
    grid-template-columns: 4.5rem 1fr;
  }

  .rank-score {
    grid-column: 2;
    padding-right: 0;
  }

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

  .footer-inner,
  .section-head {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

@media (max-width: 520px) {
  .grid-cards,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .section,
  .section-container,
  .page-hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
