:root {
  color-scheme: dark;
  --bg: #080b12;
  --bg-soft: #111827;
  --bg-card: #18202f;
  --bg-card-strong: #1f2937;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --red: #dc2626;
  --red-2: #ef4444;
  --orange: #f97316;
  --blue: #38bdf8;
  --purple: #a855f7;
  --green: #22c55e;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(220, 38, 38, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.13), transparent 30rem),
    linear-gradient(180deg, #0f172a 0%, #05070c 42%, #0f172a 100%);
  color: var(--text);
  font-family: 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%;
  background: linear-gradient(135deg, #1f2937, #111827);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(31, 41, 55, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.36);
  font-size: 16px;
}

.brand-text {
  max-width: 330px;
  overflow: hidden;
  font-size: 22px;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: linear-gradient(90deg, #ef4444, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-row input,
.filter-row select {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(31, 41, 55, 0.86);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-search input {
  width: 210px;
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-row input:focus,
.filter-row select:focus {
  border-color: rgba(239, 68, 68, 0.78);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
  background: rgba(15, 23, 42, 0.96);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: var(--red);
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.88);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mobile-nav a {
  border-radius: 12px;
  padding: 10px 12px;
  color: #cbd5e1;
  background: rgba(31, 41, 55, 0.74);
  text-align: center;
}

.hero {
  position: relative;
  height: min(72vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  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.92) 0%, rgba(0, 0, 0, 0.65) 42%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(0deg, #05070c 0%, rgba(5, 7, 12, 0.22) 48%, rgba(5, 7, 12, 0.38) 100%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 78px;
  width: min(720px, calc(100% - 64px));
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 6px 14px;
  color: #fff;
  background: rgba(220, 38, 38, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #d1d5db;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-meta span {
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.66);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 34px rgba(220, 38, 38, 0.32);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(15, 23, 42, 0.58);
}

.btn-soft {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.18);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  display: flex;
  gap: 8px;
}

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

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

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

.section-stack {
  display: grid;
  gap: 64px;
  padding: 58px 0 72px;
}

.section-block,
.section-panel,
.toolbar-panel,
.detail-content,
.side-card,
.player-card,
.category-preview {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.54);
  box-shadow: var(--shadow);
}

.section-block,
.section-panel,
.category-preview {
  padding: clamp(20px, 4vw, 34px);
}

.section-panel {
  overflow: hidden;
}

.panel-blue {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.18), rgba(88, 28, 135, 0.16));
}

.panel-red {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.26), rgba(154, 52, 18, 0.16));
}

.panel-orange {
  background: linear-gradient(135deg, rgba(154, 52, 18, 0.20), rgba(15, 23, 42, 0.66));
}

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

.section-heading h2,
.detail-content h1,
.page-hero h1,
.detail-content h2,
.side-card h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading a {
  flex-shrink: 0;
  color: #fb7185;
  font-weight: 800;
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.82);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111827;
}

.movie-card-large .card-poster,
.movie-card-wide .card-poster {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .card-poster img,
.rank-card:hover img,
.category-tile:hover img {
  transform: scale(1.07);
}

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 62%);
}

.card-badge,
.card-duration {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 4px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  top: 10px;
  left: 10px;
  background: var(--red);
}

.card-duration {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  min-height: 3em;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
  color: #f87171;
}

.card-body p,
.rank-info p,
.side-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.2em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.card-tags span,
.tag-cloud a {
  border-radius: 999px;
  padding: 4px 9px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  font-size: 12px;
}

.h-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 280px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

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

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 132px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 12px;
  background: rgba(30, 41, 59, 0.62);
  transition: background 0.22s ease, transform 0.22s ease;
}

.rank-card:hover {
  transform: translateX(4px);
  background: rgba(30, 41, 59, 0.92);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 20px;
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
}

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

.rank-info h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 17px;
}

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

.category-tile {
  position: relative;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  min-height: 178px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.62));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(248, 113, 113, 0.7);
}

.category-cover-stack {
  position: relative;
  min-height: 130px;
}

