:root {
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-900: #581c87;
  --purple-950: #3b0764;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --blue-600: #2563eb;
  --yellow-500: #eab308;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.12);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background: linear-gradient(180deg, var(--purple-50) 0%, var(--white) 42%, var(--white) 100%);
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple-600), var(--pink-500));
  border: 2px solid #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--purple-700), var(--pink-600));
}

.sr-only {
  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: 50;
  background: linear-gradient(90deg, var(--purple-600), var(--purple-500), var(--purple-600));
  box-shadow: var(--shadow-lg);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  flex: 0 0 auto;
}

.brand-mark span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-400, #c084fc), var(--purple-600));
}

.brand:hover .brand-mark {
  transform: scale(1.1);
}

.brand-name {
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--white);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 192px;
  padding: 8px 0;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  transition: all 0.18s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--gray-700);
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  color: var(--purple-600);
  background: var(--purple-50);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 280px;
}

.header-search label {
  width: 100%;
}

.header-search input,
.mobile-search input,
.filter-search input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 44px 10px 16px;
  color: var(--gray-800);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus,
.filter-panel select:focus {
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(216, 180, 254, 0.75);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--purple-700);
  background: transparent;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 26px;
}

.mobile-menu {
  display: none;
  padding: 16px 24px 24px;
  background: var(--purple-700);
}

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

.mobile-menu a {
  display: block;
  color: var(--white);
  padding: 9px 0;
}

.mobile-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  padding-top: 8px;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

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

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--purple-700);
  background: var(--white);
  font-weight: 700;
}

.hero-section {
  position: relative;
  min-height: 62vh;
  overflow: hidden;
  background: linear-gradient(90deg, var(--purple-600), var(--purple-500), var(--pink-500));
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(42px);
  pointer-events: none;
}

.hero-orb.one {
  top: 70px;
  left: 8%;
  width: 140px;
  height: 140px;
}

.hero-orb.two {
  right: 10%;
  bottom: 90px;
  width: 180px;
  height: 180px;
}

.hero-orb.three {
  left: 36%;
  top: 50%;
  width: 110px;
  height: 110px;
}

.hero-slider {
  position: relative;
  max-width: 1280px;
  min-height: 62vh;
  margin: 0 auto;
  padding: 48px 24px 76px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 48px 24px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 42px;
  align-items: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-copy {
  color: var(--white);
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--purple-100);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-info-card h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1;
  font-weight: 900;
}

.hero-summary {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--purple-100);
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.55;
}

.hero-meta,
.badge-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.badge-row span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

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

.primary-action,
.secondary-action,
.watch-link,
.category-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-action {
  min-height: 48px;
  padding: 0 26px;
  color: var(--purple-700);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.primary-action:hover,
.secondary-action:hover,
.watch-link:hover,
.category-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.secondary-action {
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(6px);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  aspect-ratio: 3 / 4;
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-category-pills {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 48px));
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-category-pills a {
  padding: 11px 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-category-pills a:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.04);
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 32px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 30px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dot.active {
  background: var(--white);
}

.content-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

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

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

.section-heading span {
  color: var(--purple-600);
  font-size: 28px;
}

.section-heading h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
}

.section-heading a {
  margin-left: auto;
  color: var(--purple-600);
  font-weight: 800;
}

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

.compact-heading h2 {
  font-size: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--purple-100);
}

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

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.45));
  opacity: 0.72;
}

.card-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--purple-600);
  font-weight: 900;
  box-shadow: var(--shadow-md);
}

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

.badge-row span {
  padding: 5px 9px;
  color: var(--purple-700);
  background: var(--purple-100);
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover h3 a {
  color: var(--purple-600);
}

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

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

.tag-row span {
  padding: 5px 8px;
  color: var(--gray-600);
  background: var(--gray-100);
  font-size: 12px;
}

.watch-link {
  margin-top: 16px;
  min-height: 38px;
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-600), var(--pink-500));
  font-size: 14px;
}

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

.compact-card h3 {
  font-size: 16px;
}

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

.rank-panel {
  position: sticky;
  top: 88px;
  border-radius: 24px;
  background: var(--white);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--gray-100);
}

