:root {
  color-scheme: light;
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --secondary-50: #f0fdfa;
  --secondary-100: #ccfbf1;
  --secondary-600: #0d9488;
  --accent-50: #fff7ed;
  --accent-600: #ea580c;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --white: #ffffff;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-card: 0 18px 48px rgba(28, 25, 23, 0.11);
  --shadow-soft: 0 12px 32px rgba(2, 132, 199, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--neutral-900);
  background: linear-gradient(180deg, var(--neutral-50) 0%, var(--white) 55%, var(--neutral-50) 100%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(231, 229, 228, 0.75);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: var(--shadow-soft);
}

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

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-menu-link:hover,
.mobile-menu-link.is-active {
  color: var(--primary-700);
  background: var(--primary-50);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-button {
  border: 0;
  background: transparent;
}

.nav-dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 220px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

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

.nav-dropdown-panel a {
  display: block;
  padding: 9px 12px;
  color: var(--neutral-700);
  border-radius: 12px;
}

.nav-dropdown-panel a:hover {
  color: var(--primary-700);
  background: var(--primary-50);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(340px, 32vw);
  padding: 4px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
}

.header-search input,
.mobile-search input,
.home-search-panel input,
.inline-filter input {
  width: 100%;
  min-width: 0;
  color: var(--neutral-900);
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input {
  padding: 0 12px;
}

.header-search button,
.mobile-search button,
.home-search-panel button,
.inline-filter button,
.primary-button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: var(--shadow-soft);
}

.header-search button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: var(--neutral-100);
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--neutral-900);
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--neutral-200);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

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

.mobile-menu-link {
  display: flex;
  margin-bottom: 6px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mobile-search input {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--neutral-100);
}

.mobile-search button {
  padding: 0 16px;
  border-radius: 14px;
}

.hero {
  position: relative;
  height: min(80vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: var(--neutral-900);
}

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

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

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

.hero-bg {
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  background:
    radial-gradient(circle at 78% 22%, rgba(14, 165, 233, 0.28), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 0 84px;
  color: var(--white);
}

.hero-badge,
.section-kicker,
.movie-category,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  font-weight: 700;
}

.hero-badge {
  margin-bottom: 18px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--primary-600);
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.6;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow-left {
  left: 24px;
}

.hero-arrow-right {
  right: 24px;
}

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

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

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

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.home-shell {
  padding: 56px 0 88px;
}

.page-with-header {
  padding: 42px 0 88px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}

.stats-strip div,
.home-search-panel,
.content-section,
.rank-section,
.page-hero-small,
.overview-card,
.detail-info-card,
.detail-text-card,
.player-card {
  border: 1px solid rgba(231, 229, 228, 0.88);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.stats-strip div {
  padding: 22px;
  border-radius: var(--radius-lg);
}

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

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--neutral-600);
}

.home-search-panel,
.page-hero-small {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 56px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(240, 249, 255, 0.92), rgba(240, 253, 250, 0.92)),
    var(--white);
}

.home-search-panel h2,
.page-hero-small h1,
.section-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.home-search-panel p,
.page-hero-small p,
.section-heading p {
  margin: 0;
  color: var(--neutral-600);
  line-height: 1.75;
}

.home-search-panel form,
.inline-filter {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  background: var(--white);
}

.home-search-panel input,
.inline-filter input {
  padding: 0 16px;
}

.home-search-panel button,
.inline-filter button {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
}

.content-section,
.rank-section {
  margin-bottom: 56px;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.feature-band {
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

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

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

.section-kicker {
  padding: 7px 12px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-size: 13px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow-card);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--neutral-900);
}

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

.movie-card:hover .movie-poster img,
.category-card:hover img,
.overview-cover:hover img {
  transform: scale(1.06);
}

.poster-year,
.poster-play,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
}

.poster-year {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
}

.poster-play {
  left: 50%;
  top: 50%;
  padding: 10px 16px;
  background: rgba(2, 132, 199, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: all 0.2s ease;
}

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

.rank-badge {
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent-600), var(--primary-600));
}

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

.movie-category {
  margin-bottom: 10px;
  padding: 5px 9px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-size: 12px;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

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

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

.movie-meta,
.detail-meta,
.movie-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--neutral-500);
  font-size: 13px;
}

.movie-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: var(--neutral-400);
}

.movie-score {
  margin-left: auto;
  color: var(--accent-600);
  font-weight: 800;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.movie-poster-wide {
  height: 100%;
  aspect-ratio: auto;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--neutral-900);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18));
}

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card span,
.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  margin-top: 6px;
}

.category-card em {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.6;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 48px 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  background: var(--white);
}

.ranking-number {
  color: var(--primary-700);
  font-size: 24px;
  font-weight: 900;
}

