:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid white;
}

.brand-text {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 55%, #14b8a6 100%);
}

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

.hero-carousel {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 56px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: rgba(0, 0, 0, 0.2);
}

.hero-image {
  order: 2;
  width: min(440px, 100%);
  height: 520px;
  justify-self: end;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.38);
  transform: rotate(2deg);
}

.hero-image-layer {
  position: absolute;
  right: 24px;
  width: min(430px, 35vw);
  height: 440px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(2px);
  transform: translate(28px, 28px) rotate(-4deg);
  z-index: -1;
}

.hero-content {
  max-width: 760px;
  padding: 24px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue);
}

.hero-content h1 {
  margin: 0 0 20px;
  max-width: 860px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 32px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

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

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

.button-light {
  color: var(--blue);
  background: white;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
}

.button-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.button-ghost:hover {
  color: var(--blue);
  background: white;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: white;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
}

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

.home-stat-section {
  padding-top: 42px;
  padding-bottom: 24px;
}

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

.stat-card {
  min-height: 128px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--soft-shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-card strong {
  display: block;
  color: #1f2937;
  font-size: 34px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

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

.section-heading h2,
.content-card h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
}

.text-link {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 800;
}

.text-link:hover {
  color: var(--blue-dark);
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 26px;
  border-radius: var(--radius-xl);
  color: white;
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card::before,
.category-overview-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

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

.category-card span,
.category-overview-card h2 {
  position: relative;
  display: block;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.category-overview-card p {
  position: relative;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.category-card b,
.category-overview-card span {
  position: relative;
  font-size: 14px;
}

.accent-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.accent-cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.accent-purple { background: linear-gradient(135deg, #7c3aed, #3b82f6); }
.accent-pink { background: linear-gradient(135deg, #db2777, #fb7185); }
.accent-red { background: linear-gradient(135deg, #dc2626, #f97316); }
.accent-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.accent-green { background: linear-gradient(135deg, #16a34a, #84cc16); }
.accent-slate { background: linear-gradient(135deg, #334155, #64748b); }

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

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--soft-shadow);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

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

.movie-poster {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #06b6d4);
}

.catalog-grid .movie-poster {
  height: 280px;
}

.movie-card-compact .movie-poster {
  height: 240px;
}

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

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

.movie-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.movie-badge {
  top: 12px;
  right: 12px;
  background: var(--blue);
}

.rank-badge {
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.82);
}

.poster-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
}

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

.movie-card-body h3 {
  min-height: 52px;
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span:last-child {
  color: var(--blue);
}

.banner-panel {
  padding-top: 32px;
  padding-bottom: 32px;
}

.banner-inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: 36px;
  align-items: center;
  min-height: 360px;
  padding: 48px;
  border-radius: 34px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.banner-inner::before,
.banner-inner::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.banner-inner::before {
  top: -100px;
  right: -80px;
  width: 260px;
  height: 260px;
}

.banner-inner::after {
  left: -90px;
  bottom: -90px;
  width: 220px;
  height: 220px;
}

.banner-inner > * {
  position: relative;
}

.banner-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
}

.banner-inner p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
}

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

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

.horizontal-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-inner .horizontal-card {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

.horizontal-card img {
  width: 118px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
  background: #0f172a;
}

.horizontal-card h3 {
  margin: 0 0 6px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-inner .horizontal-card h3,
.banner-inner .horizontal-card p,
.banner-inner .horizontal-card span {
  color: white;
}

.horizontal-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.horizontal-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.page-hero-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.toolbar {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 210px;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  left: 16px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box input,
.sort-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  outline: none;
}

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

.sort-select {
  padding: 0 14px;
  color: #374151;
  cursor: pointer;
}

.search-box input:focus,
.sort-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: white;
  background: var(--blue);
  transform: translateY(-1px);
}

.empty-state {
  margin-top: 28px;
  padding: 36px;
  border-radius: 22px;
  color: var(--muted);
  background: white;
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  min-height: 260px;
}

.category-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-self: stretch;
}

.category-preview img {
  width: 100%;
  height: 100%;
  min-height: 104px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.15);
}

.category-overview-body {
  position: relative;
  align-self: center;
}

.rank-table {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 70px minmax(0, 1fr) 180px 140px;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.rank-row img {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
  background: #0f172a;
}

.rank-row strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
}

.rank-row b {
  color: var(--blue);
  font-size: 14px;
}

.detail-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 78px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.player-card,
.detail-info-card,
.content-card {
  overflow: hidden;
  border-radius: 28px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.video-frame {
  position: relative;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease;
}

.player-overlay:hover .play-circle {
  transform: scale(1.08);
}

.play-circle span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid white;
}

.player-overlay strong {
  max-width: min(80%, 680px);
  text-align: center;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.2;
}

.detail-info-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
}

.detail-info-card img {
  width: 170px;
  height: 250px;
  border-radius: 20px;
  object-fit: cover;
  background: #0f172a;
}

.detail-info-card h1 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-info-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.detail-meta span,
.tag-cloud span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 13px;
  font-weight: 800;
}

.content-card {
  margin-top: 24px;
  padding: 32px;
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.compact-heading {
  margin-bottom: 22px;
}

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

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

.footer-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.5fr);
  gap: 52px;
  padding: 54px 0 34px;
}

.footer-logo .brand-text {
  color: white;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 420px;
  margin: 18px 0 0;
  color: #9ca3af;
}

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

.footer-columns h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 17px;
}

.footer-columns a {
  display: block;
  margin: 8px 0;
  color: #9ca3af;
  font-size: 14px;
}

.footer-columns a:hover {
  color: #60a5fa;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
}

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

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

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

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

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

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

  .nav-toggle {
    display: inline-flex;
  }

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .hero-image {
    order: 0;
    justify-self: start;
    width: min(270px, 76vw);
    height: 340px;
    margin-top: 86px;
  }

  .hero-image-layer {
    display: none;
  }

  .hero-content {
    padding-bottom: 96px;
  }

  .stat-grid,
  .movie-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid,
  .horizontal-grid,
  .footer-shell,
  .footer-columns,
  .banner-inner {
    grid-template-columns: 1fr;
  }

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

  .category-preview {
    min-height: 220px;
  }

  .toolbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .rank-row em,
  .rank-row b {
    display: none;
  }

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

  .detail-info-card img {
    width: 100%;
    height: auto;
    max-height: 460px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-shell,
  .page-hero-shell,
  .detail-shell,
  .footer-shell,
  .footer-bottom,
  .hero-carousel {
    width: min(100% - 24px, 1280px);
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .catalog-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .movie-poster,
  .catalog-grid .movie-poster {
    height: 360px;
  }

  .banner-inner,
  .content-card {
    padding: 24px;
  }

  .horizontal-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .horizontal-card img {
    width: 96px;
    height: 84px;
  }
}
