:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --blue-500: #3b82f6;
  --green-500: #22c55e;
  --purple-500: #a855f7;
  --shadow-soft: 0 18px 40px rgba(28, 25, 23, 0.10);
  --shadow-card: 0 16px 32px rgba(28, 25, 23, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--stone-800);
  background: linear-gradient(180deg, #fff 0%, var(--stone-50) 30%, #fff 100%);
  min-width: 320px;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stone-200);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red-600), var(--amber-500));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 20px;
  line-height: 1;
  color: var(--stone-800);
}

.brand-copy small {
  color: var(--stone-500);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: var(--stone-600);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--red-600);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 290px;
  border: 1px solid var(--stone-200);
  background: var(--stone-50);
  border-radius: 999px;
  padding: 5px;
}

.nav-search input,
.mobile-search input,
.hero-search-card input,
.filter-search input,
.filter-bar select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--stone-800);
}

.nav-search input {
  min-width: 0;
  flex: 1;
  padding: 8px 10px 8px 14px;
}

.nav-search button,
.mobile-search button,
.hero-search-card button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #fff;
  background: var(--red-600);
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.22);
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--stone-700);
  font-size: 28px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--stone-200);
  padding: 16px;
  background: #fff;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 12px;
  background: var(--stone-50);
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 8px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--stone-50);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.65s ease, visibility 0.65s ease, transform 1.2s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.25), transparent 34%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.70) 45%, rgba(28, 25, 23, 0.35) 100%),
    linear-gradient(0deg, rgba(28, 25, 23, 0.92), transparent 45%);
}

.hero-grid {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 72px 0 92px;
}

.hero-copy {
  color: #fff;
  max-width: 760px;
}

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

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-size: 12px;
  font-weight: 800;
}

.hero-tags .tag-pill,
.detail-copy .tag-pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.section-more,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--amber-500));
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.30);
}

.ghost-button {
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  display: block;
  border-radius: 32px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.40);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 26px;
}

.hero-next {
  right: 26px;
}

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

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

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

.quick-search-section {
  margin-top: -38px;
  position: relative;
  z-index: 12;
}

.hero-search-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.hero-search-card span {
  font-weight: 900;
  color: var(--red-600);
  white-space: nowrap;
}

.hero-search-card input {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--stone-50);
}

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

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

.section-heading.compact {
  margin-bottom: 20px;
}

.section-kicker {
  color: var(--red-600);
  margin-bottom: 8px;
}

.section-kicker.red {
  color: var(--red-600);
}

.section-kicker.blue {
  color: var(--blue-500);
}

.section-kicker.green {
  color: var(--green-500);
}

.section-kicker.amber {
  color: var(--amber-500);
}

.section-kicker.purple {
  color: var(--purple-500);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--stone-900);
}

.section-more {
  min-height: 42px;
  padding: 0 18px;
  color: var(--red-600);
  background: #fff;
  border: 1px solid var(--stone-200);
  box-shadow: 0 12px 22px rgba(28, 25, 23, 0.08);
}

.card-grid {
  display: grid;
  gap: 24px;
}

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

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

.catalog-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--stone-200);
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(220, 38, 38, 0.22);
}

.poster-link {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--stone-100);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(28, 25, 23, 0.75) 100%);
  opacity: 0.7;
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-600), var(--amber-500));
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: scale(0.84);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: scale(1);
}

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

.movie-card h3,
.movie-list-card h3,
.ranking-item h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.32;
  color: var(--stone-900);
}

.movie-card h3 a:hover,
.movie-list-card h3 a:hover,
.ranking-item h3 a:hover {
  color: var(--red-600);
}

.movie-desc,
.movie-list-card p,
.ranking-item p {
  margin: 0 0 14px;
  color: var(--stone-600);
  line-height: 1.7;
  font-size: 14px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span {
  display: inline-flex;
  align-items: center;
}

.movie-meta-line span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.42;
}

.movie-meta-line.bright {
  color: rgba(255, 255, 255, 0.82);
}

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

.movie-card-small h3 {
  font-size: 16px;
}

.movie-card-small .movie-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-horizontal {
  min-width: 245px;
  width: 245px;
  flex: 0 0 245px;
}

.horizontal-list {
  display: flex;
  gap: 18px;
  padding: 6px 2px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.horizontal-list .movie-card {
  scroll-snap-align: start;
}

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

.ranking-panel,
.category-panel,
.detail-panel {
  border: 1px solid var(--stone-200);
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.06);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(28, 25, 23, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  border-color: rgba(220, 38, 38, 0.25);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--stone-800), var(--red-600));
  font-weight: 900;
}

