* {
  box-sizing: border-box;
}

:root {
  --stone-950: #29241f;
  --stone-900: #4c4740;
  --stone-800: #5c534c;
  --stone-700: #6d6259;
  --stone-600: #81766d;
  --stone-500: #9a9188;
  --stone-300: #d7d1ca;
  --stone-200: #e8e3dc;
  --stone-100: #f5f1eb;
  --stone-50: #faf8f5;
  --earth-900: #5a4029;
  --earth-800: #765333;
  --earth-700: #8f623b;
  --earth-600: #a47549;
  --earth-500: #bd8f62;
  --earth-300: #dbc5a3;
  --earth-100: #f4ead8;
  --canyon-900: #6e3021;
  --canyon-700: #a13f2c;
  --canyon-600: #c44e2c;
  --canyon-100: #f7d8ca;
  --moss-900: #363e2d;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 16px 45px rgba(76, 71, 64, 0.14);
  --shadow-card: 0 12px 30px rgba(76, 71, 64, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215, 209, 202, 0.85);
}

.nav-wrap {
  min-height: 68px;
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--stone-950);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--earth-600), var(--canyon-600));
  box-shadow: 0 8px 22px rgba(164, 117, 73, 0.3);
  font-size: 13px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--stone-700);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--earth-700);
  background: rgba(232, 227, 220, 0.85);
}

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

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

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

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
  border-color: var(--earth-600);
  box-shadow: 0 0 0 4px rgba(164, 117, 73, 0.16);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--earth-600);
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  background: var(--stone-100);
  color: var(--stone-800);
  font-size: 22px;
}

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

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--stone-700);
  font-weight: 650;
}

.mobile-panel a:hover {
  background: var(--stone-100);
  color: var(--earth-700);
}

.mobile-search input {
  width: 100%;
  padding: 11px 12px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  height: 74vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--earth-900), var(--stone-800), var(--canyon-900));
}

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 38%, rgba(196, 78, 44, 0.3), transparent 28%),
    linear-gradient(90deg, rgba(41, 36, 31, 0.92), rgba(41, 36, 31, 0.58), rgba(41, 36, 31, 0.86)),
    linear-gradient(0deg, rgba(41, 36, 31, 0.92), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  align-items: center;
  gap: 60px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--earth-300);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  max-width: 780px;
}

.hero-intro {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
}

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

.hero-tags span,
.detail-tags a,
.card-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.text-link,
.text-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  padding: 13px 22px;
  color: var(--white);
  background: var(--earth-600);
  box-shadow: 0 12px 28px rgba(164, 117, 73, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: var(--earth-700);
  box-shadow: 0 16px 34px rgba(164, 117, 73, 0.34);
}

.ghost-btn {
  padding: 12px 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--earth-700);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(8px);
  font-size: 32px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.content-section {
  padding: 74px 0;
  background: var(--white);
}

.soft-section {
  background: var(--stone-50);
}

.gradient-section {
  background: linear-gradient(135deg, var(--stone-100), var(--earth-100));
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.story-card h2,
.side-card h2,
.player-section h2,
.dark-promo h2 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-head h2 {
  color: var(--stone-950);
  font-size: clamp(28px, 3.6vw, 42px);
}

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

.featured-grid,
.movie-grid,
.category-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(76, 71, 64, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-200);
}

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

.movie-card:hover .movie-cover img,
.category-tile:hover img,
.ranking-hero:hover img,
.mosaic-item:hover img,
.category-card:hover .category-card-cover img {
  transform: scale(1.07);
}

.cover-shade,
.tile-shade,
.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 58%);
}

.play-chip,
.year-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
}

.play-chip {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%) scale(0.9);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--earth-700);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-chip {
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--canyon-600);
  font-weight: 900;
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: var(--stone-950);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover,
.ranking-info h3 a:hover,
.category-card h2 a:hover {
  color: var(--earth-700);
}

.movie-card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--stone-500);
  font-size: 12px;
}

.card-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--stone-100);
}

.card-tags span {
  color: var(--stone-700);
  background: var(--earth-100);
}

.category-tile {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: var(--white);
}

.category-tile img,
.ranking-hero img,
.mosaic-item img,
.category-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.tile-label {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
}

.category-tile strong,
.category-tile em,
.ranking-hero strong,
.ranking-hero em,
.mosaic-item strong {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
}

.category-tile strong,
.ranking-hero strong,
.mosaic-item strong {
  bottom: 56px;
  font-size: 24px;
  line-height: 1.25;
}

.category-tile em,
.ranking-hero em {
  bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-panel {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
}

.ranking-hero {
  position: relative;
  display: block;
  height: 430px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.big-rank {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 24px;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--canyon-600);
  font-weight: 900;
}

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

.ranking-mini {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: 16px;
  padding: 14px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(76, 71, 64, 0.1);
}

.ranking-mini span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--canyon-700);
  background: var(--canyon-100);
  font-weight: 900;
}

.ranking-mini strong {
  display: block;
  color: var(--stone-950);
  line-height: 1.35;
}

.ranking-mini em {
  display: block;
  color: var(--stone-500);
  font-style: normal;
  font-size: 13px;
}

