:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --purple-500: #a855f7;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --green-500: #22c55e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 8px 20px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 18px 40px rgba(17, 24, 39, 0.12);
  --shadow-xl: 0 24px 70px rgba(17, 24, 39, 0.18);
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--rose-50), var(--white) 38%, var(--blue-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--gray-700);
  font-weight: 700;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-500);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(280px, 28vw);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search input,
.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 12px 11px 18px;
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 9px 15px;
  color: var(--rose-500);
  background: transparent;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-100);
}

.mobile-panel {
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.mobile-panel-inner {
  padding: 16px 0 20px;
}

.mobile-search {
  display: flex;
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
}

.mobile-nav {
  display: grid;
  gap: 10px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--rose-500), var(--pink-500), var(--purple-500));
}

.hero-stage,
.hero-slide,
.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.06) contrast(1.02);
}

.hero-overlay {
  background:
    radial-gradient(circle at 78% 34%, rgba(255, 255, 255, 0.20), transparent 25%),
    linear-gradient(90deg, rgba(225, 29, 72, 0.92), rgba(236, 72, 153, 0.78) 48%, rgba(17, 24, 39, 0.70)),
    rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 56px;
  align-items: center;
  min-height: 680px;
  padding: 88px 0 116px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-description {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(18px, 2.2vw, 25px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.rose {
  color: var(--rose-500);
}

.eyebrow.blue {
  color: var(--blue-500);
}

.eyebrow.green {
  color: var(--green-500);
}

.hero-tags,
.card-tags,
.detail-badges,
.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-badges span,
.feature-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: var(--rose-500);
  background: var(--white);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.button-gradient {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 14px 26px rgba(244, 63, 94, 0.25);
}

.button-soft {
  color: var(--rose-600);
  background: var(--rose-50);
}

.hero-poster {
  display: block;
  height: 500px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
}

.hero-poster img,
.feature-poster img,
.card-poster img,
.poster-card img,
.ranking-cover img,
.category-card-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.hero-dot.is-active {
  width: 38px;
  background: var(--white);
}

.section {
  padding: 64px 0;
}

.section-overlap {
  position: relative;
  z-index: 5;
  margin-top: -90px;
  padding-top: 0;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  gap: 40px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-xl);
}

.feature-copy h2,
.section-title-row h2,
.center-title h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.feature-copy p {
  margin: 16px 0;
  color: var(--gray-600);
}

.feature-meta {
  margin: 20px 0;
}

.feature-meta span {
  color: var(--rose-600);
  background: var(--rose-50);
  border-color: var(--rose-100);
}

.feature-poster {
  height: 360px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.section-title-row.compact {
  align-items: center;
  margin-bottom: 22px;
}

.more-link {
  color: var(--rose-500);
  font-weight: 900;
}

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

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

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

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

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

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.card-poster {
  position: relative;
  height: 255px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.card-poster img {
  transition: transform 0.45s ease;
}

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

.region-pill,
.rank-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(244, 63, 94, 0.28);
}

.rank-badge {
  left: 14px;
  right: auto;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

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

.card-desc {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags {
  min-height: 26px;
  margin-bottom: 12px;
}

.card-tags span {
  padding: 3px 8px;
  color: var(--rose-600);
  background: var(--rose-50);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-card--large .card-poster {
  height: 320px;
}

.movie-card--large .card-link {
  position: relative;
}

.movie-card--large .card-body {
  position: absolute;
  inset: auto 0 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  padding-top: 70px;
}

.movie-card--large .card-body h3,
.movie-card--large .card-desc,
.movie-card--large .card-meta {
  color: var(--white);
}

.movie-card--compact .card-link {
  box-shadow: none;
  background: transparent;
}

.movie-card--compact .card-poster {
  height: 230px;
  border-radius: 18px;
}

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

.movie-card--compact .card-desc,
.movie-card--compact .card-tags {
  display: none;
}

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

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

.movie-card--horizontal .card-body {
  padding: 16px;
}

.section-blue-band {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-500));
}

.center-title {
  margin-bottom: 34px;
  text-align: center;
}

.center-title p {
  margin: 12px auto 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.big-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
}

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

.category-chip {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.24);
}

.category-chip span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: start;
}

.stacked-cards {
  display: grid;
  gap: 18px;
}

.ranking-panel,
.side-panel,
.prose-card,
.detail-card,
.player-card {
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 26px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  background: var(--rose-50);
}

.ranking-num {
  color: var(--rose-500);
  font-weight: 950;
}

.ranking-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.ranking-score {
  padding: 3px 8px;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(120deg, var(--rose-500), var(--pink-500), var(--purple-500));
}

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

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.detail-top .breadcrumbs {
  color: var(--gray-600);
}

.breadcrumbs a:hover {
  color: var(--white);
}

.detail-top {
  padding: 22px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

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

.category-card a {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  min-height: 220px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 220px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.category-card-images img {
  height: 100%;
  min-width: 0;
}

.category-card-body {
  padding: 26px;
}

.category-card-body h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

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

.category-count,
.category-enter {
  color: var(--rose-500);
  font-weight: 900;
}

.filter-panel,
.search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin-bottom: 26px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-panel label,
.search-toolbar label {
  display: grid;
  flex: 1 1 220px;
  gap: 6px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.search-toolbar input,
.search-toolbar select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  background: var(--white);
}

.filter-panel input:focus,
.search-toolbar input:focus,
.search-toolbar select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.result-count {
  margin: 0 0 22px;
  color: var(--gray-600);
  font-weight: 800;
}

.empty-state {
  margin: 24px 0 0;
  padding: 22px;
  border-radius: 18px;
  color: var(--gray-600);
  background: var(--white);
  text-align: center;
}

.ranking-hero {
  padding: 70px 0;
}

.ranking-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: center;
}

.ranking-cover {
  display: block;
  height: 380px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
}

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

.detail-section {
  padding-top: 36px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

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

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: #000;
}

.video-player {
  position: relative;
  overflow: hidden;
  background: #000;
}

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

.player-overlay-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.10));
  transition: opacity 0.2s ease;
}