.category-cover-stack img {
  position: absolute;
  width: 96px;
  height: 126px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease;
}

.category-cover-stack img:nth-child(1) {
  left: 0;
  top: 10px;
  z-index: 3;
}

.category-cover-stack img:nth-child(2) {
  left: 34px;
  top: 0;
  z-index: 2;
  opacity: 0.84;
}

.category-cover-stack img:nth-child(3) {
  left: 66px;
  top: 16px;
  z-index: 1;
  opacity: 0.7;
}

.category-text span {
  color: #fb7185;
  font-size: 13px;
  font-weight: 900;
}

.category-text h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.category-text p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tone-blue {
  --accent: #38bdf8;
}

.tone-orange,
.tone-yellow {
  --accent: #fb923c;
}

.tone-purple,
.tone-pink {
  --accent: #c084fc;
}

.tone-cyan {
  --accent: #22d3ee;
}

.tone-green {
  --accent: #4ade80;
}

.tone-red {
  --accent: #f87171;
}

.category-tile[class*="tone-"] .category-text span,
.category-preview[class*="tone-"] .eyebrow {
  color: var(--accent);
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 25% 20%, rgba(239, 68, 68, 0.24), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.96));
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% 45%;
  height: 420px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.16);
  filter: blur(80px);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.compact-hero .page-hero-inner {
  padding: 58px 0;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1;
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #f87171;
}

.toolbar-panel {
  margin: 28px 0;
  padding: 18px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}

.filter-row label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 700;
}

.filter-row input,
.filter-row select {
  width: 100%;
  border-radius: 16px;
  padding: 12px 14px;
}

.big-search {
  display: flex;
  gap: 12px;
  width: min(720px, 100%);
  margin-top: 28px;
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
}

.detail-shell {
  padding: 34px 0 72px;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  padding: 0;
  background: #000;
}

.video-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at 50% 45%, rgba(220, 38, 38, 0.32), transparent 38%);
  text-align: center;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 52px rgba(220, 38, 38, 0.4);
  font-size: 28px;
}

.player-cover strong {
  max-width: 760px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.1;
}

.player-cover em {
  color: #fecaca;
  font-style: normal;
  font-weight: 800;
}

.detail-content {
  padding: clamp(20px, 4vw, 34px);
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.detail-content h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
}

.detail-category {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  background: var(--red);
  font-weight: 800;
}

.detail-content section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-content h2,
.side-card h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.detail-content p {
  margin: 0;
  color: #d1d5db;
  font-size: 16px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.side-card {
  overflow: hidden;
  padding: 20px;
}

.poster-side img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 16px;
}

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

.info-list dt {
  color: var(--muted-2);
}

.info-list dd {
  margin: 0;
  color: #e5e7eb;
}

.related-section {
  margin-top: 34px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), #020617);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
  padding: 48px 0;
}

.footer-logo {
  margin-bottom: 14px;
  font-size: 20px;
}

.footer-brand p,
.footer-column p,
.footer-column a {
  color: var(--muted);
}

.footer-column h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-column ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a:hover {
  color: #f87171;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px;
  color: var(--muted-2);
  text-align: center;
}

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

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

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

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

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

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

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    height: 62px;
  }

  .brand-text {
    max-width: 210px;
    font-size: 18px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    left: 20px;
    bottom: 88px;
    width: calc(100% - 40px);
  }

  .hero-dots {
    left: 20px;
    right: auto;
  }

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

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

  .category-tile {
    grid-template-columns: 1fr;
  }

  .category-cover-stack {
    min-height: 156px;
  }

  .filter-row,
  .big-search {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .rank-card {
    grid-template-columns: auto 92px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-info p,
  .rank-meta {
    display: none;
  }

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

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

  .mobile-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-poster,
  .movie-card-large .card-poster,
  .movie-card-wide .card-poster {
    aspect-ratio: 16 / 9;
  }

  .rank-card {
    grid-template-columns: 44px 82px minmax(0, 1fr);
  }

  .rank-num {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}
