:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --orange-500: #f97316;
  --cream: #fff7ed;
  --page: #faf7f0;
  --shadow-soft: 0 24px 80px rgba(41, 37, 36, 0.18);
  --shadow-card: 0 18px 45px rgba(41, 37, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.18), transparent 32rem),
    linear-gradient(180deg, #fffaf0 0%, var(--page) 42%, #f3eee6 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(180, 83, 9, 0.96), rgba(68, 64, 60, 0.96));
  box-shadow: 0 12px 40px rgba(41, 37, 36, 0.22);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35);
}

.brand-name {
  font-size: 1.18rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-link,
.mobile-link {
  position: relative;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--amber-300);
  opacity: 1;
}

.nav-link.is-active::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--amber-300);
  border-radius: 99px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  padding: 0 0 18px;
  margin: 0 auto;
}

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

.mobile-link {
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #fff;
  background: radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.38), transparent 34rem), linear-gradient(135deg, #1c1917, #3f2514 58%, #78350f);
}

.hero-bg-glow {
  position: absolute;
  inset: auto -10% -32% 34%;
  height: 360px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4), transparent 64%);
  filter: blur(12px);
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  padding: 86px 0 90px;
  margin: 0 auto;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 52px;
  min-height: 500px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.5s ease both;
}

.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.46);
}

.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transform: scale(1.02);
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--amber-300);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #7c2d12;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 237, 213, 0.92);
  border-radius: 999px;
}

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

.primary-button,
.secondary-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.34);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-arrow,
.hero-dot {
  cursor: pointer;
  border: 0;
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-size: 1.7rem;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 14px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 999px;
}

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

.search-band,
.content-section,
.player-section,
.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band {
  margin-top: -42px;
  margin-bottom: 50px;
}

.search-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.search-inner h2,
.section-heading h2,
.rank-panel h2,
.story-card h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(440px, 100%);
  padding: 10px 16px;
  color: var(--stone-600);
  background: #fff;
  border: 1px solid rgba(120, 113, 108, 0.18);
  border-radius: 999px;
}

.search-box input {
  width: 100%;
  min-height: 34px;
  color: var(--stone-900);
  background: transparent;
  border: 0;
  outline: 0;
}

.content-section {
  padding: 34px 0;
}

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

.text-link {
  min-height: 38px;
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.12);
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card.is-hidden,
.rank-row.is-hidden,
.compact-card.is-hidden {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(120, 113, 108, 0.12);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(41, 37, 36, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #d6d3d1, #f5f5f4);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.play-ring,
.play-large {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.play-ring {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
}

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

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 3.05em;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--stone-900);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 0.9rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  margin-bottom: 10px;
  color: var(--amber-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  color: var(--stone-700);
  background: var(--stone-100);
}

.featured-card,
.page-hero,
.detail-inner,
.video-shell,
.story-card,
.rank-panel {
  border: 1px solid rgba(120, 113, 108, 0.12);
  box-shadow: var(--shadow-card);
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(254, 243, 199, 0.9));
  border-radius: 28px;
}

.featured-poster {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 22px;
}

.featured-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-large {
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
  transform: translate(-50%, -50%);
}

.featured-copy {
  align-self: center;
}

.lead-text {
  color: var(--stone-900);
  font-size: 1.08rem;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px;
  color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.tile-mask {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(28, 25, 23, 0.88));
}

.tile-name {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile small {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  opacity: 0.84;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 28px;
}

.compact-list,
.page-hero-list,
.mini-rank-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(120, 113, 108, 0.12);
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  box-shadow: 0 12px 30px rgba(41, 37, 36, 0.12);
  transform: translateX(4px);
}

.compact-card img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  background: var(--stone-200);
  border-radius: 12px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: var(--stone-900);
}

.compact-card em {
  color: var(--stone-600);
  font-size: 0.86rem;
  font-style: normal;
}

.rank-panel {
  align-self: start;
  padding: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--stone-900), #4a2a14);
  border-radius: 28px;
}

.mini-rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-rank-item span,
.rank-number {
  color: var(--amber-300);
  font-weight: 900;
}

.mini-rank-item strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-rank-item em {
  font-style: normal;
}

.full-button {
  width: 100%;
  margin-top: 18px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 34px;
  width: min(1180px, calc(100% - 32px));
  padding: 48px;
  margin: 42px auto 48px;
  color: #fff;
  background: radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.3), transparent 32rem), linear-gradient(135deg, var(--stone-950), #4a2a14 62%, #78350f);
  border-radius: 32px;
}

.small-hero {
  min-height: 340px;
}

.library-hero,
.rank-hero {
  min-height: 380px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

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

.page-search {
  margin-top: 0;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(120, 113, 108, 0.12);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(41, 37, 36, 0.08);
}

.rank-link {
  display: grid;
  grid-template-columns: 56px 78px minmax(0, 1fr) minmax(220px, auto);
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
}

.rank-link img {
  width: 78px;
  height: 104px;
  object-fit: cover;
  background: var(--stone-200);
  border-radius: 14px;
}

.rank-main strong,
.rank-main em {
  display: block;
}

.rank-main strong {
  color: var(--stone-900);
  font-size: 1.08rem;
}

.rank-main em,
.rank-meta {
  color: var(--stone-600);
  font-style: normal;
}

.rank-meta {
  text-align: right;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #fff;
  background: var(--stone-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(2px);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.66), rgba(28, 25, 23, 0.94));
}

.detail-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 40px;
  width: min(1180px, calc(100% - 32px));
  padding: 46px;
  margin: 54px auto;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  backdrop-filter: blur(18px);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.detail-info {
  align-self: center;
}

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

.player-section {
  padding: 48px 0 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  border-color: rgba(0, 0, 0, 0.3);
  border-radius: 28px;
}

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

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(217, 119, 6, 0.92);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-play-button.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.player-message {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: none;
  padding: 12px 14px;
  color: #fff;
  background: rgba(28, 25, 23, 0.78);
  border-radius: 14px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 22px;
  padding: 28px 0;
}

.story-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
}

.story-card p {
  margin: 12px 0 0;
  color: var(--stone-700);
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.info-list div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
}

.info-list dt {
  color: var(--stone-600);
}

.info-list dd {
  margin: 0;
  color: var(--stone-900);
  font-weight: 800;
}

.related-section {
  padding-bottom: 58px;
}

.text-page {
  max-width: 900px;
}

.site-footer {
  margin-top: 44px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, var(--stone-950), var(--stone-900));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  padding: 46px 0;
  margin: 0 auto;
}

.footer-brand p {
  max-width: 520px;
}

.footer-logo {
  color: #fff;
}

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

.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-slide,
  .page-hero,
  .detail-inner,
  .featured-card,
  .split-section,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .rank-link {
    grid-template-columns: 46px 72px minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .brand-name {
    font-size: 1rem;
  }

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

  .hero-shell {
    padding: 42px 0 64px;
  }

  .hero-image,
  .hero-image img {
    min-height: 300px;
  }

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

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

  .page-hero,
  .detail-inner {
    width: min(100% - 24px, 1180px);
    padding: 26px;
    border-radius: 24px;
  }

  .detail-poster img {
    height: auto;
    max-height: 520px;
  }

  .rank-link {
    grid-template-columns: 42px 64px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .rank-link img {
    width: 64px;
    height: 86px;
  }

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

@media (max-width: 520px) {
  .wide-grid,
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .poster-wrap {
    aspect-ratio: auto;
    min-height: 180px;
  }

  .movie-card-body h3 {
    min-height: auto;
  }

  .category-tile {
    min-height: 170px;
  }
}
