:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --text: #3f2f1d;
  --muted: #7c6a57;
  --border: rgba(217, 119, 6, .22);
  --shadow: 0 16px 40px rgba(120, 53, 15, .12);
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50), #fff 36%, var(--orange-50));
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, .96), rgba(255, 247, 237, .96));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(120, 53, 15, .08);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(245, 158, 11, .32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
  color: var(--amber-900);
  font-size: 1.08rem;
}

.brand-text small {
  color: var(--amber-600);
  font-size: .78rem;
  margin-top: 3px;
}

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

.nav-link {
  color: var(--amber-800);
  font-weight: 700;
  transition: color .2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box,
.wide-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(217, 119, 6, .35);
  background: rgba(255, 255, 255, .78);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--amber-600);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.search-box input,
.wide-search input {
  width: 220px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--amber-100);
  color: var(--amber-900);
  font-weight: 900;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--amber-800);
  font-weight: 700;
}

.mobile-link:hover {
  background: var(--amber-50);
}

.mobile-search {
  display: none;
}

.search-panel {
  position: fixed;
  top: 76px;
  right: max(16px, calc((100vw - 1180px) / 2));
  width: min(420px, calc(100vw - 32px));
  max-height: 72vh;
  overflow: auto;
  display: none;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 60px rgba(120, 53, 15, .18);
}

.search-panel.is-open {
  display: block;
}

.search-panel-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: rgba(255, 251, 235, .98);
  border-bottom: 1px solid var(--border);
}

.search-panel-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--amber-100);
  color: var(--amber-900);
  font-size: 1.2rem;
}

.search-results {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.search-result {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--amber-50);
  transition: transform .2s ease, box-shadow .2s ease;
}

.search-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(120, 53, 15, .12);
}

.search-result-thumb {
  min-height: 52px;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  background-color: var(--amber-200);
}

.search-result strong {
  display: block;
  color: var(--amber-900);
  margin-bottom: 4px;
}

.search-result em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: .88rem;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #1f1306;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  background-position: center;
  background-size: cover;
  transition: opacity .7s ease, visibility .7s ease, transform 6s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 96px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .92);
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .02em;
}

.eyebrow.dark {
  background: var(--amber-100);
  color: var(--amber-700);
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 26px;
  background: var(--amber-500);
  color: #fff;
  box-shadow: 0 16px 32px rgba(245, 158, 11, .35);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .46);
  background: rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(8px);
}

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

.primary-btn:hover {
  background: var(--amber-600);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: background .2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, .38);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-400);
}

.home-search-band {
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(255, 251, 235, .92), rgba(255, 237, 213, .76));
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 24px;
  align-items: center;
}

.search-band-inner h2 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.search-band-inner p {
  margin: 0;
  color: var(--amber-700);
  line-height: 1.7;
}

.wide-search {
  width: 100%;
  padding: 13px 18px;
  background: rgba(255, 255, 255, .9);
}

.wide-search input {
  width: 100%;
}

.page-section {
  padding: 62px 0;
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.section-head p {
  margin: 0;
  color: var(--amber-700);
  line-height: 1.65;
}

.section-link {
  min-width: max-content;
  min-height: 42px;
  padding: 0 18px;
  background: var(--amber-100);
  color: var(--amber-700);
}

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

.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 {
  min-width: 0;
}

.movie-card a {
  display: grid;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, .14);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(120, 53, 15, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.movie-card a:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, .48);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  min-height: 190px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-color: var(--amber-100);
}

.poster-frame::after,
.compact-thumb::after,
.rank-thumb::after,
.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, .06), rgba(120, 53, 15, .08));
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .54));
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(245, 158, 11, .94);
  color: #fff;
}

.poster-year {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .88);
  color: var(--amber-900);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-meta {
  color: var(--amber-600);
  font-size: .84rem;
  font-weight: 800;
}

.card-body strong {
  color: var(--amber-900);
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-line {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.62;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--amber-700);
  font-size: .78rem;
  font-weight: 700;
}

.movie-card.wide a {
  grid-template-columns: 180px 1fr;
}

.movie-card.wide .poster-frame {
  min-height: 100%;
}

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

.category-tile,
.category-card-large a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 28px rgba(120, 53, 15, .08);
  transition: transform .22s ease, box-shadow .22s ease;
}

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

.category-tile strong,
.category-card-large h2 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: 1.2rem;
}

.category-tile span,
.category-card-large p {
  color: var(--amber-700);
  font-size: .92rem;
  line-height: 1.55;
}

