:root {
  --ancient-50: #f9f7f4;
  --ancient-100: #f0ebe3;
  --ancient-200: #e4dac8;
  --ancient-300: #d4c3a4;
  --ancient-600: #a67f4d;
  --ancient-700: #8b6a40;
  --ancient-800: #735632;
  --ancient-900: #5f452b;
  --sage-50: #f6f7f6;
  --sage-100: #e3e7e3;
  --sage-600: #505c50;
  --sage-700: #3f4a3f;
  --earth-50: #f7f6f4;
  --earth-100: #edeae5;
  --earth-200: #d9d3c9;
  --earth-600: #79685a;
  --earth-700: #665548;
  --earth-800: #554840;
  --earth-900: #4a3f38;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(74, 63, 56, 0.12);
  --shadow-card: 0 12px 30px rgba(74, 63, 56, 0.10);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--ancient-50), var(--white), var(--ancient-50));
  color: var(--earth-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 244, 0.95);
  border-bottom: 1px solid var(--ancient-200);
  box-shadow: 0 6px 18px rgba(74, 63, 56, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--ancient-600);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(166, 127, 77, 0.3);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1.25rem;
  color: var(--ancient-900);
  line-height: 1.1;
}

.brand-text small,
.footer-brand small {
  display: block;
  color: var(--ancient-700);
  font-size: 0.75rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  color: var(--ancient-700);
  font-weight: 600;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--ancient-600);
  transition: width 0.25s ease;
}

.desktop-nav a:hover {
  color: var(--ancient-900);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.header-search,
.mobile-search,
.wide-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--ancient-200);
  background: var(--white);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(74, 63, 56, 0.06);
}

.header-search input,
.mobile-search input,
.wide-search input {
  width: 13rem;
  border: 0;
  outline: 0;
  padding: 0.7rem 0.9rem;
  color: var(--earth-900);
  background: transparent;
}

.header-search button,
.mobile-search button,
.wide-search button {
  align-self: stretch;
  border: 0;
  padding: 0 1rem;
  color: var(--white);
  background: var(--ancient-600);
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--ancient-900);
  margin: 0.35rem 0;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--ancient-200);
  background: var(--ancient-50);
  padding: 1rem;
}

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

.mobile-nav nav {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: var(--ancient-800);
  font-weight: 700;
}

.mobile-nav a:hover {
  background: var(--ancient-100);
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--earth-900);
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(74, 63, 56, 0.34), transparent 38%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 45rem;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ancient-700);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--ancient-200);
}

.hero-copy h1,
.page-hero h1,
.section-head h2,
.section-copy h2,
.detail-meta-card h1 {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
}

.hero-copy h1 {
  margin: 0.85rem 0 1rem;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.05;
}

.hero-copy p {
  max-width: 42rem;
  margin: 0 0 1.35rem;
  color: var(--ancient-100);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(166, 127, 77, 0.88);
  color: var(--white);
  padding: 0.38rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-head a,
.filter-chips button,
.wide-search button {
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  border-radius: 0.85rem;
  padding: 0 1.55rem;
  font-weight: 800;
}

.primary-button {
  background: var(--ancient-600);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(166, 127, 77, 0.3);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

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

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

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

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 2rem;
  background: var(--white);
}

.search-strip,
.section-block {
  padding: 4rem 0;
}

.search-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 32rem);
  gap: 2rem;
  align-items: center;
}

.search-strip h2,
.page-hero h1,
.section-copy h2 {
  margin: 0.45rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.search-strip p,
.page-hero p,
.section-copy p {
  margin: 0;
  color: var(--earth-600);
  font-size: 1.08rem;
}

.wide-search input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1.25rem;
}

.wide-search button {
  padding: 0 1.5rem;
}

.wide-search button:hover,
.header-search button:hover,
.mobile-search button:hover {
  background: var(--ancient-700);
}

.section-alt {
  background: var(--sage-50);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0.3rem 0 0;
  color: var(--earth-900);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.section-head a {
  color: var(--ancient-700);
  font-weight: 800;
}

.section-head a:hover {
  color: var(--ancient-900);
  transform: translateX(2px);
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--ancient-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--ancient-300);
  box-shadow: 0 22px 44px rgba(74, 63, 56, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ancient-100), var(--sage-100));
}

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

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

.poster-wrap img {
  transition: transform 0.7s ease;
}

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 55%);
}

.play-badge {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(166, 127, 77, 0.92);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.card-body {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.card-body strong {
  color: var(--earth-900);
  font-size: 1.07rem;
  line-height: 1.3;
}

.card-body em,
.compact-card em,
.rank-card em,
.rank-item em {
  color: var(--earth-600);
  font-style: normal;
  font-size: 0.86rem;
}

.card-desc,
.compact-card small,
.rank-card small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--earth-700);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row span {
  background: var(--ancient-100);
  color: var(--ancient-700);
}

.warm-panel {
  background: linear-gradient(135deg, var(--ancient-50), var(--sage-50));
}

.split-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0;
}

.category-pills,
.category-grid {
  display: grid;
  gap: 1rem;
}

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

