:root {
  --ancient-950: #2b2419;
  --ancient-900: #423a2c;
  --ancient-850: #4e422f;
  --ancient-800: #5a4d39;
  --ancient-700: #6f5f47;
  --ancient-500: #a89571;
  --ancient-400: #c4b496;
  --ancient-300: #d9cfbd;
  --ancient-200: #e8e2d6;
  --ancient-100: #f5f2ed;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --bg: #18130d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ancient-100);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.12), transparent 30rem),
    radial-gradient(circle at 85% 10%, rgba(168, 149, 113, 0.14), transparent 26rem),
    linear-gradient(180deg, #241c13 0%, var(--bg) 48%, #120e09 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 80%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(43, 36, 25, 0.92);
  border-bottom: 1px solid rgba(111, 95, 71, 0.5);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-weight: 800;
  color: var(--amber-400);
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ancient-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.brand-text {
  font-size: 1.35rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: var(--ancient-200);
  font-weight: 650;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-400);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(111, 95, 71, 0.78);
  background: rgba(66, 58, 44, 0.52);
  border-radius: 14px;
  overflow: hidden;
}

.top-search input,
.mobile-search input {
  width: 220px;
  border: 0;
  outline: 0;
  color: var(--ancient-100);
  background: transparent;
  padding: 10px 12px;
}

.top-search button,
.mobile-search button {
  border: 0;
  color: var(--ancient-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  padding: 10px 14px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(111, 95, 71, 0.8);
  border-radius: 12px;
  background: rgba(66, 58, 44, 0.48);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ancient-100);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(111, 95, 71, 0.38);
}

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

.hero-carousel {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  border-bottom: 1px solid rgba(111, 95, 71, 0.42);
}

.hero-track,
.hero-slide,
.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 700ms ease, transform 900ms ease;
  pointer-events: none;
}

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

.hero-backdrop {
  background-position: center;
  background-size: cover;
  filter: blur(2px) saturate(1.05);
  transform: scale(1.05);
}

.hero-overlay {
  background:
    radial-gradient(circle at 75% 42%, rgba(245, 158, 11, 0.18), transparent 24rem),
    linear-gradient(90deg, rgba(43, 36, 25, 0.98) 0%, rgba(43, 36, 25, 0.84) 38%, rgba(43, 36, 25, 0.34) 100%),
    linear-gradient(180deg, rgba(43, 36, 25, 0.55), rgba(24, 19, 13, 0.98));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: min(760px, calc(100vh - 72px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 420px 92px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber-400);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ancient-100);
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ancient-200);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.1);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: var(--ancient-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.25);
}

.btn-ghost {
  color: var(--ancient-100);
  border: 1px solid rgba(217, 207, 189, 0.2);
  background: rgba(66, 58, 44, 0.5);
  backdrop-filter: blur(14px);
}

.hero-poster {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  z-index: 3;
  width: min(340px, 28vw);
  aspect-ratio: 3 / 4;
  transform: translateY(-50%);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border: 1px solid rgba(111, 95, 71, 0.45);
  border-radius: 999px;
  background: rgba(43, 36, 25, 0.68);
  backdrop-filter: blur(18px);
}

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

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--ancient-100);
  background: rgba(90, 77, 57, 0.6);
  font-size: 1.8rem;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: var(--ancient-500);
  opacity: 0.6;
  transition: width 180ms ease, opacity 180ms ease, background 180ms ease;
}

.hero-dot.active {
  width: 28px;
  background: var(--amber-400);
  opacity: 1;
}

.home-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 42px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-strip a {
  display: flex;
  justify-content: center;
  padding: 18px 16px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(66, 58, 44, 0.92), rgba(43, 36, 25, 0.86));
  color: var(--ancient-100);
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease;
}

.home-strip a:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.55);
}

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

.content-section {
  padding: 44px 0;
}

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

.section-head h2,
.rank-panel h2,
.story-card h2,
.site-footer h2 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  color: var(--amber-400);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.section-head h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 28px;
  margin-right: 12px;
  border-radius: 99px;
  background: var(--amber-500);
  vertical-align: -5px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--ancient-400);
}

.section-more,
.text-link,
.rank-panel-head a {
  color: var(--amber-400);
  font-weight: 800;
}

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

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

.movie-card {
  border: 1px solid rgba(111, 95, 71, 0.45);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(66, 58, 44, 0.72), rgba(43, 36, 25, 0.72));
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ancient-900);
}

.movie-card.featured .card-cover {
  aspect-ratio: 16 / 10;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

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

.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(43, 36, 25, 0.96));
}

.card-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ancient-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-meta,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: var(--ancient-100);
  border-radius: 999px;
  background: rgba(43, 36, 25, 0.78);
  backdrop-filter: blur(10px);
}

.card-meta {
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 38px;
  padding: 6px 10px;
  text-align: center;
  color: var(--ancient-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  color: var(--ancient-100);
  font-size: 1rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--amber-400);
}

.card-body p {
  min-height: 46px;
  margin: 10px 0 12px;
  color: var(--ancient-300);
  font-size: 0.92rem;
  line-height: 1.65;
}

.card-tags span {
  padding: 4px 8px;
  font-size: 0.76rem;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--ancient-400);
  font-size: 0.82rem;
}

.card-foot a {
  color: var(--amber-400);
  font-weight: 750;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(111, 95, 71, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 36, 25, 0.18), rgba(43, 36, 25, 0.96));
}

.category-name,
.category-desc {
  position: relative;
  z-index: 2;
  padding: 0 16px;
}

