:root {
  color-scheme: light;
  --bg: #f8fafc;
  --paper: #ffffff;
  --paper-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-soft: #dbeafe;
  --teal: #0f766e;
  --green: #16a34a;
  --orange: #ea580c;
  --red: #dc2626;
  --pink: #db2777;
  --purple: #7c3aed;
  --gold: #ca8a04;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: var(--shell);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 13px;
  color: #334155;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--paper-soft);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section-shell,
.hero-shell,
.footer-shell {
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 46%, #172554 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-shell {
  position: relative;
  min-height: 560px;
  padding: 86px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-search {
  max-width: 620px;
  margin-top: 28px;
  padding: 7px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(18px);
}

.hero-search input {
  min-width: 0;
  border: 0;
  padding: 14px 16px;
  color: #ffffff;
  background: transparent;
  outline: none;
}

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

.hero-search button,
.btn,
.filter-bar button,
.search-panel button {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
}

.hero-search button,
.btn-primary,
.search-panel button[type="submit"] {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #14b8a6);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  color: var(--blue);
  background: #ffffff;
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
}

.hero-focus {
  max-width: 640px;
  margin-top: 26px;
  padding: 18px;
  display: block;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
}

.hero-focus span,
.hero-focus em {
  display: block;
  color: rgba(255,255,255,0.74);
  font-style: normal;
  font-size: 14px;
}

.hero-focus strong {
  display: block;
  margin: 4px 0;
  font-size: 20px;
}

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

.stat-card {
  min-height: 150px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 24px 44px rgba(0,0,0,0.16);
  backdrop-filter: blur(18px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.18);
}

.stat-card strong {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.stat-card span {
  margin-top: 8px;
  color: #bfdbfe;
}

.stat-wide {
  grid-column: span 2;
  min-height: 130px;
}

.stat-wide strong {
  font-size: 24px;
}

.feature-strip,
.section-block {
  padding: 68px 0;
}

.feature-strip {
  background: #ffffff;
}

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

.feature-grid article {
  padding: 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.feature-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
  border-radius: 999px;
  background: var(--blue-soft);
}

.feature-grid h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

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

.section-heading a {
  color: var(--blue);
  font-weight: 900;
}

.section-heading-light,
.section-heading-light p,
.section-heading-light a {
  color: #ffffff;
}

.section-heading-light p {
  color: rgba(255,255,255,0.72);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-md);
}

.movie-thumb,
.ranking-cover,
.detail-poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8, #14b8a6);
}

.movie-thumb {
  aspect-ratio: 16 / 10;
  display: block;
}

.movie-thumb img,
.ranking-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-thumb.cover-missing,
.ranking-cover.cover-missing,
.detail-poster.cover-missing {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 20px;
  color: #ffffff;
  text-align: center;
}

.movie-thumb.cover-missing::after,
.ranking-cover.cover-missing::after,
.detail-poster.cover-missing::after {
  content: attr(data-title);
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.3);
}

.movie-year,
.play-icon,
.ranking-cover span {
  position: absolute;
  z-index: 2;
}

.movie-year {
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.play-icon {
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--blue);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-title,
.ranking-title {
  display: block;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.35;
}

.movie-title:hover,
.ranking-title:hover {
  color: var(--blue);
}

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

.movie-meta,
.ranking-meta,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta span,
.tag-row span,
.detail-tags span,
.ranking-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span {
  padding: 4px 9px;
  color: #1e40af;
  background: #dbeafe;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  padding: 4px 9px;
  color: #475569;
  background: #f1f5f9;
}

.movie-card-compact .movie-card-body {
  padding: 14px;
}

.movie-card-compact .movie-title {
  font-size: 15px;
}

.movie-card-compact .movie-card-body p {
  min-height: 42px;
  font-size: 13px;
}

.category-section,
.ranking-band {
  padding: 76px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1e293b);
}

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

.category-card,
.category-overview-card {
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 38px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-card {
  min-height: 170px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.14);
}

