:root {
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-900: #0c4a6e;
  --accent-400: #f59e0b;
  --accent-700: #b45309;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  --secondary-950: #020617;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-strong: rgba(15, 23, 42, 0.94);
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 22px 60px rgba(2, 6, 23, 0.38);
  --radius: 22px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--secondary-100);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(245, 158, 11, 0.12), transparent 28rem),
    var(--secondary-950);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.32);
}

.brand-name,
.footer-brand {
  font-size: 1.42rem;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--secondary-300);
  transition: color 0.2s ease, background 0.2s ease;
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.8);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--secondary-100);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 14px;
}

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

.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.5);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--secondary-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.24)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 680px;
  animation: fadeUp 0.8s ease both;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  margin: 0 0 18px;
  color: white;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(2, 132, 199, 0.9);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.22);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.26rem);
}

.hero-tags,
.detail-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
  color: var(--primary-100);
  background: rgba(12, 74, 110, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
}

.hero-tags span,
.detail-tags span {
  padding: 6px 12px;
}

.movie-tags span {
  padding: 4px 8px;
  font-size: 0.76rem;
}

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

.primary-button,
.ghost-button,
.inline-search button,
.search-page-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: white;
  font-weight: 800;
  border-radius: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button,
.inline-search button,
.search-page-panel button {
  border: 0;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.32);
}

.ghost-button {
  color: var(--secondary-100);
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid var(--border);
}

.primary-button:hover,
.ghost-button:hover,
.inline-search button:hover,
.search-page-panel button:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  font-size: 1.7rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 99px;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--primary-400);
}

.search-panel,
.section-block,
.page-main,
.detail-content {
  padding-top: 54px;
  padding-bottom: 54px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1.18fr);
  gap: 24px;
  align-items: center;
  margin-top: -54px;
  position: relative;
  z-index: 5;
  padding: 28px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-section h2,
.rank-panel h2,
.mini-recommend h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.inline-search,
.search-page-panel,
.filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.inline-search input,
.search-page-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 50px;
  color: var(--secondary-100);
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  padding: 0 16px;
}

.inline-search input:focus,
.search-page-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

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

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

.category-tile {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.22);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  opacity: 0.82;
  transform: scale(1.06);
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent);
}

.category-tile-content {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  gap: 3px;
}

.category-tile-content strong {
  font-size: 1.15rem;
}

.category-tile-content small {
  color: var(--secondary-300);
}

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

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

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

.movie-card {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 24px 44px rgba(2, 6, 23, 0.34);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-900), var(--primary-900));
}

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

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 800;
  color: white;
  background: rgba(2, 132, 199, 0.92);
  border-radius: 999px;
}

.poster-play {
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: white;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  color: var(--secondary-400);
  font-size: 0.88rem;
}

.movie-desc {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: var(--secondary-300);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 38px 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: rgba(30, 41, 59, 0.58);
  border: 1px solid transparent;
  border-radius: 15px;
}

.rank-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.rank-number {
  color: var(--accent-400);
  font-weight: 900;
}

.rank-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-score {
  color: var(--secondary-400);
  font-size: 0.82rem;
}

.mini-recommend {
  margin-top: 26px;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.compact-card {
  display: grid;
  gap: 7px;
}

.compact-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.compact-card small {
  color: var(--secondary-400);
}

.page-main {
  min-height: 62vh;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--secondary-400);
}

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

.breadcrumb a::after {
  margin-left: 8px;
  color: var(--secondary-600, #475569);
  content: "/";
}

.breadcrumb.on-dark {
  position: relative;
  z-index: 2;
}

.page-hero {
  position: relative;
  padding: 40px;
  margin-bottom: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(12, 74, 110, 0.64), rgba(15, 23, 42, 0.88)),
    rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--secondary-300);
}

.category-stat {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding: 10px 14px;
  background: rgba(2, 6, 23, 0.36);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.category-stat strong {
  color: var(--accent-400);
  font-size: 1.35rem;
}

.category-large-grid {
  display: grid;
  gap: 20px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  overflow: hidden;
  padding: 18px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.category-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
}

.category-large-body h2 {
  margin: 0 0 8px;
}

.category-large-body p {
  color: var(--secondary-300);
}

.category-count {
  margin-bottom: 10px;
  color: var(--accent-400);
  font-weight: 800;
}

.category-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-preview-links a {
  padding: 6px 10px;
  color: var(--secondary-200);
  background: rgba(30, 41, 59, 0.72);
  border-radius: 999px;
}

.filter-bar {
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  margin-bottom: 24px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.detail-main {
  background: var(--secondary-950);
}

.detail-hero {
  position: relative;
  min-height: 680px;
  padding: 28px 0 70px;
  background-position: center;
  background-size: cover;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  padding-top: 50px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.08em;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 8px 12px;
  color: var(--secondary-100);
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.detail-info .primary-button {
  margin-top: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(12, 74, 110, 0.5), rgba(2, 6, 23, 0.98)),
    #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  color: white;
  text-align: center;
  background: rgba(2, 6, 23, 0.34);
  border: 0;
  cursor: pointer;
}

.player-start strong {
  font-size: 1.35rem;
}

.play-circle {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.32);
}

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

.player-message {
  position: absolute;
  right: 18px;
  bottom: 12px;
  left: 18px;
  margin: 0;
  color: var(--secondary-200);
  text-align: center;
  pointer-events: none;
}

.detail-section {
  margin-top: 34px;
  padding: 28px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.detail-section p {
  color: var(--secondary-300);
  font-size: 1.02rem;
}

.info-table dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-table div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 12px;
  background: rgba(30, 41, 59, 0.45);
  border-radius: 14px;
}

.info-table dt {
  color: var(--secondary-400);
}

.info-table dd {
  margin: 0;
  color: var(--secondary-100);
}

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

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

.rank-card-large {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.rank-card-cover img {
  width: 128px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.rank-card-number {
  color: var(--accent-400);
  font-weight: 900;
}

.rank-card-body h2 {
  margin: 4px 0 8px;
}

.rank-card-body p {
  color: var(--secondary-300);
}

.search-page-panel {
  margin-bottom: 24px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.search-status {
  margin-bottom: 18px;
  color: var(--secondary-300);
}

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

.sitemap-section {
  padding: 24px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.sitemap-section h2 {
  margin: 0 0 12px;
}

.sitemap-section ul {
  columns: 3 260px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sitemap-section li {
  break-inside: avoid;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.sitemap-section li span {
  color: var(--secondary-400);
  font-size: 0.84rem;
  white-space: nowrap;
}

.site-footer {
  margin-top: 70px;
  padding: 42px 0;
  color: var(--secondary-300);
  background: rgba(15, 23, 42, 0.94);
  border-top: 1px solid var(--border);
}

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

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--secondary-100);
  font-size: 1rem;
}

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

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

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .rank-panel {
    position: static;
  }

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    padding-top: 96px;
    padding-bottom: 120px;
  }

  .hero-controls {
    justify-content: center;
  }

  .search-panel,
  .inline-search,
  .search-page-panel,
  .filter-bar,
  .detail-hero-grid,
  .category-card-large,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-panel {
    margin-top: 0;
  }

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

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-grid {
    padding-top: 28px;
  }

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

  .info-table dl,
  .rank-card-large {
    grid-template-columns: 1fr;
  }

  .rank-card-cover img {
    width: 100%;
    max-width: 190px;
  }
}

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

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

  .page-hero,
  .detail-section {
    padding: 22px;
  }

  .rank-item {
    grid-template-columns: 34px 42px 1fr;
  }

  .rank-score {
    display: none;
  }
}
