:root {
  color-scheme: dark;
  --bg-deep: #020617;
  --bg-main: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.62);
  --bg-card-solid: #1e293b;
  --bg-soft: rgba(15, 23, 42, 0.78);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.15);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(99, 102, 241, 0.16), transparent 28rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0));
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
body.is-menu-open .site-header {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(18px);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.38);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-text strong {
  font-size: 19px;
  letter-spacing: 0.02em;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

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

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}

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

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

.site-search {
  position: relative;
}

.site-search input {
  width: 245px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.62);
  transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus {
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(360px, 92vw);
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  display: none;
}

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

.search-results a,
.search-empty {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.search-results a:hover {
  background: rgba(51, 65, 85, 0.72);
}

.search-results strong {
  display: block;
  font-size: 14px;
  color: white;
}

.search-results span,
.search-empty {
  color: var(--muted);
  font-size: 12px;
}

.menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.66);
  color: white;
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: white;
}

.mobile-menu {
  display: none;
  padding: 12px 22px 24px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-search input {
  width: 100%;
  margin-bottom: 12px;
}

.mobile-nav-link {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
}

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

.hero-slides {
  position: absolute;
  inset: 0;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: saturate(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.34) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0) 44%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: max(22px, calc((100vw - var(--max)) / 2 + 22px));
  top: 50%;
  transform: translateY(-42%);
  width: min(660px, calc(100vw - 44px));
}

.hero-kicker,
.badge-row,
.card-tags,
.detail-tags,
.hero-tags,
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-kicker span,
.badge-row span,
.card-tags span,
.detail-tags span,
.hero-tags span,
.mini-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 12px;
}

.hero-kicker span:first-child,
.badge-row span:first-child,
.poster-badge {
  color: white;
  background: rgba(14, 165, 233, 0.86);
}

.hero h1 {
  margin: 22px 0 10px;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 42px);
  color: #e0f2fe;
}

.hero p,
.page-hero p,
.detail-card p,
.movie-card p,
.movie-card-wide p,
.rank-copy p {
  color: var(--soft);
  line-height: 1.75;
}

.hero p {
  max-width: 620px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 20px;
}

.primary-button,
.ghost-button,
.more-link,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 22px;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.32);
}

.ghost-button,
.more-link,
.rank-action {
  min-height: 42px;
  padding: 0 18px;
  color: #bae6fd;
  border: 1px solid rgba(125, 211, 252, 0.26);
  background: rgba(15, 23, 42, 0.56);
}

.primary-button:hover,
.ghost-button:hover,
.more-link:hover,
.rank-action:hover {
  transform: translateY(-2px);
}

.hero-feature-card {
  position: absolute;
  right: max(22px, calc((100vw - var(--max)) / 2 + 22px));
  bottom: 120px;
  width: 310px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  z-index: 2;
}

.hero-feature-card img {
  width: 88px;
  height: 118px;
  border-radius: 18px;
  object-fit: cover;
}

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

.hero-feature-card strong {
  color: white;
  font-size: 18px;
  line-height: 1.35;
}

.hero-feature-card em {
  color: var(--muted);
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
}

.hero-panel {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  width: min(var(--max), calc(100vw - 44px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-search input {
  width: min(520px, 70vw);
  height: 52px;
  padding-inline: 22px;
  background: rgba(15, 23, 42, 0.78);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(203, 213, 225, 0.36);
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.page-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 22px 70px;
}

.section-block,
.category-ribbon {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 22px;
}

.home-feature {
  margin-top: -8px;
}

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

.section-heading h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  letter-spacing: -0.028em;
}

.section-heading h2 {
  max-width: 780px;
  font-size: clamp(24px, 3vw, 34px);
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 24px;
}

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

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

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 18px;
  scrollbar-width: thin;
}

.movie-card,
.movie-card-wide,
.rank-panel,
.aside-card,
.detail-card,
.page-hero,
.category-tile,
.category-overview-card {
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.18);
}

.movie-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.88);
  box-shadow: var(--shadow);
}

