:root {
  --vintage-50: #faf8f3;
  --vintage-100: #f5f1e6;
  --vintage-200: #e8dfc8;
  --vintage-300: #dac9a3;
  --vintage-800: #6d533a;
  --vintage-900: #5a4532;
  --aged-800: #3d3025;
  --sepia-300: #e6d5a8;
  --sepia-400: #d4bd7e;
  --sepia-600: #a68847;
  --sepia-700: #8a6e3c;
  --sepia-800: #735836;
  --ink: #2f261d;
  --muted: #7a6b5c;
  --paper: #fffaf0;
  --shadow: 0 24px 70px rgba(47, 38, 29, 0.16);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(212, 189, 126, 0.22), transparent 26rem),
    linear-gradient(180deg, var(--vintage-50), #f0e5cf 55%, var(--vintage-100));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 248, 243, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(166, 136, 71, 0.2);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--vintage-50);
  background: linear-gradient(135deg, var(--sepia-700), var(--vintage-900));
  box-shadow: 0 10px 24px rgba(90, 69, 50, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--vintage-900);
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--paper);
  background: var(--vintage-900);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--vintage-200);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--vintage-900);
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--vintage-900), var(--aged-800) 45%, var(--vintage-800));
  color: var(--vintage-50);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(250, 248, 243, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 248, 243, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: saturate(0.9) sepia(0.25);
  transform: scale(1.03);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(212, 189, 126, 0.2), transparent 22rem),
    linear-gradient(90deg, rgba(61, 48, 37, 0.96), rgba(61, 48, 37, 0.72) 46%, rgba(61, 48, 37, 0.36)),
    linear-gradient(180deg, transparent 65%, var(--aged-800));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 48px;
  padding: 90px 0 110px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--sepia-300);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--sepia-700);
}

.hero h1,
.page-hero h1,
.detail-copy h1,
.intro-section h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(250, 248, 243, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

.hero-tags span {
  color: var(--vintage-50);
  background: rgba(250, 248, 243, 0.14);
  border: 1px solid rgba(250, 248, 243, 0.22);
}

.tag-row span {
  color: var(--sepia-800);
  background: rgba(212, 189, 126, 0.22);
}

.tag-row.large span {
  color: var(--vintage-50);
  background: rgba(250, 248, 243, 0.14);
  border: 1px solid rgba(250, 248, 243, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  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(--aged-800);
  background: linear-gradient(135deg, var(--sepia-300), var(--sepia-400));
  box-shadow: 0 14px 34px rgba(212, 189, 126, 0.28);
}

.btn-ghost {
  color: var(--vintage-50);
  background: rgba(250, 248, 243, 0.14);
  border: 1px solid rgba(250, 248, 243, 0.24);
}

.btn-line {
  color: var(--sepia-300);
  border: 1px solid rgba(230, 213, 168, 0.44);
}

.btn-dark {
  color: var(--paper);
  background: var(--vintage-900);
}

.hero-card {
  position: relative;
  align-self: center;
  border-radius: 32px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(1.4deg);
  border: 1px solid rgba(250, 248, 243, 0.16);
}

.hero-card img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-card span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 10px 14px;
  color: var(--aged-800);
  background: var(--sepia-300);
  border-radius: 999px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  right: auto;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

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

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: var(--paper);
  background: rgba(250, 248, 243, 0.14);
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(250, 248, 243, 0.35);
}

.hero-dot.active {
  width: 28px;
  background: var(--sepia-300);
}

.section {
  padding: 72px 0;
}

.section-heading,
.intro-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2,
.intro-section h1,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  color: var(--vintage-900);
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.section-heading a {
  color: var(--sepia-700);
  font-weight: 800;
}

.section-heading.light h2,
.section-heading.light a {
  color: var(--vintage-50);
}

.intro-section {
  background: var(--vintage-50);
  border-bottom: 1px solid rgba(166, 136, 71, 0.14);
}

.intro-section p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.category-tile {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--paper);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-tile img,
.category-mask {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.category-mask {
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 10%, rgba(61, 48, 37, 0.86)),
    linear-gradient(45deg, rgba(90, 69, 50, 0.45), transparent);
}

.category-tile strong {
  font-size: 22px;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(250, 248, 243, 0.84);
  line-height: 1.6;
}

.sepia-section {
  background: linear-gradient(180deg, var(--aged-800), var(--vintage-900));
  color: var(--vintage-50);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid rgba(166, 136, 71, 0.16);
  box-shadow: 0 18px 40px rgba(90, 69, 50, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px rgba(90, 69, 50, 0.2);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--vintage-200);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(61, 48, 37, 0.82));
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  color: var(--aged-800);
  background: var(--sepia-300);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: linear-gradient(135deg, var(--sepia-700), var(--vintage-900));
  font-style: normal;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--sepia-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 10px 0 8px;
  color: var(--vintage-900);
  font-size: 19px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0 0 12px;
  min-height: 50px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.tool-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px;
  gap: 12px;
  margin-bottom: 24px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(166, 136, 71, 0.2);
}