.section-more {
  margin-top: 34px;
  text-align: center;
}

.dark-promo {
  color: var(--white);
  background: linear-gradient(135deg, var(--moss-900), var(--earth-900));
}

.promo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.dark-promo h2 {
  font-size: clamp(30px, 4vw, 50px);
}

.dark-promo p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.text-cta,
.text-link {
  width: fit-content;
  color: var(--earth-700);
}

.dark-promo .text-cta {
  color: var(--earth-300);
}

.text-link:hover,
.text-cta:hover {
  color: var(--canyon-600);
  transform: translateX(2px);
}

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

.mosaic-item {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--white);
}

.mosaic-item.wide {
  grid-column: span 2;
  min-height: 220px;
}

.mosaic-item strong {
  bottom: 18px;
  font-size: 18px;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0%, rgba(196, 78, 44, 0.32), transparent 30%),
    linear-gradient(135deg, var(--earth-900), var(--stone-800), var(--canyon-900));
}

.compact-hero {
  padding: 76px 0 64px;
}

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--stone-600);
  font-size: 14px;
  flex-wrap: wrap;
}

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

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.72);
}

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

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--stone-50);
  box-shadow: inset 0 0 0 1px var(--stone-200);
}

.filter-bar input {
  width: min(520px, 100%);
  padding: 13px 14px;
}

.search-wide input {
  width: 100%;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 30px;
}

.quick-cats a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-weight: 700;
  font-size: 14px;
}

.quick-cats a:hover {
  color: var(--earth-700);
  background: var(--earth-100);
}

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

.category-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-card-cover {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.category-card h2 {
  margin: 4px 0 8px;
  line-height: 1.25;
}

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

.category-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.category-picks a {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-size: 13px;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--stone-950);
}

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.05);
  transform: scale(1.06);
  opacity: 0.5;
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(41, 36, 31, 0.96), rgba(41, 36, 31, 0.68)),
    linear-gradient(0deg, rgba(41, 36, 31, 0.94), transparent 50%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  padding: 44px 0 70px;
}

.detail-main {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

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

.detail-copy h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5.2vw, 64px);
}

.detail-one-line {
  margin: 16px 0 18px;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.detail-tags a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.detail-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.detail-info li,
.side-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 13px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
}

.detail-info span,
.side-card span {
  color: rgba(255, 255, 255, 0.64);
}

.player-section {
  background: var(--stone-950);
  color: var(--white);
}

.player-section h2 {
  margin-bottom: 20px;
  font-size: 30px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--black);
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.movie-video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-video {
  display: block;
  background: var(--black);
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: var(--black);
}

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

.player-cover img {
  object-fit: cover;
}

.play-orb {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--earth-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  font-size: 28px;
}

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

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

.story-card,
.side-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.story-card h2,
.side-card h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.story-card p {
  margin: 0 0 26px;
  color: var(--stone-700);
  font-size: 17px;
}

.side-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.side-card li {
  background: var(--stone-100);
}

.side-card span {
  color: var(--stone-500);
}

.side-card strong {
  color: var(--stone-950);
  text-align: right;
}

.related-grid,
.search-grid,
.category-movie-grid {
  align-items: stretch;
}

.movie-card-compact .movie-cover {
  aspect-ratio: 4 / 3;
}

.movie-card-compact .movie-card-body p {
  min-height: 44px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 62px 120px 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(76, 71, 64, 0.1);
}

.ranking-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--earth-600), var(--canyon-600));
  font-weight: 900;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: var(--stone-200);
}

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

.ranking-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.ranking-info p {
  margin: 0 0 8px;
  color: var(--stone-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

.footer-brand {
  color: var(--stone-50);
  margin-bottom: 14px;
}

.footer-about p {
  max-width: 520px;
  color: var(--stone-300);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--stone-50);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--earth-300);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--stone-500);
  font-size: 14px;
}

.footer-bottom button {
  border: 0;
  color: var(--stone-400);
  background: transparent;
}

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

  .header-search {
    margin-left: auto;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-content {
    grid-template-columns: 1fr 280px;
    gap: 30px;
  }

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

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

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

  .hero-carousel {
    height: auto;
    min-height: 760px;
  }

  .hero-content {
    min-height: 760px;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 64px 0 88px;
  }

  .hero-poster {
    width: min(280px, 80vw);
    transform: none;
  }

  .hero-prev,
  .hero-next {
    display: none;
  }

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

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

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

  .detail-poster {
    width: min(280px, 80vw);
  }

  .ranking-row {
    grid-template-columns: 44px 88px 1fr;
  }

  .ranking-row .text-link {
    grid-column: 3;
  }

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

@media (max-width: 560px) {
  .nav-wrap {
    width: min(100% - 24px, 1260px);
  }

  .brand-text {
    font-size: 17px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-actions,
  .filter-bar,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar input {
    width: 100%;
  }

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

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

  .ranking-row {
    grid-template-columns: 42px 1fr;
  }

  .ranking-thumb {
    display: none;
  }

  .ranking-row .text-link {
    grid-column: 2;
  }

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

  .story-card,
  .side-card {
    padding: 22px;
  }
}