.rank-number {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-600), var(--pink-500));
  font-weight: 900;
}

.rank-row img {
  grid-row: 1 / span 2;
  width: 52px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
  color: var(--gray-800);
}

.rank-row small {
  color: var(--gray-500);
}

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

.category-tile,
.category-overview-head {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 22px;
  padding: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-600), var(--pink-500));
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-overview-head:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.category-tile span,
.category-overview-head span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile small,
.category-overview-head small {
  margin-top: 8px;
  color: var(--purple-100);
  line-height: 1.5;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--purple-600), var(--purple-500), var(--pink-500));
}

.page-hero-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.page-hero p {
  margin: 0 0 10px;
  color: var(--purple-100);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-hero span {
  display: block;
  margin-top: 16px;
  max-width: 720px;
  color: var(--purple-100);
  font-size: 20px;
  line-height: 1.7;
}

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

.category-overview-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.category-mini-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 22px;
}

.category-mini-links a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--gray-700);
  font-weight: 700;
}

.category-mini-links a:hover {
  color: var(--purple-600);
}

.category-more {
  margin: 0 22px 22px;
  min-height: 40px;
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-600), var(--pink-500));
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--gray-600);
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding-right: 16px;
}

.filter-panel strong {
  min-width: 108px;
  color: var(--purple-700);
  text-align: right;
  padding-bottom: 12px;
}

.filter-empty {
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.rank-spotlight {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 42px;
  padding: 28px;
  border-radius: 30px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-700), var(--pink-500));
  box-shadow: var(--shadow-xl);
}

.rank-spotlight-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  aspect-ratio: 3 / 4;
}

.rank-spotlight-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-spotlight h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
}

.rank-spotlight p {
  max-width: 760px;
  color: var(--purple-100);
  font-size: 18px;
  line-height: 1.7;
}

.detail-hero-section {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500), var(--pink-500));
  padding: 46px 0;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 30px;
  align-items: stretch;
}

.player-card,
.detail-info-card,
.story-card {
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-2xl);
  font-size: 34px;
  padding-left: 6px;
}

.detail-info-card {
  padding: 26px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--purple-600);
  font-weight: 800;
}

.detail-info-card h1 {
  color: var(--gray-900);
  font-size: clamp(34px, 5vw, 54px);
}

.detail-one-line {
  margin: 18px 0;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.8;
}

.detail-tags,
.detail-badges {
  margin-top: 14px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
  padding: 46px 0 0;
}

.story-card {
  padding: 32px;
}

.story-card h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 28px;
}

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

.story-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 42px;
  background: linear-gradient(180deg, var(--purple-900), var(--purple-950));
  color: var(--white);
}

.footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
}

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

.footer-brand .brand-mark {
  background: transparent;
}

.site-footer p,
.site-footer a {
  color: var(--purple-200);
}

.site-footer p {
  max-width: 480px;
  margin: 0;
  line-height: 1.8;
}

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

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 10px;
}

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

@media (max-width: 1100px) {
  .featured-grid,
  .dense-grid,
  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .split-layout,
  .detail-content-grid,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .header-inner {
    padding: 0 18px;
  }

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

  .hero-slider {
    min-height: 760px;
    padding: 40px 20px 112px;
    align-items: flex-start;
  }

  .hero-slide {
    inset: 40px 20px 112px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-poster {
    width: min(260px, 68vw);
    justify-self: start;
  }

  .hero-category-pills {
    bottom: 18px;
    width: calc(100% - 36px);
  }

  .hero-dots {
    bottom: 78px;
    left: 20px;
  }

  .content-shell,
  .page-hero-inner,
  .footer-inner {
    width: min(100% - 34px, 1280px);
  }

  .featured-grid,
  .dense-grid,
  .library-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-panel strong {
    min-width: 0;
    text-align: left;
    padding-bottom: 0;
  }

  .rank-spotlight {
    grid-template-columns: 1fr;
  }

  .rank-spotlight-poster {
    width: min(260px, 70vw);
  }

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

@media (max-width: 540px) {
  .featured-grid,
  .dense-grid,
  .library-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    border-radius: 18px;
  }

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

  .story-card,
  .detail-info-card {
    padding: 22px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
