:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eff6ff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cyan: #06b6d4;
  --accent: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --header-height: 76px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.visually-hidden {
  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: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

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

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.logo-text {
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #e0f2fe;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: rgba(255, 255, 255, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  height: min(760px, 82vh);
  min-height: 620px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.18)), var(--hero-bg);
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.22), transparent 30%), linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.82));
}

.hero-content {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  padding-top: var(--header-height);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  background: #dbeafe;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-copy .eyebrow {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-one-line,
.detail-copy p {
  max-width: 700px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.detail-badges span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span,
.detail-badges span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tag-row span,
.detail-tags a {
  color: var(--primary);
  background: #eff6ff;
}

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

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

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.86);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

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

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 28px 0;
}

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

.section-heading h2,
.page-hero h1,
.content-card h2,
.side-card h2,
.prose-card h1,
.sitemap-section h2 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.section-heading a,
.text-link {
  color: var(--primary);
  font-weight: 800;
}

.center-heading {
  display: block;
  text-align: center;
}

.inline-heading {
  display: block;
  margin-bottom: 22px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -56px;
  position: relative;
  z-index: 5;
}

.stats-strip div {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.stats-strip strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 700;
}

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

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

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

.category-movie-grid {
  margin-top: 26px;
}

.movie-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-card-large {
  grid-column: span 2;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover::before,
.overview-card:hover .overview-image span {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.76));
}

.poster-type,
.poster-play {
  position: absolute;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.88);
  backdrop-filter: blur(10px);
}

.poster-type {
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 800;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.movie-card h3,
.ranking-card h2 {
  margin: 8px 0 6px;
  line-height: 1.25;
  font-size: 1.08rem;
}

.movie-card p,
.ranking-card p,
.overview-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

.category-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  background: #0f172a;
}

.category-card::before,
.category-card-bg {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.84)), var(--category-bg);
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.category-card strong,
.category-card small {
  position: relative;
  z-index: 1;
}

.category-card strong {
  font-size: 1.2rem;
}

.category-card small {
  color: rgba(255, 255, 255, 0.78);
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
}

.ranking-panel,
.prose-card,
.content-card,
.side-card,
.search-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

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

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-score {
  color: var(--accent);
  font-weight: 900;
  text-align: right;
}

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

.cta-card {
  border-radius: var(--radius-xl);
  padding: 44px;
  color: #ffffff;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.25), transparent 22%), linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.cta-card p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
}

.page-main {
  padding-top: var(--header-height);
}

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

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

.small-hero p,
.category-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.category-hero {
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62)), var(--page-hero-bg);
  background-size: cover;
  background-position: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

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

.filter-panel,
.site-search-form,
.search-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-panel {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select,
.site-search-form input,
.search-tools select {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: #f8fafc;
}

.filter-panel input,
.site-search-form input {
  flex: 1;
  min-width: 0;
}

.filter-panel output,
.search-tools output {
  color: var(--muted);
  font-weight: 800;
  min-width: 90px;
  text-align: right;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.overview-image {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.overview-image span {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.6)), var(--overview-bg);
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.overview-body {
  padding: 22px;
}

.overview-body h2 {
  margin: 0 0 8px;
}

.overview-samples a {
  color: var(--primary);
  font-weight: 800;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

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

.ranking-poster span {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-weight: 900;
}

.search-shell {
  padding: 22px;
}

.search-tools {
  margin-top: 14px;
}

.search-results {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.search-result-card img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.search-result-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

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

.detail-hero {
  padding: 72px 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72)), var(--detail-bg);
  background-size: cover;
  background-position: center;
}

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

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-cover span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  font-weight: 900;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.78));
  cursor: pointer;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 1.6rem;
}

.player-overlay strong {
  font-size: 1.3rem;
}

.player-overlay small {
  color: rgba(255, 255, 255, 0.78);
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.content-card,
.side-card {
  padding: 24px;
  margin-top: 22px;
}

.content-card h2,
.side-card h2 {
  font-size: 1.45rem;
}

.content-card p {
  color: #334155;
  margin: 12px 0 0;
}

.side-card:first-child {
  margin-top: 0;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
}

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
}

.related-section {
  padding-top: 0;
}

.prose-card {
  padding: 34px;
  max-width: 860px;
}

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

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

.sitemap-section {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.sitemap-section h2 {
  font-size: 1.4rem;
}

.sitemap-section ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 9px;
  max-height: 520px;
  overflow: auto;
}

.sitemap-section li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.sitemap-section a {
  color: var(--primary);
  font-weight: 800;
}

.sitemap-section span {
  color: var(--muted);
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
}

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

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

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

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 28px;
  border-top: 1px solid var(--border);
}

.back-to-top {
  border: 0;
  color: #ffffff;
  background: var(--primary);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

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

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  .desktop-nav {
    display: none;
  }

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

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

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

  .hero-content {
    padding: 110px 0 86px;
  }

  .hero-poster {
    max-width: 260px;
    transform: none;
  }

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

  .movie-card-large {
    grid-column: span 1;
  }

  .filter-panel,
  .site-search-form,
  .search-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-panel output,
  .search-tools output {
    min-width: 0;
    text-align: left;
  }
}

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

  .hero h1,
  .detail-copy h1 {
    font-size: 2.5rem;
  }

  .stats-strip,
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .overview-grid,
  .sitemap-grid,
  .footer-grid,
  .ranking-card,
  .search-result-card {
    grid-template-columns: 1fr;
  }

  .ranking-card,
  .search-result-card {
    gap: 12px;
  }

  .ranking-poster,
  .search-result-card img {
    width: 100%;
  }

  .footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
}
