:root {
  --stone-50: #faf9f7;
  --stone-100: #f5f3f0;
  --stone-200: #e5e1da;
  --stone-300: #d6d1c8;
  --stone-500: #7c7368;
  --stone-600: #625a52;
  --stone-700: #4b443d;
  --stone-800: #2d2925;
  --stone-900: #171412;
  --earth-50: #f5efe6;
  --earth-100: #ece0ce;
  --earth-200: #e8dcc8;
  --earth-300: #d7bd95;
  --earth-400: #caa876;
  --earth-500: #b88d55;
  --earth-600: #a47549;
  --earth-700: #8a5f3e;
  --earth-900: #4a3020;
  --canyon-50: #fff0ea;
  --canyon-100: #f9d8cb;
  --canyon-500: #d96840;
  --canyon-600: #c85532;
  --canyon-700: #a33f25;
  --canyon-900: #632315;
  --moss-50: #eef3ea;
  --moss-500: #718466;
  --moss-600: #607258;
  --moss-900: #2b3b25;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 30px rgba(45, 41, 37, 0.10);
  --shadow-xl: 0 28px 60px rgba(23, 20, 18, 0.22);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: var(--stone-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

body.menu-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.92);
  border-bottom: 1px solid rgba(229, 225, 218, 0.9);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--earth-600), var(--canyon-600));
  box-shadow: var(--shadow-sm);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--stone-700);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--earth-700);
  background: var(--stone-100);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-input,
.filter-select {
  border: 1px solid var(--stone-300);
  border-radius: 13px;
  background: var(--white);
  color: var(--stone-900);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 210px;
  padding: 10px 12px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--earth-500);
  box-shadow: 0 0 0 4px rgba(184, 141, 85, 0.16);
}

.header-search button,
.mobile-search button,
.btn-primary,
.btn-secondary,
.btn-ghost,
.filter-button {
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.header-search button,
.mobile-search button,
.btn-primary,
.filter-button {
  color: var(--white);
  background: var(--earth-600);
}

.header-search button {
  padding: 10px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.btn-primary:hover,
.filter-button:hover {
  transform: translateY(-1px);
  background: var(--earth-700);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 13px;
  background: var(--stone-100);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--stone-700);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--stone-200);
  background: var(--stone-50);
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

.mobile-nav a {
  padding: 12px;
  border-radius: 12px;
  color: var(--stone-700);
  background: var(--white);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.mobile-search {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 18px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 12px;
}

.mobile-search button {
  padding: 12px 16px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--earth-900), var(--stone-800) 48%, var(--canyon-900));
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.25;
  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: 80px 80px;
}

.hero::after {
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 55%;
  content: "";
  background: radial-gradient(circle at center, rgba(217, 104, 64, 0.42), transparent 70%);
  filter: blur(10px);
}

.hero-slider {
  position: relative;
  z-index: 1;
  min-height: 70vh;
}

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

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

.hero-slide-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 70vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 54px;
  padding: 64px 0 86px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--earth-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-kicker {
  color: var(--earth-700);
  background: var(--earth-50);
  border-color: var(--earth-100);
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero h2 {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--stone-100);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--stone-200);
  font-size: 18px;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.btn-secondary {
  color: var(--earth-50);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: var(--earth-700);
  background: var(--earth-50);
}

.btn-ghost:hover {
  color: var(--white);
  background: var(--earth-600);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.tag-row span,
.detail-tags span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  padding: 7px 11px;
  color: var(--stone-100);
  background: rgba(255, 255, 255, 0.12);
}

.hero-media {
  position: relative;
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--earth-700), var(--canyon-900));
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(23, 20, 18, 0.64);
  backdrop-filter: blur(14px);
}

.hero-poster-info strong {
  display: block;
  margin-bottom: 3px;
  font-size: 20px;
}

.hero-poster-info small {
  color: var(--stone-200);
}

.hero-feature-stack {
  position: absolute;
  left: -54px;
  bottom: 42px;
  display: grid;
  gap: 12px;
  width: 210px;
}

.hero-mini-card {
  display: block;
  padding: 13px 14px;
  border-radius: 16px;
  color: var(--stone-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-mini-card strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-mini-card small {
  color: var(--stone-300);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
  width: 30px;
  background: var(--earth-300);
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
}

.section,
.page-section {
  padding: 72px 0;
}

.section.alt,
.page-section.alt {
  background: var(--stone-100);
}

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

.section-header,
.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-header h2,
.page-header h1,
.detail-title h1 {
  margin: 0;
  color: var(--stone-900);
  letter-spacing: -0.04em;
}

.section-header h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.page-header h1,
.detail-title h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
}

.section-header p,
.page-header p,
.detail-title p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--stone-600);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link,
.image-box {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--earth-600), var(--canyon-700));
}

.poster-link {
  aspect-ratio: 3 / 4;
}

.poster-link img,
.image-box img,
.category-covers img,
.detail-cover img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img {
  transition: transform 0.45s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(200, 85, 50, 0.94);
  font-size: 13px;
  font-weight: 800;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--canyon-600);
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: 17px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--earth-700);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--stone-400);
}

