:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c33;
  --panel-strong: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --orange: #fb923c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 30rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.12));
}

button,
input {
  font: inherit;
}

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 1.24rem;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 12px;
  color: #dbeafe;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: rgba(30, 41, 59, 0.9);
  color: white;
}

.global-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 390px;
  margin-left: auto;
  flex: 1;
}

.global-search input,
.list-toolbar input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  outline: none;
  background: rgba(15, 23, 42, 0.9);
  color: white;
  padding: 11px 16px;
}

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

.global-search button,
.primary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.global-search button,
.primary-button {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: white;
  padding: 11px 18px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.24);
  transition: 0.2s ease;
}

.global-search button:hover,
.primary-button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.32);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
  color: white;
  padding: 10px 18px;
  font-weight: 700;
  transition: 0.2s ease;
}

.ghost-button:hover {
  border-color: rgba(34, 211, 238, 0.7);
  color: var(--cyan);
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: min(440px, 92vw);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

.search-result-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  transition: 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: 0;
}

.search-result-item:hover {
  background: rgba(30, 41, 59, 0.82);
}

.search-result-item img {
  width: 60px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result-item strong,
.search-result-item em {
  display: block;
}

.search-result-item strong {
  color: white;
  font-size: 0.95rem;
}

.search-result-item em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.search-empty {
  padding: 18px;
  color: var(--muted);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: white;
}

.mobile-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  padding: 8px;
}

.mobile-panel nav {
  display: grid;
  gap: 4px;
}

.hero-shell,
.content-section,
.page-hero,
.detail-shell,
.quick-entry {
  width: min(1240px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.hero-shell {
  padding: 34px 0 18px;
}

.hero-slider {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.62) 45%, rgba(2, 6, 23, 0.16) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 58%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: clamp(28px, 7vw, 82px);
  width: min(720px, calc(100% - 48px));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
  margin: 14px 0 16px;
  color: white;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.highlight-panel p,
.site-footer p,
.category-overview-card p {
  color: var(--soft);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.hero-meta {
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.tag-row span,
.detail-tags span,
.panel-tags span {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #dbeafe;
  padding: 6px 11px;
  font-size: 0.82rem;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.56);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 132, 199, 0.8);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: 0.2s ease;
}

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

.quick-entry {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0 30px;
}

.quick-entry a {
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  padding: 10px 16px;
  transition: 0.2s ease;
}

.quick-entry a:hover {
  border-color: rgba(34, 211, 238, 0.62);
  color: var(--cyan);
}

.content-section {
  padding: 38px 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.section-heading span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(248px, 300px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 0 20px;
  scrollbar-width: thin;
}

.movie-grid,
.category-grid,
.category-overview-grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  flex-direction: column;
  transition: 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
}

.movie-card-featured .poster-wrap {
  height: 280px;
}

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

.movie-card:hover img,
.category-tile:hover img,
.compact-card:hover img {
  transform: scale(1.08);
}

.poster-shade,
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 60%);
}

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.92);
  color: white;
  opacity: 0;
  transform: scale(0.88);
  transition: 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: scale(1);
}

.duration-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.66);
  color: white;
  padding: 4px 8px;
  font-size: 0.76rem;
}

.movie-card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.movie-card-body strong {
  color: white;
  font-size: 1.02rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

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

.movie-card-body em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-row {
  justify-content: space-between;
  color: #64748b;
  font-size: 0.78rem;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  border: 0;
  background: rgba(30, 41, 59, 0.92);
  color: var(--cyan);
  padding: 3px 8px;
  font-size: 0.72rem;
}

.feature-band {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: var(--panel);
}

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

.tile-content {
  position: absolute;
  inset: auto 16px 16px;
}

.tile-content strong,
.tile-content em {
  display: block;
}

.tile-content strong {
  color: white;
  font-size: 1.18rem;
}

.tile-content em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--soft);
  font-size: 0.82rem;
  font-style: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 26px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.84);
  padding: 10px 14px;
  transition: 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(30, 41, 59, 0.88);
}

