:root {
  --aged-50: #f7f6f4;
  --aged-100: #eeeadf;
  --aged-200: #ddd5ca;
  --aged-300: #c4b8a8;
  --aged-500: #947e67;
  --aged-700: #67574a;
  --aged-800: #564942;
  --aged-900: #342d29;
  --sepia-300: #e6d5a8;
  --sepia-400: #d4bd7e;
  --sepia-600: #a68847;
  --sepia-700: #8a6e3c;
  --vintage-50: #faf8f3;
  --vintage-100: #f5f1e6;
  --vintage-200: #e8dfc8;
  --vintage-300: #dac9a3;
  --vintage-800: #6d533a;
  --vintage-900: #5a4532;
  --ink-900: #231d19;
  --ink-700: #3d332d;
  --panel: rgba(250, 248, 243, 0.9);
  --shadow: 0 18px 60px rgba(35, 29, 25, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background:
    radial-gradient(circle at top left, rgba(212, 189, 126, 0.32), transparent 34rem),
    linear-gradient(135deg, var(--vintage-50), var(--aged-100));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(90, 69, 50, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 69, 50, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(86, 73, 66, 0.16);
  background: rgba(247, 246, 244, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.logo-text {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--aged-700);
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link {
  min-height: 40px;
  padding: 0 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--vintage-50);
  background: var(--vintage-900);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink-900);
  background: var(--vintage-200);
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid rgba(86, 73, 66, 0.16);
  border-radius: 18px;
  background: var(--panel);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  min-height: 42px;
}

.hero-slider {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: var(--ink-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(35, 29, 25, 0.92), rgba(35, 29, 25, 0.62), rgba(35, 29, 25, 0.16)),
    linear-gradient(0deg, rgba(35, 29, 25, 0.74), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 108px 0 158px;
  color: var(--vintage-50);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--sepia-300);
  border: 1px solid rgba(230, 213, 168, 0.42);
  border-radius: 999px;
  background: rgba(245, 241, 230, 0.08);
}

.hero-content h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: 0.02em;
}

.hero-content h2 {
  margin: 20px 0 12px;
  color: var(--sepia-300);
  font-size: clamp(24px, 3vw, 40px);
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  color: var(--vintage-200);
  font-size: clamp(16px, 1.8vw, 20px);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  color: var(--vintage-900);
  border-radius: 999px;
  background: var(--vintage-200);
}

.hero-tags span {
  color: var(--vintage-50);
  background: rgba(245, 241, 230, 0.16);
}

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

.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-button {
  color: var(--ink-900);
  background: linear-gradient(135deg, var(--sepia-300), var(--sepia-600));
  box-shadow: 0 12px 28px rgba(166, 136, 71, 0.28);
}

.ghost-button {
  color: var(--vintage-50);
  border: 1px solid rgba(245, 241, 230, 0.36);
  background: rgba(245, 241, 230, 0.08);
}

.small-button {
  min-height: 40px;
  color: var(--vintage-50);
  background: var(--vintage-900);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 34px;
  z-index: 4;
  width: min(520px, calc(100% - 48px));
}

.hero-dots {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-bottom: 16px;
}

.hero-dot {
  width: 32px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 241, 230, 0.42);
}

.hero-dot.is-active {
  background: var(--sepia-300);
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hero-thumb {
  overflow: hidden;
  border: 1px solid rgba(245, 241, 230, 0.26);
  border-radius: 18px;
  background: rgba(35, 29, 25, 0.54);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.hero-thumb img {
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.hero-thumb span {
  display: block;
  overflow: hidden;
  padding: 9px 10px 11px;
  color: var(--vintage-100);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-section,
.page-hero,
.detail-layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.page-section {
  padding: 70px 0;
}

.page-hero {
  padding: 76px 0 34px;
}

.page-hero h1,
.section-heading h2,
.detail-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(34px, 5vw, 62px);
}

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

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

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

.section-heading p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--aged-700);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(86, 73, 66, 0.15);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(86, 73, 66, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  color: var(--vintage-50);
  border-radius: 999px;
  background: rgba(35, 29, 25, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--aged-500);
  font-size: 13px;
}

.movie-card h3,
.compact-card h3,
.category-card h2 {
  margin: 0;
  line-height: 1.35;
}

.movie-card h3 {
  font-size: 19px;
}

.movie-card h3 a:hover,
.compact-card h3 a:hover,
.category-card h2 a:hover {
  color: var(--sepia-700);
}

.movie-card p,
.compact-card p,
.category-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 14px;
  color: var(--aged-700);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  min-height: 26px;
  color: var(--aged-800);
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(86, 73, 66, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(250, 248, 243, 0.94), rgba(232, 223, 200, 0.78)),
    radial-gradient(circle at top right, rgba(212, 189, 126, 0.45), transparent 16rem);
  box-shadow: 0 12px 40px rgba(86, 73, 66, 0.09);
}

.category-card::after {
  position: absolute;
  right: -46px;
  bottom: -52px;
  width: 160px;
  height: 160px;
  content: "";
  border-radius: 50%;
  background: rgba(166, 136, 71, 0.16);
}

.category-card h2 {
  font-size: 28px;
}

.category-card p {
  -webkit-line-clamp: 3;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-preview a {
  max-width: 100%;
  padding: 6px 10px;
  overflow: hidden;
  color: var(--aged-800);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(86, 73, 66, 0.14);
  border-radius: var(--radius-md);
  background: rgba(250, 248, 243, 0.82);
  box-shadow: 0 10px 26px rgba(86, 73, 66, 0.07);
}

.compact-poster {
  overflow: hidden;
  border-radius: 14px;
  background: var(--aged-200);
}

.compact-poster img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.compact-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--aged-500);
  font-size: 13px;
}

