:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --green: #10b981;
  --orange: #f97316;
  --yellow: #facc15;
  --gray-950: #0f172a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.18), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.18), transparent 34%),
    linear-gradient(135deg, #fff1f7 0%, #f5efff 45%, #eef7ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.top-ribbon {
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
}

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

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.28);
}

.logo-mark svg,
.header-search svg,
.mobile-menu-button svg,
.hero-action svg,
.poster-play svg,
.filter-search svg,
.play-circle svg,
.section-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-text strong,
.footer-logo {
  display: block;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text em {
  display: block;
  margin-top: 5px;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  position: relative;
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.header-search {
  display: flex;
  align-items: center;
  width: min(280px, 24vw);
  height: 42px;
  padding: 0 6px 0 16px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.10);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gray-800);
}

.header-search button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--gray-700);
  background: rgba(243, 244, 246, 0.9);
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.mobile-nav input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  color: var(--white);
  background: #111827;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.90), rgba(15, 23, 42, 0.62) 46%, rgba(15, 23, 42, 0.82)),
    radial-gradient(circle at 70% 22%, rgba(236, 72, 153, 0.35), transparent 32%),
    radial-gradient(circle at 90% 75%, rgba(59, 130, 246, 0.30), transparent 28%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 80px 0 92px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.012);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.06) contrast(1.06);
}

.hero-content,
.hero-poster-wrap {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
  font-weight: 800;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #fff, #ffd6e8 42%, #dbeafe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.82;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.card-kicker {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span {
  padding: 7px 12px;
}

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

.btn,
.hero-action,
.section-link,
.card-category,
.load-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.hero-action.primary,
.btn.primary,
.load-link {
  padding: 14px 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.30);
}

.hero-action.secondary,
.btn.secondary {
  padding: 14px 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-action:hover,
.btn:hover,
.section-link:hover,
.card-category:hover,
.load-link:hover {
  transform: translateY(-3px);
}

.hero-poster-wrap {
  display: grid;
  gap: 18px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

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

.hero-card-mini {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.hero-card-mini strong {
  font-size: 18px;
}

.hero-card-mini p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 24px;
}

.hero-dot {
  width: 34px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.55;
}

.hero-dot.active {
  width: 48px;
  opacity: 1;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.hero-search-panel {
  position: relative;
  z-index: 3;
  width: min(100% - 32px, var(--container));
  margin: -54px auto 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.hero-search-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.hero-search-panel input {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: 0;
  color: var(--gray-800);
  background: var(--white);
}

.main-content {
  padding: 86px 0 72px;
}

.page-hero {
  padding: 74px 0 48px;
  text-align: center;
}

.page-hero h1 {
  max-width: 920px;
  margin: 0 auto 16px;
  color: var(--gray-900);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.8;
}

.section {
  padding: 50px 0;
}

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

.section-heading span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.section-heading p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.section-link {
  flex: 0 0 auto;
  padding: 11px 18px;
  color: var(--pink);
  background: var(--white);
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.10);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.80);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
  transform: translateY(-6px);
}

.poster,
.compact-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(59, 130, 246, 0.18));
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.82));
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.poster-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  opacity: 0;
  transform: translate(-50%, -42%) scale(0.82);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.card-meta {
  margin-bottom: 10px;
}

.card-meta span,
.card-kicker {
  display: inline-flex;
  padding: 5px 8px;
  color: var(--gray-600);
  background: var(--gray-100);
}

.movie-card h3,
.compact-card h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.compact-card h3 a:hover,
.detail-copy a:hover {
  color: var(--pink);
}

.movie-card p,
.compact-card p {
  margin: 10px 0 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
}

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

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

.chip,
.detail-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.10);
  font-size: 12px;
  font-weight: 800;
}

.chip {
  padding: 5px 9px;
}

.detail-chip {
  padding: 8px 12px;
  font-size: 13px;
}

.card-category {
  margin-top: 14px;
  padding: 8px 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(229, 231, 235, 0.74);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.15);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--white);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 24px;
}

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

.category-card .count {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 800;
}

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

.compact-card,
.ranking-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.74);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-card:hover,
.ranking-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.compact-poster img {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.compact-body {
  min-width: 0;
}

.rank-badge {
  position: absolute;
  z-index: 3;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #facc15, #f97316);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.26);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-500);
}

.filter-search input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gray-700);
}

.filter-panel select {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
}

.filter-count {
  min-width: 100px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--gray-600);
  text-align: center;
}

.empty-state.show {
  display: block;
}

.detail-shell {
  padding: 36px 0 74px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-size: 14px;
}

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

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

.detail-main,
.detail-aside,
.player-card {
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-card);
}

.detail-main {
  overflow: hidden;
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--white);
  background: #111827;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: blur(1px) saturate(1.08);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), rgba(15, 23, 42, 0.78));
}

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

.play-circle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.34);
  transition: transform 0.22s ease;
}

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

.play-circle svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke: none;
  transform: translateX(3px);
}

.player-title {
  padding: 24px 26px 28px;
}

.player-title h1 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.player-title p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 14px;
}

.detail-meta span {
  padding: 7px 11px;
  color: var(--gray-600);
  background: var(--gray-100);
}

.detail-copy {
  display: grid;
  gap: 24px;
  padding: 0 26px 30px;
}

.detail-copy section {
  padding: 24px;
  border-radius: 24px;
  background: rgba(249, 250, 251, 0.82);
}

.detail-copy h2,
.detail-aside h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.detail-copy p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.detail-aside {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.aside-poster {
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(59, 130, 246, 0.16));
}

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

.aside-facts {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.aside-facts div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-200);
}

.aside-facts dt {
  color: var(--gray-500);
  font-weight: 800;
}

.aside-facts dd {
  margin: 0;
  color: var(--gray-800);
  text-align: right;
}

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

.cta-band {
  margin-top: 44px;
  padding: 58px 26px;
  border-radius: 34px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  box-shadow: var(--shadow-soft);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.04em;
}

.cta-band p {
  max-width: 760px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.site-footer {
  background: rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(229, 231, 235, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 16px;
}

.footer-grid p,
.footer-grid a {
  color: var(--gray-600);
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  text-align: center;
  font-size: 13px;
}

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

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

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero {
    min-height: 820px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 56px;
  }

  .hero-poster-wrap {
    max-width: 260px;
  }

  .hero-search-panel form,
  .filter-panel,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

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

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

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

  .logo-text em {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 16px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

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

  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .compact-card,
  .ranking-row {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }

  .compact-poster img {
    width: 82px;
  }

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

  .card-meta span:nth-child(2) {
    display: none;
  }
}

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