:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --violet: #a78bfa;
  --pink: #fb7185;
  --green: #34d399;
  --yellow: #facc15;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(34, 211, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 84% 14%, rgba(167, 139, 250, 0.14), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #07111f 42%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

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

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

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #020617;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

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

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

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.96), rgba(167, 139, 250, 0.96)),
    rgba(15, 23, 42, 0.9);
  color: #fff;
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.18);
}

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

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

.nav-link,
.mobile-nav-link {
  border-radius: 999px;
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: rgba(34, 211, 238, 0.12);
  color: #fff;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

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

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

.mobile-nav-link {
  padding: 12px;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  align-items: center;
  opacity: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: opacity 0.8s ease, transform 1.2s ease;
  transform: scale(1.02);
}

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

.hero-slide::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  content: "";
  background: linear-gradient(to top, #020617, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 380px);
  gap: 52px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding-top: 82px;
}

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

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

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero-summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #dbeafe;
  font-size: 0.8rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  color: #fff;
  box-shadow: 0 18px 44px rgba(34, 211, 238, 0.18);
}

.button-ghost {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.58);
  color: #e2e8f0;
}

.full-width {
  width: 100%;
}

.hero-poster {
  position: relative;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
}

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

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(2, 6, 23, 0.72), transparent 52%);
}

.hero-poster-play {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #020617;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.hero-dots {
  position: absolute;
  bottom: 104px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 10px;
  width: min(var(--max), calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(135deg, #22d3ee, #a78bfa);
}

.hero-stats {
  position: absolute;
  right: 50%;
  bottom: 30px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(var(--max), calc(100% - 32px));
  transform: translateX(50%);
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(14px);
  color: #cbd5e1;
}

.hero-stats strong {
  color: #fff;
  font-size: 1.2rem;
}

.search-hero-card,
.content-section,
.page-shell,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.search-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 24px;
  align-items: center;
  margin-top: -44px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.search-hero-card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.global-search {
  display: flex;
  gap: 12px;
}

.global-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  outline: none;
  background: rgba(2, 6, 23, 0.54);
  color: #fff;
}

.global-search input {
  padding: 0 16px;
}

.global-search button {
  min-width: 122px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

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

.no-top-padding {
  padding-top: 0;
}

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

.section-header h2,
.page-hero h1,
.filter-panel h2,
.ranking-panel h2,
.detail-info-card h1,
.detail-card h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.section-header h2,
.filter-panel h2,
.ranking-panel h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-header p,
.page-hero p,
.filter-panel p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #cbd5e1;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.2), transparent 40%),
    rgba(15, 23, 42, 0.9);
}

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

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

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

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

.rating-badge {
  top: 10px;
  right: 10px;
  min-width: 42px;
  min-height: 30px;
  background: rgba(250, 204, 21, 0.95);
  color: #111827;
  font-size: 0.82rem;
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-height: 30px;
  padding: 0 10px;
  background: linear-gradient(135deg, #fb7185, #facc15);
  color: #111827;
  font-size: 0.76rem;
}

.play-pill {
  right: 10px;
  bottom: 10px;
  min-height: 30px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #020617;
  font-size: 0.78rem;
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: #fff;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #94a3b8;
  font-size: 0.8rem;
}

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

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

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 198px;
}

.movie-card-horizontal .poster {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card-horizontal .movie-title {
  min-height: 0;
  font-size: 1.06rem;
}

.movie-card-horizontal .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

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

.category-grid,
.category-card-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.7);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.12));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 16px;
  z-index: 2;
}

.category-tile strong {
  bottom: 40px;
  font-size: 1.35rem;
}

.category-tile em {
  bottom: 16px;
  color: #cbd5e1;
  font-style: normal;
}

.ranking-panel,
.filter-panel,
.detail-card,
.detail-info-card,
.player-card,
.prose-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 24px;
}

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

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

.ranking-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.ranking-name {
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-score {
  color: var(--yellow);
  font-weight: 900;
  text-align: right;
}

.page-shell {
  padding-top: 112px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  padding: 48px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 32px;
  background:
    radial-gradient(circle at 14% 0%, rgba(34, 211, 238, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.62));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
  margin-bottom: 26px;
  padding: 24px;
}

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

.filter-controls label {
  display: grid;
  gap: 6px;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.filter-controls input,
.filter-controls select {
  padding: 0 12px;
}

.filter-summary {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #cbd5e1;
}

.filter-summary strong {
  color: #fff;
}

.filter-summary button {
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
}

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

.category-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
}

.category-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.category-card div {
  padding: 16px;
}

.category-card strong {
  display: block;
  color: #fff;
  font-size: 1.2rem;
}

.category-card span,
.category-card p {
  color: var(--muted);
}

.category-card p {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

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

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  color: #cbd5e1;
}

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

.breadcrumb a {
  color: #cbd5e1;
}

.breadcrumb em {
  color: #fff;
  font-style: normal;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-card {
  overflow: hidden;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.68));
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #020617;
  font-size: 1.7rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.player-card.is-playing .player-overlay {
  visibility: hidden;
  opacity: 0;
}

.player-note {
  padding: 14px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 0.9rem;
}

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

.detail-card p,
.prose-card p {
  margin: 12px 0 0;
  color: #cbd5e1;
}

.detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.64);
}

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

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

.detail-info-card h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.detail-one-line {
  margin: 12px 0 0;
  color: #cbd5e1;
}

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

.meta-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.16);
}

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

.meta-list dd {
  margin: 0;
  color: #fff;
}

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

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

.prose-card {
  padding: 28px;
}

.prose-card h2 {
  margin: 26px 0 0;
}

.prose-card h2:first-child {
  margin-top: 0;
}

.site-footer {
  margin-top: 92px;
  padding: 42px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 1.1fr;
  gap: 28px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-grid p,
.footer-grid a {
  color: #94a3b8;
}

.footer-grid a {
  display: block;
  margin-top: 8px;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  font-size: 0.9rem;
}

[data-movie-card][hidden] {
  display: none !important;
}

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

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

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

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

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

  .mobile-menu-button {
    display: flex;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 110px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4.7rem);
  }

  .hero-poster {
    width: min(300px, 78vw);
  }

  .hero-dots {
    bottom: 130px;
  }

  .search-hero-card,
  .global-search,
  .section-header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .movie-grid-featured,
  .movie-grid-dense,
  .ranking-feature-list,
  .horizontal-grid,
  .category-card-grid,
  .support-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .nav-container {
    height: 66px;
  }

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

  .hero {
    min-height: 820px;
  }

  .hero-stats {
    bottom: 18px;
  }

  .hero-stats span {
    width: 100%;
    justify-content: space-between;
  }

  .search-hero-card,
  .page-hero,
  .filter-panel,
  .detail-card,
  .detail-info-card {
    padding: 20px;
    border-radius: 22px;
  }

  .movie-grid,
  .movie-grid-featured,
  .movie-grid-dense,
  .ranking-feature-list,
  .horizontal-grid,
  .category-grid,
  .category-card-grid,
  .support-grid,
  .footer-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 174px;
  }

  .detail-layout {
    gap: 18px;
  }

  .detail-sidebar {
    order: -1;
  }

  .footer-bottom {
    display: grid;
  }
}
