:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(30, 41, 59, 0.88);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --shadow: 0 24px 80px rgba(8, 145, 178, 0.18);
  --radius: 24px;
  --max: 1240px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.13), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #07111f 48%, #020617 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.32);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  font-size: 16px;
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.3);
}

.brand:hover .brand-icon {
  transform: scale(1.06) rotate(-3deg);
}

.brand-icon,
.movie-card,
.primary-btn,
.ghost-btn,
.compact-card,
.category-card {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong,
.footer-brand strong {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.desktop-nav a,
.mobile-panel nav a,
.footer-links a,
.footer-cats a {
  color: var(--muted);
  font-weight: 600;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel nav a:hover,
.mobile-panel nav a.active,
.footer-links a:hover,
.footer-cats a:hover {
  color: var(--cyan);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.64);
}

.top-search input,
.mobile-search input,
.filter-search input,
.filter-selects select {
  border: 0;
  outline: 0;
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
}

.top-search input {
  width: 210px;
  padding: 9px 12px;
  background: transparent;
}

.top-search button,
.mobile-search button {
  border: 0;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 9px 14px;
  border-radius: 11px;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}

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

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

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-search input {
  padding: 12px;
}

.mobile-panel nav,
.mobile-cats {
  display: grid;
  gap: 12px;
}

.mobile-cats {
  margin-top: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.mobile-cats a {
  color: var(--muted);
  background: rgba(2, 6, 23, 0.4);
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.home-page,
.inner-page,
.detail-page {
  padding-top: 76px;
}

.hero {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 720px;
  padding: 74px 0 26px;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: 548px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.72);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  padding: 72px;
  opacity: 0;
  transform: translateX(4%);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(26px) saturate(1.15) brightness(0.46);
  transform: scale(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58) 56%, rgba(2, 6, 23, 0.2)),
    radial-gradient(circle at 72% 38%, rgba(34, 211, 238, 0.2), transparent 32rem);
}

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

.eyebrow,
.section-head span,
.page-hero span,
.rank-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-content h2,
.page-hero h1 {
  margin: 16px 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-content p,
.page-hero p,
.section-head p,
.category-overview-card p,
.category-card p {
  color: var(--muted);
  line-height: 1.85;
}

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

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

.primary-btn,
.ghost-btn,
.section-link,
.rank-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 900;
}

.primary-btn {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.25);
}

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

.ghost-btn,
.section-link,
.rank-more {
  color: var(--text);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
}

.ghost-btn:hover,
.section-link:hover,
.rank-more:hover {
  border-color: rgba(34, 211, 238, 0.55);
  color: var(--cyan);
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  color: #bff7ff;
  background: rgba(8, 145, 178, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span,
.play-dot,
.player-overlay span {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #001018;
  font-weight: 900;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  font-size: 22px;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
}

.hero-controls > button,
.hero-dots button {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 26px;
}

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

.hero-dots button {
  width: 38px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  text-align: left;
}

.hero-thumb.is-active {
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(34, 211, 238, 0.11);
}

.hero-thumb img {
  width: 42px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.hero-thumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.hero-orb {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-orb-a {
  top: 80px;
  right: -80px;
  background: rgba(34, 211, 238, 0.34);
}

.hero-orb-b {
  bottom: 120px;
  left: -80px;
  background: rgba(59, 130, 246, 0.24);
}

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

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

.section-head h2,
.rank-title h2,
.text-block h2,
.side-related h2,
.ranking-column-head h2 {
  margin: 8px 0;
  color: #fff;
  font-size: clamp(25px, 3.6vw, 38px);
  line-height: 1.1;
}

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
}

.movie-card:hover .movie-card-link {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 22px 54px rgba(34, 211, 238, 0.12);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.92);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  z-index: 2;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.28);
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex: 1;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(148, 163, 184, 0.45);
}

.movie-card h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

.movie-card-large .movie-card-link {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card-large .poster-wrap {
  height: 100%;
}

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

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 28px;
}

.rank-panel,
.detail-info-card,
.player-card,
.side-meta,
.side-related,
.ranking-column,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
}

.rank-panel {
  padding: 22px;
  position: sticky;
  top: 94px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.36);
}

