:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #fb923c;
  --text: #1f2937;
  --muted: #6b7280;
  --light: #f8fafc;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 35%, #f8fafc 100%);
}

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

img {
  max-width: 100%;
}

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

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

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 24px;
  color: #111827;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.35);
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  color: #374151;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--pink);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--pink), var(--rose));
  transition: transform 0.2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  background: #fff;
}

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

.header-search button,
.big-search button,
.filter-panel button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #fff1f7;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #be185d;
  border-radius: 99px;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.4), transparent 35%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 760px;
  color: white;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.92);
  color: white;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow {
  background: #fce7f3;
  color: #be185d;
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta,
.detail-meta,
.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  backdrop-filter: blur(10px);
}

.hero-actions,
.slim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.35);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn-ghost.light {
  color: #be185d;
  background: #fff;
  border-color: #fbcfe8;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dots button[aria-current="true"] {
  width: 34px;
  background: var(--pink);
}

.quick-panel {
  position: relative;
  z-index: 4;
  margin-top: -36px;
}

.quick-inner {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(251, 207, 232, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.big-search {
  display: flex;
  overflow: hidden;
  border: 1px solid #fbcfe8;
  border-radius: 18px;
  background: #fff;
}

.big-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 17px 18px;
  font-size: 16px;
}

.big-search button {
  padding-inline: 26px;
}

.quick-cats,
.category-cta div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-cats a,
.category-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 15px;
  background: #fff1f7;
  color: #be185d;
  font-weight: 750;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quick-cats a:hover,
.category-cta a:hover {
  background: #fbcfe8;
  transform: translateY(-2px);
}

.page-stack {
  padding: 64px 0 76px;
}

.content-section {
  margin-bottom: 70px;
}

.section-heading {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  color: #111827;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.heading-line {
  flex: 1;
  height: 1px;
  min-width: 50px;
  background: linear-gradient(90deg, #f9a8d4, transparent);
}

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

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

.movie-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
}

.movie-row .movie-card {
  flex: 0 0 282px;
  scroll-snap-align: start;
}

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-link:hover {
  transform: translateY(-6px);
  border-color: #f9a8d4;
  box-shadow: 0 24px 55px rgba(236, 72, 153, 0.16);
}

.poster-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

.card-link:hover .poster-box img {
  transform: scale(1.08);
}

.poster-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.32));
  opacity: 0.7;
}

.badge,
.duration {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.66);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.meta-row {
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

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

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

.movie-card-horizontal .card-body h3 {
  min-height: auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 30px;
  align-items: start;
}

.rank-card,
.category-card,
.filter-panel,
.detail-content,
.related-block {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.rank-card {
  padding: 22px;
  position: sticky;
  top: 92px;
}

.rank-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-weight: 950;
  font-size: 22px;
}

.rank-title a {
  color: var(--pink);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.rank-item:hover {
  background: #fff1f7;
}

.rank-no {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-weight: 900;
}

.rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.rank-score {
  color: #f59e0b;
  font-size: 13px;
  font-weight: 800;
}

.category-cta {
  padding: 46px;
  border-radius: 30px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: var(--shadow);
}

.category-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
}

.category-cta p {
  max-width: 780px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.category-cta a {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.subpage {
  padding: 46px 0 76px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  padding: 44px;
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(251, 146, 60, 0.48), transparent 28%),
    linear-gradient(135deg, #111827, #831843 55%, #fb7185);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

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

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

.category-card {
  overflow: hidden;
  padding: 24px;
}

.category-card > a {
  display: block;
}

.category-card span {
  color: var(--pink);
  font-weight: 900;
}

.category-card h2 {
  margin: 10px 0 8px;
  font-size: 26px;
  font-weight: 950;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.mini-links {
  display: grid;
  gap: 8px;
}

.mini-links a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374151;
  font-weight: 650;
}

.mini-links a:hover {
  color: var(--pink);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
}

.full-filter {
  grid-template-columns: minmax(220px, 1fr) 150px 150px 180px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #fbcfe8;
  border-radius: 14px;
  outline: 0;
  background: #fff;
  padding: 13px 14px;
  color: #374151;
}

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

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 24px;
  border-radius: 22px;
  text-align: center;
  color: #be185d;
  background: #fff1f7;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

.ranking-feature {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.ranking-podium a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  min-height: 360px;
  color: white;
  background: #111827;
  box-shadow: var(--shadow);
}

.ranking-podium img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.ranking-podium a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86));
}

.podium-no {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  font-size: 24px;
  font-weight: 950;
}

.ranking-podium div {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.ranking-podium h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 950;
}

.ranking-podium p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.86);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: #f9a8d4;
}

.rank-index {
  font-size: 24px;
  color: var(--pink);
  font-weight: 950;
  text-align: center;
}

.rank-row img {
  width: 88px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

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

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

.rank-main strong {
  color: #111827;
  font-size: 17px;
  font-weight: 900;
}

.rank-main em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
}

.rank-meta {
  color: #f59e0b;
  font-weight: 900;
}

.detail-page {
  background: #fff;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: white;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  opacity: 0.54;
  transform: scale(1.04);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(236, 72, 153, 0.35), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  min-height: 520px;
  padding: 44px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumb a:hover {
  color: #f9a8d4;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 820px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.75;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-layout {
  display: grid;
  gap: 30px;
  padding: 44px 0 80px;
}

.player-section {
  overflow: hidden;
  border-radius: 30px;
  background: #080a12;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2), rgba(0, 0, 0, 0.42));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.32);
  font-size: 38px;
}

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

.detail-content,
.related-block {
  padding: 28px;
}

.detail-content h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 28px;
  font-weight: 950;
}

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

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

.info-table div {
  padding: 16px;
  border-radius: 18px;
  background: #fff1f7;
}

.info-table span,
.info-table strong {
  display: block;
}

.info-table span {
  color: #be185d;
  font-size: 13px;
  font-weight: 850;
}

.info-table strong {
  margin-top: 6px;
  color: #111827;
}

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

.small-heading h2 {
  font-size: 28px;
}

.site-footer {
  color: #e5e7eb;
  background: #111827;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
  padding: 34px 0;
}

.footer-inner strong {
  color: white;
  font-size: 22px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  gap: 16px;
}

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

.copyright {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .movie-grid,
  .listing-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .rank-card {
    position: static;
  }

  .header-search {
    display: none;
  }

  .detail-hero-inner {
    grid-template-columns: 220px 1fr;
  }
}

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

  .header-inner {
    height: 64px;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-content {
    align-items: stretch;
    padding-inline: 12px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-panel {
    margin-top: -22px;
  }

  .big-search {
    display: grid;
    border-radius: 18px;
  }

  .movie-grid,
  .listing-grid,
  .related-grid,
  .movie-grid.two-cols,
  .category-grid,
  .ranking-feature {
    grid-template-columns: 1fr;
  }

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

  .heading-line {
    width: 100%;
  }

  .category-cta,
  .page-hero {
    padding: 28px;
  }

  .filter-panel,
  .full-filter {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 38px 70px 1fr;
  }

  .rank-row img {
    width: 70px;
    height: 48px;
  }

  .rank-meta {
    display: none;
  }

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

  .detail-poster {
    max-width: 230px;
  }

  .info-table {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 480px) {
  .movie-card-horizontal .card-link {
    grid-template-columns: 110px 1fr;
  }

  .info-table {
    grid-template-columns: 1fr;
  }
}
