:root {
  --color-dark-950: #1a1f2e;
  --color-dark-900: #2d374c;
  --color-mirror-900: #162233;
  --color-mirror-800: #243b53;
  --color-realm-300: #f2c879;
  --color-realm-400: #e8a84d;
  --color-realm-500: #d4941f;
  --color-realm-700: #8a570d;
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 8px 30px rgba(212, 148, 31, 0.2);
  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.35);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 5%, rgba(212, 148, 31, 0.16), transparent 26rem),
    radial-gradient(circle at 82% 18%, rgba(36, 59, 83, 0.72), transparent 32rem),
    linear-gradient(180deg, var(--color-dark-950), #0f1624 54%, var(--color-dark-950));
  color: var(--text-main);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-custom {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.tight-section {
  padding-top: 2rem;
}

.text-gradient {
  background-image: linear-gradient(90deg, var(--color-realm-400), var(--color-realm-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.backdrop-glass {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 18, 29, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--color-realm-300), var(--color-realm-500));
  box-shadow: var(--shadow-glow);
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  color: var(--text-soft);
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-button span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.28rem auto;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-menu {
  display: none;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 18, 29, 0.92);
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.5rem;
}

.mobile-link {
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-link.active {
  color: #ffffff;
  background: rgba(212, 148, 31, 0.24);
}

.hero-slider {
  position: relative;
  height: 72vh;
  min-height: 34rem;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.7s ease, transform 1.1s ease;
  pointer-events: none;
}

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

.hero-slide > img,
.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shadow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--color-dark-950) 0%, rgba(26, 31, 46, 0.72) 42%, rgba(26, 31, 46, 0.2) 100%),
    linear-gradient(90deg, rgba(26, 31, 46, 0.92), rgba(26, 31, 46, 0.25), rgba(26, 31, 46, 0.82));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
}

.hero-copy {
  max-width: 48rem;
  animation: fade-in 0.5s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--color-realm-400);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.eyebrow::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--color-realm-400);
  box-shadow: 0 0 0 0.32rem rgba(212, 148, 31, 0.16);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(2.8rem, 7vw, 6rem);
}

.hero-copy p,
.page-hero p,
.detail-copy p,
.promo-panel p {
  color: var(--text-soft);
  line-height: 1.8;
}

.hero-copy p {
  max-width: 44rem;
  margin: 1.35rem 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
  color: var(--text-soft);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
}

.hero-meta span:first-child {
  color: var(--color-realm-300);
  font-weight: 800;
}

.hero-actions,
.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.45rem;
  border-radius: 0.75rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-realm-500), #b87d15);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(212, 148, 31, 0.32);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.09);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
}

.hero-arrow,
.rail-button {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: 0.2s ease;
}

.hero-arrow:hover,
.rail-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

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

.hero-dot.is-active {
  width: 2rem;
  background: var(--color-realm-400);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  margin: 0 0 0.35rem;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  letter-spacing: -0.03em;
}

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

.section-action {
  flex: none;
  color: var(--color-realm-300);
  font-weight: 700;
}

.rail-shell {
  position: relative;
}

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 18rem);
  gap: 1.2rem;
  overflow-x: auto;
  padding: 0.2rem 0.15rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.rail-button {
  position: absolute;
  top: 42%;
  z-index: 5;
}

.rail-button[data-rail-left] {
  left: -0.8rem;
}

.rail-button[data-rail-right] {
  right: -0.8rem;
}

.movie-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.movie-card {
  min-width: 0;
  scroll-snap-align: start;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-link:hover {
  transform: translateY(-0.35rem) scale(1.015);
  border-color: rgba(232, 168, 77, 0.45);
  box-shadow: var(--shadow-glow);
}

.poster-wrap {
  position: relative;
  height: 16rem;
  overflow: hidden;
  background: var(--color-mirror-900);
}

.large-card .poster-wrap {
  height: 22rem;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.16) 60%, transparent);
}

.rating-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rating-badge {
  top: 0.8rem;
  right: 0.8rem;
  min-width: 2.6rem;
  height: 1.7rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
}

.play-badge {
  top: 50%;
  left: 50%;
  width: 3.4rem;
  height: 3.4rem;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transition: 0.25s ease;
}

.card-link:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem;
}

.poster-caption h3 {
  display: -webkit-box;
  margin: 0 0 0.45rem;
  overflow: hidden;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.meta-line span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0.18rem 0.48rem;
  border-radius: 0.45rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
}

.card-body {
  padding: 0.95rem;
}

.card-body p {
  display: -webkit-box;
  min-height: 2.9rem;
  margin: 0 0 0.8rem;
  overflow: hidden;
  color: var(--text-muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-card {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 1.1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-0.35rem);
  border-color: rgba(232, 168, 77, 0.48);
  box-shadow: var(--shadow-glow);
}

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

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 16, 28, 0.94), rgba(10, 16, 28, 0.22));
}

.category-card span,
.category-card strong,
.category-card small,
.category-preview {
  position: relative;
  z-index: 1;
}

.category-card span {
  display: inline-flex;
  margin-bottom: 4.8rem;
  color: var(--color-realm-300);
  font-weight: 800;
}

