/* Static movie site styles */
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-card-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --cyan: #06b6d4;
  --cyan-strong: #0891b2;
  --green: #22c55e;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(8, 145, 178, 0.18);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

img.image-failed {
  opacity: 0;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.84);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.36);
}

.brand-text {
  font-size: 1.08rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-nav-link {
  color: var(--muted-2);
  padding: 10px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #fff;
  background: rgba(6, 182, 212, 0.13);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.header-search input,
.filter-controls input,
.filter-controls select,
.hero-search input,
.hero-search button,
.header-search button {
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
  outline: none;
}

.header-search input,
.filter-controls input,
.filter-controls select,
.hero-search input {
  width: 100%;
  padding: 11px 14px;
}

.header-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus,
.hero-search input:focus {
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.header-search button,
.hero-search button {
  flex: 0 0 auto;
  padding: 11px 18px;
  cursor: pointer;
  border-color: transparent;
  background: var(--cyan);
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover {
  background: var(--cyan-strong);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

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

.mobile-nav.is-open {
  display: grid;
  gap: 4px;
}

.page-main {
  padding-top: 64px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #020617);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 38%, rgba(6, 182, 212, 0.28), transparent 26rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.68) 48%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 42%, transparent 100%);
}

.hero-content {
  position: absolute;
  left: max(28px, calc((100vw - var(--max)) / 2));
  bottom: 112px;
  max-width: 780px;
  padding-right: 28px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.02;
}

.hero-content p,
.page-hero p,
.section-heading p,
.filter-panel p,
.category-overview-card p,
.site-footer p {
  color: var(--muted-2);
  line-height: 1.75;
}

.hero-content p {
  max-width: 700px;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
}

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

.hero-tags span,
.tag-list span,
.detail-meta span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

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

.primary-button,
.ghost-button,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #fff;
  background: var(--cyan);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.26);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--cyan-strong);
}

.primary-button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.ghost-button,
.panel-link {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover,
.panel-link:hover {
  border-color: rgba(6, 182, 212, 0.8);
  background: rgba(6, 182, 212, 0.12);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.54);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 6, 23, 0.78);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 84px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-search {
  position: absolute;
  right: max(28px, calc((100vw - var(--max)) / 2));
  bottom: 28px;
  z-index: 6;
  width: min(520px, calc(100% - 56px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.64);
  backdrop-filter: blur(18px);
}

.stats-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: -32px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

.stats-strip div {
  padding: 24px;
  background: rgba(15, 23, 42, 0.96);
}

.stats-strip strong {
  display: block;
  font-size: 2rem;
  color: #fff;
}

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

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

.alt-section {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - var(--max)) / 2));
  padding-left: max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(15, 23, 42, 0.62);
}

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

.section-heading h2,
.ranking-panel h2,
.filter-panel h2,
.sidebar-card h2,
.detail-text-block h2 {
  margin: 0 0 8px;
  color: #fff;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

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

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.88);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(6, 182, 212, 0.46);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 25%, rgba(6, 182, 212, 0.32), transparent 15rem),
    linear-gradient(135deg, #1e293b, #020617);
}

.movie-card.large .poster-frame {
  aspect-ratio: 16 / 10;
}

.poster-frame img,
.ranking-poster img,
.cover-card img,
.category-thumbs img,
.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-frame img,
.ranking-card:hover .ranking-poster img,
.category-tile:hover .category-thumbs img {
  transform: scale(1.08);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 62%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
  opacity: 1;
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding-left: 4px;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 182, 212, 0.92);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  color: #fff;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
}

.duration-badge {
  right: 10px;
  top: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  text-align: center;
  background: rgba(250, 204, 21, 0.92);
  color: #111827;
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 1.03rem;
  line-height: 1.38;
}

.movie-card h3 a:hover,
.ranking-row:hover strong,
.ranking-card h2 a:hover,
.category-overview-card h2 a:hover {
  color: var(--cyan);
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.35em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  gap: 6px;
  margin-bottom: 12px;
}

.meta-line span {
  padding: 4px 8px;
  color: var(--muted-2);
  font-size: 0.76rem;
}

.tag-list span {
  color: var(--muted-2);
  background: rgba(30, 41, 59, 0.72);
}

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

.category-tile {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.48);
  box-shadow: var(--shadow);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  aspect-ratio: 16 / 10;
  gap: 1px;
  overflow: hidden;
  background: #020617;
}

