:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(30, 41, 59, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.9);
  --border: rgba(245, 158, 11, 0.16);
  --border-strong: rgba(245, 158, 11, 0.34);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --muted-strong: #d1d5db;
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-dark: #d97706;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 32rem),
    linear-gradient(180deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark));
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.26);
  font-size: 14px;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--accent-bright);
  background: rgba(245, 158, 11, 0.1);
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search {
  margin-left: auto;
  width: min(360px, 34vw);
}

.header-search input,
.mobile-search input,
.hero-search input,
.local-filter input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  outline: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.76);
  color: var(--text);
  padding: 11px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.local-filter input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
  background: rgba(15, 23, 42, 0.94);
}

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #0f172a;
  padding: 11px 16px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.78);
}

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

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-track,
.hero-slide,
.hero-backdrop {
  position: absolute;
  inset: 0;
}

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

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

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

.hero-backdrop::before,
.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-backdrop::before {
  background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.08) 100%);
}

.hero-backdrop::after {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.46) 48%, rgba(15, 23, 42, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

.hero-tag,
.detail-badges a,
.detail-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--accent-bright);
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--muted-strong);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.24);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.52);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  color: var(--accent-bright);
  transform: translateY(-1px);
}

.btn-primary.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.page-sections,
.content-section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.page-sections {
  display: grid;
  gap: 28px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  color: var(--text);
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.section-more:hover {
  color: #fde68a;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: rgba(30, 41, 59, 0.92);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
}

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

.card-poster img,
.featured-cover img,
.poster-panel img,
.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .card-poster img,
.side-card:hover .side-poster img,
.featured-layout:hover .featured-cover img {
  transform: scale(1.08);
}

.card-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.06) 62%);
  opacity: 0.84;
}

.card-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.88);
  color: #0f172a;
  font-size: 20px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-year {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.72);
  color: #e5e7eb;
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  background: var(--accent);
  color: #0f172a;
}

.card-body {
  padding: 18px;
}

.card-kicker {
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  font-size: 12px;
}

.featured-section {
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 24rem),
    linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(30, 41, 59, 0.58));
}

.featured-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px;
  align-items: center;
}

.featured-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #020617;
}

.featured-copy h2 {
  margin: 18px 0 14px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.08;
}

.featured-copy p,
.category-card p,
.category-overview-card p {
  color: var(--muted-strong);
  line-height: 1.8;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 24px;
}

.tag-cloud span {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  color: var(--muted-strong);
  padding: 7px 12px;
  font-size: 13px;
}

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

.category-card,
.category-overview-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.62);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: rgba(30, 41, 59, 0.86);
}

.category-main-link {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--text);
}

.category-main-link span,
.category-overview-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
}

.category-main-link strong,
.category-overview-card span {
  color: var(--accent-bright);
}

.category-samples,
.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a,
.overview-links a {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: var(--muted-strong);
  padding: 7px 11px;
  font-size: 13px;
}

.category-samples a:hover,
.overview-links a:hover {
  color: var(--accent-bright);
}

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

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

.side-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.62);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.side-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(30, 41, 59, 0.9);
}

.side-card a {
  display: grid;
  grid-template-columns: 154px 1fr;
  gap: 16px;
  min-height: 118px;
}

.side-poster {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.side-rank {
  position: absolute;
  z-index: 2;
  left: 8px;
  top: 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #0f172a;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.side-body {
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-body div {
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9));
  padding: 82px 0 58px;
}

.small-hero {
  padding-top: 70px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.8;
  font-size: 18px;
}

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

.breadcrumbs a:hover {
  color: var(--accent-bright);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.66);
  color: var(--muted-strong);
  padding: 9px 13px;
}

.category-chip:hover,
.category-chip.is-current {
  border-color: var(--border-strong);
  color: var(--accent-bright);
  background: rgba(245, 158, 11, 0.12);
}

.local-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(380px, 100%);
  color: var(--muted-strong);
}

.wide-filter {
  width: min(620px, 100%);
}

.empty-state {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.62);
  color: var(--muted-strong);
  padding: 30px;
  text-align: center;
}

.hero-search {
  width: min(620px, 100%);
  margin-top: 26px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 36px;
}

.detail-main {
  min-width: 0;
}

.player-section,
.detail-card,
.poster-panel,
.side-related {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.player-section {
  overflow: hidden;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.28);
  font-size: 28px;
}

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

.detail-card h1 {
  margin: 18px 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.detail-card h2 {
  margin: 28px 0 12px;
  color: var(--text);
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.9;
  font-size: 16px;
}

.lead-text {
  font-size: 18px;
  color: #e5e7eb;
  font-weight: 600;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta {
  margin: 0 0 14px;
}

.review-block {
  margin-top: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.48);
  padding: 22px;
}

.detail-tags {
  margin-bottom: 0;
}

.detail-side {
  min-width: 0;
}

.side-sticky {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.poster-panel {
  padding: 18px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: #020617;
  margin-bottom: 16px;
}

.side-related {
  padding: 18px;
}

.side-related h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

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

.side-related-list .side-card a {
  grid-template-columns: 102px 1fr;
  min-height: 88px;
}

.side-related-list .side-body h3 {
  font-size: 15px;
}

.side-related-list .side-body p {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  margin-top: 34px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--accent-bright);
}

.footer-inner p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

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

  .side-sticky {
    position: static;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-carousel {
    height: 72vh;
    min-height: 520px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid-3,
  .movie-grid-4,
  .category-grid,
  .category-overview-grid,
  .compact-ranking,
  .featured-layout {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .local-filter {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    min-height: 64px;
  }

  .site-logo {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-sections,
  .content-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .movie-grid-3,
  .movie-grid-4,
  .category-grid,
  .category-overview-grid,
  .compact-ranking,
  .featured-layout {
    grid-template-columns: 1fr;
  }

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

  .featured-section,
  .detail-card {
    padding: 20px;
    border-radius: 20px;
  }

  .side-card a {
    grid-template-columns: 120px 1fr;
  }

  .hero-search,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-layout {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }
}
