:root {
  --night-950: #050509;
  --night-900: #0b0f19;
  --night-850: #101522;
  --night-800: #151b2b;
  --night-700: #242c3f;
  --night-600: #343d55;
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #b45309;
  --red: #ef4444;
  --green: #10b981;
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.32);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 12%, rgba(239, 68, 68, 0.12), transparent 30rem),
    linear-gradient(180deg, #050509 0%, #0b0f19 44%, #050509 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 9, 0.86);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(22px);
}

.nav-shell {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #fef3c7, #f59e0b 45%, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #111827;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.28);
}

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

.nav-link,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--text-soft);
  border-radius: 999px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-toggle:hover {
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.10);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 44px;
  left: 0;
  width: 180px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--text-soft);
  border-radius: 12px;
}

.dropdown-menu a:hover {
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.10);
}

.nav-search,
.mobile-search,
.large-search {
  display: flex;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input,
.mobile-search input {
  width: 190px;
  padding: 10px 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.nav-search button,
.mobile-search button,
.large-search button {
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(5, 5, 9, 0.96);
}

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

.mobile-panel-inner {
  display: grid;
  gap: 10px;
  padding: 16px 0 20px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #050509;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.04);
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 9, 0.96) 0%, rgba(5, 5, 9, 0.72) 43%, rgba(5, 5, 9, 0.25) 100%),
    linear-gradient(0deg, #050509 0%, rgba(5, 5, 9, 0.2) 44%, rgba(5, 5, 9, 0.55) 100%);
}

.hero-content {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 48px;
  align-items: center;
  padding: 80px 0 74px;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.85;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-light);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.btn-primary,
.btn-ghost,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.btn-primary {
  min-height: 48px;
  padding: 0 24px;
  color: #111827;
  background: linear-gradient(135deg, #fef3c7, var(--amber));
  box-shadow: 0 16px 42px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
  min-height: 48px;
  padding: 0 24px;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.text-link {
  color: var(--amber-light);
}

.hero-poster {
  position: relative;
  display: block;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 13px 16px;
  color: var(--text-main);
  background: rgba(5, 5, 9, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  font-weight: 900;
}

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

.hero-controls button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 28px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--amber-light);
}

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

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

.section-head h2,
.panel-head h2,
.info-box h2,
.detail-copy h2,
.site-footer h2 {
  margin: 8px 0 0;
  color: var(--text-main);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 950;
}

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

.category-tile,
.category-overview-card,
.ranking-panel,
.info-box,
.page-hero,
.ranking-hero,
.filter-bar {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(21, 27, 43, 0.92), rgba(15, 23, 42, 0.72));
  box-shadow: var(--shadow-card);
}

.category-tile {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -42px;
  top: -42px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 70%);
}

.category-tile span {
  color: var(--amber-light);
  font-size: 20px;
  font-weight: 950;
}

.category-tile strong,
.category-tile em {
  position: relative;
  color: var(--text-soft);
  font-style: normal;
  font-size: 14px;
  line-height: 1.65;
}

.category-tile em {
  color: var(--text-muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.12), 0 16px 48px rgba(0, 0, 0, 0.42);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.95;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  opacity: 0.88;
}

.movie-badge,
.rank-num,
.play-icon {
  position: absolute;
  z-index: 2;
}

.movie-badge {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  color: #111827;
  background: linear-gradient(135deg, #fef3c7, var(--amber));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.rank-num {
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, #fef3c7, #ef4444);
  font-weight: 950;
}

.play-icon {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #111827;
  background: rgba(245, 158, 11, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

.movie-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.movie-one-line {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.movie-meta {
  margin: 8px 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 60px;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.chip {
  min-height: 36px;
  font-size: 14px;
}

.chip.active {
  color: #111827;
  background: linear-gradient(135deg, #fef3c7, var(--amber));
}

.ranking-panel {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 22px;
  border-radius: var(--radius-md);
}

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

.rank-link {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: var(--text-soft);
  background: rgba(5, 5, 9, 0.30);
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 16px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rank-link:hover {
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.26);
}

.rank-link img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-link strong,
.rank-link em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-link strong {
  color: var(--text-main);
  white-space: nowrap;
  font-size: 15px;
}

.rank-link em {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.side-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #111827;
  background: var(--amber-light);
  font-weight: 950;
}

.page-main {
  padding: 34px 0 70px;
}

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

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

.page-hero,
.ranking-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-hero {
  padding: clamp(28px, 5vw, 54px);
  margin-bottom: 28px;
}

.page-hero h1,
.ranking-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.page-hero p,
.ranking-hero p {
  max-width: 860px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.category-hero .chip-row {
  margin-top: 22px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 22px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 26px;
}

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

.overview-cover img {
  width: 100%;
  aspect-ratio: 2 / 2.7;
  object-fit: cover;
  border-radius: 14px;
}

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

.overview-body p {
  color: var(--text-soft);
  line-height: 1.7;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.overview-links a {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}

.ranking-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 26px;
  margin-bottom: 30px;
}

.ranking-hero img {
  width: 100%;
  aspect-ratio: 2 / 2.8;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

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

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

.large-search {
  max-width: 720px;
  margin-top: 28px;
}

.large-search input {
  flex: 1;
  min-height: 54px;
  padding: 0 20px;
}

.large-search button {
  min-width: 112px;
}

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

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

.watch-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-strong);
}

.watch-player video,
.watch-cover,
.watch-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.watch-player video {
  z-index: 1;
  object-fit: contain;
  background: #000;
}

.watch-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--text-main);
  background: #000;
}

.watch-cover img {
  object-fit: cover;
  opacity: 0.58;
  filter: blur(1px) saturate(1.08);
}

.big-play {
  position: relative;
  z-index: 3;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fef3c7, var(--amber));
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.36);
}

.watch-player.is-playing .watch-cover {
  display: none;
}

.detail-copy {
  margin-top: 26px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.lead-text,
.detail-copy p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.9;
}

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

.detail-copy h2 {
  margin-top: 30px;
  font-size: 28px;
}

.detail-side {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 2.9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.info-box {
  padding: 20px;
  border-radius: 24px;
}

.info-box h2 {
  font-size: 24px;
  margin-bottom: 18px;
}

.info-box p {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text-soft);
}

.info-box p:last-child {
  border-bottom: 0;
}

.info-box strong {
  color: var(--text-main);
}

.info-box a {
  color: var(--amber-light);
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.prev-next a {
  padding: 14px 16px;
  color: var(--text-soft);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(5, 5, 9, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  gap: 34px;
  padding: 44px 0 30px;
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 560px;
  color: var(--text-muted);
  line-height: 1.8;
}

.site-footer h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--amber-light);
}

.copyright {
  padding: 18px 0 28px;
  color: var(--text-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

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

  .split-section,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .detail-side {
    position: static;
  }

  .detail-side {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
  }

  .hero-poster {
    width: min(280px, 70vw);
    transform: none;
  }

  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .two-column,
  .ranking-hero,
  .category-overview-card,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .overview-cover {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, 1240px);
  }

  .nav-shell {
    height: 66px;
  }

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

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 660px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 16px;
  }

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

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

  .movie-title {
    min-height: 40px;
    font-size: 14px;
  }

  .movie-one-line {
    min-height: 54px;
    font-size: 12px;
  }

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

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

  .page-main {
    padding-top: 22px;
  }

  .watch-player,
  .detail-copy,
  .page-hero,
  .ranking-hero {
    border-radius: 20px;
  }

  .big-play {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

  .prev-next {
    grid-template-columns: 1fr;
  }
}