.category-name {
  color: var(--amber-400);
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 800;
}

.category-desc {
  min-height: 44px;
  padding-bottom: 18px;
  margin-top: 6px;
  color: var(--ancient-200);
  font-size: 0.86rem;
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.story-card,
.filter-panel,
.category-overview-card {
  border: 1px solid rgba(111, 95, 71, 0.45);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(66, 58, 44, 0.62), rgba(43, 36, 25, 0.62));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.rank-panel {
  padding: 22px;
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

.rank-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  color: var(--ancient-200);
  background: rgba(43, 36, 25, 0.55);
  transition: background 180ms ease, transform 180ms ease;
}

.rank-row:hover {
  background: rgba(90, 77, 57, 0.62);
  transform: translateX(4px);
}

.rank-number {
  display: inline-flex;
  justify-content: center;
  color: var(--ancient-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  padding: 4px 6px;
  border-radius: 999px;
  font-weight: 900;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.rank-year {
  color: var(--ancient-400);
  font-size: 0.84rem;
}

.page-main {
  padding-top: 30px;
}

.page-hero {
  margin: 20px 0 34px;
  padding: 52px;
  border: 1px solid rgba(111, 95, 71, 0.45);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.12), transparent 22rem),
    linear-gradient(135deg, rgba(66, 58, 44, 0.82), rgba(43, 36, 25, 0.86));
  box-shadow: var(--shadow);
}

.compact-hero h1,
.category-hero h1,
.rank-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--ancient-300);
  font-size: 1.08rem;
  line-height: 1.8;
}

.rank-hero {
  background-position: center;
  background-size: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: var(--ancient-400);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--amber-400);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  margin-bottom: 24px;
}

.filter-search input,
.filter-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(111, 95, 71, 0.72);
  border-radius: 14px;
  color: var(--ancient-100);
  background: rgba(43, 36, 25, 0.7);
  outline: 0;
  padding: 0 14px;
}

.filter-search input:focus,
.filter-select:focus {
  border-color: rgba(251, 191, 36, 0.72);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.filter-selects {
  display: flex;
  gap: 10px;
}

.filter-select {
  min-width: 150px;
}

.empty-state {
  padding: 24px;
  border: 1px solid rgba(111, 95, 71, 0.45);
  border-radius: var(--radius-lg);
  color: var(--ancient-300);
  background: rgba(43, 36, 25, 0.58);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  overflow: hidden;
}

.overview-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

.overview-body {
  padding: 22px;
}

.overview-body h2 {
  margin: 0 0 10px;
  color: var(--amber-400);
  font-family: "Noto Serif SC", Georgia, serif;
}

.overview-body p,
.overview-body li {
  color: var(--ancient-300);
  line-height: 1.7;
}

.overview-body ul {
  margin: 12px 0;
  padding-left: 18px;
}

.detail-main {
  padding-bottom: 42px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin: 28px 0;
  padding: 34px;
  border: 1px solid rgba(111, 95, 71, 0.45);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 10%, rgba(251, 191, 36, 0.1), transparent 18rem),
    linear-gradient(135deg, rgba(66, 58, 44, 0.78), rgba(43, 36, 25, 0.88));
  box-shadow: var(--shadow);
}

.detail-poster {
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
  font-size: clamp(2.1rem, 5vw, 4.8rem);
}

.detail-line {
  max-width: 780px;
  color: var(--ancient-200);
  font-size: 1.12rem;
  line-height: 1.85;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(111, 95, 71, 0.42);
  border-radius: 16px;
  background: rgba(43, 36, 25, 0.55);
}

.detail-meta dt {
  color: var(--ancient-400);
  font-size: 0.82rem;
}

.detail-meta dd {
  margin: 6px 0 0;
  color: var(--ancient-100);
  font-weight: 800;
}

.player-section {
  margin: 28px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--ancient-100);
  background: radial-gradient(circle, rgba(43, 36, 25, 0.24), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.video-start span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ancient-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.28);
}

.video-start strong {
  font-size: 1.05rem;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 32px 0 0;
}

.story-card {
  padding: 28px;
}

.story-card p {
  color: var(--ancient-200);
  line-height: 1.95;
  margin: 14px 0 0;
  white-space: pre-line;
}

.related-section {
  width: 100%;
}

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

.site-footer {
  margin-top: 50px;
  border-top: 1px solid rgba(111, 95, 71, 0.45);
  background: rgba(43, 36, 25, 0.72);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 26px;
}

.footer-grid p,
.footer-bottom {
  color: var(--ancient-400);
  line-height: 1.7;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(111, 95, 71, 0.35);
  font-size: 0.92rem;
}

[hidden],
.movie-card.is-hidden {
  display: none !important;
}

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

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

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

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

  .rank-panel,
  .sticky-panel {
    position: static;
  }

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

  .hero-content {
    padding-right: 310px;
  }
}

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-content {
    padding: 86px 0 210px;
    min-height: 720px;
  }

  .hero-poster {
    right: auto;
    left: 32px;
    top: auto;
    bottom: 72px;
    width: 150px;
    transform: none;
    border-radius: 18px;
  }

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

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

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

  .category-overview-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

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

  .filter-selects {
    flex-wrap: wrap;
  }

  .filter-select {
    flex: 1 1 150px;
  }

  .page-hero,
  .detail-hero {
    padding: 26px;
    border-radius: 22px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 64px;
  }

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

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .hero-content {
    min-height: 650px;
    padding-top: 62px;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-strip,
  .movie-grid,
  .featured-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .overview-cover {
    aspect-ratio: 16 / 9;
  }

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

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