:root {
  color-scheme: dark;
  --night-950: #0a1929;
  --night-900: #102a43;
  --night-850: #173653;
  --night-800: #243b53;
  --night-700: #334e68;
  --night-600: #486581;
  --harbor-500: #1a9995;
  --harbor-400: #26b3af;
  --harbor-300: #4dc4c1;
  --amber: #ffc107;
  --text: #ffffff;
  --muted: #b7c7d6;
  --soft: #dbe7f1;
  --line: rgba(255, 255, 255, 0.11);
  --panel: rgba(36, 59, 83, 0.58);
  --panel-strong: rgba(16, 42, 67, 0.9);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(26, 153, 149, 0.22), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(255, 193, 7, 0.12), transparent 24rem),
    linear-gradient(180deg, var(--night-950), #071522 48%, var(--night-950));
  color: var(--text);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 25, 41, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 28px));
  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.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--harbor-400), var(--harbor-500) 55%, var(--amber));
  box-shadow: 0 10px 30px rgba(26, 153, 149, 0.34);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link,
.dropdown-toggle {
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  gap: 6px;
  min-width: 168px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 42, 67, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.dropdown-panel a {
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
}

.dropdown-panel a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(77, 196, 193, 0.26);
  border-radius: 999px;
  background: rgba(36, 59, 83, 0.52);
}

.top-search input,
.mobile-search input,
.large-search input,
.filter-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.top-search input {
  width: 180px;
  padding: 10px 12px 10px 16px;
}

.top-search button,
.mobile-search button,
.large-search button {
  border: 0;
  color: #ffffff;
  background: var(--harbor-500);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button {
  padding: 10px 16px;
}

.top-search button:hover,
.mobile-search button:hover,
.large-search button:hover {
  background: var(--harbor-400);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 42, 67, 0.96);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--night-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 25, 41, 0.96) 0%, rgba(10, 25, 41, 0.78) 38%, rgba(10, 25, 41, 0.28) 72%, rgba(10, 25, 41, 0.9) 100%),
    linear-gradient(0deg, var(--night-950) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 140px 0 180px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--harbor-300);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(77, 196, 193, 0.28);
  border-radius: 999px;
  color: var(--harbor-300);
  background: rgba(6, 49, 45, 0.36);
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.ghost-button,
.text-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-button {
  border: 1px solid transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--harbor-500), var(--harbor-400));
  box-shadow: 0 16px 40px rgba(26, 153, 149, 0.28);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.text-button,
.section-more {
  color: var(--harbor-300);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 52px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 25, 41, 0.46);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
}

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

.hero-dot {
  width: 36px;
  height: 8px;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.active {
  background: var(--harbor-400);
}

.hero-search-card {
  position: relative;
  z-index: 10;
  margin-top: -58px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(16, 42, 67, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.large-search {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(77, 196, 193, 0.28);
  border-radius: 999px;
  background: rgba(10, 25, 41, 0.66);
}

.large-search input {
  flex: 1;
  padding: 17px 22px;
  font-size: 17px;
}

.large-search button {
  min-width: 132px;
  padding: 0 24px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-links a {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.quick-links a:hover {
  color: #ffffff;
  border-color: rgba(77, 196, 193, 0.42);
}

.section-block {
  padding: 58px 0;
}

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

.section-head h2,
.rank-panel h2,
.story-card h2,
.info-card h2,
.category-overview-head h2 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
}

.section-head p,
.category-overview-head p,
.page-hero p,
.site-footer p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.category-tile img,
.category-tile-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: transform 0.38s ease;
}

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

.category-tile-shade {
  background: linear-gradient(180deg, transparent, rgba(10, 25, 41, 0.96));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 72px;
  font-size: 22px;
}

.category-tile em {
  bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(36, 59, 83, 0.42);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 196, 193, 0.36);
  background: rgba(36, 59, 83, 0.7);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--night-900), var(--night-700));
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease, filter 0.36s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 25, 41, 0.84));
}

.poster-meta,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-meta {
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  background: rgba(10, 25, 41, 0.72);
}

.rank-badge {
  left: 10px;
  top: 10px;
  color: #0a1929;
  background: var(--amber);
}

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

.movie-title {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-title:hover {
  color: var(--harbor-300);
}

.movie-meta {
  min-height: 34px;
  margin: 7px 0;
  color: #91a7ba;
  font-size: 12px;
  line-height: 1.45;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags {
  gap: 6px;
}

.movie-tags span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
}

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

.rank-panel,
.story-card,
.info-card,
.category-overview-card,
.filter-bar,
.player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.23);
  backdrop-filter: blur(14px);
}

