:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #7c3aed;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.18);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.navbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
  font-size: 15px;
}

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

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

.nav-link {
  padding: 10px 14px;
  color: #334155;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.45), transparent 24%),
              radial-gradient(circle at 88% 12%, rgba(168, 85, 247, 0.45), transparent 24%),
              linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 48%, #0f172a 100%);
}

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

.hero-container {
  position: relative;
  padding: 82px 0 42px;
}

.hero-slider {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 56px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags {
  margin-top: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: #1e3a8a;
  background: #dbeafe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.25);
}

.button-primary:hover {
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.35);
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.button-ghost.light {
  color: var(--primary);
  background: #ffffff;
  border-color: #bfdbfe;
}

.hero-poster {
  position: relative;
  display: block;
  isolation: isolate;
}

.hero-poster img {
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-left: auto;
  border-radius: 32px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 9% -4% -6% 12%;
  z-index: -1;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.7), rgba(168, 85, 247, 0.7));
  border-radius: 36px;
  filter: blur(2px);
  transform: rotate(-5deg);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 24px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  font-size: 28px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 30px;
  background: #ffffff;
}

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

.hero-stats div,
.feature-grid div,
.search-panel-card,
.prose-card,
.cta-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}

.hero-stats div {
  padding: 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-stats strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 7px;
  color: #bfdbfe;
  font-size: 14px;
}

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

.feature-strip {
  background: #ffffff;
}

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

.feature-grid div {
  padding: 24px;
}

.feature-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 14px;
  font-weight: 900;
}

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

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

.bg-white {
  background: #ffffff;
}

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

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

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

.section-link {
  color: var(--primary);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  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(-6px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.movie-grid-featured .movie-cover {
  aspect-ratio: 16 / 9;
}

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

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-gradient {
  opacity: 1;
}

.year-badge,
.rank-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

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

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  border-radius: 999px;
  font-size: 12px;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-body {
  padding: 18px;
}

.movie-meta-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-row strong {
  margin-left: auto;
  color: #f97316;
}

.movie-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.movie-body h3 a:hover {
  color: var(--primary);
}

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

.section-dark {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.section-dark .section-heading p {
  color: #cbd5e1;
}

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

.category-card,
.category-overview {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.category-card img,
.category-overview img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transition: transform 0.35s ease;
}

.category-card::after,
.category-overview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(15, 23, 42, 0.9));
}

.category-card:hover img,
.category-overview:hover img {
  transform: scale(1.08);
}

.category-count {
  display: inline-flex;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.category-card h3,
.category-overview h2 {
  margin: 46px 0 8px;
  font-size: 25px;
}

.category-card p,
.category-overview p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.category-overview {
  display: flex;
  min-height: 300px;
  align-items: end;
}

.sample-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.sample-title-row span {
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.rank-list,
.ranking-table {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.rank-row {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr) auto 54px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover,
.ranking-table-row:hover {
  background: #f8fafc;
}

.rank-num {
  color: var(--primary);
  font-weight: 900;
}

.rank-row img,
.ranking-table-row img {
  width: 58px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
}

.rank-title,
.ranking-title {
  min-width: 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info {
  color: var(--muted);
  font-size: 13px;
}

.rank-row strong,
.ranking-table-row strong {
  color: #f97316;
}

.search-panel-card {
  padding: 28px;
  position: sticky;
  top: 92px;
}

.search-panel-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.search-panel-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.quick-search {
  display: grid;
  gap: 12px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  outline: none;
}

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

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.quick-links a {
  padding: 6px 10px;
  color: var(--primary);
  background: #eff6ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.cta-section {
  padding: 0 0 78px;
}

.cta-card {
  padding: 42px;
  text-align: center;
  background: linear-gradient(135deg, #eff6ff, #ffffff 55%, #f5f3ff);
}

.cta-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.cta-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0f172a);
}

.small-hero .container,
.category-hero .container {
  padding: 74px 0;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px 180px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.filter-bar label span {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.filter-count {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #1e3a8a;
  background: #dbeafe;
  border-radius: 13px;
  font-weight: 800;
}

.empty-state {
  margin: 30px 0 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
}

.ranking-hero {
  background: radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.42), transparent 22%),
              linear-gradient(135deg, #111827, #1e3a8a);
}

.ranking-table-head,
.ranking-table-row {
  display: grid;
  grid-template-columns: 70px 74px minmax(0, 1fr) 110px 86px 70px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.ranking-table-head {
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
}

.ranking-table-row {
  border-bottom: 1px solid var(--line);
}

.ranking-table-row:last-child {
  border-bottom: 0;
}

.ranking-index {
  color: var(--primary);
  font-weight: 900;
}

.search-summary {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-position: center;
  background-size: cover;
  filter: blur(12px) saturate(1.15);
  transform: scale(1.05);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.76));
}

.detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.breadcrumb {
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.detail-one-line {
  max-width: 820px;
  margin: 0;
  color: #dbeafe;
  font-size: 20px;
}

.detail-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  color: #cbd5e1;
}

.score-pill {
  padding: 7px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  border-radius: 999px;
  font-weight: 900;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.34), rgba(2, 6, 23, 0.74));
  border: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.large-play {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  font-size: 24px;
}

.player-overlay small {
  color: #dbeafe;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

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

.prose-card {
  padding: 28px;
}

.prose-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

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

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

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

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

.site-footer p {
  color: #94a3b8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

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

.footer-list a:hover {
  color: #60a5fa;
}

.footer-list span {
  color: #64748b;
  font-size: 12px;
}

.footer-bottom {
  padding: 18px 0 26px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 14px;
}

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

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

  .search-panel-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .mobile-menu-button {
    display: flex;
  }

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

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

  .nav-link {
    border-radius: 12px;
  }

  .hero-container {
    padding-top: 54px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-poster img {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .hero-stats,
  .feature-grid,
  .movie-grid,
  .movie-grid-featured,
  .movie-grid-compact,
  .category-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-poster {
    max-width: 320px;
  }

  .ranking-table-head {
    display: none;
  }

  .ranking-table-row {
    grid-template-columns: 56px 64px minmax(0, 1fr) 52px;
  }

  .ranking-table-row span:nth-of-type(4),
  .ranking-table-row span:nth-of-type(5) {
    display: none;
  }
}

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.045em;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-stats,
  .feature-grid,
  .movie-grid,
  .movie-grid-featured,
  .movie-grid-compact,
  .category-grid,
  .footer-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-info {
    display: none;
  }

  .cta-card,
  .prose-card {
    padding: 24px;
  }
}
