:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-strong: #0f172a;
  --surface-light: #1e293b;
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.12), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.10), transparent 26%),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 60vh;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.35), transparent);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.header-inner {
  width: min(1320px, calc(100% - 28px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, #67e8f9, #06b6d4 55%, #155e75 100%);
  color: white;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
}

.brand-text strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.03em;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--muted-strong);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link {
  padding: 8px 12px;
  font-size: 14px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: rgba(15, 23, 42, 0.95);
  color: var(--cyan);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 240px;
}

.header-search input,
.hero-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  height: 38px;
  padding: 0 14px;
}

.header-search input:focus,
.hero-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.header-search button,
.hero-search button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-search button,
.hero-search button,
.primary-button {
  background: linear-gradient(135deg, #22d3ee, #0284c7);
  color: white;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.26);
}

.header-search button {
  height: 38px;
  padding: 0 16px;
  flex: 0 0 auto;
}

.header-search button:hover,
.hero-search button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #67e8f9, #06b6d4);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.58) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.20) 45%, rgba(2, 6, 23, 0.48) 100%);
}

.hero-content {
  position: relative;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(88px, 12vw, 132px);
}

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

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero-content h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  color: white;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p {
  max-width: 740px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: clamp(16px, 2.2vw, 20px);
}

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

.hero-meta span,
.detail-meta span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  color: var(--muted-strong);
  font-size: 14px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.62);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  border-color: rgba(34, 211, 238, 0.6);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: white;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-arrow:hover {
  background: rgba(15, 23, 42, 0.9);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.65);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.home-search-band {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: -48px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-band h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.home-search-band p {
  margin: 8px 0 0;
  color: var(--muted);
}

.hero-search {
  display: flex;
  gap: 12px;
}

.hero-search input {
  min-height: 52px;
  padding: 0 18px;
}

.hero-search button {
  min-height: 52px;
  padding: 0 22px;
  white-space: nowrap;
}

.page-sections {
  padding: 56px 0;
}

.page-sections > section + section,
.page-sections > .filter-panel + section,
.related-section > section + section {
  margin-top: 58px;
}

.surface-section,
.filter-panel,
.prose-page,
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.62));
  box-shadow: var(--shadow);
}

.surface-section {
  padding: clamp(22px, 4vw, 34px);
}

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

.section-header h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

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

.section-more {
  color: var(--cyan);
  font-weight: 700;
  white-space: nowrap;
}

.movie-grid,
.category-grid,
.category-overview-grid,
.ranking-preview-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.movie-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 22px 50px rgba(8, 145, 178, 0.18);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020617;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

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

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.12) 60%);
  opacity: 0.76;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-thumb::after {
  opacity: 0.9;
}

.movie-type-badge,
.rank-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.movie-type-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  background: linear-gradient(135deg, #f97316, #eab308);
}

.score-badge {
  right: 12px;
  bottom: 12px;
  min-width: 40px;
  height: 26px;
  background: rgba(34, 211, 238, 0.92);
}

.movie-play-icon {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.9);
  color: white;
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.35);
}

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

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

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

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #64748b;
  font-size: 12px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  padding: 4px 8px;
  background: rgba(30, 41, 59, 0.8);
  color: var(--muted-strong);
  font-size: 12px;
}

.category-tile,
.category-card-large a {
  position: relative;
  display: block;
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: #0f172a;
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.55;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.28));
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.8;
}

.category-tile > div {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
}

.category-tile strong,
.category-card-content h2 {
  display: block;
  margin: 0;
  color: white;
  font-size: 22px;
}

.category-tile small,
.category-card-content small {
  display: block;
  margin-top: 4px;
  color: var(--cyan);
  font-weight: 700;
}

.category-tile p,
.category-card-content p {
  margin: 8px 0 0;
  color: var(--muted-strong);
  font-size: 14px;
}

.category-card-large a {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  min-height: 230px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.58));
}

.category-cover-stack {
  position: relative;
  min-height: 186px;
}