.rank-panel {
  padding: 22px;
}

.full {
  width: 100%;
  margin-top: 18px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(3px);
  background: rgba(77, 196, 193, 0.12);
}

.list-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #0a1929;
  background: var(--amber);
  font-weight: 900;
  font-size: 12px;
}

.rank-row img {
  width: 54px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  color: #ffffff;
  font-size: 14px;
}

.rank-info em {
  margin-top: 4px;
  color: #91a7ba;
  font-size: 12px;
  font-style: normal;
}

.horizontal-scroller {
  display: grid;
  grid-auto-columns: minmax(190px, 1fr);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroller .movie-card {
  scroll-snap-align: start;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(77, 196, 193, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--night-900), var(--night-950));
}

.page-hero {
  padding: 78px 0 62px;
}

.small-hero {
  min-height: 310px;
  display: grid;
  align-items: center;
}

.category-hero {
  min-height: 360px;
  display: grid;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #91a7ba;
  font-size: 14px;
}

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

.category-overview-grid {
  grid-template-columns: 1fr;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
}

.category-overview-head {
  align-self: center;
}

.filter-bar {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-search input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(77, 196, 193, 0.24);
  border-radius: 16px;
  background: rgba(10, 25, 41, 0.62);
}

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

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  border-color: rgba(77, 196, 193, 0.42);
  background: rgba(26, 153, 149, 0.26);
}

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

.detail-hero {
  min-height: 620px;
}

.detail-bg,
.detail-bg-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(8px) brightness(0.6);
  transform: scale(1.05);
}

.detail-bg-shade {
  background:
    linear-gradient(90deg, rgba(10, 25, 41, 0.96), rgba(10, 25, 41, 0.68), rgba(10, 25, 41, 0.96)),
    linear-gradient(0deg, var(--night-950), transparent 44%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  min-height: 620px;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

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

.detail-intro h1 {
  font-size: clamp(38px, 5.6vw, 72px);
}

.detail-one-line {
  max-width: 760px;
  color: var(--soft);
  font-size: 20px;
  line-height: 1.8;
}

.detail-tags {
  margin: 22px 0 28px;
}

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

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

.player-card {
  padding: 12px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000000;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle, rgba(26, 153, 149, 0.24), transparent 24rem),
    rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.video-shell.is-playing .play-layer {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding-left: 5px;
  color: #0a1929;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.play-layer strong {
  font-size: 18px;
}

.story-card,
.info-card {
  padding: 24px;
}

.story-card h2,
.info-card h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.95;
}

.detail-side {
  display: grid;
  gap: 18px;
}

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

.info-card dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-card dt {
  color: #91a7ba;
}

.info-card dd {
  margin: 0;
  color: #ffffff;
}

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

.small-list .rank-row {
  grid-template-columns: 48px minmax(0, 1fr);
}

.small-list .list-rank {
  display: none;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: rgba(7, 21, 34, 0.78);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 220px minmax(0, 1fr);
  gap: 32px;
  padding: 44px 0;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

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

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

.footer-links {
  columns: 2;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #91a7ba;
  font-size: 13px;
}

.sticky-panel {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

@media (max-width: 1120px) {
  .category-grid,
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .split-section,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .sticky-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 860px) {
  .main-nav,
  .top-search {
    display: none;
  }

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

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

  .mobile-search input {
    flex: 1;
    padding: 12px 14px;
  }

  .mobile-search button {
    padding: 12px 16px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding: 118px 0 160px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 25, 41, 0.96), rgba(10, 25, 41, 0.78)),
      linear-gradient(0deg, var(--night-950), transparent 42%);
  }

  .section-head {
    display: grid;
  }

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

  .category-overview-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

  .detail-layout {
    gap: 24px;
    min-height: auto;
  }

  .detail-hero {
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero h1,
  .page-hero h1,
  .detail-intro h1 {
    font-size: 38px;
  }

  .hero-actions,
  .large-search {
    display: grid;
  }

  .large-search {
    border-radius: 20px;
  }

  .large-search button {
    min-height: 50px;
  }

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

  .hero-controls {
    bottom: 28px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  .category-tile {
    min-height: 190px;
  }

  .detail-main,
  .section-block {
    padding: 36px 0;
  }

  .story-card,
  .info-card,
  .rank-panel {
    padding: 18px;
  }
}
