:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #34d399;
  --accent-strong: #10b981;
  --accent-soft: rgba(52, 211, 153, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(16, 185, 129, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-logo-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #032016;
  background: linear-gradient(135deg, var(--accent), #a7f3d0);
  box-shadow: 0 0 26px rgba(52, 211, 153, 0.35);
  font-size: 13px;
}

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

.nav-link {
  color: var(--soft);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-button,
.menu-button,
.close-button,
.mobile-search-button {
  border: 0;
  color: var(--text);
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.ghost-button {
  padding: 9px 16px;
}

.menu-button,
.close-button {
  width: 42px;
  height: 42px;
  font-size: 22px;
  display: none;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--soft);
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--accent);
  background: rgba(52, 211, 153, 0.08);
}

main {
  padding-top: 68px;
}

.hero-shell {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.38)),
    linear-gradient(0deg, var(--bg), transparent 42%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
  filter: saturate(1.06);
}

.hero-content {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 64px;
  padding: 70px 0 92px;
}

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

.section-kicker,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.hero-meta,
.movie-card-meta,
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-top: 24px;
}

.hero-meta span,
.movie-card-meta span,
.ranking-meta span {
  color: var(--soft);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

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

.primary-button {
  color: #03130d;
  background: linear-gradient(135deg, var(--accent), #a7f3d0);
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.28);
}

.secondary-button,
.section-link {
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

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

.secondary-button:hover,
.section-link:hover {
  border-color: rgba(52, 211, 153, 0.52);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
}

.hero-poster::after,
.detail-poster::after,
.movie-card-cover::after,
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.82));
  pointer-events: none;
}

.hero-poster img,
.detail-poster img,
.movie-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  display: flex;
  gap: 9px;
  z-index: 4;
}

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
}

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

.home-search-band,
.content-section {
  position: relative;
  margin-top: 42px;
}

.home-search-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(8, 47, 73, 0.42));
  box-shadow: var(--shadow);
}

.home-search-band h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.text-card h2 {
  margin: 0;
}

.home-search-band h2,
.section-head h2 {
  font-size: clamp(26px, 4vw, 40px);
}

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

.section-head p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(2, 6, 23, 0.9)),
    var(--category-image) center / cover no-repeat;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.5);
}

.category-card span,
.category-card strong,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  display: block;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin-top: 7px;
  color: var(--accent);
  font-size: 32px;
}

.category-card p {
  margin: 18px 0 0;
  color: var(--soft);
  line-height: 1.6;
  font-size: 14px;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(15, 23, 42, 0.95);
}

.movie-card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.movie-card-cover img {
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-card-cover img {
  transform: scale(1.06);
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 4;
  top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  right: 10px;
  color: #052e1d;
  background: rgba(52, 211, 153, 0.95);
}

.rank-badge {
  left: 10px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.card-play-mark {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04130d;
  background: rgba(52, 211, 153, 0.92);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  margin: 0 0 13px;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.movie-card-tags span,
.mini-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--accent);
  background: rgba(52, 211, 153, 0.08);
  font-size: 12px;
}

.filter-toolbar {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.filter-toolbar > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.filter-toolbar span {
  color: var(--text);
  font-weight: 800;
}

.inline-search,
.search-input {
  width: min(520px, 100%);
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
  border-radius: 999px;
  outline: none;
}

.inline-search {
  padding: 12px 16px;
}

.search-input {
  width: 100%;
  padding: 15px 18px;
  margin: 6px 0 16px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.44);
  color: var(--soft);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #042016;
  border-color: transparent;
  background: var(--accent);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 68px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.66)),
    var(--page-image, none) center / cover no-repeat;
}

.compact-hero {
  padding: 86px 0 64px;
  background:
    radial-gradient(circle at 20% 20%, rgba(52, 211, 153, 0.18), transparent 34rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

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

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

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

.category-overview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.72);
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.overview-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.overview-samples a {
  color: var(--soft);
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 56px 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(52, 211, 153, 0.45);
}

.ranking-number {
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  width: 76px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-row h3 {
  margin: 0 0 8px;
}

.ranking-row p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-hero {
  padding: 82px 0 72px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.5)),
    var(--detail-image) center / cover no-repeat;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
}

.detail-copy h1 {
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-facts div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
}

.detail-facts dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.detail-facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--text);
  cursor: pointer;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.74));
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-play-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #052e1d;
  background: var(--accent);
  font-size: 28px;
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.45);
}

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

.text-card {
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.76);
}

.text-card p {
  color: var(--soft);
  line-height: 1.9;
  font-size: 16px;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.search-modal.is-open {
  display: block;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
}

.search-panel {
  position: relative;
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  margin: 56px auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

.search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-panel-head h2 {
  margin: 0;
}

.search-result {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.search-result:hover {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(2, 6, 23, 0.34);
}

.search-result img {
  width: 64px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result h3 {
  margin: 0 0 6px;
}

.search-result p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 28px;
}

.site-footer p,
.footer-bottom {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 12px;
}

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

.footer-links a {
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--accent);
  border-color: rgba(52, 211, 153, 0.45);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

[data-movie-card].is-hidden {
  display: none;
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 36px;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .hero-shell,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 92px;
  }

  .hero-poster {
    display: none;
  }

  .home-search-band,
  .section-head,
  .category-overview-card,
  .filter-toolbar > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .featured-grid,
  .rank-grid,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 560px) {
  .container-wide {
    width: min(100% - 22px, 1180px);
  }

  .site-nav {
    height: 62px;
  }

  main {
    padding-top: 62px;
  }

  .ghost-button {
    display: none;
  }

  .hero-shell,
  .hero-content {
    min-height: 620px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .category-grid,
  .movie-grid,
  .featured-grid,
  .rank-grid,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(220px, 70vw);
  }

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

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

  .ranking-row img {
    width: 62px;
    height: 90px;
  }
}