.ranking-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: var(--neutral-200);
}

.ranking-thumb img {
  height: 100%;
  object-fit: cover;
}

.ranking-info a {
  font-weight: 900;
}

.ranking-info p {
  display: -webkit-box;
  margin: 4px 0 6px;
  overflow: hidden;
  color: var(--neutral-600);
  line-height: 1.5;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.ranking-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--neutral-500);
  font-size: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--neutral-500);
}

.breadcrumb a {
  color: var(--primary-700);
  font-weight: 700;
}

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

.category-hero,
.search-hero,
.rank-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(13, 148, 136, 0.18), transparent 34%),
    linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.inline-filter {
  max-width: 720px;
  margin-top: 24px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.filter-chip {
  padding: 9px 14px;
  color: var(--neutral-700);
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  background: var(--white);
  transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  border-color: var(--primary-600);
  background: var(--primary-600);
}

.empty-state {
  padding: 24px;
  color: var(--neutral-600);
  text-align: center;
  border: 1px dashed var(--neutral-200);
  border-radius: var(--radius-lg);
  background: var(--neutral-50);
}

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

.overview-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.overview-cover {
  overflow: hidden;
  border-radius: 20px;
  background: var(--neutral-900);
}

.overview-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.overview-card h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.overview-card p {
  color: var(--neutral-600);
  line-height: 1.75;
}

.overview-card ul {
  padding: 0;
  margin: 16px 0;
  list-style: none;
}

.overview-card li {
  margin: 8px 0;
  color: var(--neutral-700);
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  border: 0;
  background:
    radial-gradient(circle at center, rgba(2, 132, 199, 0.36), rgba(0, 0, 0, 0.7)),
    rgba(0, 0, 0, 0.55);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: var(--shadow-soft);
  font-size: 32px;
}

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

.player-overlay em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  color: var(--white);
  text-align: center;
}

.detail-info-card,
.detail-text-card {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-tags a {
  padding: 7px 11px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-size: 13px;
}

.detail-info-card h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.detail-one-line {
  margin: 20px 0 0;
  color: var(--neutral-700);
  font-size: 18px;
  line-height: 1.75;
}

.detail-text-card h2,
.detail-aside h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-text-card p {
  margin: 0;
  color: var(--neutral-700);
  font-size: 17px;
  line-height: 1.9;
}

.review-card {
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.88), rgba(240, 253, 250, 0.88));
}

.aside-sticky {
  position: sticky;
  top: 96px;
}

.aside-card-list {
  display: grid;
  gap: 14px;
}

.aside-card-list .movie-card {
  display: grid;
  grid-template-columns: 130px 1fr;
}

.aside-card-list .movie-poster {
  height: 100%;
  aspect-ratio: auto;
}

.aside-card-list .movie-card-body {
  padding: 12px;
}

.aside-card-list .movie-card h3 {
  font-size: 15px;
}

.aside-card-list .movie-card p,
.aside-card-list .poster-play {
  display: none;
}

.ranking-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.ranking-controls select {
  padding: 10px 14px;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: var(--white);
}

.site-footer {
  color: var(--neutral-300);
  background: linear-gradient(135deg, var(--neutral-900), var(--neutral-800));
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: var(--white);
  font-size: 20px;
}

.footer-about p {
  max-width: 520px;
  color: var(--neutral-400);
  line-height: 1.75;
}

.footer-column h3 {
  margin: 0 0 14px;
  color: var(--white);
}

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

.footer-column li {
  margin: 9px 0;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 18px;
  color: var(--neutral-500);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

  .aside-sticky {
    position: static;
  }
}

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

  .site-header-inner {
    justify-content: space-between;
  }

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

  .hero {
    min-height: 520px;
  }

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

  .hero-arrow {
    display: none;
  }

  .stats-strip,
  .home-search-panel,
  .ranking-list-home,
  .footer-inner,
  .overview-card {
    grid-template-columns: 1fr;
  }

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

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .overview-cover {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

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

  .hero {
    min-height: 500px;
  }

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

  .home-shell,
  .page-with-header {
    padding-bottom: 58px;
  }

  .content-section,
  .rank-section,
  .page-hero-small,
  .home-search-panel,
  .detail-info-card,
  .detail-text-card {
    padding: 20px;
  }

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

  .inline-filter,
  .home-search-panel form {
    flex-direction: column;
    border-radius: 18px;
  }

  .inline-filter input,
  .home-search-panel input {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--neutral-100);
  }

  .ranking-item {
    grid-template-columns: 38px 72px 1fr;
  }

  .aside-card-list .movie-card {
    grid-template-columns: 110px 1fr;
  }
}
