:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-soft: #1e293b;
  --panel-deep: #0b1120;
  --line: rgba(148, 163, 184, 0.24);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-deep: #d97706;
  --orange: #fb923c;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-soft);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #fff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

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

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

.brand-text,
.footer-brand span:last-child {
  font-size: 24px;
  background: linear-gradient(90deg, var(--accent-bright), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--accent-bright);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28);
}

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

.nav-link {
  color: #f8fafc;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.nav-drop {
  position: relative;
}

.nav-drop-button {
  border: 0;
  padding: 0;
  background: transparent;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s ease;
}

.nav-drop:hover .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-soft);
}

.nav-drop-menu a:hover {
  background: rgba(51, 65, 85, 0.9);
  color: var(--accent-bright);
}

.nav-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input,
.mobile-search input,
.search-hero-form input,
.catalog-search input {
  border: 1px solid rgba(148, 163, 184, 0.2);
  outline: none;
  color: #fff;
  background: rgba(51, 65, 85, 0.82);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-hero-form input:focus,
.catalog-search input:focus {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.nav-search input {
  width: 260px;
  height: 40px;
  padding: 0 48px 0 16px;
  border-radius: 999px;
}

.nav-search button {
  position: absolute;
  right: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent;
}

.nav-search button:hover {
  color: var(--accent-bright);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 14px 16px 18px;
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-panel a {
  display: block;
  padding: 11px 6px;
  color: #e2e8f0;
}

.mobile-search {
  gap: 8px;
  margin-bottom: 8px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  height: 42px;
  color: #fff;
  background: var(--accent);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.18), transparent 30%), var(--bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.1)), var(--hero-bg), linear-gradient(135deg, #0f172a, #1e293b);
  background-position: center;
  background-size: cover;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.12) 44%, rgba(2, 6, 23, 0.78));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  animation: fadeUp 0.7s ease both;
}

.hero-meta,
.wide-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--accent-bright);
  font-weight: 700;
}

.hero-meta span:not(:first-child) {
  color: #cbd5e1;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-copy p {
  margin: 0;
  max-width: 760px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.85;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 20px 44px rgba(245, 158, 11, 0.36);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.full-btn {
  width: 100%;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  font-size: 14px;
}

.tag-pill.small {
  min-height: 24px;
  padding: 0 9px;
  font-size: 12px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 38px;
  line-height: 1;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 68px 0;
}

.section-gradient {
  background: linear-gradient(180deg, #020617, #0f172a);
}

.section-deep {
  background: linear-gradient(180deg, #0f172a, #1e293b);
}

.section-featured {
  background: #0f172a;
}

.section-flat {
  background: #1e293b;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-bright);
  background: rgba(245, 158, 11, 0.12);
  font-weight: 800;
  font-size: 13px;
}

.section-head h2,
.content-card h2,
.side-card h2,
.link-panel h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-bright);
  font-weight: 800;
}

.section-more span {
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

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

.catalog-grid {
  align-items: stretch;
}

.movie-card {
  display: block;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.38);
  background: #1e293b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  transform: translateY(-5px);
}

.poster-frame,
.wide-poster,
.detail-poster {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.26), transparent 32%), linear-gradient(135deg, #111827, #334155);
}

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

.poster-frame img,
.wide-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

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

img.is-missing {
  opacity: 0;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 800;
}

.poster-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

.movie-card:hover .poster-meta {
  opacity: 1;
  transform: translateY(0);
}

.poster-meta span {
  padding: 5px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 52px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body h3 {
  color: var(--accent-bright);
}

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

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.card-foot span:last-child {
  color: var(--accent-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card .card-body h3 {
  min-height: 48px;
  font-size: 16px;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

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

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

.wide-card {
  display: grid;
  grid-template-columns: 34% 1fr;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wide-card:hover {
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  transform: translateY(-4px);
}

.wide-poster {
  min-height: 100%;
}

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

.wide-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.wide-info h3 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 850;
}

.wide-info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
}

.wide-meta {
  margin-top: 16px;
  color: #64748b;
  font-size: 13px;
}

.rank-index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #111827;
  background: var(--accent-bright);
  font-weight: 900;
}

.page-main {
  min-height: 70vh;
  background: var(--bg);
}

.page-hero {
  position: relative;
  padding: 86px 0 74px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 25%, rgba(245, 158, 11, 0.2), transparent 32%), linear-gradient(135deg, #020617, #1e293b 70%, #111827);
}

.page-hero h1 {
  max-width: 920px;
}

.soft-hero::after,
.rank-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -20%;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  filter: blur(20px);
}

.small-actions {
  margin-top: 24px;
}

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

.category-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-card:hover {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(30, 41, 59, 0.92);
  transform: translateY(-4px);
}

.category-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--accent-bright);
  background: rgba(245, 158, 11, 0.12);
}

.category-card h2 {
  margin: 22px 0 8px;
  color: #fff;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-card strong {
  margin-top: 20px;
  color: var(--accent-bright);
  font-size: 28px;
}

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

.link-panel {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
}

.chip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.chip-links a,
.filter-chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.72);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip-links a:hover,
.filter-chips button:hover,
.filter-chips button.is-active {
  border-color: rgba(245, 158, 11, 0.42);
  color: #fff;
  background: rgba(245, 158, 11, 0.24);
}

.chip-links span {
  color: var(--accent-bright);
  font-size: 12px;
}

.catalog-tools {
  display: grid;
  gap: 22px;
}

.catalog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.64);
}

.catalog-search input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
}

.catalog-search span {
  min-width: 64px;
  color: var(--accent-bright);
  font-size: 22px;
  font-weight: 850;
  text-align: center;
}

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

.filter-chips button {
  cursor: pointer;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.56)), var(--detail-bg), linear-gradient(135deg, #0f172a, #1e293b);
  background-size: cover;
  background-position: center;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.18), transparent 30%);
}

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

.detail-poster {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(42px, 6vw, 68px);
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-card,
.content-card,
.side-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: var(--accent-bright);
  box-shadow: 0 0 0 14px rgba(245, 158, 11, 0.14), 0 20px 44px rgba(0, 0, 0, 0.36);
  font-size: 34px;
}

.player-overlay strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.content-card {
  margin-top: 22px;
  padding: 26px;
}

.content-card h2,
.side-card h2 {
  font-size: 26px;
}

.content-card p {
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 2;
}

.side-card {
  position: sticky;
  top: 86px;
  padding: 24px;
}

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

.side-card dt {
  color: #64748b;
}

.side-card dd {
  margin: 0;
  color: #e2e8f0;
}

.search-hero-form {
  display: flex;
  max-width: 760px;
  gap: 12px;
  margin-top: 28px;
}

.search-hero-form input {
  flex: 1;
  height: 54px;
  min-width: 0;
  padding: 0 18px;
  border-radius: 999px;
}

.search-hero-form button {
  min-width: 120px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 850;
}

.search-status {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 42px;
  padding: 48px 0;
}

.footer-grid p {
  max-width: 480px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: #64748b;
  font-size: 14px;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .container,
  .nav-shell,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

  .brand-text {
    font-size: 20px;
  }

  .hero {
    min-height: 640px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 40px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

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

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

  .wide-card,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .wide-poster {
    aspect-ratio: 16 / 9;
  }

  .detail-poster {
    width: min(260px, 76vw);
  }

  .catalog-search,
  .search-hero-form {
    align-items: stretch;
    flex-direction: column;
  }

  .search-hero-form button {
    height: 50px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .card-body h3 {
    min-height: auto;
  }

  .scroll-row {
    grid-auto-columns: 78vw;
  }

  .btn {
    width: 100%;
  }
}