.category-cover-stack img {
  position: absolute;
  width: 72%;
  height: 74%;
  object-fit: cover;
  border: 3px solid rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.category-cover-stack img:nth-child(1) {
  left: 0;
  top: 0;
  z-index: 3;
}

.category-cover-stack img:nth-child(2) {
  right: 8px;
  top: 28px;
  z-index: 2;
}

.category-cover-stack img:nth-child(3) {
  left: 24px;
  bottom: 0;
  z-index: 1;
}

.category-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero {
  padding: 138px 0 64px;
  background:
    radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--border);
}

.compact-page-hero h1 {
  font-size: clamp(34px, 4vw, 56px);
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 2fr);
  gap: 24px;
  padding: 24px;
  margin-bottom: 28px;
}

.filter-panel h2 {
  margin: 0;
  font-size: 24px;
}

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

.filter-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
}

.filter-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 13px;
}

.filter-search {
  grid-column: span 2;
}

.filter-controls input,
.filter-controls select {
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
}

.filter-count {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
}

.filter-count strong {
  color: var(--cyan);
}

.no-results {
  padding: 36px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.detail-top {
  padding: 112px 0 42px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.98));
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.82fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.16)),
    radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.26), transparent 34%);
  color: white;
}

.player-start-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.92);
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.45);
  font-size: 28px;
}

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

.player-start em {
  color: var(--muted-strong);
  font-style: normal;
}

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

.player-status {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 6;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--muted-strong);
  font-size: 12px;
}

.detail-title-block {
  margin-top: 28px;
}

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

.detail-content,
.info-card {
  margin-top: 24px;
  padding: 26px;
}

.detail-content {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
}

.detail-content h2,
.info-card h2,
.prose-page h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 22px;
}

.detail-content h2:not(:first-child),
.prose-page h2:not(:first-child) {
  margin-top: 28px;
}

.detail-content p,
.prose-page p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 16px;
}

.detail-content .lead {
  color: white;
  font-size: 19px;
}

.sticky-card {
  position: sticky;
  top: 94px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 0;
  margin: 0;
}

.info-card dt,
.info-card dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  color: white;
  font-weight: 700;
  text-align: right;
}

.info-card a {
  color: var(--cyan);
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 64px 92px 1fr 70px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row a:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.35);
}

.ranking-number {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-info strong {
  display: block;
  color: white;
  font-size: 18px;
}

.ranking-info small {
  color: var(--muted);
}

.ranking-score {
  justify-self: end;
  min-width: 54px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-weight: 900;
  text-align: center;
}

.prose-page {
  margin-top: 56px;
  margin-bottom: 56px;
  padding: clamp(24px, 4vw, 42px);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  color: white;
  font-weight: 900;
  font-size: 18px;
}

.site-footer p {
  margin: 14px 0 0;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

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

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

.site-footer a {
  color: var(--muted-strong);
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

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

  .mobile-menu-button {
    display: block;
  }

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

  .header-search {
    min-width: 220px;
  }

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

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

@media (max-width: 900px) {
  .header-inner {
    height: 68px;
  }

  .brand-text small,
  .header-search {
    display: none;
  }

  .hero-content,
  .hero-carousel {
    min-height: 76vh;
    height: 76vh;
  }

  .hero-content {
    padding-bottom: 96px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-band {
    grid-template-columns: 1fr;
    margin-top: -36px;
  }

  .hero-search {
    flex-direction: column;
  }

  .movie-grid,
  .category-overview-grid,
  .footer-grid,
  .detail-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .category-cover-stack {
    min-height: 220px;
  }

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

  .ranking-score {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-nav {
    width: calc(100% - 22px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-text strong {
    font-size: 16px;
  }

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

  .hero-meta span {
    font-size: 12px;
  }

  .home-search-band,
  .surface-section,
  .filter-panel,
  .detail-content,
  .info-card {
    padding: 18px;
    border-radius: 18px;
  }

  .compact-grid,
  .ranking-preview-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

  .player-start-icon {
    width: 60px;
    height: 60px;
  }

  .player-start strong {
    font-size: 20px;
  }
}