.rank-thumb img {
  width: 74px;
  height: 98px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info h3 {
  margin-top: 5px;
}

.rank-info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-action {
  color: var(--red-600);
  border: 1px solid var(--stone-200);
  min-height: 38px;
  padding: 0 14px;
  background: var(--stone-50);
}

.compact-list .ranking-item {
  grid-template-columns: 46px 56px minmax(0, 1fr);
}

.compact-list .rank-action {
  display: none;
}

.compact-list .rank-thumb img {
  width: 56px;
  height: 76px;
}

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

.category-tile {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 22px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 0%, rgba(251, 191, 36, 0.35), transparent 34%),
    linear-gradient(135deg, var(--stone-900), var(--red-600));
  box-shadow: 0 16px 34px rgba(28, 25, 23, 0.18);
}

.category-tile strong {
  font-size: 20px;
}

.category-tile span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

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

.movie-list-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-radius: 20px;
  border: 1px solid var(--stone-200);
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(28, 25, 23, 0.05);
}

.list-poster img {
  width: 110px;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.40), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.30), transparent 30%),
    linear-gradient(135deg, var(--stone-900), #3b120f 58%, var(--red-600));
  padding: 92px 0 76px;
}

.page-hero.slim-hero {
  padding-bottom: 64px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
  font-size: 18px;
}

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

.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: var(--stone-900);
  box-shadow: var(--shadow-soft);
}

.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.45s ease;
}

.category-overview-card:hover img {
  transform: scale(1.07);
}

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(28, 25, 23, 0.94) 100%);
}

.category-overview-card strong,
.category-overview-card p {
  position: relative;
}

.category-overview-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.category-overview-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 14px;
  margin-bottom: 26px;
  border: 1px solid var(--stone-200);
  border-radius: 24px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.06);
}

.filter-search input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  padding: 0 16px;
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
}

.filter-bar select {
  color: var(--stone-700);
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 38px;
  text-align: center;
  border: 1px solid var(--stone-200);
  border-radius: 24px;
  background: #fff;
  color: var(--stone-500);
  font-weight: 800;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background: var(--stone-900);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.93) 0%, rgba(28, 25, 23, 0.72) 50%, rgba(28, 25, 23, 0.48) 100%),
    linear-gradient(0deg, rgba(28, 25, 23, 0.95), transparent 45%);
}

.detail-grid {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 50px;
  align-items: center;
  min-height: 660px;
  padding: 74px 0;
}

.detail-poster {
  border-radius: 30px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

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

.detail-copy {
  color: #fff;
}

.detail-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 840px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.85;
}

.watch-section {
  padding-bottom: 32px;
}

.watch-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 80px rgba(28, 25, 23, 0.24);
}

.watch-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.watch-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.watch-play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--amber-500));
  box-shadow: 0 18px 46px rgba(220, 38, 38, 0.36);
  font-size: 34px;
}

.watch-overlay strong {
  font-size: clamp(22px, 4vw, 38px);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 34px 0 20px;
}

.detail-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
  color: var(--stone-900);
}

.detail-panel p {
  margin: 0;
  color: var(--stone-600);
  font-size: 16px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 64px;
  color: var(--stone-300);
  background: var(--stone-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0;
}

.footer-brand strong {
  color: #fff;
}

.site-footer p {
  max-width: 520px;
  color: var(--stone-500);
  line-height: 1.8;
}

.site-footer h3 {
  color: #fff;
  margin: 0 0 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--stone-400);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: var(--stone-500);
}

@media (max-width: 1120px) {
  .nav-search {
    width: 230px;
  }

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

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

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

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

  .hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-poster,
  .detail-poster {
    width: min(320px, 80vw);
    justify-self: center;
  }

  .large-grid,
  .medium-grid,
  .catalog-grid,
  .category-overview-grid,
  .list-grid,
  .detail-content,
  .footer-grid,
  .split-section {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

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

  .hero-carousel,
  .hero-grid,
  .detail-hero,
  .detail-grid {
    min-height: auto;
  }

  .hero-grid,
  .detail-grid {
    padding: 56px 0 82px;
  }

  .hero-control {
    display: none;
  }

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

  .large-grid,
  .medium-grid,
  .catalog-grid,
  .category-overview-grid,
  .list-grid,
  .detail-content,
  .footer-grid,
  .split-section,
  .category-tile-grid {
    grid-template-columns: 1fr;
  }

  .ranking-item,
  .compact-list .ranking-item {
    grid-template-columns: 44px 68px minmax(0, 1fr);
  }

  .rank-action {
    display: none;
  }

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

  .list-poster img {
    width: 92px;
    height: 128px;
  }

  .page-hero {
    padding: 64px 0 54px;
  }

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

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

  .watch-box {
    border-radius: 18px;
  }
}
