:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #111827;
  --panel-bright: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --subtle: #64748b;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --cyan-strong: #0891b2;
  --shadow: 0 26px 80px rgba(2, 8, 23, 0.42);
  --radius: 22px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(34, 211, 238, 0.14), transparent 30rem),
    radial-gradient(circle at 90% 12%, rgba(56, 189, 248, 0.10), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.36), transparent);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
body.menu-open .site-header {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 32px, var(--max));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ecfeff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.38);
}

.brand-text strong {
  display: block;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

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

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.14);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.78);
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #cbd5e1;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--max));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav-link {
  display: block;
  padding: 13px 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 38%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.3) 45%, rgba(2, 6, 23, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  min-height: 72vh;
  margin: 0 auto;
  padding: 120px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 56px;
  align-items: end;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker::before,
.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  max-width: 660px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.12);
  font-size: 12px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-button,
.section-more,
.search-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.22);
}

.ghost-button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(203, 213, 225, 0.24);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.56);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-more:hover,
.search-row button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(2deg);
}

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

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

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

main,
.page-main {
  width: 100%;
}

.page-main {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 112px 0 56px;
}

.home-search,
.category-strip,
.content-section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.home-search {
  margin-top: -34px;
  position: relative;
  z-index: 8;
}

.search-panel,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-panel {
  padding: 22px;
}

.search-panel label {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-row input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 0 16px;
  color: white;
  background: rgba(2, 6, 23, 0.7);
  outline: none;
}

.search-row input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.search-row button {
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  color: white;
  background: #0891b2;
}

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

.category-tile,
.category-overview-card,
.movie-card,
.detail-hero,
.detail-article,
.detail-side,
.player-shell,
.rank-row {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.56));
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.24);
}

.category-tile {
  min-height: 130px;
  padding: 18px;
  border-radius: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: white;
  font-size: 18px;
}

.category-tile span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.category-tile:hover,
.movie-card:hover,
.compact-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.content-section {
  margin-top: 64px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-more,
.text-button {
  color: var(--cyan);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.movie-card-normal .movie-cover,
.movie-card-small .movie-cover {
  aspect-ratio: 2 / 3;
}

.movie-card-large {
  grid-column: span 2;
}

.movie-card-large .movie-cover {
  aspect-ratio: 16 / 10;
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 54%);
}

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(8, 145, 178, 0.92);
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.38);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(180, 83, 9, 0.88);
  font-weight: 900;
}

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

.movie-meta {
  gap: 6px;
  margin-bottom: 10px;
  color: var(--subtle);
  font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: #475569;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-small h3 {
  font-size: 16px;
}

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

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 24px;
  padding: 4px 8px;
  color: #bae6fd;
  font-size: 11px;
}

.highlight-section {
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(8, 47, 73, 0.32));
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.64);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  margin-bottom: 6px;
  color: white;
}

.compact-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.compact-rank {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #020617;
  background: var(--cyan);
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.14), transparent 22rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.58));
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.category-overview {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  padding: 24px;
  border-radius: 24px;
}

.category-overview-text span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.category-overview-text h2 {
  margin: 10px 0;
  font-size: 28px;
}

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

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

.filter-panel {
  margin-top: 28px;
  padding: 18px;
}

.inline-search {
  margin-bottom: 14px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.7);
}

.filter-pill:hover,
.filter-pill.is-active {
  border-color: rgba(34, 211, 238, 0.48);
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.14);
}

.movie-card.is-hidden,
.rank-row.is-hidden,
.compact-card.is-hidden {
  display: none;
}

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

.breadcrumb a {
  color: #67e8f9;
}

.detail-main {
  max-width: 1180px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  padding: 28px;
  border-radius: 28px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.36);
}

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

.detail-info {
  align-self: center;
}

.detail-info h1 {
  margin-bottom: 14px;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  margin-top: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000;
}

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

.player-video {
  z-index: 1;
  object-fit: contain;
  background: #000;
}

.player-cover {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.84);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.48;
  filter: blur(1px) saturate(1.08);
}

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

.player-button {
  position: relative;
  z-index: 3;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  font-size: 34px;
  box-shadow: 0 18px 48px rgba(14, 165, 233, 0.34);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 30px;
}

.detail-article,
.detail-side {
  padding: 26px;
  border-radius: 24px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

.detail-article p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.9;
}

.detail-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #020617;
  background: var(--cyan);
  font-weight: 900;
}

.rank-thumb img {
  width: 96px;
  height: 126px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.rank-score {
  color: #fde68a;
  font-size: 24px;
}

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

.footer-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p,
.footer-links a,
.footer-bottom {
  color: var(--muted);
}

.site-footer p {
  max-width: 460px;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

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

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

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

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

  .menu-button {
    display: block;
  }

  body.menu-open .mobile-nav {
    display: block;
  }

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

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

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

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .brand-text em {
    display: none;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    align-items: center;
    padding-top: 96px;
    gap: 28px;
  }

  .hero-poster {
    width: min(64vw, 250px);
    justify-self: center;
  }

  .hero-arrow {
    display: none;
  }

  .category-strip,
  .movie-grid-small,
  .movie-grid-normal,
  .movie-grid-featured,
  .ranking-list,
  .category-overview-list,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 260px;
  }

  .rank-row {
    grid-template-columns: 46px 76px 1fr;
  }

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

@media (max-width: 560px) {
  .page-main,
  .home-search,
  .category-strip,
  .content-section,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, var(--max));
  }

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

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

  .hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .search-row,
  .category-strip,
  .movie-grid-small,
  .movie-grid-normal,
  .movie-grid-featured,
  .ranking-list,
  .category-overview-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-large {
    grid-column: span 1;
  }

  .page-hero,
  .detail-hero,
  .detail-article,
  .detail-side,
  .highlight-section {
    padding: 20px;
    border-radius: 22px;
  }

  .compact-card {
    grid-template-columns: auto 56px 1fr;
  }

  .compact-card img {
    width: 56px;
    height: 56px;
  }

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

  .rank-thumb {
    display: none;
  }

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