.poster-wrap {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.poster-wrap img,
.wide-cover img,
.rank-cover img,
.category-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img,
.movie-card-wide:hover .wide-cover img,
.rank-item:hover .rank-cover img,
.category-overview-card:hover .category-collage img {
  transform: scale(1.08);
}

.poster-badge,
.poster-year {
  position: absolute;
  top: 10px;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.poster-badge {
  left: 10px;
}

.poster-year {
  right: 10px;
  color: white;
  background: rgba(2, 6, 23, 0.66);
}

.card-body {
  padding: 15px;
}

.movie-card h3,
.movie-card-wide h3,
.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.movie-card h3 a:hover,
.movie-card-wide h3 a:hover,
.rank-copy h3 a:hover,
.mini-link:hover strong {
  color: var(--accent);
}

.movie-card p {
  margin: 0 0 14px;
  font-size: 13px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-tags span {
  padding: 3px 7px;
  font-size: 11px;
}

.movie-card-wide {
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 214px;
}

.wide-cover {
  display: block;
  overflow: hidden;
}

.wide-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.movie-card-wide h3 {
  font-size: 22px;
  margin-top: 16px;
}

.movie-card-wide p {
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.rank-panel {
  border-radius: 22px;
  padding: 22px;
}

.rank-panel h2,
.aside-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.rank-panel ol,
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-panel li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.rank-panel li > span:first-child,
.rank-number {
  font-weight: 900;
  color: var(--accent);
}

.mini-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mini-link img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-link strong,
.mini-link em {
  display: block;
}

.mini-link strong {
  font-size: 14px;
  line-height: 1.35;
  color: white;
}

.mini-link em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

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

.category-tile {
  border-radius: 22px;
  padding: 22px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -46px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.16);
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  background: rgba(30, 41, 59, 0.88);
}

.category-tile strong,
.category-tile span {
  display: block;
  position: relative;
  z-index: 1;
}

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

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

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

.page-hero {
  border-radius: var(--radius-xl);
  padding: 42px;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.18), transparent 18rem),
    rgba(30, 41, 59, 0.62);
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
}

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

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

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

.category-overview-card {
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 230px;
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.category-collage img:nth-child(1) {
  grid-row: span 2;
}

.category-overview-card > div:last-child {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-overview-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

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

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  cursor: pointer;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.64);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: white;
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(56, 189, 248, 0.5);
}

.is-hidden {
  display: none !important;
}

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

.rank-board {
  padding-top: 18px;
}

.rank-list-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

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

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

.video-element {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  color: white;
  background: rgba(2, 6, 23, 0.24);
}

.player-overlay img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.player-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.15));
}

.play-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  font-size: 30px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.36);
}

.player-overlay strong {
  font-size: 20px;
}

.player-box.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.detail-card {
  margin-top: 24px;
  border-radius: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 4vw, 44px);
}

.lead-text {
  font-size: 18px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

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

.detail-meta span,
.detail-meta strong {
  display: block;
}

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

.detail-meta strong {
  color: white;
  font-size: 15px;
}

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

.detail-card section {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 22px;
  margin-top: 22px;
}

.detail-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-aside {
  position: sticky;
  top: 100px;
}

.aside-card {
  border-radius: 24px;
  padding: 20px;
}

.aside-card .mini-link {
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.6fr 0.8fr;
  gap: 32px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px 32px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

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

  .hero-feature-card {
    display: none;
  }

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

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

  .category-overview-grid,
  .featured-layout,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
    padding-inline: 16px;
  }

  .brand-text em {
    display: none;
  }

  .header-actions > .site-search {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    top: 48%;
  }

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

  .hero h2 {
    font-size: 27px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-panel {
    align-items: stretch;
    flex-direction: column;
    bottom: 24px;
  }

  .hero-search input {
    width: 100%;
  }

  .section-block,
  .category-ribbon {
    padding: 42px 16px;
  }

  .page-main {
    padding: 90px 16px 56px;
  }

  .section-heading,
  .page-hero {
    display: block;
  }

  .more-link,
  .page-hero .ghost-button {
    margin-top: 16px;
  }

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

  .movie-card-wide {
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 165px;
  }

  .wide-body {
    padding: 16px;
  }

  .movie-card-wide h3 {
    font-size: 17px;
  }

  .category-grid,
  .featured-rank-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .category-collage {
    height: 180px;
  }

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

  .rank-action {
    display: none;
  }

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

  .play-circle {
    width: 62px;
    height: 62px;
    font-size: 25px;
  }

  .footer-inner {
    padding: 38px 16px;
  }
}