.category-card-large a {
  min-height: 230px;
  background: linear-gradient(135deg, #fff, var(--amber-50));
}

.mini-title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-title-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .1);
  color: var(--amber-800);
  font-size: .8rem;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 86px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(120, 53, 15, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-num,
.ranking-number {
  color: var(--amber-500);
  font-size: 1.25rem;
  font-weight: 900;
}

.rank-thumb {
  position: relative;
  min-height: 58px;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  background-color: var(--amber-100);
}

.rank-info strong {
  display: block;
  color: var(--amber-900);
  line-height: 1.3;
}

.rank-info em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: .84rem;
}

.page-hero {
  padding: 64px 0 18px;
}

.compact-hero {
  max-width: 880px;
  text-align: left;
}

.page-hero h1 {
  margin: 0 0 14px;
  color: var(--amber-900);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -.035em;
}

.page-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--amber-700);
  line-height: 1.8;
  font-size: 1.08rem;
}

.filter-row {
  padding: 18px 0 0;
}

.page-filter {
  max-width: 560px;
}

.empty-message {
  display: none;
  padding: 42px 20px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 10px 24px rgba(120, 53, 15, .07);
}

.empty-message.is-visible {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-row a {
  display: grid;
  grid-template-columns: 64px 1fr 1.2fr 130px;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 12px 18px;
  border: 1px solid rgba(217, 119, 6, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(120, 53, 15, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ranking-row a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ranking-title {
  color: var(--amber-900);
  font-weight: 850;
}

.ranking-meta,
.ranking-category {
  color: var(--muted);
  font-size: .92rem;
}

.ranking-category {
  justify-self: end;
  color: var(--amber-700);
  font-weight: 800;
}

.detail-wrap {
  padding: 30px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--amber-700);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--amber-500);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #111;
  box-shadow: 0 24px 60px rgba(39, 23, 5, .24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, .15), rgba(0, 0, 0, .48));
  transition: opacity .22s ease, visibility .22s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(245, 158, 11, .95);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 20px 44px rgba(245, 158, 11, .35);
  transform: translateZ(0);
  transition: transform .2s ease, background .2s ease;
}

.player-overlay:hover .play-circle {
  transform: scale(1.08);
  background: var(--amber-600);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, .84fr);
  gap: 34px;
  margin-top: 34px;
}

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

.detail-heading {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(120, 53, 15, .07);
}

.detail-cover {
  position: relative;
  min-height: 300px;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  background-color: var(--amber-100);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.detail-heading h1 {
  margin: 0 0 14px;
  color: var(--amber-900);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.lead-text {
  margin: 0 0 18px;
  color: var(--amber-800);
  font-size: 1.08rem;
  line-height: 1.75;
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-weight: 800;
  font-size: .88rem;
}

.content-card {
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid rgba(217, 119, 6, .16);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(120, 53, 15, .06);
}

.content-card.soft-card {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

.content-card h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: var(--amber-900);
  font-size: 1.55rem;
}

.content-card p {
  margin: 0;
  color: #51402b;
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(120, 53, 15, .07);
}

.compact-list {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.compact-thumb {
  position: relative;
  min-height: 64px;
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  background-color: var(--amber-100);
}

.compact-card strong {
  display: block;
  color: var(--amber-900);
  line-height: 1.35;
}

.compact-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: .86rem;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50));
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.footer-brand p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--amber-700);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--amber-700);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--amber-500);
}

.copyright {
  margin: 0;
  color: var(--amber-600);
  font-size: .92rem;
}

@media (max-width: 1024px) {
  .desktop-nav {
    gap: 16px;
  }

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .menu-toggle,
  .mobile-search {
    display: flex;
  }

  .mobile-search input {
    width: 100%;
  }

  .search-panel {
    top: 82px;
    left: 16px;
    right: 16px;
    width: auto;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 120px 0 88px;
  }

  .hero-arrow {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .hero-arrow.prev {
    left: 18px;
  }

  .hero-arrow.next {
    right: 18px;
  }

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

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

  .movie-grid.four-cols,
  .movie-grid.three-cols,
  .movie-grid.two-cols,
  .category-grid,
  .category-overview-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .ranking-meta,
  .ranking-category {
    grid-column: 2;
    justify-self: start;
  }

  .detail-heading {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .detail-cover {
    min-height: 420px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 62px;
  }

  .brand-text small {
    display: none;
  }

  .container,
  .header-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .hero h1 {
    font-size: clamp(2.3rem, 13vw, 3.7rem);
  }

  .page-section {
    padding: 42px 0;
  }

  .poster-frame {
    min-height: 220px;
  }

  .detail-cover {
    min-height: 320px;
  }

  .compact-card {
    grid-template-columns: 78px 1fr;
  }
}