.player-overlay-button span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
  font-size: 30px;
}

.video-player.is-playing .player-overlay-button {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  margin: 0;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(225, 29, 72, 0.92);
  border-radius: 12px;
  text-align: center;
}

.detail-card {
  padding: 30px;
}

.detail-badges {
  margin-bottom: 16px;
}

.detail-badges span {
  color: var(--rose-600);
  background: var(--rose-50);
  border-color: var(--rose-100);
}

.lead-text {
  margin: 18px 0;
  color: var(--gray-700);
  font-size: 19px;
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 0;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
}

.story-block {
  margin-top: 26px;
}

.story-block h2,
.tag-block h2,
.side-panel h2,
.prose-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.story-block p,
.prose-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.tag-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.tag-block div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-block a {
  padding: 7px 12px;
  color: var(--rose-600);
  background: var(--rose-50);
  border-radius: 999px;
  font-weight: 800;
}

.related-section {
  padding-bottom: 0;
}

.detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}

.poster-card {
  overflow: hidden;
  min-height: 450px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.side-panel {
  padding: 22px;
}

.side-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--gray-200);
}

.side-link span {
  color: var(--rose-500);
  font-weight: 950;
}

.side-link strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-link em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.side-button {
  display: block;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-weight: 900;
}

.prose-card {
  padding: 34px;
}

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

.poster-shell {
  position: relative;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.poster-shell.poster-missing img {
  display: none;
}

.poster-shell.poster-missing::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--white);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 35%),
    linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

[hidden] {
  display: none !important;
}

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

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

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

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 70px 0 110px;
  }

  .hero-poster {
    width: min(360px, 82vw);
    height: 430px;
    margin: 0 auto;
    transform: none;
  }

  .feature-panel,
  .category-card a,
  .ranking-hero-inner {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .hero-description {
    font-size: 17px;
  }

  .section {
    padding: 44px 0;
  }

  .section-title-row,
  .hero-actions,
  .filter-panel,
  .search-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .grid-3,
  .grid-4,
  .grid-5,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

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

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

  .movie-card--horizontal .card-poster {
    min-height: 138px;
  }

  .detail-card,
  .feature-panel,
  .side-panel,
  .prose-card {
    padding: 22px;
  }
}
