:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(34, 211, 238, 0.18);
  --line-strong: rgba(34, 211, 238, 0.42);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --orange: #fb923c;
  --pink: #f472b6;
  --emerald: #34d399;
  --shadow: 0 24px 70px rgba(8, 145, 178, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 8%, rgba(59, 130, 246, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 44px rgba(34, 211, 238, 0.08);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.38);
  font-size: 22px;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-title,
.footer-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), #93c5fd, var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 4px;
  color: rgba(34, 211, 238, 0.72);
  font-size: 12px;
}

.header-search {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 420px;
}

.header-search input,
.mobile-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input,
.mobile-search input {
  padding: 11px 82px 11px 20px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
  background: rgba(15, 23, 42, 0.9);
}

.header-search button,
.mobile-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #001018;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.nav-link,
.mobile-nav a {
  border-radius: 14px;
  padding: 9px 12px;
  color: var(--soft);
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav a:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--cyan);
  padding: 8px 12px;
  font-size: 20px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: rgba(2, 6, 23, 0.96);
}

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

.mobile-search {
  position: relative;
  margin-bottom: 8px;
}

.hero-slider {
  position: relative;
  height: min(80vh, 760px);
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.02);
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-slide::before {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 40%, rgba(2, 6, 23, 0.26) 100%);
}

.hero-slide::after {
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(2, 6, 23, 0.72) 16%, transparent 50%),
    radial-gradient(circle at 18% 50%, rgba(34, 211, 238, 0.18), transparent 26rem);
}

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

.hero-copy {
  width: min(760px, 100%);
  padding-top: 44px;
}

.eyebrow,
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
  font-size: 14px;
  font-weight: 800;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #fff, #dff9ff, #a5f3fc);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-meta,
.detail-meta,
.card-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.tag-list span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.72);
  font-size: 14px;
}

.hero-actions,
.section-heading,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-actions {
  margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 44px rgba(34, 211, 238, 0.26);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.74);
}

.btn-soft {
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--soft);
  background: rgba(15, 23, 42, 0.58);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.main-section {
  padding: 66px 0;
}

.main-section.alt {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.5));
  border-block: 1px solid rgba(148, 163, 184, 0.08);
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-heading h2,
.category-hero h1,
.detail-title h1,
.page-title h1,
.filter-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.category-hero p,
.page-title p,
.filter-card p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
}

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

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

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

.card-link {
  display: grid;
  gap: 12px;
  height: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(15, 23, 42, 0.42);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.card-link:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}

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

.card-link:hover img,
.rank-row:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), transparent 62%);
}

.card-year,
.card-badge,
.play-chip,
.rank-medal {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-year {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.86);
}

.card-badge {
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  color: #001018;
  background: linear-gradient(135deg, var(--orange), #facc15);
}

.rank-medal {
  left: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #fde68a);
}

.play-chip {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(34, 211, 238, 0.86);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.36);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.card-link:hover .play-chip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  display: grid;
  gap: 6px;
  padding: 0 2px 4px;
}

.card-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: white;
  font-size: 16px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.card-link:hover .card-body strong {
  color: var(--cyan);
}

.card-body span,
.card-body em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.card-body em {
  color: #64748b;
  -webkit-line-clamp: 2;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.06)),
    rgba(15, 23, 42, 0.62);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.32);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.46);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
}

.category-tile strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
}

.category-tile span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.48);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.rank-row:hover {
  transform: translateX(6px);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(15, 23, 42, 0.76);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #94a3b8;
  background: #1e293b;
  font-size: 20px;
  font-weight: 900;
}

.top-one .rank-number {
  color: #111827;
  background: linear-gradient(135deg, #facc15, #fb923c);
}

.top-two .rank-number {
  color: #0f172a;
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
}

.top-three .rank-number {
  color: #fff7ed;
  background: linear-gradient(135deg, #fb923c, #b45309);
}

.rank-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #0f172a;
}

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

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong {
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.rank-copy small,
.rank-copy em {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.rank-copy em {
  color: #64748b;
  font-size: 13px;
}

.page-title,
.category-hero,
.detail-hero {
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.16), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.84));
}

.page-title .container,
.category-hero .container,
.detail-hero .container {
  padding-block: 70px;
}

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

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

.filter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 150px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  padding: 12px 15px;
  border-radius: 16px;
}

.empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.26);
  border-radius: 20px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.42);
}

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

.detail-panel,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.32);
}

.detail-panel {
  padding: 26px;
}

.side-panel {
  padding: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45), 0 0 60px rgba(34, 211, 238, 0.12);
}

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

.player-shell video {
  object-fit: contain;
  background: #000;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  color: white;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.66) 55%, rgba(2, 6, 23, 0.9));
}

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

.play-big {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 55px rgba(34, 211, 238, 0.45);
  transform: translate(-50%, -50%);
  font-size: 34px;
}

.detail-content {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.prose-block {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  padding: 22px;
  background: rgba(2, 6, 23, 0.32);
}

.prose-block h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.prose-block p {
  margin: 0;
  color: #cbd5e1;
}

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

.related-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  background: rgba(2, 6, 23, 0.34);
  transition: background 0.2s ease;
}

.related-card:hover {
  background: rgba(34, 211, 238, 0.08);
}

.related-card .thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #0f172a;
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.related-card strong,
.related-card span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.related-card strong {
  -webkit-line-clamp: 2;
  color: white;
  line-height: 1.35;
}

.related-card span {
  margin-top: 5px;
  -webkit-line-clamp: 1;
  color: var(--muted);
  font-size: 13px;
}

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

.wide-card .card-link {
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding-block: 44px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
  font-size: 14px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 18px 0 26px;
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

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

@media (max-width: 820px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    height: 68px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-title {
    font-size: 18px;
  }

  .hero-slider {
    min-height: 650px;
    height: 82vh;
  }

  .hero-slide::before {
    background: linear-gradient(to top, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.3));
  }

  .hero-copy {
    padding-top: 96px;
  }

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

  .filter-controls {
    grid-template-columns: 1fr;
  }

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

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

  .wide-card .card-link {
    grid-template-columns: 1fr;
  }

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

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

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

  .scroll-row .movie-card {
    flex-basis: 82vw;
  }

  .hero-title {
    font-size: 40px;
  }

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

  .btn-primary,
  .btn-secondary,
  .btn-soft {
    width: 100%;
  }

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