.search-box span {
  color: var(--sepia-700);
  font-weight: 900;
}

.search-box input,
.tool-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.tool-bar select {
  min-height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(166, 136, 71, 0.2);
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 0%, rgba(212, 189, 126, 0.25), transparent 24rem),
    linear-gradient(135deg, var(--aged-800), var(--vintage-900));
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(250, 248, 243, 0.86);
  line-height: 1.8;
  font-size: 18px;
}

.small-hero {
  padding: 72px 0;
}

.ranking-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(230, 213, 168, 0.24), transparent 24rem),
    linear-gradient(135deg, var(--vintage-900), #2b2119);
}

.category-hero {
  background:
    radial-gradient(circle at 80% 15%, rgba(212, 189, 126, 0.22), transparent 22rem),
    linear-gradient(135deg, var(--vintage-800), var(--aged-800));
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--aged-800);
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(2px) saturate(0.9) sepia(0.3);
  transform: scale(1.04);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(61, 48, 37, 0.96), rgba(61, 48, 37, 0.76)),
    linear-gradient(180deg, transparent, rgba(61, 48, 37, 0.9));
}

.detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  padding: 78px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--sepia-300);
  font-weight: 800;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(250, 248, 243, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(250, 248, 243, 0.12);
  border: 1px solid rgba(250, 248, 243, 0.18);
}

.player-section {
  padding-top: 54px;
  background: var(--vintage-50);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 32px 80px rgba(47, 38, 29, 0.24);
}

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

.video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.video-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-round {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: var(--aged-800);
  background: var(--sepia-300);
  font-size: 34px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.video-cover strong {
  font-size: clamp(22px, 4vw, 36px);
}

.detail-content-section {
  background: var(--vintage-50);
}

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

.detail-article,
.detail-side {
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(166, 136, 71, 0.16);
  box-shadow: 0 18px 42px rgba(90, 69, 50, 0.1);
}

.detail-article {
  padding: 30px;
}

.detail-article h2 {
  margin-top: 0;
  font-size: 28px;
}

.detail-article p {
  color: var(--muted);
  line-height: 2;
  font-size: 17px;
}

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

.info-list div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(232, 223, 200, 0.46);
}

.info-list dt {
  color: var(--sepia-700);
  font-weight: 900;
}

.info-list dd {
  margin: 6px 0 0;
  color: var(--ink);
}

.detail-side {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.side-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.side-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(232, 223, 200, 0.36);
}

.side-item img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.side-item strong {
  display: block;
  color: var(--vintage-900);
}

.side-item small {
  display: block;
  margin-top: 6px;
  color: var(--sepia-700);
}

.related-section {
  background: linear-gradient(180deg, var(--vintage-50), #efe2c9);
}

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

.site-footer {
  padding: 52px 0;
  color: rgba(250, 248, 243, 0.82);
  background: var(--aged-800);
}

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

.footer-logo {
  color: var(--sepia-300);
  font-size: 20px;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--vintage-50);
  font-size: 18px;
}

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

.footer-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(250, 248, 243, 0.1);
}

.is-filtered-out {
  display: none !important;
}

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

  .hero-content,
  .detail-hero-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

  .detail-side {
    position: static;
  }
}

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

  .header-inner {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 70px;
    display: none;
    padding: 14px;
    border-radius: 20px;
    background: rgba(250, 248, 243, 0.96);
    box-shadow: var(--shadow);
  }

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

  .hero,
  .hero-content {
    min-height: 72vh;
  }

  .hero-content {
    padding: 72px 0 96px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1,
  .intro-section h1 {
    font-size: 36px;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading,
  .intro-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .category-grid.wide,
  .movie-grid,
  .rank-strip,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .detail-hero-grid {
    padding: 46px 0;
  }

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

  .detail-article {
    padding: 22px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .category-grid.wide,
  .movie-grid,
  .rank-strip,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .intro-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
