:root {
  --purple-950: #32105a;
  --purple-900: #4c1d95;
  --purple-800: #5b21b6;
  --purple-700: #6d28d9;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --pink-500: #ec4899;
  --pink-400: #f472b6;
  --blue-600: #2563eb;
  --yellow-500: #f59e0b;
  --gray-950: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 18px 40px rgba(76, 29, 149, 0.16);
  --shadow-hover: 0 24px 55px rgba(76, 29, 149, 0.24);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 42%, #fff7fb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--purple-700), var(--purple-500), var(--purple-700));
  box-shadow: 0 14px 28px rgba(76, 29, 149, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  gap: 24px;
}

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

.brand {
  color: var(--white);
  font-size: 22px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(8deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.nav-link,
.nav-drop-button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  color: rgba(255, 255, 255, 0.92);
  border: 0;
  background: transparent;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop-button:hover {
  color: #f5e8ff;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: grid;
  width: 210px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav-drop-menu a {
  padding: 10px 12px;
  color: var(--gray-700);
  border-radius: 12px;
}

.nav-drop-menu a:hover {
  color: var(--purple-700);
  background: #f5edff;
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input {
  width: 230px;
  padding: 10px 16px;
  color: var(--gray-800);
  border: 0;
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus {
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(233, 213, 255, 0.75);
}

.header-search button,
.mobile-search button {
  padding: 10px 16px;
  color: var(--purple-700);
  border: 0;
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 3px;
  background: var(--white);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.mobile-link.is-active {
  color: #fce7f3;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--purple-800), var(--purple-500) 52%, var(--pink-500));
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  filter: blur(20px);
  animation: floatGlow 8s ease-in-out infinite alternate;
}

.hero-glow.one {
  top: 88px;
  left: 6vw;
  width: 150px;
  height: 150px;
}

.hero-glow.two {
  right: 12vw;
  bottom: 96px;
  width: 220px;
  height: 220px;
  animation-delay: 1s;
}

.hero-glow.three {
  top: 46%;
  left: 35%;
  width: 120px;
  height: 120px;
  animation-delay: 1.8s;
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -22px, 0) scale(1.12);
  }
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 40px 0 54px;
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-category-links a,
.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-category-links a {
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-category-links a:hover {
  background: rgba(255, 255, 255, 0.27);
  transform: translateY(-2px);
}

.hero-slide {
  position: absolute;
  inset: 118px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 420px;
  gap: 54px;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.hero-slide.is-active {
  position: relative;
  inset: auto;
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.eyebrow {
  margin: 0 0 12px;
  color: #f5d7ff;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 760px;
  margin: 24px 0;
  color: #f4e8ff;
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.7;
}

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

.hero-tags span {
  padding: 8px 13px;
  color: #fff7ff;
  background: rgba(255, 255, 255, 0.16);
}

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

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

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

.btn.primary {
  color: var(--purple-700);
  background: var(--white);
  box-shadow: 0 16px 32px rgba(255, 255, 255, 0.18);
}

.btn.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  box-shadow: 0 30px 72px rgba(31, 13, 61, 0.38);
  transform: rotate(2deg);
}

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

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

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

.hero-play,
.poster-play,
.player-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-play {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  width: 64px;
  height: 64px;
  color: var(--white);
  border-radius: 999px;
  background: var(--purple-600);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.24);
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  background: rgba(255, 255, 255, 0.18);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  color: var(--white);
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

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

.hero-dot.is-active {
  width: 28px;
  background: var(--white);
}

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

.home-wrap {
  padding: 58px 0 82px;
}

.section-block {
  margin-bottom: 72px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading p {
  margin: 0 0 8px;
  color: var(--purple-600);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading.small h2 {
  font-size: 26px;
}

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

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

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

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

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

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
}

.movie-card.compact .poster-wrap {
  aspect-ratio: 16 / 11;
}

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

.movie-link:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  color: var(--white);
  border-radius: 999px;
  opacity: 0;
  background: var(--purple-600);
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--gray-500);
}

.movie-meta {
  font-size: 13px;
  font-weight: 700;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 10px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--purple-700);
  background: #f3e8ff;
  font-size: 12px;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.rank-panel,
.detail-card,
.side-card,
.filter-panel,
.ranking-list-page {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.horizontal-card:hover {
  background: #faf5ff;
  transform: translateX(4px);
}

.horizontal-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
}

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

.rank-number {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  border-radius: 999px;
  background: var(--purple-600);
  font-weight: 900;
}

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

.horizontal-body h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.horizontal-body p,
.horizontal-body span {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--purple-700);
  font-weight: 850;
}

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

.category-tile {
  position: relative;
  display: flex;
  min-height: 154px;
  overflow: hidden;
  padding: 20px;
  color: var(--white);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
  box-shadow: var(--shadow-soft);
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px) scale(1.02);
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile small {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(120deg, var(--purple-800), var(--purple-500), var(--pink-500));
}

.compact-hero {
  padding: 72px 0;
}

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

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 16px 0 0;
  color: #f4e8ff;
  font-size: 19px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 750;
}

.detail-wrap .breadcrumb {
  padding-top: 26px;
  color: var(--gray-500);
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-cover {
  min-height: 180px;
  overflow: hidden;
}

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

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  margin: 0 0 10px;
  color: var(--gray-800);
  font-size: 28px;
  font-weight: 900;
}

.category-overview-body p {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--gray-500);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.category-overview-body span {
  color: var(--purple-700);
  font-weight: 850;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 42px 0 34px;
  padding: 22px;
}

.filter-search input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  outline: none;
  background: #fbfaff;
}

.filter-search input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px #ede9fe;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-selects label {
  display: grid;
  gap: 6px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.filter-selects select {
  min-width: 120px;
  padding: 12px 14px;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: var(--white);
}

.empty-state {
  display: none;
  margin: 34px 0 80px;
  padding: 44px 20px;
  color: var(--gray-500);
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

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

.ranking-list-page {
  display: grid;
  gap: 10px;
  margin: 46px 0 78px;
  padding: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 78px minmax(160px, 1fr) 220px 220px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  background: #faf5ff;
  transform: translateX(5px);
}

.ranking-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-600), var(--pink-500));
  font-weight: 900;
}

.ranking-row img {
  width: 78px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-title {
  color: var(--gray-800);
  font-size: 17px;
  font-weight: 900;
}

.ranking-meta,
.ranking-genre {
  color: var(--gray-500);
  font-size: 14px;
}

.detail-wrap {
  padding-bottom: 84px;
}

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

.player-section {
  margin-bottom: 24px;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #050014;
  box-shadow: 0 28px 72px rgba(20, 7, 41, 0.42);
}

.video-player {
  width: 100%;
  height: 100%;
  background: #050014;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #050014;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68);
  transform: scale(1.02);
}

.player-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.18), rgba(0, 0, 0, 0.45));
}

