:root {
  --night-950: #0a1929;
  --night-900: #102a43;
  --night-850: #16324f;
  --night-800: #243b53;
  --night-700: #334e68;
  --night-300: #9fb3c8;
  --night-200: #bcccdc;
  --night-100: #d9e2ec;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.28);
}

body {
  min-height: 100vh;
  color: var(--night-100);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(51, 78, 104, 0.35), transparent 30rem),
    var(--night-950);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(51, 78, 104, 0.72);
  background: rgba(10, 25, 41, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--night-100);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--night-950);
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.24);
}

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

.brand-text strong,
.footer-brand {
  font-size: 1.34rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber-400), var(--amber-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 5px;
  color: var(--night-300);
  font-size: 0.78rem;
  font-style: normal;
}

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

.nav-link,
.mobile-link {
  position: relative;
  color: var(--night-200);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--amber-500);
  transition: transform 0.24s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.toolbar input,
.search-panel input,
.search-panel select {
  min-width: 230px;
  border: 1px solid rgba(51, 78, 104, 0.88);
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--night-100);
  background: rgba(36, 59, 83, 0.55);
  outline: none;
}

.top-search input:focus,
.mobile-search input:focus,
.toolbar input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.top-search button,
.mobile-search button,
.search-panel button,
.btn-primary,
.btn-secondary,
.panel-link,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.top-search button,
.mobile-search button,
.btn-primary,
.rank-action {
  color: var(--night-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.22);
}

.btn-secondary,
.panel-link,
.search-panel button {
  color: var(--night-100);
  background: rgba(36, 59, 83, 0.72);
  border: 1px solid rgba(51, 78, 104, 0.85);
}

.top-search button:hover,
.mobile-search button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.panel-link:hover,
.rank-action:hover,
.search-panel button:hover {
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(51, 78, 104, 0.9);
  border-radius: 12px;
  background: rgba(36, 59, 83, 0.58);
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--night-100);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(51, 78, 104, 0.75);
  background: rgba(10, 25, 41, 0.98);
}

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

.mobile-panel-inner {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 22px;
}

.main-content {
  min-height: 70vh;
}

.page-top {
  padding-top: 112px;
}

.hero-carousel {
  position: relative;
  height: min(82vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: var(--night-900);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 25, 41, 0.94) 0%, rgba(10, 25, 41, 0.74) 36%, rgba(10, 25, 41, 0.16) 100%),
    linear-gradient(0deg, rgba(10, 25, 41, 1) 0%, transparent 46%);
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 78px;
  left: 0;
}

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

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.52);
}

.hero-copy p {
  max-width: 760px;
  color: var(--night-200);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-meta,
.meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--night-300);
  font-size: 0.92rem;
}

.hero-meta span,
.meta-line span,
.detail-meta span {
  border: 1px solid rgba(51, 78, 104, 0.76);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(16, 42, 67, 0.66);
}

.hero-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(217, 226, 236, 0.22);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-size: 2rem;
  background: rgba(10, 25, 41, 0.48);
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(217, 226, 236, 0.38);
}

.hero-dot.is-active {
  background: var(--amber-500);
}

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

.chip-row span {
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--amber-400);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.12);
}

.section-spacing {
  padding-top: 68px;
  padding-bottom: 68px;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--amber-400);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.ranking-title h2 {
  margin: 0;
  color: white;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.intro-copy p,
.category-overview-head p,
.detail-copy p,
.rank-body p,
.site-footer p {
  color: var(--night-300);
}

.section-more {
  color: var(--amber-400);
  font-weight: 800;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 28px;
  align-items: stretch;
}

.intro-copy,
.intro-stats,
.page-hero,
.ranking-panel,
.category-overview-card,
.aside-card,
.search-panel,
.toolbar {
  border: 1px solid rgba(51, 78, 104, 0.72);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(16, 42, 67, 0.9), rgba(10, 25, 41, 0.78));
  box-shadow: var(--shadow-card);
}

.intro-copy,
.page-hero {
  padding: clamp(26px, 5vw, 52px);
}

.intro-copy h2 {
  margin: 0 0 14px;
  color: white;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  padding: 0;
}

.intro-stats span {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 18px;
  background: rgba(36, 59, 83, 0.42);
}

.intro-stats strong {
  color: var(--amber-400);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.intro-stats em {
  margin-top: 8px;
  color: var(--night-300);
  font-style: normal;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, 0.66);
  border-radius: var(--radius-md);
  background: rgba(16, 42, 67, 0.66);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--night-900);
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.rank-row:hover img,
.media-row:hover img {
  transform: scale(1.06);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--night-950);
  font-size: 0.78rem;
  font-weight: 900;
  background: var(--amber-400);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.movie-card-body {
  display: grid;
  gap: 11px;
  padding: 15px;
}

.movie-card h2 {
  margin: 0;
  color: white;
  font-size: 1.02rem;
  line-height: 1.28;
  font-weight: 850;
}

