:root {
  color-scheme: light;
  --bg: #fff7ed;
  --page: #fffbeb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.24);
  --orange: #f97316;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --gold: #fbbf24;
  --shadow: 0 18px 42px rgba(124, 45, 18, 0.13);
  --shadow-strong: 0 24px 65px rgba(124, 45, 18, 0.22);
  --radius: 22px;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 45%, #ffffff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 32px rgba(124, 45, 18, 0.10);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
  transform: translateZ(0);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(4deg);
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--orange-dark), var(--amber));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  position: relative;
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--orange-dark);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #4b5563;
  font-weight: 650;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background: #111827;
}

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

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.4s ease;
}

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

.hero-content {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 520px;
  padding-top: 96px;
  text-align: center;
  color: #fff;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.hero-content h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  width: min(820px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: clamp(17px, 2vw, 23px);
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.32);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.26);
}

.hero-shell {
  position: relative;
  z-index: 3;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 44px;
  pointer-events: none;
}

.hero-search-panel {
  width: 100%;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(17, 24, 39, 0.56);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form input {
  flex: 1;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  outline: none;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
}

.search-form button {
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.hero-chip {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-chip:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

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

.hero-preview-card {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.85), rgba(245, 158, 11, 0.75));
}

.hero-preview-card img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.hero-preview-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.hero-preview-card:hover img {
  transform: scale(1.08);
  opacity: 0.92;
}

.hero-dots {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.active {
  width: 28px;
  background: #fff;
}

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

.section-heading {
  width: min(680px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.light-heading span,
.light-heading h2,
.light-heading p {
  color: #fff;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card > a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 36px rgba(124, 45, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card > a:hover {
  transform: translateY(-7px);
  border-color: rgba(249, 115, 22, 0.32);
  box-shadow: var(--shadow-strong);
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(251, 191, 36, 0.95), transparent 38%), linear-gradient(135deg, #7c2d12, #f97316 55%, #fbbf24);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.poster-frame img.image-off,
.hero-preview-card img.image-off,
.rank-row img.image-off,
.ranking-item img.image-off,
.side-link img.image-off,
.detail-poster img.image-off {
  opacity: 0;
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.68));
}

.poster-frame figcaption,
.poster-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-frame figcaption {
  left: 12px;
  bottom: 12px;
  background: rgba(249, 115, 22, 0.88);
}

.poster-badge {
  right: 12px;
  top: 12px;
  background: rgba(17, 24, 39, 0.60);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9ca3af;
  font-size: 12px;
}

.movie-meta strong {
  display: inline-flex;
  min-width: 38px;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.category-band {
  padding: 74px 0;
  background: linear-gradient(135deg, #7c2d12, #f97316 55%, #f59e0b);
  box-shadow: inset 0 18px 45px rgba(0, 0, 0, 0.12);
}

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

.category-tile,
.category-card-large a {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 180px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-tile:hover,
.category-card-large a:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.23);
}

.category-tile span,
.category-number {
  display: inline-flex;
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 13px;
}

.category-tile strong,
.category-card-large h2 {
  font-size: 22px;
  line-height: 1.15;
}

.category-tile em,
.category-card-large p {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 14px;
}

.category-overview-grid .category-card-large a {
  color: #1f2937;
  background: #fff;
  border-color: var(--line);
}

.category-overview-grid .category-number {
  color: var(--orange-dark);
  background: #ffedd5;
}

.category-overview-grid .category-card-large p {
  color: var(--muted);
}

.category-card-large strong {
  color: var(--orange-dark);
}

.category-samples {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.category-samples a {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
}

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

.rank-panel,
.side-panel,
.content-card,
.player-card,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

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

.rank-panel-head span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.rank-panel-head h2 {
  margin: 0 auto 0 0;
  font-size: 24px;
}

.rank-panel-head a {
  color: var(--orange-dark);
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 32px 68px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: #ffedd5;
}

.rank-row > span {
  color: var(--orange-dark);
  font-weight: 900;
}

.rank-row img {
  width: 68px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.rank-row strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  color: #fff;
  background: linear-gradient(135deg, #7c2d12, #f97316 62%, #f59e0b);
  background-size: cover;
  background-position: center;
}

.page-hero {
  padding: 88px 0 84px;
}

.small-hero {
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.35), transparent 35%), linear-gradient(135deg, #111827, #7c2d12 52%, #f97316);
}

.page-hero h1 {
  margin-top: 12px;
}

.page-hero p {
  width: min(720px, 100%);
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.filter-panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 28px;
}

.filter-panel strong {
  color: #111827;
  font-size: 20px;
}

.filter-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 145px 145px 145px;
  gap: 10px;
}

.filter-controls input,
.filter-controls select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: #111827;
  background: #fff;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

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

.ranking-item > a {
  display: grid;
  grid-template-columns: 64px 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px;
}

.ranking-item img {
  width: 150px;
  height: 92px;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.rank-index {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.ranking-copy h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.ranking-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-item em {
  color: var(--orange-dark);
  font-style: normal;
  font-weight: 850;
}

.detail-hero {
  padding: 74px 0;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

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

.detail-intro h1 {
  margin: 16px 0;
}

.detail-intro p {
  width: min(780px, 100%);
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 19px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  padding: 0;
  background: #020617;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.30), transparent 42%), #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.50));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  font-size: 38px;
  line-height: 1;
  padding-left: 6px;
}

.player-card.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
}

.content-card {
  padding: 26px;
}

.content-card h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
}

.side-panel {
  padding: 20px;
}

.side-link {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-link:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.side-link img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.side-link span {
  font-weight: 750;
  font-size: 14px;
  line-height: 1.35;
}

.site-footer {
  margin-top: 24px;
  color: #e5e7eb;
  background: linear-gradient(180deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-logo .brand-copy strong,
.footer-logo .brand-copy em {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  margin: 18px 0 0;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #fff;
}

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

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

.footer-links a {
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fdba74;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

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

  .rank-panel,
  .detail-sidebar {
    position: static;
  }
}

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav.open {
    display: block;
  }

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

  .hero-content {
    min-height: 500px;
    padding-top: 80px;
  }

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

  .movie-grid,
  .compact-grid,
  .wide-grid,
  .category-tile-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .detail-poster {
    width: min(290px, 100%);
  }

  .ranking-item > a {
    grid-template-columns: 48px 112px minmax(0, 1fr);
  }

  .ranking-item em {
    display: none;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero-slider,
  .hero-shell {
    min-height: 790px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-intro h1 {
    font-size: 40px;
  }

  .search-form,
  .hero-actions {
    flex-direction: column;
  }

  .search-form button,
  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .movie-grid,
  .compact-grid,
  .wide-grid,
  .category-tile-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 28px 62px 1fr;
  }

  .rank-row em {
    display: none;
  }

  .ranking-item > a {
    grid-template-columns: 1fr;
  }

  .ranking-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-meta span {
    font-size: 13px;
  }
}
