:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-solid: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.62);
  --border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --orange: #ea580c;
  --blue: #3b82f6;
  --green: #22c55e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.13), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.12));
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  color: var(--amber-light);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.brand-name {
  font-size: 1.28rem;
  background: linear-gradient(90deg, var(--amber-light), var(--orange), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-spark {
  color: #60a5fa;
  font-size: 1.05rem;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.68);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 20px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid var(--border);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
}

.mobile-link.is-active,
.mobile-link:hover {
  background: rgba(245, 158, 11, 0.12);
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  height: 72vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s ease, transform 1s ease;
  display: flex;
  align-items: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.08)),
    linear-gradient(0deg, var(--bg), rgba(2, 6, 23, 0.15) 45%, rgba(2, 6, 23, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 48px));
  margin: 72px auto 0;
  max-width: 1280px;
}

.hero-tags,
.tag-list,
.chip-row,
.detail-meta,
.movie-card-meta,
.hero-meta,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--amber-light);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.6rem, 8vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 12ch;
}

.hero-content p {
  max-width: 680px;
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  margin: 24px 0 32px;
  color: #cbd5e1;
}

.hero-meta span,
.movie-card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-meta svg,
.movie-card-meta svg,
.detail-meta svg {
  color: var(--amber-light);
}

.primary-btn,
.ghost-btn,
.home-search button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn,
.home-search button {
  padding: 14px 24px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  color: white;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.25);
}

.primary-btn:hover,
.home-search button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.38);
}

.ghost-btn,
.section-more {
  padding: 12px 18px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.ghost-btn:hover,
.section-more:hover {
  background: rgba(245, 158, 11, 0.18);
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 20px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 28px;
  padding: 36px;
  margin-top: -48px;
  position: relative;
  z-index: 5;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.intro-copy h2,
.section-heading h2,
.sidebar-box h2,
.movie-info-panel h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.intro-copy p,
.section-heading p {
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.8;
}

.home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.48);
}

.home-search input,
.search-input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.home-search input {
  padding: 0 16px;
}

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

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section-heading h2::after {
  content: "";
  display: inline-block;
  width: 86px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.72), transparent);
}

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

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

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

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

.movie-link {
  display: block;
  height: 100%;
}

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 13px;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.45s ease;
}

.movie-link:hover .movie-thumb img {
  transform: scale(1.09);
}

.movie-link:hover .movie-thumb::after {
  opacity: 1;
}

.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
  font-size: 0.74rem;
  font-weight: 900;
}

.duration-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: rgba(245, 158, 11, 0.9);
}

.play-bubble {
  position: absolute;
  z-index: 4;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(245, 158, 11, 0.88);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-link:hover .play-bubble {
  opacity: 1;
  transform: scale(1);
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-link:hover h3 {
  color: var(--amber-light);
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-meta {
  color: #94a3b8;
  font-size: 0.82rem;
  gap: 12px;
}

.category-grid,
.category-board {
  display: grid;
  gap: 18px;
}

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

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

.category-tile,
.category-card {
  position: relative;
  min-height: 150px;
  padding: 24px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(245, 158, 11, 0.17);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(59, 130, 246, 0.09)),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.42);
}

.category-tile span,
.category-card strong {
  display: block;
  position: relative;
  z-index: 2;
  font-size: 1.28rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-tile em,
.category-card em {
  position: relative;
  z-index: 2;
  color: #cbd5e1;
  font-style: normal;
  line-height: 1.65;
}

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card img,
.category-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  opacity: 0.52;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

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

.category-overlay {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.1));
}

.rank-list,
.ranking-list,
.side-list {
  display: grid;
  gap: 14px;
}

.rank-row,
.ranking-card a,
.side-card {
  display: grid;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.66);
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row {
  grid-template-columns: 48px 100px 1fr auto;
  padding: 12px 16px;
}