.movie-card p {
  display: -webkit-box;
  min-height: 3em;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--night-300);
  font-size: 0.9rem;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, 0.72);
  border-radius: var(--radius-lg);
  background: var(--night-900);
  box-shadow: var(--shadow-card);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 25, 41, 0.96), rgba(10, 25, 41, 0.28));
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-tile span,
.category-tile em {
  position: absolute;
  z-index: 2;
  left: 18px;
}

.category-tile span {
  bottom: 46px;
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile em {
  bottom: 20px;
  color: var(--amber-400);
  font-style: normal;
  font-weight: 800;
}

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

.ranking-panel {
  position: sticky;
  top: 102px;
  padding: 24px;
}

.ranking-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 12px;
  background: rgba(36, 59, 83, 0.48);
}

.ranking-list strong {
  color: var(--amber-400);
}

.ranking-list span {
  overflow: hidden;
  color: white;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list em {
  color: var(--night-300);
  font-style: normal;
}

.page-hero {
  margin-top: 12px;
}

.small-hero,
.category-hero {
  position: relative;
  overflow: hidden;
}

.small-hero::before,
.category-hero::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -80px;
  bottom: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 64%);
}

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

.category-overview-card {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.category-overview-head h2 {
  margin: 8px 0;
  color: white;
  font-size: 1.7rem;
  font-weight: 900;
}

.category-overview-head span {
  color: var(--amber-400);
  font-weight: 900;
}

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

.media-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  background: rgba(36, 59, 83, 0.45);
}

.media-row-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: var(--night-900);
}

.media-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.media-row-title {
  display: block;
  overflow: hidden;
  color: white;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-row p {
  display: -webkit-box;
  margin: 6px 0 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--night-300);
  font-size: 0.9rem;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 18px;
}

.toolbar label,
.search-panel label {
  display: grid;
  gap: 8px;
  color: var(--night-300);
  font-weight: 750;
}

.toolbar input {
  min-width: min(520px, 70vw);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--night-300);
  font-size: 0.92rem;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, 0.8);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background: black;
  box-shadow: var(--shadow-deep);
}

.player-video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-video {
  z-index: 1;
  background: black;
}

.player-cover {
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--night-900);
}

.player-cover img {
  object-fit: cover;
  opacity: 0.74;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.12), rgba(10, 25, 41, 0.78));
}

.player-shell.is-playing .player-cover {
  display: none;
}

.play-ring {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(70px, 10vw, 112px);
  height: clamp(70px, 10vw, 112px);
  border: 2px solid rgba(251, 191, 36, 0.58);
  border-radius: 999px;
  color: var(--night-950);
  font-size: clamp(1.7rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.34);
}

.detail-copy {
  padding-top: 26px;
}

.detail-copy h1 {
  margin-top: 18px;
  margin-bottom: 14px;
}

.detail-copy h2,
.aside-card h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  color: white;
  font-size: 1.45rem;
  font-weight: 900;
}

.detail-copy p {
  font-size: 1.06rem;
  line-height: 1.85;
}

.poster-box {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--night-900);
  box-shadow: var(--shadow-card);
}

.poster-box img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.aside-card {
  margin-top: 18px;
  padding: 22px;
}

.aside-card h2 {
  margin-top: 0;
}

.aside-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px 14px;
}

.aside-card dt {
  color: var(--night-300);
}

.aside-card dd {
  margin: 0;
  color: white;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 108px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(51, 78, 104, 0.66);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(16, 42, 67, 0.7);
}

.rank-num {
  color: var(--amber-400);
  font-size: 1.35rem;
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: var(--night-900);
}

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

.rank-body h2 {
  margin: 0 0 8px;
  color: white;
  font-size: 1.22rem;
  font-weight: 900;
}

.rank-body p {
  margin: 0 0 10px;
}

.search-page {
  display: grid;
  gap: 24px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 240px auto;
  gap: 16px;
  align-items: end;
  padding: 20px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-width: 0;
  border-radius: 14px;
}

.search-count {
  color: var(--night-300);
  font-weight: 800;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(51, 78, 104, 0.72);
  background: rgba(10, 25, 41, 0.94);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-top: 54px;
  padding-bottom: 44px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 1.05rem;
  font-weight: 900;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(51, 78, 104, 0.52);
  padding: 18px;
  color: var(--night-300);
  text-align: center;
}

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

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

  .desktop-nav,
  .top-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 960px) {
  .hero-carousel {
    min-height: 620px;
  }

  .intro-panel,
  .split-section,
  .detail-layout,
  .footer-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

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

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

  .aside-card {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .nav-shell {
    min-height: 68px;
  }

  .brand-text em {
    display: none;
  }

  .page-top {
    padding-top: 90px;
  }

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

  .hero-content {
    bottom: 76px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 12vw, 3.8rem);
  }

  .hero-arrow {
    display: none;
  }

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

  .section-heading,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar input {
    width: 100%;
    min-width: 0;
  }

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

  .rank-row {
    grid-template-columns: 48px 88px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 2 / -1;
  }

  .media-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 440px) {
  .container-custom {
    padding-left: 14px;
    padding-right: 14px;
  }

  .intro-stats,
  .movie-grid,
  .movie-grid-featured,
  .compact-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
