:root {
  --vintage-50: #fbf7ef;
  --vintage-100: #f4ead8;
  --vintage-200: #ead8b8;
  --vintage-300: #d9bc84;
  --vintage-800: #3c261d;
  --vintage-900: #20120e;
  --aged-50: #fbfaf6;
  --aged-100: #efe6d7;
  --aged-200: #dfcdb0;
  --aged-300: #caae82;
  --aged-600: #7b5b34;
  --aged-700: #60482f;
  --aged-800: #463323;
  --aged-900: #2d2118;
  --sepia-50: #fbf1dd;
  --sepia-100: #f4ddb5;
  --sepia-200: #e8c47f;
  --sepia-400: #ce9740;
  --sepia-500: #b47c2e;
  --sepia-600: #916124;
  --sepia-700: #70491e;
  --paper: rgba(255, 252, 245, 0.92);
  --paper-solid: #fffaf0;
  --ink: #271711;
  --muted: #745d46;
  --line: rgba(96, 72, 47, 0.18);
  --shadow-soft: 0 20px 50px rgba(32, 18, 14, 0.14);
  --shadow-card: 0 16px 34px rgba(45, 33, 24, 0.13);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(206, 151, 64, 0.14), transparent 34rem),
    linear-gradient(180deg, var(--vintage-50) 0%, #f6edde 48%, var(--aged-50) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 18px;
  top: -120px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--sepia-500);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--vintage-50);
  background: rgba(32, 18, 14, 0.94);
  box-shadow: 0 8px 30px rgba(32, 18, 14, 0.28);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 221, 181, 0.54);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sepia-200), var(--sepia-600));
  color: #1f120c;
  box-shadow: 0 0 0 5px rgba(206, 151, 64, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(251, 247, 239, 0.86);
  font-size: 0.96rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: rgba(206, 151, 64, 0.18);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(360px, 26vw);
  min-width: 210px;
  overflow: hidden;
  border: 1px solid rgba(244, 221, 181, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 10px 12px 10px 16px;
  color: #fff;
  background: transparent;
  outline: 0;
}

.header-search input::placeholder {
  color: rgba(251, 247, 239, 0.58);
}

.header-search button {
  border: 0;
  padding: 10px 15px;
  color: #2d2118;
  background: var(--sepia-200);
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-search button:hover {
  background: var(--sepia-100);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 221, 181, 0.28);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: var(--vintage-50);
  background:
    radial-gradient(circle at 80% 20%, rgba(206, 151, 64, 0.32), transparent 22rem),
    radial-gradient(circle at 12% 22%, rgba(244, 221, 181, 0.16), transparent 18rem),
    linear-gradient(180deg, var(--vintage-900), var(--aged-800) 56%, var(--vintage-800));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(0deg, var(--vintage-50), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  min-height: 70vh;
  padding: clamp(56px, 8vw, 110px) 0 120px;
}

.hero-centered .hero-inner {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 221, 181, 0.3);
  border-radius: 999px;
  color: var(--sepia-100);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-title {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: 0.04em;
}

.hero-title em {
  color: var(--sepia-200);
  font-style: normal;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--vintage-200);
  font-size: clamp(1.05rem, 2vw, 1.55rem);
}

.hero-lead {
  max-width: 680px;
  margin: 0 0 30px;
  color: rgba(251, 247, 239, 0.72);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid rgba(244, 221, 181, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 14px 18px;
  color: #fff;
  background: transparent;
  outline: none;
}

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

.hero-search button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-search button,
.btn-primary {
  color: #271711;
  background: linear-gradient(135deg, var(--sepia-100), var(--sepia-400));
  box-shadow: 0 12px 28px rgba(206, 151, 64, 0.25);
}

.btn-ghost {
  border: 1px solid rgba(244, 221, 181, 0.34);
  color: var(--vintage-50);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  color: var(--sepia-700);
  background: var(--sepia-100);
}

.btn:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(45, 33, 24, 0.18);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  gap: 12px;
}

.hero-stat {
  padding: 16px;
  border: 1px solid rgba(244, 221, 181, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stat strong {
  display: block;
  color: var(--sepia-100);
  font-size: 1.45rem;
  line-height: 1.1;
}

.hero-stat span {
  color: rgba(251, 247, 239, 0.7);
  font-size: 0.9rem;
}

.hero-carousel {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  overflow: hidden;
  border: 1px solid rgba(244, 221, 181, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
  transform: scale(0.96) translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--aged-800), var(--vintage-900));
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(15, 8, 6, 0.85));
}

.hero-slide-body {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 4vw, 34px);
}

.hero-slide-body h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.1;
}

.hero-slide-body p {
  margin: 0 0 18px;
  color: rgba(251, 247, 239, 0.82);
}

.hero-dots {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -36px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 221, 181, 0.28);
  cursor: pointer;
}

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

.page-hero {
  padding: 76px 0 92px;
  color: var(--vintage-50);
  background:
    radial-gradient(circle at 80% 10%, rgba(206, 151, 64, 0.24), transparent 20rem),
    linear-gradient(145deg, var(--vintage-900), var(--aged-800));
}

.page-hero h1,
.section-title,
.detail-title {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(251, 247, 239, 0.76);
  font-size: 1.08rem;
}

.section {
  padding: 52px 0;
}

.section-alt {
  background: rgba(239, 230, 215, 0.58);
}