.rank-index {
  display: inline-flex;
  min-width: 34px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--vintage-50);
  border-radius: 999px;
  background: var(--vintage-900);
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(86, 73, 66, 0.14);
  border-radius: var(--radius-md);
  background: rgba(250, 248, 243, 0.8);
}

.filter-bar label,
.search-box label {
  display: grid;
  gap: 6px;
  color: var(--aged-700);
  font-size: 13px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select,
.search-box input,
.search-box select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink-900);
  border: 1px solid rgba(86, 73, 66, 0.18);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.7);
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-box input:focus,
.search-box select:focus {
  border-color: var(--sepia-600);
  box-shadow: 0 0 0 4px rgba(166, 136, 71, 0.12);
}

.empty-state {
  display: none;
  padding: 30px;
  color: var(--aged-700);
  text-align: center;
  border: 1px dashed rgba(86, 73, 66, 0.22);
  border-radius: var(--radius-md);
  background: rgba(250, 248, 243, 0.66);
}

.search-box {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(250, 248, 243, 0.86);
  box-shadow: var(--shadow);
}

.player-shell {
  padding: 38px 0 0;
  background:
    radial-gradient(circle at top right, rgba(166, 136, 71, 0.22), transparent 32rem),
    linear-gradient(135deg, var(--ink-900), #11100f);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  gap: 28px;
  padding-bottom: 58px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 230, 0.18);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(35, 29, 25, 0.52), rgba(35, 29, 25, 0.2));
  transition: opacity 0.25s ease;
}

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

.play-button {
  display: inline-grid;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  color: var(--ink-900);
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sepia-300), var(--sepia-600));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  font-size: 34px;
}

.detail-header {
  color: var(--vintage-50);
}

.detail-header h1 {
  font-size: clamp(32px, 5vw, 58px);
}

.detail-header p {
  color: var(--vintage-200);
}

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

.detail-meta span {
  padding: 7px 12px;
  color: var(--sepia-300);
  border: 1px solid rgba(230, 213, 168, 0.3);
  border-radius: 999px;
}

.detail-content {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
}

.article-panel {
  padding: 32px;
  border: 1px solid rgba(86, 73, 66, 0.14);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 14px 44px rgba(86, 73, 66, 0.08);
}

.article-panel + .article-panel {
  margin-top: 24px;
}

.article-panel h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.article-panel p {
  margin: 0;
  color: var(--aged-800);
  white-space: pre-line;
}

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

.related-card {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(250, 248, 243, 0.8);
  box-shadow: 0 10px 24px rgba(86, 73, 66, 0.08);
}

.related-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.related-card span {
  display: block;
  overflow: hidden;
  padding: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-footer {
  color: var(--vintage-100);
  background: linear-gradient(135deg, var(--ink-900), var(--vintage-900));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  color: var(--vintage-200);
}

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

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

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

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

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

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

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

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    padding: 86px 0 238px;
  }

  .hero-panel {
    right: 16px;
    bottom: 24px;
    width: calc(100% - 32px);
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-thumb img {
    height: 72px;
  }

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

  .movie-grid,
  .compact-grid,
  .ranking-grid,
  .category-grid,
  .filter-bar,
  .search-box {
    grid-template-columns: 1fr;
  }

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

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

  .compact-poster img {
    height: 118px;
  }

  .article-panel {
    padding: 24px;
  }
}