.rank-number {
  color: var(--orange);
  font-size: 1.35rem;
  font-weight: 900;
}

.rank-item img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: white;
  line-height: 1.35;
}

.rank-info em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

.rank-score {
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  padding: 6px 10px;
  font-weight: 800;
}

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

.highlight-panel,
.category-overview-card,
.movie-detail-card,
.related-panel,
.player-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.highlight-panel {
  padding: 28px;
  position: sticky;
  top: 96px;
}

.highlight-panel h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.panel-tags {
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--cyan);
  font-weight: 800;
}

.page-hero {
  display: grid;
  min-height: 320px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(30, 41, 59, 0.2)),
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.2), transparent 20rem),
    rgba(15, 23, 42, 0.88);
  padding: clamp(28px, 6vw, 62px);
  place-items: end start;
  box-shadow: var(--shadow);
}

.compact-hero,
.category-hero,
.ranking-hero {
  min-height: 280px;
}

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

.category-overview-card {
  padding: 22px;
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.category-overview-head span {
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
}

.category-overview-head strong {
  color: var(--cyan);
  font-size: 0.92rem;
}

.overview-samples,
.related-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.compact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.36);
  padding: 10px;
  transition: 0.2s ease;
}

.compact-card:hover {
  background: rgba(30, 41, 59, 0.78);
}

.compact-card img {
  flex: 0 0 auto;
  width: 84px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.3s ease;
}

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

.compact-card strong {
  overflow: hidden;
  color: white;
  font-size: 0.95rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.list-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}

.list-toolbar label {
  display: grid;
  width: min(460px, 100%);
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-shell {
  padding: 34px 0 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: black;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: black;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: auto;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(34, 211, 238, 0.28);
  transition: 0.2s ease;
}

.player-start span {
  margin-left: 5px;
  font-size: 2rem;
}

.player-start:hover {
  transform: scale(1.06);
}

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

.player-message {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: calc(100% - 40px);
  border-radius: 14px;
  background: rgba(127, 29, 29, 0.86);
  color: white;
  padding: 10px 14px;
}

.movie-detail-card {
  padding: clamp(20px, 4vw, 30px);
}

.movie-detail-card h1 {
  margin: 0 0 14px;
  color: white;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.movie-detail-card h2,
.related-panel h2 {
  margin: 0 0 14px;
  color: white;
}

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

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

.detail-tags span {
  background: rgba(30, 41, 59, 0.88);
  color: var(--cyan);
}

.movie-detail-card p {
  margin: 0;
  color: var(--soft);
  font-size: 1.02rem;
}

.related-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.8);
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 1fr;
  gap: 28px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 1rem;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a,
.keyword-cloud {
  color: var(--muted);
}

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

.footer-brand {
  margin-bottom: 12px;
}

[hidden] {
  display: none !important;
}

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

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

  .related-panel,
  .highlight-panel {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .header-inner {
    gap: 12px;
  }

  .global-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin: 0 0 12px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding-top: 12px;
  }

  .hero-slider {
    min-height: 520px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 28px;
    right: auto;
  }

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

@media (max-width: 560px) {
  .hero-shell,
  .content-section,
  .page-hero,
  .detail-shell,
  .quick-entry {
    width: min(100% - 22px, 1240px);
  }

  .hero-slider,
  .page-hero {
    border-radius: 22px;
  }

  .hero-content {
    left: 20px;
    bottom: 56px;
    width: calc(100% - 40px);
  }

  .hero-meta {
    gap: 7px;
  }

  .hero-meta span {
    font-size: 0.75rem;
  }

  .movie-grid,
  .large-grid,
  .category-grid,
  .category-overview-grid,
  .full-rank-list {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 235px;
  }

  .rank-item {
    grid-template-columns: 38px 64px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }

  .footer-grid {
    width: min(100% - 22px, 1240px);
  }
}