.player-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82px;
  height: 82px;
  padding-left: 5px;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-600), var(--pink-500));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  font-size: 30px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.player-cover:hover .player-circle {
  transform: translate(-50%, -50%) scale(1.08);
}

.detail-card {
  margin-bottom: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 18px;
  color: var(--gray-800);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.detail-card h2 {
  margin: 26px 0 12px;
  color: var(--gray-800);
  font-size: 22px;
  font-weight: 900;
}

.detail-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.85;
}

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

.detail-meta span,
.detail-meta a {
  padding: 9px 12px;
  color: var(--gray-600);
  border-radius: 12px;
  background: #f5f3ff;
  font-weight: 780;
}

.detail-meta a {
  color: var(--purple-700);
}

.detail-tags {
  margin: 18px 0;
}

.detail-tags span {
  padding: 8px 12px;
  color: var(--purple-700);
  background: #f3e8ff;
}

.accent-card {
  background: linear-gradient(135deg, #f5edff, #fff1f7);
}

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

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 16px;
  color: var(--gray-800);
  font-size: 23px;
  font-weight: 900;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(180deg, var(--purple-900), #24103f);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0 34px;
}

.footer-brand p {
  max-width: 420px;
  margin: 18px 0 0;
  color: #e9d5ff;
  line-height: 1.75;
}

.footer-column h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 900;
}

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

.footer-column a {
  color: #e9d5ff;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #d8b4fe;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .mobile-search {
    margin-bottom: 10px;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero-slider,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    padding: 28px 0 44px;
  }

  .hero-slide,
  .hero-slide.is-active {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster {
    width: min(340px, 80vw);
    margin: 0 auto;
    transform: none;
  }

  .hero-controls {
    position: static;
    margin-top: 28px;
  }

  .split-block,
  .detail-grid,
  .filter-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }

  .ranking-row {
    grid-template-columns: 44px 70px minmax(0, 1fr);
  }

  .ranking-meta,
  .ranking-genre {
    display: none;
  }
}

@media (max-width: 700px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-category-links {
    gap: 8px;
  }

  .hero-category-links a {
    padding: 8px 12px;
    font-size: 14px;
  }

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

  .hero-summary,
  .page-hero p:not(.eyebrow) {
    font-size: 17px;
  }

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

  .movie-info {
    padding: 14px;
  }

  .movie-info h3 {
    min-height: 42px;
    font-size: 16px;
  }

  .movie-desc {
    display: none;
  }

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

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

  .category-overview-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .category-cover {
    min-height: 150px;
  }

  .filter-selects {
    width: 100%;
  }

  .filter-selects label,
  .filter-selects select {
    width: 100%;
  }

  .detail-card {
    padding: 22px;
  }

  .player-circle {
    width: 68px;
    height: 68px;
  }

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