.category-card strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-size: 1.45rem;
}

.category-card small {
  display: block;
  color: var(--text-soft);
  line-height: 1.6;
}

.wide-category {
  min-height: 18rem;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 1rem;
}

.category-preview span {
  margin: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.11);
  font-size: 0.75rem;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
  gap: 2rem;
}

.rank-list {
  display: grid;
  gap: 0.85rem;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 4.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.78rem;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  transition: 0.2s ease;
}

.rank-item:hover {
  transform: translateX(0.2rem);
  border-color: rgba(232, 168, 77, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.rank-num {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.65rem;
  color: #111827;
  background: var(--color-realm-400);
  font-weight: 900;
}

.rank-item img {
  width: 4.8rem;
  height: 3.4rem;
  border-radius: 0.7rem;
  object-fit: cover;
}

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

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

.rank-content strong {
  color: #ffffff;
}

.rank-content small {
  margin-top: 0.25rem;
  color: var(--text-muted);
}

.rank-item em {
  color: var(--color-realm-300);
  font-style: normal;
  font-weight: 900;
}

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

.promo-panel {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: var(--shadow-card);
}

.promo-panel h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

.page-main {
  padding-top: 7rem;
}

.page-hero {
  border-radius: 1.35rem;
  padding: 2.6rem;
  box-shadow: var(--shadow-card);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.page-hero p {
  max-width: 54rem;
  margin: 1rem 0 0;
}

.filter-box,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.filter-box input,
.search-panel input,
.search-panel select {
  min-height: 3rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.85rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.filter-box input,
.search-panel input {
  flex: 1 1 18rem;
  padding: 0 1rem;
}

.search-panel select {
  flex: 0 1 11rem;
  padding: 0 0.9rem;
}

.search-panel option {
  color: #111827;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.4rem;
}

.pagination a,
.pagination span {
  min-width: 2.4rem;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
}

.pagination a.active,
.pagination a:hover {
  color: #111827;
  background: var(--color-realm-400);
}

.detail-main {
  padding-top: 0;
}

.detail-hero {
  position: relative;
  min-height: 38rem;
  overflow: hidden;
  padding-top: 7rem;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  filter: blur(2px) saturate(0.9);
  transform: scale(1.04);
}

.detail-hero-shadow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--color-dark-950), rgba(26, 31, 46, 0.76) 50%, rgba(26, 31, 46, 0.36)),
    linear-gradient(90deg, rgba(26, 31, 46, 0.96), rgba(26, 31, 46, 0.24));
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--color-realm-300);
}

.detail-title-grid {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 1.2rem;
  padding: 0.45rem;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 0.9rem;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.detail-copy p {
  max-width: 50rem;
  margin: 1rem 0 0;
  font-size: 1.08rem;
}

.detail-tags {
  margin-top: 1.15rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 2rem;
}

.detail-content {
  display: grid;
  gap: 1.4rem;
}

.player-card,
.content-card,
.side-card {
  border-radius: 1.2rem;
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
}

.player-card h2,
.content-card h2,
.side-card h2 {
  margin: 0 0 1rem;
  color: #ffffff;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24)),
    transparent;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
  display: inline-grid;
  width: 5.5rem;
  height: 5.5rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(212, 148, 31, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 2rem;
}

.content-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 1.2rem;
}

.side-card dl {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  margin: 0;
}

.side-card dt {
  color: var(--text-muted);
}

.side-card dd {
  margin: 0;
  color: #ffffff;
}

.side-links {
  display: grid;
  gap: 0.7rem;
}

.side-links .rank-item {
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
}

.side-links .rank-num {
  display: none;
}

.side-links .rank-item img {
  width: 4.2rem;
  height: 3rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(9, 14, 23, 0.62);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.8fr));
  gap: 2rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.site-footer p {
  max-width: 28rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 1rem;
  color: #ffffff;
}

.site-footer a:not(.site-logo) {
  display: block;
  margin: 0.5rem 0;
  color: var(--text-muted);
  transition: 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

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

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .promo-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    height: 4rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .hero-slider {
    height: 78vh;
    min-height: 36rem;
  }

  .hero-content {
    padding-bottom: 6.5rem;
  }

  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

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

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

  .poster-wrap {
    height: 13.5rem;
  }

  .page-main {
    padding-top: 5.5rem;
  }

  .page-hero {
    padding: 1.5rem;
  }

  .detail-title-grid {
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 1rem;
  }

  .detail-hero {
    padding-top: 4.5rem;
    min-height: 34rem;
  }

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

@media (max-width: 520px) {
  .container-custom {
    padding: 0 0.85rem;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 2.4rem;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

  .hero-actions,
  .promo-actions {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1 1 auto;
  }

  .movie-rail {
    grid-auto-columns: minmax(12.8rem, 15rem);
  }

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

  .poster-wrap {
    height: 18rem;
  }

  .rank-item,
  .side-links .rank-item {
    grid-template-columns: 4rem minmax(0, 1fr) auto;
  }

  .rank-num {
    display: none;
  }

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

  .detail-poster {
    max-width: 12rem;
  }

  .player-play {
    width: 4.4rem;
    height: 4.4rem;
    font-size: 1.6rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
