:root {
  --pink: #ec4899;
  --pink-deep: #db2777;
  --purple: #7c3aed;
  --blue: #2563eb;
  --orange: #f97316;
  --yellow: #facc15;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 45px rgba(79, 70, 229, 0.13);
  --radius: 22px;
}

* {
  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:
    radial-gradient(circle at 12% 12%, rgba(236, 72, 153, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(124, 58, 237, 0.18), transparent 30rem),
    linear-gradient(135deg, #fff1f8 0%, #f5f3ff 48%, #eff6ff 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(37, 99, 235, 0.16));
}

button,
input,
select {
  font: inherit;
}

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

.top-ribbon {
  height: 4px;
  background: linear-gradient(90deg, #f472b6, #a855f7, #38bdf8);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.32);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: rotate(12deg) scale(1.04);
}

.brand-copy strong,
.footer-brand {
  display: block;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink);
}

.header-search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 8px 28px rgba(31, 41, 55, 0.07);
}

.header-search input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  background: transparent;
}

.header-search button,
.page-filter button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 9px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #374151;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #374151;
  font-weight: 700;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
}

.mobile-nav button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.18);
  transform: scale(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 241, 248, 0.96), rgba(245, 243, 255, 0.84), rgba(239, 246, 255, 0.76)),
    radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.3), transparent 22rem),
    radial-gradient(circle at 70% 20%, rgba(124, 58, 237, 0.24), transparent 24rem);
}

.hero-layout {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 76px 0 88px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 16px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

.hero h1 {
  margin: 22px 0 12px;
  max-width: 880px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(27px, 4vw, 46px);
  line-height: 1.15;
}

.hero p {
  max-width: 720px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.9;
}

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(31, 41, 55, 0.14);
}

.btn-primary {
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.btn-light {
  background: white;
  color: #374151;
}

.btn-ghost {
  color: #374151;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(79, 70, 229, 0.24);
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  font-weight: 700;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.11);
}

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

.hero-controls > button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-size: 23px;
  line-height: 1;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: #c7d2fe;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 26px;
  background: var(--pink);
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px);
}

.section-gradient {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.72), rgba(237, 233, 254, 0.72), rgba(219, 234, 254, 0.72));
}

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

.section-heading h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-heading h2 span {
  color: var(--pink);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pink);
  font-weight: 800;
}

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

.movie-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

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

.card-category {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.24);
}

.movie-body {
  padding: 18px;
}

.movie-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-body h2 a:hover {
  color: var(--pink);
}

.movie-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.movie-meta span {
  border-radius: 999px;
  background: #f3f4f6;
  padding: 5px 9px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  border-radius: 8px;
  background: #fdf2f8;
  color: #be185d;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}

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

.featured-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.08));
}

.featured-card .card-category {
  top: 18px;
  left: 18px;
}

.featured-card strong,
.featured-card em {
  position: absolute;
  left: 22px;
  right: 22px;
  color: white;
}

.featured-card strong {
  bottom: 62px;
  font-size: 24px;
  line-height: 1.22;
}

.featured-card em {
  bottom: 24px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

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

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

.category-card {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: white;
  box-shadow: 0 16px 42px rgba(31, 41, 55, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

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

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

.category-card-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.18)),
    linear-gradient(135deg, rgba(236, 72, 153, 0.34), rgba(124, 58, 237, 0.2));
}

.category-card strong {
  font-size: 24px;
  line-height: 1.2;
}

.category-card em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.compact-card img {
  width: 150px;
  height: 120px;
  object-fit: cover;
}

.compact-card span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px 16px 14px 0;
}

.compact-card strong {
  font-size: 18px;
  line-height: 1.3;
}

.compact-card em {
  margin: 7px 0 10px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rank-tabs.big {
  margin-bottom: 28px;
}

.rank-tabs button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: white;
  color: #4b5563;
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(31, 41, 55, 0.06);
}

.rank-tabs button.active {
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.rank-panel {
  display: none;
}

.rank-panel.active {
  display: block;
}

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

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

.minimal-card {
  position: relative;
  display: block;
}

.minimal-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.09);
  transition: transform 0.25s ease;
}

.minimal-card:hover img {
  transform: scale(1.04);
}

.minimal-card strong {
  display: block;
  margin-top: 10px;
  line-height: 1.35;
}

.minimal-card span:not(.rank-badge) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.rank-badge {
  position: absolute;
  top: -10px;
  left: -8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.36);
  font-weight: 900;
}

.cta-section {
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
}

.cta-box {
  text-align: center;
}

.cta-box h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 52px);
}

.cta-box p {
  margin: 0 auto 24px;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.page-hero {
  padding: 74px 0 54px;
  background:
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.18), transparent 22rem),
    radial-gradient(circle at 80% 15%, rgba(37, 99, 235, 0.18), transparent 24rem);
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

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

.page-filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, 180px);
  gap: 12px;
  margin-top: 28px;
}

.page-filter input,
.page-filter select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  outline: 0;
  padding: 0 16px;
  color: #374151;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.68)),
    linear-gradient(135deg, rgba(236, 72, 153, 0.34), rgba(37, 99, 235, 0.22));
}

.detail-layout {
  min-height: 560px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.32);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
}

.detail-info p {
  max-width: 780px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.85;
}

.detail-info .movie-meta span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.detail-info .tag {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.player-section {
  padding-top: 58px;
}

.player {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.25);
}

.player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  color: white;
  text-align: center;
  background:
    linear-gradient(0deg, rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.34)),
    radial-gradient(circle at center, rgba(236, 72, 153, 0.34), transparent 18rem);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 20px 42px rgba(236, 72, 153, 0.35);
  font-size: 30px;
  text-indent: 4px;
}

.player-poster strong {
  font-size: clamp(22px, 4vw, 38px);
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.content-card {
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.info-list {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.info-list dt {
  color: var(--muted);
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  color: #374151;
}

.site-footer {
  background: rgba(255, 255, 255, 0.74);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-grid p {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.footer-grid a:hover {
  color: var(--pink);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav {
    justify-content: flex-end;
  }

  .header-search {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }

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

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

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

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

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

  .mobile-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: block;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 62px 0 108px;
  }

  .hero-poster {
    max-width: 270px;
    transform: none;
  }

  .hero-controls {
    bottom: 22px;
  }

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

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

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

  .compact-card {
    grid-template-columns: 118px 1fr;
  }

  .compact-card img {
    width: 118px;
    height: 116px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 46px 0;
  }

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

  .two-column {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    display: none;
  }

  .hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 50px 0;
  }

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

  .movie-grid,
  .category-grid,
  .category-grid.large,
  .minimal-grid,
  .rank-page-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-cover {
    aspect-ratio: 16 / 10;
  }

  .featured-card,
  .featured-card img {
    min-height: 260px;
  }

  .player {
    border-radius: 18px;
  }

  .content-card {
    padding: 22px;
  }
}