.section-gradient {
  background: linear-gradient(135deg, rgba(251, 241, 221, 0.78), rgba(244, 234, 216, 0.78));
}

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

.section-title {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--vintage-900);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 5px;
  height: 0.92em;
  border-radius: 999px;
  background: var(--sepia-600);
}

.section-desc {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.view-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sepia-700);
  font-weight: 700;
}

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

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

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 24px;
}

.side-grid {
  display: grid;
  gap: 20px;
}

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(206, 151, 64, 0.42);
  box-shadow: 0 24px 46px rgba(45, 33, 24, 0.18);
}

.movie-card.is-hidden {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(206, 151, 64, 0.2), rgba(45, 33, 24, 0.9)),
    var(--aged-800);
}

.movie-card.large .poster-link {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.03);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(32, 18, 14, 0.82), transparent);
}

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #2d2118;
  background: var(--sepia-100);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-type {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--vintage-50);
  background: rgba(32, 18, 14, 0.72);
  font-size: 0.78rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.card-title {
  margin: 0 0 8px;
  color: var(--vintage-900);
  font-size: 1.12rem;
  line-height: 1.28;
}

.movie-card.large .card-title {
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
}

.card-title a:hover {
  color: var(--sepia-700);
}

.card-desc {
  margin: 0 0 12px;
  color: var(--aged-700);
  font-size: 0.93rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--sepia-700);
  background: var(--sepia-100);
  font-size: 0.78rem;
}

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

.category-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(206, 151, 64, 0.45);
}

.category-tile strong {
  display: block;
  color: var(--vintage-900);
  font-size: 1.12rem;
}

.category-tile span {
  color: var(--muted);
  font-size: 0.92rem;
}

.category-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--sepia-700);
  background: var(--sepia-100);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 0.3fr)) auto;
  gap: 12px;
  margin: 0 0 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.86);
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(96, 72, 47, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fffdf8;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sepia-500);
  box-shadow: 0 0 0 4px rgba(206, 151, 64, 0.13);
}

.result-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumbs a {
  color: var(--sepia-700);
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--vintage-50);
  background: linear-gradient(135deg, var(--vintage-900), var(--aged-800));
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: blur(6px) saturate(0.95);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(32, 18, 14, 0.94), rgba(32, 18, 14, 0.64));
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 70px 0;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(244, 221, 181, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
  background: var(--aged-800);
}

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

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: 1.02;
}

.detail-one-line {
  max-width: 900px;
  margin: 0 0 20px;
  color: rgba(251, 247, 239, 0.78);
  font-size: 1.1rem;
}

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

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(244, 221, 181, 0.24);
  border-radius: 999px;
  color: var(--vintage-50);
  background: rgba(255, 255, 255, 0.08);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: 26px;
  align-items: start;
}

.content-card,
.player-card,
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.content-card {
  padding: clamp(20px, 4vw, 34px);
}

.content-card + .content-card {
  margin-top: 22px;
}

.content-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  color: var(--vintage-900);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.65rem;
}

.content-card p {
  margin: 0;
  color: var(--aged-800);
}

.player-card {
  overflow: hidden;
  margin-bottom: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.38));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: clamp(72px, 9vw, 104px);
  height: clamp(72px, 9vw, 104px);
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(32, 18, 14, 0.46);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
  font-size: 2.2rem;
}

.player-message {
  display: none;
  padding: 14px 18px;
  color: #fff;
  background: var(--aged-900);
}

.player-message.is-visible {
  display: block;
}

.player-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.player-info strong {
  color: var(--vintage-900);
}

.sidebar-card {
  padding: 20px;
  margin-bottom: 22px;
}

.info-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-list span:first-child {
  color: var(--muted);
}

.info-list span:last-child {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 240, 0.7);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #2d2118;
  background: var(--sepia-100);
  font-weight: 900;
}

.rank-item strong {
  display: block;
  overflow: hidden;
  color: var(--vintage-900);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer {
  margin-top: 56px;
  padding: 42px 0;
  color: rgba(251, 247, 239, 0.76);
  background: var(--vintage-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(120px, 0.5fr));
  gap: 24px;
}

.footer h2,
.footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.footer p {
  margin: 0;
}

.footer a {
  display: block;
  margin: 6px 0;
  color: rgba(251, 247, 239, 0.76);
}

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

.sitemap-list {
  columns: 4 230px;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.sitemap-list a {
  color: var(--sepia-700);
}

.error-note {
  padding: 18px;
  border: 1px dashed rgba(145, 97, 36, 0.45);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(251, 241, 221, 0.58);
}

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

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

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

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

  .nav-links {
    position: fixed;
    inset: 76px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(244, 221, 181, 0.22);
    border-radius: 22px;
    background: rgba(32, 18, 14, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  }

  body.is-menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 0 112px;
  }

  .hero-carousel {
    min-height: 460px;
  }

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

  .detail-cover {
    width: min(240px, 72vw);
  }

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

@media (max-width: 680px) {
  .container,
  .container-narrow {
    width: min(100% - 24px, 1480px);
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-search {
    border-radius: 18px;
    flex-direction: column;
  }

  .hero-search button {
    border-radius: 0;
  }

  .hero-carousel {
    min-height: 390px;
  }

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

  .btn {
    width: 100%;
  }

  .section-head {
    display: block;
  }

  .movies-grid,
  .movies-grid.compact,
  .category-cloud {
    grid-template-columns: 1fr;
  }

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

  .player-info,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .player-info {
    display: block;
  }
}
