:root {
  color-scheme: dark;
  --page: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-bright: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-deep: #2563eb;
  --danger: #fb7185;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.14), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, 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 {
  font: inherit;
}

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

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.42);
  color: white;
  font-size: 16px;
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(135deg, #e0f2fe, #38bdf8 54%, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 8px 2px;
  color: var(--soft);
  font-weight: 700;
  font-size: 15px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.big-search input,
.movie-filter {
  width: 220px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  padding: 11px 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.movie-filter:focus {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
  background: rgba(15, 23, 42, 1);
}

.nav-search button,
.mobile-search button,
.big-search button,
.primary-btn {
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-deep));
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.28);
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

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

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.62);
  color: var(--soft);
  font-weight: 700;
}

.mobile-link.is-active {
  color: white;
  background: rgba(14, 165, 233, 0.22);
}

.quick-strip {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(15, 23, 42, 0.42);
}

.quick-strip-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 0;
}

.quick-strip a,
.category-pills a {
  flex: 0 0 auto;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.56);
}

.quick-strip a:hover,
.category-pills a:hover {
  color: white;
  border-color: rgba(56, 189, 248, 0.6);
}

main {
  min-height: 68vh;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 34px auto 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 34px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 42px;
  align-items: center;
  padding: 68px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  isolation: isolate;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 48%, rgba(2, 6, 23, 0.92) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.12);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  z-index: -1;
  height: 58%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 58%);
}

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

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: white;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
  max-width: 680px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  font-size: 13px;
  font-weight: 700;
}

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

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

.ghost-btn,
.text-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.ghost-btn {
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: white;
  background: rgba(15, 23, 42, 0.62);
}

.text-btn,
.section-more {
  color: var(--accent);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  box-shadow: 0 34px 80px rgba(2, 6, 23, 0.58);
  transform: rotate(2deg);
}

.hero-poster img,
.category-card img,
.category-overview-card img,
.detail-poster img,
.poster-link img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 68px;
  bottom: 34px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(226, 232, 240, 0.26);
  cursor: pointer;
}

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

.search-panel,
.filter-panel,
.content-section,
.detail-content,
.player-section,
.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-panel,
.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 42px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
}

.search-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.search-panel p,
.section-heading p,
.card-meta,
.card-line,
.rank-card p,
.story-card p,
.footer-grid p,
.info-table dd,
.category-card p,
.category-overview-card p {
  color: var(--muted);
}

.big-search input {
  width: min(460px, 52vw);
}

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

.muted-section {
  width: 100%;
  padding: 58px max(16px, calc((100% - 1180px) / 2));
  background: rgba(15, 23, 42, 0.55);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.92));
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.24);
  transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.4);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.9));
}

.poster-link img {
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.08);
}

.year-badge,
.play-badge,
.rank-number {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.year-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.7);
  color: #e0f2fe;
  border: 1px solid rgba(226, 232, 240, 0.16);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.38);
}

.card-body {
  padding: 18px;
}

.movie-card h2,
.rank-card h2,
.story-card h2,
.footer-grid h2,
.info-table dt,
.category-overview-card h2 {
  margin: 0;
  color: white;
}

.movie-card h2 {
  font-size: 20px;
  line-height: 1.28;
}

.compact h2 {
  font-size: 17px;
}

.card-meta {
  margin: 8px 0 0;
  font-size: 13px;
}

.card-line {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.compact .card-line {
  min-height: 42px;
  -webkit-line-clamp: 2;
  font-size: 13px;
}

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

.category-card,
.category-overview-card a {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 260px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.26);
}

.category-card::after,
.category-overview-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.9));
}

.category-card img,
.category-overview-card img {
  position: absolute;
  inset: 0;
}

.category-card span,
.category-card p,
.category-overview-card div {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
}

.category-card span {
  bottom: 84px;
  color: white;
  font-size: 28px;
  font-weight: 900;
}

.category-card p {
  bottom: 22px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-overview-card div {
  bottom: 22px;
}

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

.category-overview-card span {
  color: var(--accent);
  font-weight: 900;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
}

.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.9);
}

.rank-number {
  left: 8px;
  top: 8px;
  min-width: 38px;
  height: 30px;
  color: white;
  background: linear-gradient(135deg, var(--danger), var(--accent-deep));
}

.rank-card h2 {
  font-size: 20px;
}

.rank-card p {
  margin: 8px 0 0;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 22px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 20%, rgba(56, 189, 248, 0.18), transparent 32rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.72));
  box-shadow: var(--shadow);
}

.small-hero h1,
.category-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.filter-panel {
  grid-template-columns: minmax(260px, 440px) minmax(0, 1fr);
  margin-top: 26px;
}

.movie-filter {
  width: 100%;
  border-radius: 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.76);
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #bae6fd;
}

.detail-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 34px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  min-height: 520px;
  padding: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.75)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(1px) saturate(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 28% 20%, rgba(56, 189, 248, 0.22), transparent 28rem);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(226, 232, 240, 0.18);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.46);
}

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

.player-section {
  padding: 18px 0 44px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 28px;
  background: black;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.48);
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
}

.player-overlay[hidden] {
  display: none;
}

.player-button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.45);
  font-size: 34px;
}

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

.story-card,
.info-table {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.25);
}

.story-card {
  padding: 26px;
}

.story-card h2 {
  font-size: 26px;
}

.story-card p {
  margin: 14px 0 0;
  font-size: 16px;
}

.info-table {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.info-table div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-table dt {
  font-size: 14px;
}

.info-table dd {
  margin: 6px 0 0;
}

.info-table a {
  color: var(--accent);
}

.related-section {
  padding-bottom: 72px;
}

.search-page-form {
  margin-top: 28px;
}

#search-results:empty::before {
  content: "输入关键词后显示匹配内容";
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(2, 6, 23, 0.96));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  color: white;
  font-size: 28px;
}

.footer-grid h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

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

.footer-links a {
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
}

.footer-links a:hover {
  color: white;
  border-color: rgba(56, 189, 248, 0.54);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 44px;
  }

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

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

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

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

@media (max-width: 780px) {
  .brand-text {
    font-size: 21px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 34px 24px 70px;
  }

  .hero-poster {
    width: min(280px, 78vw);
    margin: 0 auto;
    transform: none;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .search-panel,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .filter-chips {
    justify-content: flex-start;
  }

  .big-search {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

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

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

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

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

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

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

  .detail-poster {
    width: min(280px, 80vw);
  }

  .info-table {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    width: min(100% - 22px, 1180px);
  }

  .quick-strip-inner,
  .hero-slider,
  .search-panel,
  .filter-panel,
  .content-section,
  .detail-content,
  .player-section,
  .breadcrumb,
  .page-hero,
  .detail-hero,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

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

  .rank-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }
}
