:root {
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --orange: #f97316;
  --yellow: #facc15;
  --green: #10b981;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.26);
  --paper: #ffffff;
  --soft: #fff7fb;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(236, 72, 153, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 18%,
      rgba(59, 130, 246, 0.16),
      transparent 34%
    ),
    linear-gradient(135deg, #fff1f8 0%, #f5f0ff 45%, #ecfeff 100%);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.site-logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #7c2d12;
  background: var(--yellow);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

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

.site-nav a,
.mobile-panel a {
  position: relative;
  font-weight: 700;
  opacity: 0.92;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
  color: #fde047;
  opacity: 1;
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.nav-search input,
.mobile-search input,
.page-search input,
.search-panel input {
  border: 0;
  outline: 0;
  color: var(--ink);
  background: #fff;
}

.nav-search input,
.mobile-search input {
  width: 160px;
  padding: 9px 14px;
  border-radius: 999px;
}

.nav-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  padding: 9px 14px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  background: rgba(17, 24, 39, 0.2);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 58px 0 78px;
  background:
    linear-gradient(
      135deg,
      rgba(252, 231, 243, 0.95),
      rgba(237, 233, 254, 0.96) 48%,
      rgba(219, 234, 254, 0.95)
    ),
    linear-gradient(90deg, rgba(236, 72, 153, 0.12), rgba(59, 130, 246, 0.12));
}

.hero-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-orb--one {
  top: 34px;
  left: -80px;
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.55),
    transparent 68%
  );
}

.hero-orb--two {
  right: -70px;
  bottom: 22px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.48),
    transparent 68%
  );
}

.hero-wrap {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 8px 14px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.12);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-section h1 {
  max-width: 920px;
  margin: 20px 0 12px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 780px;
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.8;
}

.hero-carousel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  min-height: 460px;
  padding: 34px;
}

.hero-slide.is-active {
  display: grid;
  animation: softFade 0.55s ease both;
}

@keyframes softFade {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-slide__copy h2 {
  margin: 18px 0 14px;
  color: #111827;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-slide__copy p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.movie-card__tags,
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.detail-tags span,
.movie-card__tags span,
.footer-badges span {
  border-radius: 999px;
  padding: 6px 11px;
  color: #6d28d9;
  background: linear-gradient(90deg, #fce7f3, #ede9fe);
  font-size: 12px;
  font-weight: 800;
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.26);
}

.btn-glass {
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(139, 92, 246, 0.14);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 26px;
  min-height: 410px;
  box-shadow: 0 26px 50px rgba(31, 41, 55, 0.25);
}

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

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.74));
}

.hero-poster span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  border-radius: 999px;
  padding: 8px 13px;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 0 24px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d8b4fe;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

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

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-quick a {
  border-radius: 16px;
  padding: 12px 16px;
  color: #4c1d95;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px rgba(76, 29, 149, 0.1);
  font-weight: 900;
}

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

.content-section--soft {
  background: linear-gradient(
    90deg,
    rgba(219, 234, 254, 0.56),
    rgba(243, 232, 255, 0.58)
  );
}

.content-section--warm {
  background: linear-gradient(
    135deg,
    rgba(254, 249, 195, 0.58),
    rgba(252, 231, 243, 0.58),
    rgba(237, 233, 254, 0.6)
  );
}

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

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.05em;
  color: transparent;
  background: linear-gradient(90deg, #f97316, #db2777, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-link {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.2);
  font-weight: 900;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(31, 41, 55, 0.11);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(31, 41, 55, 0.18);
}

.movie-card__cover {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 3 / 4;
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.18),
    rgba(59, 130, 246, 0.18)
  );
}

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

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

.movie-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.72));
}

.movie-card__year {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  font-size: 12px;
  font-weight: 900;
}

.movie-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.movie-card__tags {
  margin-top: 12px;
}

.movie-card--compact {
  width: 260px;
  flex: 0 0 260px;
}

.movie-card--compact .movie-card__cover {
  aspect-ratio: 16 / 10;
}

.movie-card--compact p {
  -webkit-line-clamp: 2;
  min-height: 3em;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 2px 22px;
  scroll-snap-type: x mandatory;
}

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

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

.category-card,
.category-overview-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(31, 41, 55, 0.12);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(31, 41, 55, 0.18);
}

.category-card__thumbs,
.category-overview-card__stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: 132px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(236, 72, 153, 0.12),
    rgba(59, 130, 246, 0.12)
  );
}

