
:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --muted: #94a3b8;
  --text: #f8fafc;
  --subtle: #cbd5e1;
  --line: rgba(148, 163, 184, 0.22);
  --cyan: #22d3ee;
  --blue: #2563eb;
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.15), transparent 28rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #67e8f9, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--subtle);
  font-weight: 650;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--cyan);
}

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

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

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

.mobile-menu a {
  display: block;
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--subtle);
}

.mobile-menu a:hover {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}

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

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-slides {
  position: relative;
  min-height: 70vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 104px 24px 150px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 1.2s ease, visibility 0.6s ease;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.76)),
    linear-gradient(0deg, #020617 0%, transparent 34%, transparent 68%, rgba(2, 6, 23, 0.55) 100%);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
  margin: 0 auto;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.spotlight-copy span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #cffafe, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  width: min(780px, 100%);
  margin: 0 auto 26px;
  color: #dbeafe;
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.7;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 650;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 38px rgba(34, 211, 238, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:hover {
  box-shadow: 0 22px 48px rgba(34, 211, 238, 0.36);
}

.ghost-btn {
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(15, 23, 42, 0.52);
}

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: min(960px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.hero-thumb {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
  color: #dbeafe;
  padding: 8px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 9px;
  text-align: left;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(8, 145, 178, 0.22);
  transform: translateY(-2px);
}

.hero-thumb img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
}

.hero-thumb span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

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

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px)) 1fr;
  align-items: stretch;
  gap: 16px;
}

.stat-card,
.stat-copy,
.content-card,
.info-panel,
.filter-panel,
.spotlight-section,
.category-tile,
.movie-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat-card {
  min-height: 128px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stat-card strong {
  font-size: 40px;
  line-height: 1;
  background: linear-gradient(90deg, #67e8f9, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card span,
.stat-copy p,
.movie-card p,
.card-meta,
.result-note,
.info-panel dd,
.content-card p,
.footer-grid p,
.page-hero p,
.spotlight-copy p {
  color: var(--muted);
}

.stat-copy {
  border-radius: var(--radius);
  padding: 28px;
}

.stat-copy h2,
.section-heading h2,
.spotlight-copy h2,
.content-card h2,
.info-panel h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.03em;
}

.stat-copy h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 10px;
}

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

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading a {
  color: var(--cyan);
  font-weight: 750;
}

.filter-panel {
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
}

.search-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.48);
}

.search-box span {
  color: var(--cyan);
  font-size: 20px;
}

.search-box input,
.filter-actions select {
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

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

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

.filter-actions select {
  min-height: 48px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.52);
}

.result-note {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.46);
  background: rgba(15, 23, 42, 0.96);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.2), transparent 50%),
    #0f172a;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease, filter 0.36s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(0.84);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 48%);
  opacity: 0.95;
}

.meta-pill,
.rank-badge,
.play-badge {
  position: absolute;
  z-index: 2;
}

.meta-pill {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.76);
  backdrop-filter: blur(10px);
}

.rank-badge {
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.82);
  border-radius: 999px;
  color: white;
  background: rgba(34, 211, 238, 0.88);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.card-meta {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.movie-card h3 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

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

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

.tag-row {
  justify-content: flex-start;
  gap: 7px;
}

.tag-row span {
  min-height: 24px;
  padding: 4px 9px;
  color: #bae6fd;
  background: rgba(30, 41, 59, 0.72);
}

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

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

.category-tile {
  position: relative;
  min-height: 182px;
  overflow: hidden;
  border-radius: var(--radius);
  display: flex;
  align-items: end;
  padding: 18px;
  isolation: isolate;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.48);
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) brightness(0.55);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.16));
}

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

.category-tile strong {
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.category-tile em {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
  font-style: normal;
}

.spotlight-section {
  border-radius: 32px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 26px;
  align-items: center;
}

.spotlight-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 14px;
}

.spotlight-copy p {
  line-height: 1.75;
  margin-bottom: 24px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 13px;
  align-items: center;
  min-height: 88px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.38);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.44);
  background: rgba(8, 47, 73, 0.34);
}

.compact-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.compact-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.compact-info strong {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.mini-rank {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 34px;
}

.page-hero > div {
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(34px, 7vw, 72px);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.72));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
}

.detail-hero {
  min-height: 620px;
  padding: 92px 0 54px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.84)),
    linear-gradient(0deg, #020617, transparent 48%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: center;
}

.poster-frame {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.88);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #bae6fd;
  font-weight: 700;
}

.breadcrumb span {
  color: var(--muted);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags {
  justify-content: flex-start;
  margin-bottom: 28px;
}

.detail-section {
  padding-top: 36px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.movie-video {
  background: #000;
  z-index: 1;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  color: white;
  background: #020617;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(1.1);
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.player-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.16), transparent 20rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 60%);
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: white;
  font-size: 32px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 0 56px rgba(34, 211, 238, 0.48);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-top: 26px;
}

.content-card,
.info-panel {
  border-radius: 28px;
  padding: 28px;
}

.content-card h2,
.info-panel h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

.content-card p {
  font-size: 16px;
  line-height: 1.9;
  margin: 16px 0 0;
}

.detail-tag-row {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.info-panel dt {
  color: #e2e8f0;
  font-weight: 800;
}

.info-panel dd {
  margin: 0;
  line-height: 1.55;
}

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

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

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

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

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

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.footer-grid p {
  margin: 0;
  line-height: 1.8;
}

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

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

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

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

.sitemap-list a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--subtle);
  background: rgba(15, 23, 42, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitemap-list a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.44);
}

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

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

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

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

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

  .nav-toggle {
    display: block;
  }

  .hero-slide {
    align-items: end;
    padding: 96px 18px 162px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-tags,
  .hero-actions {
    justify-content: flex-start;
  }

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

  .hero-thumb:nth-child(n + 4) {
    display: none;
  }

  .intro-strip,
  .spotlight-section,
  .detail-hero-inner,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    gap: 24px;
  }

  .poster-frame {
    width: min(260px, 70vw);
  }

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

  .filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .result-note {
    text-align: left;
  }

  .movie-grid,
  .library-grid,
  .category-page-grid,
  .related-grid,
  .category-grid,
  .category-grid.wide,
  .sitemap-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-nav,
  .mobile-menu,
  .section,
  .page-hero,
  .detail-hero-inner,
  .footer-grid {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

  .hero-content h1,
  .detail-copy h1 {
    font-size: 40px;
  }

  .hero-content p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-thumbs {
    bottom: 18px;
    grid-template-columns: 1fr;
  }

  .hero-thumb:nth-child(n + 2) {
    display: none;
  }

  .movie-grid,
  .library-grid,
  .category-page-grid,
  .related-grid,
  .category-grid,
  .category-grid.wide,
  .sitemap-list {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    grid-template-columns: 1fr;
  }

  .spotlight-section,
  .content-card,
  .info-panel,
  .stat-copy,
  .page-hero > div {
    padding: 22px;
  }

  .player-button {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