.compact-card.has-rank {
  grid-template-columns: auto 58px minmax(0, 1fr);
}

.compact-card:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.5);
}

.compact-card img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card strong {
  color: #fff;
  font-size: 14px;
}

.compact-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 6px;
}

.compact-rank {
  color: var(--cyan);
  font-weight: 900;
  font-size: 15px;
  width: 28px;
  text-align: center;
}

.rank-more {
  width: 100%;
  margin-top: 16px;
}

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

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

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

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

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

.category-card strong,
.category-title-link span {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.category-title-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.category-title-link strong {
  color: var(--cyan);
  font-size: 14px;
}

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

.page-hero {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 24px;
}

.small-hero,
.category-hero {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.small-hero::before,
.category-hero::before {
  content: "";
  position: absolute;
  inset: 42px 0 0;
  z-index: -1;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.2), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.48));
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  margin-bottom: 22px;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  padding: 0 14px;
}

.filter-search input:focus,
.filter-selects select:focus,
.top-search:focus-within,
.mobile-search input:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

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

.filter-selects select {
  min-width: 132px;
}

.empty-state {
  display: none;
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.45);
  margin-bottom: 22px;
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto 20px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

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

.detail-layout {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  padding: 12px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
  color: #fff;
  z-index: 3;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  font-size: 30px;
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.28);
}

.player-overlay strong {
  font-size: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-info-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.detail-title-row h1 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.one-line {
  margin: 18px 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

.text-block {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}

.text-block h2 {
  font-size: 24px;
}

.text-block p {
  color: var(--muted);
  line-height: 1.95;
  margin: 0 0 14px;
}

.detail-side {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.side-poster {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

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

.side-meta,
.side-related {
  padding: 18px;
}

.side-meta dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.side-meta dt {
  color: var(--muted-2);
}

.side-meta dd {
  margin: 0;
  color: var(--text);
}

.side-meta a {
  color: var(--cyan);
}

.related-section {
  width: 100%;
}

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

.ranking-column {
  padding: 20px;
}

.ranking-column-head p {
  color: var(--muted);
  line-height: 1.7;
}

.large-rank-list {
  max-height: 980px;
  overflow: auto;
  padding-right: 4px;
}

.site-footer {
  margin-top: 92px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.76);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 36px;
}

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

.footer-links,
.footer-cats {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-cats {
  grid-template-columns: repeat(2, 1fr);
}

.copyright {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--muted-2);
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  font-size: 14px;
}

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

  .hero-slide {
    grid-template-columns: 1fr 300px;
    padding: 52px;
  }

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

  .two-column-section,
  .detail-layout,
  .ranking-columns {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }
}

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

  .mobile-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-shell {
    height: 66px;
  }

  .home-page,
  .inner-page,
  .detail-page {
    padding-top: 66px;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 18px;
  }

  .hero-stage {
    min-height: 680px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 26px;
    padding: 32px;
  }

  .hero-poster {
    width: min(260px, 76vw);
    justify-self: center;
    order: -1;
  }

  .hero-content h2,
  .page-hero h1 {
    font-size: clamp(34px, 10vw, 58px);
  }

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

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

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

  .filter-selects {
    flex-wrap: wrap;
  }

  .filter-selects select {
    flex: 1 1 160px;
  }

  .detail-title-row,
  .section-head {
    display: grid;
  }

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

@media (max-width: 560px) {
  .nav-shell,
  .content-section,
  .hero,
  .page-hero,
  .detail-layout,
  .breadcrumb,
  .footer-inner,
  .copyright {
    width: min(100% - 22px, var(--max));
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text em {
    display: none;
  }

  .hero-stage {
    min-height: 650px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 22px;
  }

  .hero-content p,
  .page-hero p {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
  }

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

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

  .movie-card-large .movie-card-link {
    grid-template-columns: 1fr;
  }

  .detail-info-card {
    padding: 20px;
  }

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