:root {
  --bg-950: #020617;
  --bg-925: #06101f;
  --bg-900: #0f172a;
  --bg-850: #111c31;
  --bg-800: #1e293b;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --emerald: #10b981;
  --emerald-2: #34d399;
  --teal: #14b8a6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 18px;
}

* {
  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(16, 185, 129, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--bg-950), var(--bg-900) 48%, var(--bg-950));
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(18px);
}

.nav-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.24);
  transform: translateZ(0);
  transition: transform 240ms ease;
}

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

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--emerald-2), #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  color: #64748b;
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 650;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--emerald-2);
  background: rgba(16, 185, 129, 0.14);
}

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  padding: 10px 22px 16px;
  background: rgba(15, 23, 42, 0.98);
}

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

.page-main {
  padding-top: 68px;
}

.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.88) 38%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.46) 56%, rgba(2, 6, 23, 0.75));
}

.hero-section::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -9rem;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 62%);
}

.hero-content {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 78px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 42px;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--emerald-2);
  font-size: 15px;
  font-weight: 750;
}

.hero-kicker::before,
.section-kicker::before {
  content: "✦";
  font-size: 15px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p {
  margin: 0;
  max-width: 780px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(52, 211, 153, 0.26);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.13);
  font-size: 13px;
  white-space: nowrap;
}

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

.compact-actions {
  margin-top: 22px;
}

.primary-button,
.ghost-button,
.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 760;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 20px 42px rgba(16, 185, 129, 0.26);
}

.primary-button:hover,
.ghost-button:hover,
.section-action:hover {
  transform: translateY(-2px);
}

.ghost-button {
  border: 1px solid rgba(203, 213, 225, 0.24);
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  border-color: rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.section-action {
  min-height: 38px;
  padding: 0 15px;
  color: var(--emerald-2);
  background: rgba(16, 185, 129, 0.12);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-mini-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
}

.hero-mini-list a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-weight: 700;
}

.hero-mini-list span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.22);
}

.hero-mini-list em {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.content-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 70px 0;
}

.muted-section {
  width: 100%;
  max-width: none;
  padding-left: max(22px, calc((100vw - 1180px) / 2));
  padding-right: max(22px, calc((100vw - 1180px) / 2));
  background: rgba(15, 23, 42, 0.42);
}

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

.section-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.04em;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: rgba(15, 23, 42, 0.86);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent);
}

.play-pill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.movie-card:hover .play-pill {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

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

.card-body h3 a {
  color: #f8fafc;
  transition: color 220ms ease;
}

.card-body h3 a:hover {
  color: var(--emerald-2);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.wide {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.movie-card.wide .card-poster {
  aspect-ratio: auto;
  min-height: 255px;
}

.movie-card.wide .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}

.movie-card.wide .card-body h3 {
  font-size: 24px;
}

.movie-card.wide .card-body p {
  -webkit-line-clamp: 3;
}

.ranking-section {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.36);
  background: rgba(30, 41, 59, 0.66);
}

.ranking-number {
  color: var(--emerald-2);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 58px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ranking-copy strong {
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-copy em {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 70px 0 18px;
}

.small-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
}

.filter-panel {
  margin-bottom: 26px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.search-box {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  color: var(--emerald-2);
  background: rgba(2, 6, 23, 0.5);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #f8fafc;
  background: transparent;
}

.search-box input::placeholder {
  color: #64748b;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.56);
  cursor: pointer;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(16, 185, 129, 0.14);
}

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

.category-tile {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.category-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.74);
  transition: transform 420ms ease;
}

.category-tile:hover .category-cover img {
  transform: scale(1.07);
}

.category-cover span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 25px;
  font-weight: 900;
  color: #ffffff;
}

.category-body {
  padding: 18px;
}

.category-body h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-body p {
  margin: 0 0 14px;
  color: #94a3b8;
  line-height: 1.75;
}

.category-samples {
  display: grid;
  gap: 8px;
}

.category-samples a {
  color: #cbd5e1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-samples a:hover {
  color: var(--emerald-2);
}

.detail-page {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--emerald-2);
}

.breadcrumb strong {
  color: #f8fafc;
  font-weight: 700;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 34%),
    rgba(2, 6, 23, 0.56);
  cursor: pointer;
  transition: opacity 220ms ease, visibility 220ms ease;
}

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

.overlay-play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.32);
  font-size: 30px;
}

.player-overlay span:last-child {
  max-width: min(620px, calc(100% - 44px));
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;
  text-align: center;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  color: #fecaca;
  font-size: 14px;
}

.detail-copy {
  padding-top: 26px;
}

.detail-copy h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-meta {
  margin-bottom: 20px;
}

.detail-tags {
  margin-bottom: 22px;
}

.story-box {
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
}

.story-box h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 21px;
}

.story-box p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.detail-side {
  display: grid;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 90px;
}

.side-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.74);
}

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

.side-card {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.74);
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.side-card a {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.side-card strong {
  color: #f8fafc;
}

.side-card span {
  color: #64748b;
  font-size: 13px;
}

.side-card a:hover strong {
  color: var(--emerald-2);
}

.related-section {
  padding-top: 52px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  color: #94a3b8;
  text-align: center;
  background: rgba(15, 23, 42, 0.54);
}

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

.is-hidden {
  display: none !important;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.54);
}

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

.footer-logo {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
}

.footer-brand p {
  margin: 0;
  max-width: 620px;
  color: #94a3b8;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.6);
}

.footer-links a:hover {
  color: var(--emerald-2);
}

.footer-bottom {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1040px) {
  .hero-content,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 420px;
  }

  .detail-side {
    position: static;
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

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

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

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

  .hero-section {
    min-height: auto;
  }

  .hero-content {
    width: min(100% - 32px, 1180px);
    padding: 54px 0;
    gap: 26px;
  }

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

  .content-section,
  .page-hero,
  .detail-page,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 32px, 1180px);
  }

  .content-section,
  .muted-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .muted-section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .movie-grid.four-cols,
  .movie-grid.three-cols,
  .movie-grid.two-cols,
  .ranking-grid,
  .ranking-grid.extended,
  .category-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .movie-card.wide {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .movie-card.wide .card-poster {
    min-height: 206px;
  }

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

  .movie-card.wide .card-body h3 {
    font-size: 18px;
  }

  .ranking-item {
    grid-template-columns: 38px 54px minmax(0, 1fr);
  }

  .detail-copy h1 {
    font-size: 34px;
  }

  .story-box {
    padding: 18px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand-subtitle,
  .hero-panel {
    display: none;
  }

  .movie-card.wide {
    display: block;
  }

  .movie-card.wide .card-poster {
    aspect-ratio: 2 / 3;
  }

  .hero-actions,
  .compact-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