.category-card__thumbs img,
.category-overview-card__stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h3,
.category-overview-card h2 {
  margin: 18px 18px 8px;
  color: #111827;
  font-size: 22px;
  font-weight: 950;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 28px rgba(31, 41, 55, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(31, 41, 55, 0.16);
}

.rank-item__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--orange),
    var(--pink),
    var(--purple)
  );
  font-weight: 950;
}

.rank-item img {
  width: 88px;
  height: 66px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-item__content {
  min-width: 0;
}

.rank-item strong,
.rank-item em,
.rank-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item strong {
  color: #111827;
  font-size: 17px;
  font-weight: 950;
}

.rank-item em {
  margin-top: 4px;
  color: #8b5cf6;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rank-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.page-hero,
.detail-hero {
  padding: 56px 0;
  color: #fff;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(250, 204, 21, 0.28),
      transparent 28%
    ),
    linear-gradient(90deg, #f97316, #db2777, #7c3aed);
}

.page-hero--categories {
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
}

.page-hero--ranking {
  background: linear-gradient(90deg, #f59e0b, #ec4899, #7c3aed);
}

.page-hero--search {
  background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
}

.page-hero h1,
.detail-info h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

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

.page-search,
.search-panel {
  margin-top: 24px;
}

.page-search input,
.search-panel input {
  width: min(640px, 100%);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.2);
}

.search-panel {
  display: grid;
  gap: 14px;
}

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #4c1d95;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #fff;
  background: rgba(17, 24, 39, 0.82);
}

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

.category-overview-card {
  padding-bottom: 6px;
}

.category-overview-card span {
  display: inline-flex;
  margin: 18px 18px 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: #be185d;
  background: #fce7f3;
  font-size: 12px;
  font-weight: 900;
}

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

.detail-hero {
  background:
    radial-gradient(
      circle at 14% 20%,
      rgba(252, 211, 77, 0.24),
      transparent 26%
    ),
    linear-gradient(135deg, #111827 0%, #312e81 42%, #be185d 100%);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.68fr);
  gap: 28px;
  align-items: center;
}

.player-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.play-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.play-overlay:hover img {
  transform: scale(1.04);
  opacity: 0.6;
}

.play-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
}

.play-overlay.is-hidden {
  display: none;
}

.play-button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.4);
  font-size: 34px;
  text-indent: 5px;
}

.detail-info .eyebrow {
  color: #fde047;
  background: rgba(255, 255, 255, 0.14);
}

.detail-one-line {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-side {
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(31, 41, 55, 0.11);
}

.detail-main {
  padding: 28px;
}

.detail-main h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 25px;
  font-weight: 950;
}

.detail-main p {
  margin: 0 0 26px;
  color: #374151;
  line-height: 2;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.movie-rail--side {
  display: grid;
  overflow: visible;
  padding: 0;
}

.movie-rail--side .movie-card--compact {
  width: 100%;
  flex: initial;
}

.empty-state {
  margin: 28px 0 0;
  border-radius: 18px;
  padding: 24px;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-weight: 900;
}

.site-footer {
  color: #e5e7eb;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer h2 {
  color: transparent;
  background: linear-gradient(90deg, #f472b6, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 26px;
  font-weight: 950;
}

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #9ca3af;
}

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

.footer-links {
  columns: 2;
}

.footer-badges span {
  color: #f9a8d4;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .mobile-panel.is-open {
    display: grid;
    gap: 12px;
  }

  .mobile-search {
    width: 100%;
  }

  .mobile-search input {
    flex: 1;
    width: auto;
  }

  .hero-section {
    padding: 42px 0 56px;
  }

  .hero-slide,
  .detail-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    min-height: 0;
    padding: 22px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: auto;
    height: 360px;
  }

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

  .detail-side {
    position: static;
  }
}

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

  .site-logo__text {
    font-size: 18px;
  }

  .hero-section h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

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

  .hero-poster,
  .hero-poster img {
    height: 280px;
  }

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

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

  .movie-card__body {
    padding: 12px;
  }

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

  .movie-card p {
    display: none;
  }

  .category-card__thumbs,
  .category-overview-card__stack {
    height: 100px;
  }

  .rank-item {
    grid-template-columns: 36px 70px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-item img {
    width: 70px;
    height: 54px;
  }

  .play-button {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
}
