/* Static movie site styles based on the uploaded dark gradient visual system. */
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.86);
  --bg-card-strong: #111827;
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #38bdf8;
  --accent-strong: #0284c7;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --danger: #fb7185;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--accent), #2563eb 55%, #7c3aed);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.35);
}

.brand-text {
  font-size: 1.08rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-nav-link {
  color: var(--muted-strong);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 15px;
  font-size: 0.94rem;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: white;
  background: var(--accent-soft);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: white;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 11px 13px;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #020617;
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.7) 38%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 45%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 70vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 120px 0 132px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-tags,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.tag-list span,
.source-label,
.category-count,
.year-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(14, 165, 233, 0.14);
}

.hero-tags span,
.detail-meta span,
.tag-list span {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 0.86rem;
}

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

.btn-primary,
.btn-ghost,
.inline-search button,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.inline-search button,
.filter-panel button {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.28);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.68);
}

.btn-primary:hover,
.btn-ghost:hover,
.inline-search button:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
}

.hero-search-card {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  z-index: 5;
  width: min(430px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-search-card p {
  margin: 0 0 10px;
  color: white;
  font-weight: 800;
}

.hero-search-card form,
.inline-search {
  display: flex;
  gap: 10px;
}

.hero-search-card input,
.inline-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  color: var(--text);
  background: rgba(2, 6, 23, 0.76);
  padding: 0 16px;
}

.hero-search-card button {
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--accent-strong);
  padding: 0 16px;
  font-weight: 800;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: white;
  background: rgba(15, 23, 42, 0.65);
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-thumbs {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.68);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(14, 165, 233, 0.18);
  transform: translateY(-2px);
}

.hero-thumb img {
  width: 42px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  font-weight: 800;
}

.section-shell,
.listing-hero,
.filter-panel,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-shell {
  padding: 64px 0;
}

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

.section-title-row.no-margin {
  margin-bottom: 18px;
}

.section-title-row h2,
.listing-hero h1,
.detail-info h1,
.content-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title-row p:not(.eyebrow),
.listing-hero p,
.feature-panel p,
.content-panel p {
  color: var(--muted);
}

.section-title-row a {
  color: var(--accent);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(124, 58, 237, 0.18));
}

.poster-link img,
.detail-poster img,
.category-card img,
.rank-card img,
.ranking-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.poster-shade,
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.82) 100%);
}

.year-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.35);
}

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

.movie-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: white;
  font-weight: 900;
  font-size: 1.02rem;
}

.movie-card-body p {
  min-height: 46px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.movie-meta span {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted-strong);
  font-size: 0.76rem;
}

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

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

.category-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.category-card img {
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease;
}

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

.category-card strong,
.category-card em,
.category-count {
  position: relative;
  z-index: 2;
}

.category-card strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.category-card em {
  margin-top: 8px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-style: normal;
}

.category-count {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.ranking-list,
.feature-panel,
.prose-panel,
.content-panel,
.filter-panel,
.player-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.2);
}

.ranking-list {
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 52px 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-number,
.rank-medal {
  color: var(--accent);
  font-weight: 950;
}

.ranking-row img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
}

.ranking-info strong,
.ranking-info em {
  display: block;
}

.ranking-info em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

.ranking-row b,
.rank-card b {
  color: #fde68a;
}

.feature-panel {
  min-height: 100%;
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.2), transparent 18rem),
    rgba(15, 23, 42, 0.78);
}

.feature-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.listing-hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: end;
  gap: 28px;
  padding: 72px 0 34px;
}

.compact-hero {
  padding-bottom: 20px;
}

.listing-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.inline-search.large-search {
  align-self: center;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(130px, 0.7fr)) auto auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-panel output {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 900;
}

.chip-shell {
  padding-top: 20px;
  padding-bottom: 20px;
}

.chip-list,
.category-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.category-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.74);
}

.chip.is-active,
.chip:hover,
.category-link-list a:hover {
  color: white;
  border-color: rgba(56, 189, 248, 0.48);
  background: var(--accent-soft);
}

.category-link-list a span {
  color: var(--accent);
  font-size: 0.84rem;
}

.empty-state {
  margin: 26px 0 0;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted-strong);
  text-align: center;
}

.rank-grid {
  display: grid;
  gap: 14px;
}

.rank-card a {
  display: grid;
  grid-template-columns: 64px 86px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-card a:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateX(4px);
}

.rank-card img {
  width: 86px;
  height: 116px;
  border-radius: 14px;
}

.rank-card-body strong,
.rank-card-body em,
.rank-card-body span {
  display: block;
}

.rank-card-body strong {
  font-size: 1.15rem;
}

.rank-card-body em {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted-strong);
  font-style: normal;
}

.rank-card-body span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.45;
}

.detail-hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.58)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 62%);
}

.detail-shell {
  position: relative;
  z-index: 2;
  padding: 48px 0 64px;
}

.breadcrumb,
.breadcrumb-sep {
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.breadcrumb:hover {
  color: var(--accent);
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: end;
  margin-top: 34px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
  background: rgba(15, 23, 42, 0.8);
}

.detail-info h1 {
  font-size: clamp(2.5rem, 6vw, 5.4rem);
}

.detail-one-line {
  max-width: 780px;
  color: var(--muted-strong);
  font-size: 1.13rem;
}

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

.watch-section {
  padding-top: 44px;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.68) 55%, rgba(0, 0, 0, 0.78) 100%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  box-shadow: 0 22px 50px rgba(14, 165, 233, 0.4);
  font-size: 2rem;
}

.player-cover strong {
  font-size: 1.35rem;
}

.player-cover small {
  color: var(--muted-strong);
}

.player-status {
  padding: 12px 16px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.94);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.source-label {
  padding: 8px 12px;
  font-weight: 900;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.content-panel,
.prose-panel {
  padding: 26px;
}

.content-panel p:last-child,
.prose-panel p:last-child {
  margin-bottom: 0;
}

.prose-panel h2,
.prose-panel h3 {
  margin-top: 0;
}

.prose-panel p,
.prose-panel li {
  color: var(--muted-strong);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.88);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
}

.footer-grid a {
  display: block;
  margin: 7px 0;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

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

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

  .hero-thumbs {
    display: none;
  }

  .hero-search-card {
    left: 16px;
    right: 16px;
  }
}

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

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

  .hero-content {
    padding-bottom: 180px;
  }

  .hero-search-card {
    bottom: 24px;
  }

  .hero-arrow {
    display: none;
  }

  .section-title-row,
  .listing-hero,
  .split-section,
  .detail-layout,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .detail-layout {
    display: block;
  }

  .detail-poster {
    width: min(260px, 76vw);
    margin-bottom: 26px;
  }

  .rank-card a {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-card b {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 0.96rem;
  }

  .hero-carousel,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content,
  .section-shell,
  .listing-hero,
  .filter-panel,
  .detail-shell,
  .footer-shell {
    width: min(100% - 22px, 1180px);
  }

  .hero-search-card form,
  .inline-search {
    flex-direction: column;
  }

  .section-shell {
    padding: 44px 0;
  }

  .movie-grid,
  .listing-grid,
  .related-grid,
  .category-grid,
  .large-category-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 42px 48px 1fr;
  }

  .ranking-row b {
    grid-column: 3;
  }

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

  .rank-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}