.category-pills a {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ancient-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ancient-800);
  font-weight: 800;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-pills a:hover {
  transform: translateY(-4px);
  border-color: var(--ancient-300);
}

.ranking-list {
  display: grid;
  gap: 0.75rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(10rem, 22rem);
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ancient-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(74, 63, 56, 0.06);
}

.rank-item span,
.rank-number {
  color: var(--ancient-600);
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 900;
  font-size: 1.2rem;
}

.page-shell {
  background: linear-gradient(180deg, var(--ancient-50), var(--white) 35%, var(--ancient-50));
}

.page-hero {
  padding: 3.5rem 0 1rem;
}

.compact-hero {
  max-width: 900px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: var(--earth-600);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--ancient-700);
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--earth-900);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card span {
  position: absolute;
  z-index: 2;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  color: var(--white);
}

.category-card strong {
  display: block;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

.category-card em {
  display: block;
  color: var(--ancient-100);
  font-style: normal;
}

.filter-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding: 1.1rem;
  border: 1px solid var(--ancient-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.filter-search input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--ancient-200);
  border-radius: 999px;
  outline: 0;
  padding: 0 1.1rem;
  background: var(--white);
  color: var(--earth-900);
}

.filter-search input:focus {
  border-color: var(--ancient-600);
  box-shadow: 0 0 0 4px rgba(166, 127, 77, 0.12);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-chips button {
  border: 1px solid var(--ancient-200);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: var(--white);
  color: var(--ancient-700);
  font-weight: 800;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  border-color: var(--ancient-600);
  background: var(--ancient-600);
  color: var(--white);
}

.no-results {
  display: none;
  margin: 0;
  color: var(--earth-600);
  font-weight: 700;
}

.no-results.is-visible {
  display: block;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 4rem 9rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--ancient-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  border-color: var(--ancient-300);
}

.rank-card img {
  aspect-ratio: 16 / 9;
  border-radius: 0.85rem;
}

.rank-copy {
  display: grid;
  gap: 0.3rem;
}

.rank-copy strong {
  font-size: 1.2rem;
  color: var(--earth-900);
}

.detail-hero {
  padding: 2rem 0 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(20rem, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay strong {
  font-size: 1.05rem;
}

.play-circle {
  width: 4.25rem;
  height: 4.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(166, 127, 77, 0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  font-size: 1.8rem;
  padding-left: 0.15rem;
}

.player-message {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  margin: 0;
  color: var(--white);
  text-align: center;
  font-weight: 700;
}

.player-message:empty {
  display: none;
}

.detail-side {
  display: grid;
  gap: 1rem;
}

.detail-poster {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--ancient-100);
  box-shadow: var(--shadow-card);
}

.detail-meta-card,
.content-card,
.about-grid article {
  border: 1px solid var(--ancient-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-meta-card {
  padding: 1.25rem;
}

.detail-meta-card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.12;
}

.detail-meta-card p {
  margin: 0 0 1rem;
  color: var(--earth-700);
}

.detail-meta-card dl {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.detail-meta-card dl div {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.detail-meta-card dt {
  color: var(--earth-600);
  font-weight: 700;
}

.detail-meta-card dd {
  margin: 0;
  color: var(--earth-900);
  font-weight: 700;
}

.detail-tags span {
  background: var(--ancient-100);
  color: var(--ancient-700);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.content-card,
.about-grid article {
  padding: 1.4rem;
}

.content-card h2,
.about-grid h2 {
  margin: 0 0 0.75rem;
  color: var(--earth-900);
  font-size: 1.35rem;
}

.content-card p,
.about-grid p {
  margin: 0;
  color: var(--earth-700);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  transition: background 0.25s ease;
}

.compact-card:hover {
  background: var(--ancient-50);
}

.compact-card img {
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
}

.compact-card span {
  display: grid;
  gap: 0.2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.site-footer {
  margin-top: auto;
  background: var(--earth-900);
  color: var(--earth-100);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-brand .brand-mark {
  box-shadow: none;
}

.footer-brand strong {
  color: var(--white);
}

.footer-brand small,
.site-footer p,
.site-footer a,
.footer-bottom {
  color: var(--ancient-200);
}

.site-footer p {
  max-width: 34rem;
}

.site-footer h3 {
  margin: 0 0 1rem;
  color: var(--ancient-300);
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin: 0.45rem 0;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--earth-800);
  font-size: 0.9rem;
}

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

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

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

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

  .detail-side {
    grid-template-columns: 18rem minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .hero-slider {
    height: 74vh;
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .search-strip,
  .split-layout,
  .detail-content,
  .footer-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-item {
    grid-template-columns: 3rem 1fr;
  }

  .rank-item em {
    grid-column: 2;
  }

  .rank-card {
    grid-template-columns: 3rem 7rem minmax(0, 1fr);
  }

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

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 1rem, 1180px);
  }

  .brand-text small {
    display: none;
  }

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

  .hero-tags span:nth-child(n + 4) {
    display: none;
  }

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

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

  .movie-grid,
  .three-grid,
  .related-grid,
  .category-grid,
  .category-pills {
    grid-template-columns: 1fr;
  }

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

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

  .rank-card img {
    grid-column: 2;
    width: 100%;
  }
}
