:root {
  --color-amber: #f59e0b;
  --color-orange: #f97316;
  --color-red: #ef4444;
  --color-slate: #0f172a;
  --color-slate-soft: #1e293b;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-bg: #f8fafc;
  --shadow-card: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #f8fafc 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-red));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.34);
  font-size: 14px;
}

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

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: var(--color-amber);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.26);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 800;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  background: #fffbeb;
  color: #b45309;
}

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 48%, #ef4444 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 64px;
  align-items: center;
  padding: 72px 0 92px;
}

.hero-copy-main {
  max-width: 720px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy-main .hero-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-copy-main h1 {
  margin: 24px 0 20px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy-main p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.75;
}

.hero-search,
.search-page-form {
  display: flex;
  width: min(620px, 100%);
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

.hero-search input,
.search-page-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #111827;
  background: transparent;
}

.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  font-weight: 900;
  cursor: pointer;
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
}

.hero-actions .btn.primary {
  color: #b45309;
  background: #ffffff;
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn.ghost.dark {
  color: #111827;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.btn.glass {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-category-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.hero-carousel {
  position: relative;
  border-radius: 32px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.hero-slides {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 24px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  transform: scale(0.98) translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  background: #111827;
}

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

.hero-poster {
  position: relative;
  min-height: 390px;
  overflow: hidden;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.64) 100%);
}

.hero-play {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--color-amber);
  box-shadow: var(--shadow-card);
}

.hero-slide-copy {
  padding: 24px;
  background: #111827;
}

.hero-slide-copy span {
  color: #fbbf24;
  font-weight: 800;
  font-size: 13px;
}

.hero-slide-copy h2 {
  margin: 10px 0;
  font-size: 26px;
  line-height: 1.2;
}

.hero-slide-copy p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.7;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.36);
  font-size: 28px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  width: 28px;
  background: #ffffff;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, #f9fafb);
}

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

.stats-section {
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

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

.stat-card {
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stat-card span {
  display: block;
  color: var(--color-muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 24px;
}

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

.section-shell.no-padding {
  padding: 0;
}

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

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

.section-heading.light h2,
.section-heading.light .section-more {
  color: #ffffff;
}

.section-more {
  color: #b45309;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(15, 23, 42, 0.78));
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b45309;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #b45309;
  background: #fef3c7;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--color-amber);
}

.movie-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags,
.tag-cloud,
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags {
  margin-top: 14px;
}

.card-tags span,
.tag-cloud span,
.detail-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 800;
}

.featured-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 32px;
  padding: 26px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.featured-poster {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
}

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

.featured-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b45309;
  background: #ffffff;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.featured-content h3 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.featured-content p {
  color: #4b5563;
  line-height: 1.9;
}

.featured-content .btn {
  margin-top: 24px;
}

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

.amber-soft {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
}

.dark-band {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
}

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

.category-tile {
  position: relative;
  min-height: 108px;
  padding: 22px;
  border-radius: 22px;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.2);
  transition: transform 0.22s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -28px;
  top: -28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile span {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 82px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-number {
  color: #f59e0b;
  font-size: 22px;
  font-weight: 950;
}

.rank-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-row h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.rank-row p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.rank-row strong {
  color: #b45309;
  font-size: 18px;
}

.light-list .rank-row {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

.light-list .rank-row p {
  color: #cbd5e1;
}

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

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: 34px;
  padding: 64px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1e293b 52%, #f59e0b);
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 18px 0 14px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.page-hero p,
.page-hero .page-actions,
.search-page-form {
  position: relative;
  z-index: 1;
}

.page-hero p {
  max-width: 760px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-search {
  width: 100%;
  height: 52px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0 16px;
  outline: 0;
  margin-bottom: 14px;
}

.filter-search:focus,
.filter-select:focus {
  border-color: var(--color-amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.filter-select {
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0 12px;
  color: #374151;
  background: #ffffff;
  outline: 0;
}

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 22px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.catalog-card {
  min-height: 130px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-red));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.2);
}

.catalog-card span {
  font-weight: 800;
  opacity: 0.86;
}

.catalog-card strong {
  font-size: 36px;
}

.catalog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-link {
  padding: 12px 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-weight: 900;
  color: #374151;
}

.catalog-link:hover {
  color: #b45309;
}

.rank-block + .rank-block {
  margin-top: 56px;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #b45309;
}

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

.detail-primary {
  display: grid;
  gap: 24px;
}

.player-card,
.detail-card,
.sidebar-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.detail-card,
.sidebar-card {
  padding: 26px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
}

.player-cover.hidden {
  display: none;
}

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

.player-cover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.68));
}

.player-cover-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b45309;
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
}

.player-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  text-align: center;
}

.player-message.show {
  display: block;
}

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

.detail-title-row h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.score-badge {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber), var(--color-red));
  font-size: 22px;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.26);
}

.detail-lead {
  margin: 20px 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.85;
}

.tag-cloud {
  margin-top: 18px;
}

.prose-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.prose-card h2:not(:first-child) {
  margin-top: 28px;
}

.prose-card p {
  margin: 0;
  color: #374151;
  line-height: 2;
  font-size: 17px;
}

.inner-heading {
  margin-bottom: 20px;
}

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

.movie-card.compact .poster-link {
  aspect-ratio: 16 / 9;
}

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

.poster-card {
  padding: 0;
}

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

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

.sidebar-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.sidebar-rank .rank-row {
  grid-template-columns: 34px 60px 1fr;
  padding: 10px;
  box-shadow: none;
  border: 1px solid #f3f4f6;
}

.sidebar-rank .rank-row strong {
  display: none;
}

.sidebar-rank .rank-row h3 {
  font-size: 14px;
}

.sidebar-rank .rank-row p {
  display: none;
}

.search-page-form {
  margin-top: 28px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 60px 0 28px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
}

.footer-logo .brand-name {
  color: #ffffff;
}

.footer-brand p {
  color: #9ca3af;
  line-height: 1.8;
}

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

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: #fbbf24;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-amber);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.22s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-inner,
  .featured-card,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 34px;
    padding-top: 54px;
  }

  .hero-carousel {
    max-width: 520px;
  }

  .movie-grid,
  .all-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

  .nav-shell {
    height: 64px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 0 80px;
  }

  .hero-search,
  .search-page-form {
    border-radius: 22px;
    flex-direction: column;
    gap: 8px;
  }

  .hero-search input,
  .search-page-form input {
    height: 46px;
  }

  .hero-search button,
  .search-page-form button {
    width: 100%;
  }

  .hero-slides {
    min-height: 470px;
  }

  .hero-poster {
    min-height: 300px;
  }

  .stats-grid,
  .movie-grid,
  .all-grid,
  .related-grid,
  .category-grid,
  .catalog-grid.collections,
  .footer-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 42px 24px;
    border-radius: 26px;
  }

  .section-shell {
    padding: 52px 0;
  }

  .featured-card {
    padding: 16px;
    border-radius: 26px;
  }

  .featured-poster {
    min-height: 280px;
  }

  .rank-row {
    grid-template-columns: 42px 76px 1fr;
  }

  .rank-row strong {
    display: none;
  }

  .detail-card,
  .sidebar-card {
    padding: 20px;
  }
}
