:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #16a34a;
  --text: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --border: #e5e7eb;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 42%, #eff6ff 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  width: min(1200px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  white-space: nowrap;
}

.site-logo span:last-child {
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.25);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  color: #374151;
}

.desktop-nav > a,
.nav-category-links a {
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-category-links a:hover {
  color: var(--rose);
}

.nav-category-links {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
  font-size: 14px;
}

.nav-search {
  display: flex;
  align-items: center;
  width: 240px;
  position: relative;
}

.nav-search input,
.mobile-search input,
.filter-search input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-search input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18);
}

.nav-search button {
  position: absolute;
  right: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 24px;
  color: #374151;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--border);
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.mobile-panel a {
  padding: 8px 0;
  color: #374151;
  font-weight: 600;
}

.mobile-panel a.is-active,
.mobile-panel a:hover {
  color: var(--rose);
}

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

.mobile-search input {
  padding-right: 16px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.hero-carousel {
  min-height: 560px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, var(--rose), var(--pink), var(--purple));
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) scale(1.05);
  opacity: 0.28;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(190, 18, 60, 0.92), rgba(236, 72, 153, 0.82), rgba(88, 28, 135, 0.82));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
  align-items: center;
  gap: 52px;
  padding: 70px 0;
}

.hero-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
}

.hero-kicker {
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pill {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 760px;
  margin: 0;
  color: #ffe4e6;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-light {
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(255, 255, 255, 0.22);
}

.btn-outline {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.btn-outline:hover {
  color: var(--rose);
  background: #ffffff;
}

.btn-ghost {
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.12);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.28);
}

.btn-soft {
  color: var(--rose);
  background: #fff1f2;
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.38);
  transform: rotate(2deg);
}

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

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

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

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

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

.hero-dots button.is-active {
  width: 30px;
  background: #ffffff;
}

.category-strip {
  position: relative;
  z-index: 4;
  margin-top: -34px;
}

.category-strip-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-strip-inner strong {
  color: var(--rose);
  white-space: nowrap;
}

.category-strip-inner div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-strip-inner a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-strip-inner a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.content-section,
.page-main {
  padding: 64px 0;
}

.feature-panel {
  position: relative;
  z-index: 3;
  margin-top: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 36px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.feature-copy h2,
.section-heading h2,
.center-heading h2,
.blue-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.feature-copy p,
.center-heading p,
.page-hero p,
.detail-one-line,
.detail-content p,
.section-heading p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.feature-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

.feature-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

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

.section-heading > div:first-child {
  min-width: 0;
}

.section-heading h2 {
  display: inline-block;
  margin: 0 0 6px 10px;
  font-size: 34px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.section-more {
  color: var(--rose);
  font-weight: 800;
  white-space: nowrap;
}

.section-more span {
  margin-left: 4px;
}

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.14);
}

.movie-cover {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #e0f2fe);
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  font-size: 13px;
  font-weight: 800;
}

.rank-number {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

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

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

.movie-card:hover h3 {
  color: var(--rose);
}

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

.movie-card-eyebrow {
  margin-bottom: 8px;
  color: var(--rose);
  font-weight: 800;
  font-size: 13px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card-compact {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.movie-card-compact:hover {
  box-shadow: none;
}

.movie-card-compact .movie-cover {
  height: 210px;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.movie-card-compact h3 {
  padding: 0 2px;
  margin-bottom: 8px;
  font-size: 16px;
}

.movie-card-compact .movie-meta {
  padding: 0 2px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  min-height: 150px;
}

.movie-card-horizontal .movie-cover {
  height: 100%;
  min-height: 150px;
}

.movie-card-horizontal .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blue-feature {
  background: linear-gradient(100deg, var(--blue), var(--cyan));
}

.blue-heading,
.center-heading {
  text-align: center;
  margin-bottom: 34px;
}

.blue-heading {
  color: #ffffff;
}

.blue-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 30px;
}

.blue-heading h2,
.blue-heading p {
  color: #ffffff;
}

.blue-heading p {
  margin: 0;
  color: #dbeafe;
  font-size: 20px;
}

.two-col-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 32px;
}

.movie-list-vertical,
.ranking-list {
  display: grid;
  gap: 18px;
}

.ranking-box {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-box .movie-card-horizontal {
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 104px;
  box-shadow: none;
  border: 1px solid var(--border);
}

.ranking-box .movie-cover {
  min-height: 104px;
}

.ranking-box .movie-card-body {
  padding: 12px;
}

.ranking-box .movie-card h3 {
  font-size: 15px;
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ranking-head h2 {
  margin: 0;
}

.ranking-head a {
  color: var(--rose);
  font-weight: 800;
}

.soft-section {
  background: #f9fafb;
}

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

.category-card {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

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

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.82));
}

.category-card div {
  position: relative;
  z-index: 2;
  padding: 22px;
}

.category-card h3,
.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.6;
}

.category-card-large {
  min-height: 260px;
}

.category-card-large span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.page-main {
  min-height: 70vh;
}

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

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

.page-hero {
  margin-bottom: 34px;
  padding: 38px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 820px;
  margin: 0;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-search {
  margin-bottom: 16px;
}

.filter-search input {
  border-radius: 18px;
  padding: 14px 18px;
}

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

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
  cursor: pointer;
}

.filter-buttons button.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.2);
}

[data-movie-card].is-hidden {
  display: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-cover {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
}

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

.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
  color: #374151;
  font-weight: 800;
}

.detail-meta span {
  padding: 9px 13px;
  border-radius: 14px;
  background: #f3f4f6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tag-row span {
  color: var(--rose);
  background: #fff1f2;
  border-color: #fecdd3;
  font-weight: 700;
}

.player-section,
.detail-content,
.related-section {
  margin-top: 36px;
}

.compact-heading {
  margin-bottom: 18px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.26);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: contain;
  cursor: pointer;
}

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.35);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-play span {
  display: inline-block;
  margin-left: 6px;
  font-size: 38px;
}

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

.detail-content {
  padding: 30px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-content p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(160px, 0.6fr) minmax(260px, 1fr);
  gap: 36px;
  padding: 44px 0;
}

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

.footer-brand p {
  max-width: 430px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h3 {
  margin: 0 0 6px;
  color: #ffffff;
}

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #fb7185;
}

.footer-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-cats h3 {
  grid-column: 1 / -1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-search {
    width: min(280px, 36vw);
  }

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

@media (max-width: 900px) {
  .hero-inner,
  .feature-panel,
  .two-col-section,
  .detail-hero,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 30px;
    padding: 52px 0 88px;
  }

  .hero-poster {
    max-width: 360px;
    margin: 0 auto;
  }

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

  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .shell,
  .nav-shell,
  .mobile-panel,
  .category-strip-inner,
  .footer-shell {
    width: min(100% - 24px, 1200px);
  }

  .nav-search {
    display: none;
  }

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

  .hero-carousel,
  .hero-inner {
    min-height: 620px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 42px;
  }

  .category-strip-inner,
  .section-heading,
  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .category-strip-inner div {
    max-height: 110px;
    overflow: auto;
  }

  .feature-panel,
  .page-hero,
  .detail-hero,
  .detail-content,
  .filter-panel,
  .ranking-box {
    padding: 22px;
    border-radius: 22px;
  }

  .movie-grid-3,
  .movie-grid-4,
  .movie-grid-6,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .movie-card-horizontal .movie-cover {
    min-height: 130px;
  }

  .movie-cover {
    height: 230px;
  }

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