:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-soft: rgba(30, 41, 59, 0.55);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --accent-deep: #b45309;
  --cyan: #22d3ee;
  --emerald: #34d399;
  --rose: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
    radial-gradient(circle at 75% 5%, rgba(34, 211, 238, 0.08), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 36px rgba(245, 158, 11, 0.22);
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-text strong,
.footer-brand {
  font-size: 20px;
  background: linear-gradient(90deg, #fde68a, #fff7ed, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
}

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

.nav-link {
  position: relative;
  color: var(--muted-strong);
  font-weight: 650;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.76);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 99px;
  background: currentColor;
}

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

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

.mobile-link,
.mobile-cats a {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.56);
}

.mobile-link.active,
.mobile-link:hover,
.mobile-cats a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

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

.hero-carousel {
  position: relative;
  height: min(780px, 72vh);
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.05) contrast(1.04);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.68) 42%, rgba(2, 6, 23, 0.86) 100%),
    linear-gradient(0deg, #020617 0%, transparent 48%, rgba(2, 6, 23, 0.64) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 58px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(42px, 6.5vw, 82px);
  max-width: 920px;
  text-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted-strong);
  font-size: 16px;
}

.hero-subtitle strong {
  color: #fde68a;
  font-size: 20px;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.82;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.11);
  font-size: 12px;
  font-weight: 650;
}

.tag-row.large span {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.btn.primary {
  color: #1f1302;
  border-color: rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.28);
}

.btn.ghost {
  color: var(--text);
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(10px);
}

.btn.ghost:hover {
  border-color: rgba(245, 158, 11, 0.46);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.hero-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.32);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(135deg, transparent, rgba(245, 158, 11, 0.26), transparent);
  z-index: 2;
  pointer-events: none;
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
  font-weight: 800;
  text-align: center;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots,
.hero-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(203, 213, 225, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-arrows button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(10px);
  font-size: 28px;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-arrows button:hover {
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
}

.hero-underlay {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: -62px;
}

.hero-search-card,
.hot-panel,
.filter-panel,
.content-card,
.category-card,
.category-overview-card,
.movie-card {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.hero-search-card,
.hot-panel {
  border-radius: var(--radius);
  padding: 22px;
}

.home-search,
.filter-input {
  display: flex;
  gap: 12px;
}

.home-search input,
.filter-input input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.64);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search input:focus,
.filter-input input:focus {
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.home-search button,
.filter-input button,
.filter-chips button {
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fde68a;
  background: var(--accent-soft);
  border-radius: 999px;
  font-weight: 800;
}

.home-search button,
.filter-input button {
  flex: 0 0 auto;
  padding: 0 22px;
}

.quick-links,
.footer-links,
.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links {
  margin-top: 16px;
}

.quick-links a,
.footer-links a,
.category-samples a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.74);
  font-size: 13px;
  transition: color 0.2s ease, background 0.2s ease;
}

.quick-links a:hover,
.footer-links a:hover,
.category-samples a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.hot-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.hot-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.hot-link span {
  color: var(--accent);
  font-weight: 900;
}

.hot-link strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.section-block {
  padding: 76px 0 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 800;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.4);
}

.category-card span,
.category-overview-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.category-card strong {
  display: block;
  min-height: 74px;
  margin: 12px 0 18px;
  color: var(--muted-strong);
  line-height: 1.72;
}

.category-card div {
  display: grid;
  gap: 8px;
}

.category-card div a {
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-card div a:hover {
  color: var(--accent);
}

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

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

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

.movie-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(245, 158, 11, 0.12));
}

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #1f1302;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

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

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

.movie-title {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.movie-title a:hover {
  color: var(--accent);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.72;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card.compact .movie-card-body {
  padding: 13px;
}

.movie-card.compact .movie-title {
  font-size: 16px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.96));
}

.compact-hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.crumb a:hover {
  color: var(--accent);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chips button {
  min-height: 34px;
  padding: 0 13px;
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.64);
  border-color: rgba(148, 163, 184, 0.16);
}

.filter-chips button.active,
.filter-chips button:hover {
  color: #1f1302;
  border-color: rgba(245, 158, 11, 0.72);
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.empty-state {
  display: none;
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted-strong);
  background: var(--panel-soft);
  text-align: center;
}

.empty-state.show {
  display: block;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-cover-stack {
  position: relative;
  min-height: 230px;
}

.category-cover-stack img {
  position: absolute;
  width: 118px;
  height: 176px;
  object-fit: cover;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.category-cover-stack img:nth-child(1) {
  left: 0;
  top: 24px;
  z-index: 3;
}

.category-cover-stack img:nth-child(2) {
  left: 38px;
  top: 0;
  z-index: 2;
  opacity: 0.82;
}

.category-cover-stack img:nth-child(3) {
  left: 72px;
  top: 44px;
  z-index: 1;
  opacity: 0.64;
}

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

.category-overview-card h2 a:hover {
  color: var(--accent);
}

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

.detail-hero {
  min-height: 620px;
  padding: 76px 0 64px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.46;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.82) 52%, rgba(2, 6, 23, 0.96) 100%),
    linear-gradient(0deg, #020617 0%, transparent 62%);
}

.detail-top {
  position: relative;
  z-index: 2;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  font-size: clamp(38px, 5.8vw, 76px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.6);
}

.player-section {
  margin-top: -70px;
  position: relative;
  z-index: 6;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 30px;
  border: 0;
  color: var(--text);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.28));
  text-align: center;
}

.player-shell.is-playing .player-cover {
  display: none;
}

.play-ring {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.36);
}

.play-ring span {
  margin-left: 5px;
  color: #1f1302;
  font-size: 34px;
}

.player-cover strong {
  font-size: clamp(22px, 3vw, 38px);
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.82fr;
  gap: 22px;
  padding-top: 42px;
}

.content-card {
  border-radius: var(--radius);
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.9;
  text-align: justify;
}

.accent-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(30, 41, 59, 0.72));
}

.site-footer {
  margin-top: 88px;
  padding: 42px 0;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) 1.2fr;
  gap: 28px;
  align-items: start;
}

.site-footer p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.78;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.18);
  }
  50% {
    box-shadow: 0 0 52px rgba(245, 158, 11, 0.34);
  }
}

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

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

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

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

  .nav-toggle {
    display: flex;
  }

  .hero-carousel {
    height: auto;
    min-height: 760px;
  }

  .hero-slide {
    position: absolute;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 40px;
    padding-bottom: 90px;
  }

  .hero-poster {
    width: min(260px, 70vw);
    justify-self: start;
    transform: none;
  }

  .hero-underlay {
    margin-top: -46px;
  }

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

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

  .detail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

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

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 22px;
  }

  .hero-underlay {
    margin-top: -30px;
  }

  .home-search,
  .filter-input {
    flex-direction: column;
  }

  .home-search button,
  .filter-input button {
    min-height: 46px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

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

  .movie-title {
    font-size: 16px;
  }

  .movie-card-body p {
    min-height: 42px;
    font-size: 12px;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .detail-hero {
    min-height: auto;
    padding: 54px 0 90px;
  }

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

  .detail-poster {
    width: min(230px, 72vw);
  }

  .player-section {
    margin-top: -58px;
  }

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

  .content-card {
    padding: 22px;
  }
}

@media (max-width: 430px) {
  .category-grid,
  .movie-grid,
  .library-grid,
  .dense-grid {
    grid-template-columns: 1fr;
  }

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

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