:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --gold: #facc15;
  --rose: #fb7185;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.12), transparent 34%), linear-gradient(180deg, #020617 0%, #0f172a 48%, #000 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
}

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

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

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.45);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #e2e8f0;
  font-weight: 650;
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.25s ease, background 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #e2e8f0;
}

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

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

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

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.hero-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.78) 22%, rgba(0, 0, 0, 0.35) 54%, rgba(2, 6, 23, 0.5) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 86px;
  width: min(680px, calc(100vw - 48px));
  z-index: 2;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 14px;
  text-transform: uppercase;
}

.hero-label::before,
.section-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.hero-content h1,
.hero-content h2 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-feature-title {
  display: block;
  margin: 0 0 12px;
  color: #e0f2fe;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(10px);
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.inline-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 26px;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  color: #fff;
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.34);
}

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.inline-link:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-tabs {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 44px;
  z-index: 4;
  display: flex;
  gap: 12px;
  max-width: min(520px, calc(100% - 48px));
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-tabs::-webkit-scrollbar {
  display: none;
}

.hero-tabs button {
  width: 150px;
  min-width: 150px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero-tabs button.is-active,
.hero-tabs button:hover {
  opacity: 1;
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.hero-tabs img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  background: #111827;
}

.hero-tabs span {
  display: block;
  padding: 9px 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 800;
}

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

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

.section-title-row h2,
.category-panel h2,
.related-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-title-row p,
.category-panel p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.8;
}

.section-more,
.inline-link {
  padding: 10px 16px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.26);
  white-space: nowrap;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px) scale(1.015);
  border-color: rgba(34, 211, 238, 0.54);
  box-shadow: 0 24px 70px rgba(34, 211, 238, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #111827);
}

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

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

.poster-gradient,
.compact-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 54%);
}

.quality-badge,
.duration-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
}

.quality-badge {
  left: 10px;
  color: #cffafe;
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.duration-badge {
  right: 10px;
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  box-shadow: 0 16px 38px rgba(34, 211, 238, 0.32);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  min-height: 42px;
  margin: 0 0 10px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #cbd5e1;
  font-size: 12px;
}

.card-meta .rating {
  color: var(--gold);
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.11);
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
}

.large-tags span {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

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

.category-panel,
.related-panel,
.detail-main,
.category-overview-card {
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

.category-panel {
  position: sticky;
  top: 88px;
  padding: 28px;
}

.category-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.category-card {
  min-height: 112px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-card span {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.category-card strong {
  margin: 10px 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 500;
}

.category-card em {
  color: #67e8f9;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.rank-row:hover {
  transform: translateX(5px);
  background: rgba(30, 41, 59, 0.86);
  border-color: rgba(34, 211, 238, 0.4);
}

.rank-number {
  color: var(--gold);
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.rank-row img {
  width: 88px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

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

.rank-main strong {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.rank-main em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  text-align: right;
  color: #cbd5e1;
}

.rank-meta b,
.rank-meta small {
  display: block;
}

.rank-meta b {
  color: var(--gold);
}

.rank-meta small {
  margin-top: 4px;
  color: var(--muted);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.compact-card {
  position: relative;
  height: 310px;
  overflow: hidden;
  border-radius: 24px;
  scroll-snap-align: start;
  background: #111827;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.compact-card strong,
.compact-card small {
  position: absolute;
  left: 16px;
  right: 16px;
  z-index: 2;
}

.compact-card strong {
  bottom: 42px;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.35;
}

.compact-card small {
  bottom: 18px;
  color: #cbd5e1;
}

.sub-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  min-height: 270px;
  display: flex;
  align-items: end;
  padding: 40px;
  border-radius: 32px;
  overflow: hidden;
  background: radial-gradient(circle at 12% 20%, rgba(34, 211, 238, 0.24), transparent 34%), linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(2, 6, 23, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

.sub-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.filter-search {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 800;
}

.filter-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
}

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

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

.filter-chips button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.72);
  color: #cbd5e1;
  font-weight: 800;
  cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(8, 145, 178, 0.28);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 26px;
  padding: 22px;
  align-items: center;
}

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

.category-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #111827;
}

.category-overview-card h2 {
  margin: 8px 0 12px;
  font-size: 30px;
  font-weight: 950;
}

.category-overview-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.36), rgba(0, 0, 0, 0.76));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 52px rgba(37, 99, 235, 0.36);
  font-size: 30px;
}

.play-overlay b {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-poster {
  padding: 16px;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  background: #111827;
}

.full-button {
  width: 100%;
  margin-top: 14px;
}

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

.detail-main,
.related-panel {
  padding: 28px;
}

.detail-main h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.one-line {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(8, 145, 178, 0.13);
  border: 1px solid rgba(34, 211, 238, 0.18);
  color: #e0f2fe;
  font-size: 18px;
  line-height: 1.8;
}

.detail-main h2 {
  margin: 30px 0 14px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.prose-block p,
.review-box p {
  color: #cbd5e1;
  line-height: 2;
  text-align: justify;
}

.review-box {
  padding: 20px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.related-panel {
  position: sticky;
  top: 88px;
}

.related-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.related-list .compact-card {
  height: 178px;
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), #000);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.footer-grid p {
  margin: 12px 0 0;
  color: #94a3b8;
  line-height: 1.8;
  font-size: 14px;
}

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

.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
}

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

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

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

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

  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-content {
    bottom: 178px;
  }

  .hero-tabs {
    left: 24px;
    right: 24px;
    bottom: 30px;
  }

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

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

  .detail-poster {
    display: none;
  }

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

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

@media (max-width: 620px) {
  .nav-wrap,
  .mobile-nav,
  .content-section,
  .sub-hero,
  .detail-top,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 21px;
  }

  .hero-slider,
  .hero-stage,
  .hero-slide > img {
    min-height: 76vh;
  }

  .hero-content {
    left: 18px;
    width: calc(100vw - 36px);
    bottom: 170px;
  }

  .hero-content p {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-tabs {
    left: 18px;
    right: 18px;
  }

  .hero-tabs button {
    width: 124px;
    min-width: 124px;
  }

  .hero-tabs img {
    height: 68px;
  }

  .section-title-row {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

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

  .movie-card-body {
    padding: 12px;
  }

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

  .rank-meta {
    grid-column: 3;
    text-align: left;
  }

  .sub-hero {
    min-height: 230px;
    padding: 26px;
    border-radius: 24px;
  }

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

  .detail-main,
  .related-panel {
    padding: 22px;
  }

  .player-shell {
    border-radius: 20px;
  }
}