.category-thumbs img:first-child {
  grid-row: span 2;
}

.category-tile div:last-child {
  padding: 16px;
}

.category-tile h3 {
  margin: 0 0 8px;
}

.category-tile p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.category-tile span {
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 800;
}

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

.ranking-panel,
.filter-panel,
.search-panel,
.detail-card,
.sidebar-card,
.player-card,
.category-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.28);
}

.ranking-panel {
  position: sticky;
  top: 88px;
  padding: 24px;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.58);
}

.ranking-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #111827;
  background: var(--yellow);
  font-weight: 900;
}

.ranking-row strong,
.ranking-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

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

.small-hero > div {
  padding: 38px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(6, 182, 212, 0.18), transparent 24rem),
    rgba(15, 23, 42, 0.72);
}

.small-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.filter-panel,
.search-panel {
  margin-bottom: 26px;
  padding: 22px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 20px;
  align-items: center;
}

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

.filter-controls select {
  min-width: 150px;
  color: #fff;
}

.filter-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.wide-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
}

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

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

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  min-height: 220px;
}

.category-cover-stack img {
  border-radius: 16px;
  background: #020617;
}

.category-cover-stack img:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

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

.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.mini-link-list a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(30, 41, 59, 0.72);
  font-size: 0.88rem;
}

.mini-link-list a:hover {
  color: #fff;
  background: rgba(6, 182, 212, 0.18);
}

.ranking-cards {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 68px 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #111827;
  background: linear-gradient(135deg, var(--yellow), #fb923c);
  font-size: 1.2rem;
  font-weight: 900;
}

.ranking-poster {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #020617;
}

.ranking-card h2 {
  margin: 0 0 8px;
}

.ranking-card p {
  margin: 0 0 12px;
  color: var(--muted-2);
  line-height: 1.65;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.player-card {
  overflow: hidden;
  margin-bottom: 22px;
  padding: 0;
  background: #000;
}

.player-shell {
  position: relative;
  background: #000;
}

.hls-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 8px;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 182, 212, 0.88);
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.34);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.player-play-button span {
  font-size: 2rem;
  line-height: 1;
}

.player-play-button:hover {
  background: var(--cyan-strong);
  transform: translate(-50%, -50%) scale(1.04);
}

.player-shell.is-playing .player-play-button {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  margin: 0;
  color: #f8fafc;
  font-size: 0.88rem;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.detail-card {
  padding: 28px;
}

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

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.detail-meta {
  margin-bottom: 18px;
}

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

.large-tags span {
  color: #dffafe;
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.2);
}

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

.detail-text-block p {
  margin: 0;
  color: var(--muted-2);
  line-height: 1.9;
  white-space: pre-line;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.sidebar-card {
  padding: 18px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  margin-bottom: 14px;
  background: #020617;
}

.side-related-list {
  display: grid;
  gap: 14px;
}

.side-related-list .movie-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.side-related-list .poster-frame {
  height: 100%;
  aspect-ratio: auto;
}

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

.side-related-list .movie-card p,
.side-related-list .tag-list,
.side-related-list .meta-line {
  display: none;
}

.side-related-list .movie-card h3 {
  font-size: 0.94rem;
}

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

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

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

.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

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

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

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}

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

@media (max-width: 1060px) {
  .header-search {
    min-width: 220px;
  }

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

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

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

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: inline-block;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 170px;
  }

  .hero-search {
    left: 20px;
    right: 20px;
    bottom: 28px;
    width: auto;
    flex-direction: column;
    border-radius: 22px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 138px;
  }

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

  .section-heading,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .category-grid,
  .footer-grid,
  .filter-panel,
  .category-overview-card,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .filter-controls,
  .wide-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .category-cover-stack {
    min-height: 180px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .hero-carousel {
    min-height: 650px;
  }

  .content-section,
  .page-hero,
  .detail-layout,
  .footer-grid,
  .footer-bottom,
  .stats-strip {
    width: calc(100% - 24px);
  }

  .small-hero > div,
  .detail-card,
  .filter-panel,
  .search-panel {
    padding: 20px;
  }

  .featured-grid,
  .compact-grid,
  .catalogue-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .side-related-list .movie-card {
    grid-template-columns: 1fr;
  }

  .side-related-list .poster-frame {
    aspect-ratio: 16 / 9;
  }

  .player-play-button {
    width: 96px;
    height: 96px;
  }
}