.movie-card h3 {
  margin: 0 0 9px;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: var(--earth-700);
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 13px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.55;
}

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

.tag-row span,
.detail-tags span {
  padding: 4px 8px;
  color: var(--stone-700);
  background: var(--stone-100);
}

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

.category-tile {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--earth-600), var(--moss-900));
}

.category-covers img {
  min-width: 0;
  min-height: 0;
}

.category-info {
  padding: 20px;
}

.category-info h3 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 21px;
}

.category-info p {
  margin: 0;
  color: var(--stone-600);
  font-size: 14px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 28px;
}

.ranking-feature {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  background: var(--stone-900);
  box-shadow: var(--shadow-md);
}

.ranking-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.5s ease;
}

.ranking-feature:hover img {
  transform: scale(1.04);
}

.ranking-feature::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.2), transparent);
}

.ranking-feature-content {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
}

.ranking-feature h3 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 42px);
}

.ranking-feature p {
  max-width: 760px;
  margin: 0;
  color: var(--stone-200);
}

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

.side-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 15px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.side-rank {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--canyon-700);
  background: var(--canyon-100);
  font-weight: 900;
}

.side-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--stone-900);
  font-weight: 800;
}

.side-meta {
  color: var(--stone-500);
  font-size: 13px;
}

.cta-band {
  padding: 72px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--moss-900), var(--earth-900));
}

.cta-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.cta-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.cta-inner p {
  max-width: 780px;
  margin: 0;
  color: var(--stone-200);
}

.page-hero {
  padding: 72px 0 54px;
  background: linear-gradient(135deg, var(--earth-50), var(--stone-50) 55%, var(--moss-50));
  border-bottom: 1px solid var(--stone-200);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.breadcrumb a,
.breadcrumb span {
  padding: 6px 10px;
  color: var(--stone-600);
  background: var(--white);
}

.breadcrumb a:hover {
  color: var(--earth-700);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
  gap: 12px;
  margin: 30px 0;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 12px 14px;
}

.filter-button {
  padding: 0 18px;
}

.no-results {
  display: none;
  padding: 36px;
  border-radius: 18px;
  text-align: center;
  color: var(--stone-600);
  background: var(--white);
}

.no-results.is-visible {
  display: block;
}

.detail-hero {
  padding: 56px 0 34px;
  background: linear-gradient(135deg, var(--earth-50), var(--stone-50) 52%, var(--canyon-50));
  border-bottom: 1px solid var(--stone-200);
}

.detail-heading {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--earth-600), var(--canyon-700));
  box-shadow: var(--shadow-md);
}

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

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--earth-800);
  background: var(--earth-100);
  font-size: 13px;
  font-weight: 800;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  padding: 44px 0 72px;
}

.player-card,
.content-card,
.aside-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--stone-900);
}

.player-box video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-box video {
  z-index: 1;
  background: var(--stone-900);
}

.player-cover {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, rgba(74, 48, 32, 0.84), rgba(99, 35, 21, 0.84));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  opacity: 0.52;
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.5));
}

.play-button {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--canyon-600);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.play-button::before {
  width: 0;
  height: 0;
  margin-left: 7px;
  content: "";
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid currentColor;
}

.player-caption {
  padding: 18px 22px;
}

.player-caption h2,
.content-card h2,
.aside-card h2 {
  margin: 0 0 10px;
  color: var(--stone-900);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.player-caption p,
.content-card p {
  margin: 0;
  color: var(--stone-600);
}

.content-card {
  margin-top: 24px;
  padding: 26px;
}

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

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

.aside-card {
  padding: 20px;
}

.aside-card + .aside-card {
  margin-top: 18px;
}

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

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

.site-footer {
  color: var(--stone-300);
  background: var(--stone-900);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.footer-logo {
  margin-bottom: 10px;
  color: var(--earth-200);
  font-size: 20px;
}

.footer-inner p {
  max-width: 680px;
  margin: 0;
  color: var(--stone-400);
}

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

.footer-links a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--stone-300);
  background: rgba(255, 255, 255, 0.04);
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.image-box.has-image-error img,
.hero-poster.has-image-error img,
.category-covers.has-image-error img,
.detail-cover.has-image-error img,
.player-cover.has-image-error img,
.ranking-feature.has-image-error img {
  opacity: 0;
}

.fallback-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--earth-700), var(--canyon-900));
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .mobile-panel.is-open {
    display: block;
  }

  .hero-slide-inner,
  .ranking-layout,
  .detail-main,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 440px;
  }

  .hero-feature-stack {
    left: auto;
    right: -18px;
  }

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

@media (max-width: 820px) {
  .hero-slide-inner {
    gap: 32px;
    padding-top: 42px;
  }

  .hero-media {
    width: min(86vw, 360px);
  }

  .hero-feature-stack {
    display: none;
  }

  .section-header,
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .detail-cover {
    max-width: 270px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
    min-height: 66px;
  }

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

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

  .hero,
  .hero-slider,
  .hero-slide-inner {
    min-height: 760px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero p {
    font-size: 16px;
  }

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

  .section,
  .page-section {
    padding: 48px 0;
  }

  .page-hero,
  .detail-hero {
    padding: 44px 0 34px;
  }
}