.category-count {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.category-card strong {
  margin-top: 14px;
  display: block;
  font-size: 20px;
}

.category-card em {
  color: rgba(255,255,255,0.7);
  font-style: normal;
  font-size: 13px;
}

.category-blue .category-count,
.category-blue.category-overview-card span:first-child {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-red .category-count,
.category-red.category-overview-card span:first-child {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.category-purple .category-count,
.category-purple.category-overview-card span:first-child {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.category-teal .category-count,
.category-teal.category-overview-card span:first-child {
  background: linear-gradient(135deg, #0f766e, #22c55e);
}

.category-dark .category-count,
.category-dark.category-overview-card span:first-child {
  background: linear-gradient(135deg, #111827, #475569);
}

.category-pink .category-count,
.category-pink.category-overview-card span:first-child {
  background: linear-gradient(135deg, #db2777, #fb7185);
}

.category-orange .category-count,
.category-orange.category-overview-card span:first-child {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.category-green .category-count,
.category-green.category-overview-card span:first-child {
  background: linear-gradient(135deg, #16a34a, #84cc16);
}

.category-cyan .category-count,
.category-cyan.category-overview-card span:first-child {
  background: linear-gradient(135deg, #0891b2, #2563eb);
}

.category-gold .category-count,
.category-gold.category-overview-card span:first-child {
  background: linear-gradient(135deg, #ca8a04, #f97316);
}

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

.rank-card {
  min-height: 126px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
}

.rank-number {
  grid-row: span 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #1d4ed8;
  border-radius: 999px;
  background: #ffffff;
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

.rank-score {
  color: #fde68a;
  font-weight: 900;
}

.rank-card small {
  color: rgba(255,255,255,0.66);
}

.page-hero {
  padding: 74px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.compact-hero p {
  max-width: 840px;
}

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

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

.filter-bar,
.search-panel {
  margin-bottom: 16px;
  padding: 18px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.filter-bar {
  grid-template-columns: 2fr repeat(3, 1fr) auto;
}

.search-panel {
  grid-template-columns: 2fr repeat(3, 1fr) auto auto;
}

.filter-bar label,
.search-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f8fafc;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-bar button[type="reset"],
.search-panel button[type="reset"] {
  align-self: end;
  color: var(--ink);
  background: #e2e8f0;
}

.search-panel button[type="submit"] {
  align-self: end;
}

.filter-count,
.search-status {
  margin: 0 0 22px;
  color: var(--muted);
}

.movie-card[hidden] {
  display: none;
}

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

.category-overview-card {
  padding: 24px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
}

.category-overview-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.category-overview-head > span {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 18px;
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 0;
}

.category-overview-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.category-overview-card ul,
.site-footer ul,
.sitemap-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.category-overview-card li a,
.sitemap-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.category-overview-card li span,
.sitemap-list span {
  color: var(--muted);
  font-size: 13px;
}

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

.ranking-item {
  padding: 16px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.ranking-cover {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.ranking-cover span {
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  color: #ffffff;
  border-radius: 999px;
  background: var(--red);
  font-weight: 900;
}

.ranking-item p {
  margin: 8px 0 12px;
  color: var(--muted);
}

.ranking-meta span {
  padding: 4px 10px;
  color: #1e40af;
  background: #dbeafe;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.ranking-table th,
.ranking-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.ranking-table th {
  color: #334155;
  background: #f8fafc;
}

.ranking-table a {
  color: var(--blue);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.detail-hero-grid {
  position: relative;
  padding: 72px 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 26px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.32);
}

.detail-copy p {
  font-size: 18px;
}

.detail-tags {
  margin-top: 18px;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255,255,255,0.14);
}

.player-section {
  padding: 70px 0 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.3);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.36), rgba(15, 23, 42, 0.82));
  cursor: pointer;
}

.player-start span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: var(--blue);
  border-radius: 999px;
  background: #ffffff;
  font-size: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.player-start strong {
  padding: 0 20px;
  font-size: 22px;
  text-align: center;
}

.player-shell.is-playing .player-start {
  display: none;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  margin: 0;
  color: #bfdbfe;
  font-size: 14px;
  text-align: center;
  pointer-events: none;
}

.detail-content-grid {
  padding: 42px 0 0;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.detail-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.detail-panel h2 {
  margin: 8px 0 14px;
  font-size: 26px;
}

.detail-panel p {
  margin: 0;
  color: #334155;
}

.detail-info dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-info dl div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-info dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-info dd {
  margin: 0;
  font-weight: 800;
}

.detail-info a {
  color: var(--blue);
}

.detail-tag-row {
  margin-top: 20px;
}

.sitemap-list {
  columns: 3;
  column-gap: 30px;
}

.sitemap-list li {
  break-inside: avoid;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-shell {
  padding: 54px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

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

.site-footer p,
.site-footer a,
.footer-bottom {
  color: #94a3b8;
  font-size: 14px;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

  .hero-shell {
    gap: 34px;
  }

  .filter-bar,
  .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
  }

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

  .hero-shell {
    min-height: auto;
    padding: 58px 0;
  }

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

  .hero-stats,
  .movie-grid-3,
  .movie-grid-4,
  .movie-grid-5,
  .feature-grid,
  .category-grid,
  .category-overview-grid,
  .rank-grid,
  .footer-grid,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .stat-wide {
    grid-column: auto;
  }

  .section-heading,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

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

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

  .detail-hero-grid {
    padding: 44px 0;
  }

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

  .sitemap-list {
    columns: 1;
  }
}

@media (max-width: 480px) {
  .section-shell,
  .hero-shell,
  .footer-shell {
    width: min(100% - 28px, var(--shell));
  }

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .feature-strip,
  .section-block,
  .category-section,
  .ranking-band {
    padding: 48px 0;
  }
}