.rank-row:hover,
.ranking-card a:hover,
.side-card:hover {
  background: rgba(30, 41, 59, 0.88);
  transform: translateY(-2px);
}

.rank-num,
.ranking-index {
  font-size: 1.75rem;
  font-weight: 950;
  color: var(--amber);
}

.rank-cover,
.rank-cover img {
  width: 100px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  object-fit: cover;
}

.rank-text,
.ranking-copy,
.side-info {
  min-width: 0;
}

.rank-text strong,
.ranking-copy strong,
.side-info strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-text em,
.ranking-copy em,
.side-info em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.rank-score,
.ranking-score {
  color: var(--amber-light);
  font-weight: 950;
}

.page-main,
.movie-main {
  padding-top: 72px;
}

.page-hero {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 72px 0 44px;
}

.page-hero > div {
  width: 100%;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at right, rgba(245, 158, 11, 0.2), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.54));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-light);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
  display: grid;
  gap: 16px;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.search-input {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.38);
}

.chip-row {
  gap: 10px;
}

.filter-chip {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(30, 41, 59, 0.56);
  color: #cbd5e1;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: white;
  border-color: rgba(245, 158, 11, 0.46);
  background: rgba(245, 158, 11, 0.22);
}

.empty-state {
  display: none;
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}

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

.ranking-card a {
  grid-template-columns: 64px 150px 1fr auto;
  padding: 14px;
}

.ranking-card img {
  width: 150px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.breadcrumb {
  width: min(1280px, calc(100% - 48px));
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.movie-layout {
  width: min(1280px, calc(100% - 48px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.watch-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: black;
  box-shadow: var(--shadow);
}

.video-node {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 18rem),
    rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.3);
}

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

.movie-info-panel,
.sidebar-box {
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.movie-title-line {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.movie-title-line img {
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
}

.movie-title-line h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.detail-meta {
  color: var(--muted);
  gap: 14px;
}

.tag-list {
  margin: 20px 0;
}

.movie-info-panel .one-line {
  color: var(--amber-light);
  font-weight: 850;
  font-size: 1.08rem;
}

.movie-info-panel h2 {
  margin: 28px 0 10px;
  font-size: 1.38rem;
}

.movie-info-panel p {
  color: #d1d5db;
  line-height: 1.9;
}

.movie-sidebar {
  position: sticky;
  top: 96px;
}

.side-card {
  grid-template-columns: 118px minmax(0, 1fr);
  padding: 10px;
}

.side-thumb,
.side-thumb img {
  width: 118px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  object-fit: cover;
}

.inline-related {
  width: 100%;
  padding: 48px 0 0;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.76);
}

.footer-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
}

.footer-about p,
.footer-links a {
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  color: #64748b;
  text-align: center;
  padding: 18px 24px;
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .all-grid,
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .movie-sidebar {
    position: static;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero-carousel {
    min-height: 560px;
    height: 82vh;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, var(--bg), rgba(2, 6, 23, 0.48)),
      rgba(2, 6, 23, 0.42);
  }

  .hero-content {
    width: calc(100% - 42px);
  }

  .hero-arrow {
    display: none;
  }

  .intro-panel,
  .footer-shell,
  .movie-title-line,
  .home-search,
  .ranking-card a {
    grid-template-columns: 1fr;
  }

  .home-search {
    border-radius: 22px;
  }

  .home-search input {
    min-height: 44px;
  }

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

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

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

  .content-section,
  .page-hero,
  .movie-layout,
  .breadcrumb,
  .footer-shell {
    width: min(100% - 32px, 1280px);
  }

  .ranking-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ranking-score {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    padding: 0 16px;
  }

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

  .hero-content h1 {
    font-size: 2.55rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .all-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 36px 82px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

  .rank-cover,
  .rank-cover img {
    width: 82px;
    height: 54px;
  }

  .side-card {
    grid-template-columns: 98px 1fr;
  }

  .side-thumb,
  .side-thumb img {
    width: 98px;
    height: 64px;
  }
}
