:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --pink: #ec4899;
  --amber: #f59e0b;
  --green: #10b981;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  color: #475569;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.dropdown-trigger:hover {
  color: var(--blue);
  background: #eff6ff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.10);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 190px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  border-radius: 10px;
  padding: 9px 10px;
  color: #475569;
  font-size: 14px;
}

.dropdown-menu a:hover {
  color: var(--blue);
  background: #eff6ff;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #334155;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
  background: #ffffff;
}

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

.mobile-menu-title {
  padding: 8px 4px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.mobile-menu-gap {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.mobile-nav-link {
  display: block;
  border-radius: 10px;
  padding: 10px 12px;
  color: #475569;
  font-weight: 650;
}

.mobile-sub-link {
  padding-left: 26px;
  font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--blue);
  background: #eff6ff;
}

.hero {
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -160px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.26);
  filter: blur(8px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.88), rgba(37, 99, 235, 0.72), rgba(15, 23, 42, 0.10));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  color: #67e8f9;
}

.hero-copy p {
  max-width: 620px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(8px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.btn-ghost {
  color: var(--blue);
  background: #eff6ff;
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(18px);
}

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

.hero-card div {
  padding: 20px;
  color: #ffffff;
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-card span {
  color: rgba(255, 255, 255, 0.82);
}

.stats-section {
  background: #ffffff;
  padding: 36px 0;
}

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

.stat-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 22px;
}

.from-blue {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.from-pink {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.from-amber {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.from-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.stat-card strong {
  display: block;
  color: #0f172a;
  font-size: 32px;
  line-height: 1;
}

.stat-card span:last-child {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

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

.section-link {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 800;
}

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

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

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

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

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

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

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
  background: #dbeafe;
}

.compact-card .poster-wrap {
  height: 170px;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.70));
  opacity: 0.88;
}

.poster-badge,
.play-dot {
  position: absolute;
  z-index: 1;
}

.poster-badge {
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(10px);
}

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

.movie-card-body h3 {
  min-height: 1.45em;
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body p {
  min-height: 3.1em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.movie-meta-line {
  display: flex;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.small-tags {
  margin-top: 12px;
}

.small-tags span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
}

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

.category-tile,
.category-overview-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.category-tile {
  padding: 22px;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.category-tile h3,
.category-overview-body h2 {
  margin: 14px 0 8px;
  color: #0f172a;
}

.category-tile p,
.category-overview-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.category-tile em,
.category-overview-body span {
  color: var(--teal);
  font-style: normal;
  font-weight: 800;
}

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

.category-overview-card {
  overflow: hidden;
}

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

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

.category-overview-body {
  padding: 22px;
}

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

.ranking-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ranking-list li a,
.rank-row a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: 0.22s ease;
}

.ranking-list li a:hover,
.rank-row a:hover {
  transform: translateX(4px);
  border-color: rgba(37, 99, 235, 0.30);
  box-shadow: var(--shadow-soft);
}

.rank-num {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.ranking-list strong {
  display: block;
  color: #0f172a;
}

.ranking-list small {
  display: block;
  color: var(--muted);
}

.rank-promo,
.narrow-card,
.sitemap-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-promo {
  position: sticky;
  top: 96px;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  color: #ffffff;
}

.rank-promo span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.rank-promo h2 {
  margin: 20px 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

.rank-promo p {
  color: rgba(255, 255, 255, 0.84);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #1d4ed8, #0891b2 55%, #14b8a6);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

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

.filter-panel {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.filter-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-heading strong {
  color: #0f172a;
  font-size: 20px;
}

.filter-heading span {
  color: var(--blue);
  font-weight: 800;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.filter-controls label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

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

.detail-shell {
  padding: 34px 0 72px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 30px;
  align-items: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #64748b;
  font-size: 14px;
}

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

.player-card,
.detail-info-card,
.detail-text-card,
.side-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.68));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-overlay span {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.38);
  font-size: 28px;
}

.play-overlay strong {
  font-size: 18px;
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  border-radius: 12px;
  padding: 10px 14px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.88);
  font-weight: 700;
  text-align: center;
}

.player-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: #475569;
}

.player-caption span {
  color: var(--blue);
  font-weight: 800;
}

.detail-info-card,
.detail-text-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.detail-title-row h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.one-line {
  margin: 18px 0;
  color: #334155;
  font-size: 18px;
}

.detail-tags {
  margin-bottom: 20px;
}

.meta-table {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.meta-table li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.meta-table span {
  color: #64748b;
}

.meta-table strong {
  text-align: right;
}

.detail-text-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
}

.detail-text-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.review-card {
  background: linear-gradient(135deg, #ffffff, #ecfeff);
}

.detail-side {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 22px;
}

.poster-side-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.poster-side-card h2,
.poster-side-card p {
  margin-left: 20px;
  margin-right: 20px;
}

.poster-side-card h2 {
  margin-top: 20px;
}

.poster-side-card p {
  margin-bottom: 20px;
  color: var(--muted);
}

.related-card {
  padding: 20px;
}

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.related-item:first-of-type {
  border-top: 0;
}

.related-item img {
  width: 112px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.related-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.ranking-list-large {
  gap: 12px;
}

.rank-row a {
  grid-template-columns: 60px 70px minmax(0, 1fr) auto;
}

.rank-row img {
  width: 70px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-title small {
  max-width: 700px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.narrow-card {
  max-width: 860px;
}

.narrow-card p {
  margin: 0 0 16px;
  color: #334155;
  font-size: 17px;
}

.narrow-card p:last-child {
  margin-bottom: 0;
}

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

.sitemap-card h2 {
  margin-top: 0;
}

.sitemap-card ul {
  margin: 0;
  padding-left: 20px;
}

.sitemap-card li {
  margin: 7px 0;
}

.sitemap-card a:hover {
  color: var(--blue);
}

.sitemap-movies {
  grid-column: 1 / -1;
}

.sitemap-movies ul {
  columns: 4;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 54px 0 34px;
}

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

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

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.site-footer a {
  color: #cbd5e1;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

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

  .filter-search {
    grid-column: 1 / -1;
  }

  .detail-layout,
  .ranking-home {
    grid-template-columns: 1fr;
  }

  .detail-side,
  .rank-promo {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

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

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

  .hero-card {
    max-width: 420px;
  }

  .stats-grid,
  .featured-grid,
  .catalog-grid,
  .compact-grid,
  .mini-grid,
  .category-grid,
  .category-overview-grid,
  .split-showcase,
  .footer-grid,
  .sitemap-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-title-row,
  .section-head,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-row a {
    grid-template-columns: 52px 62px minmax(0, 1fr);
  }

  .rank-row em {
    grid-column: 3;
  }

  .sitemap-movies ul {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .container,
  .navbar {
    width: min(100% - 24px, 1180px);
  }

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

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

  .hero-actions,
  .filter-heading {
    flex-direction: column;
  }

  .stats-grid,
  .featured-grid,
  .catalog-grid,
  .compact-grid,
  .mini-grid,
  .category-grid,
  .category-overview-grid,
  .split-showcase,
  .footer-grid,
  .filter-controls,
  .meta-table,
  .sitemap-layout {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 220px;
  }

  .rank-row a,
  .ranking-list li a {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .rank-row img {
    display: none;
  }

  .rank-row em {
    grid-column: 2;
  }

  .related-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .related-item img {
    width: 96px;
    height: 64px;
  }

  .sitemap-movies ul {
    columns: 1;
  }
}
