:root {
  --bg: #fff7fb;
  --bg-soft: #f5f8ff;
  --text: #1f2937;
  --muted: #667085;
  --line: rgba(148, 163, 184, 0.26);
  --card: rgba(255, 255, 255, 0.88);
  --card-solid: #ffffff;
  --red: #ef4444;
  --orange: #f97316;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(252, 165, 165, 0.28), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(147, 197, 253, 0.30), transparent 30rem),
    linear-gradient(180deg, #fff7fb 0%, #f4f8ff 48%, #fff 100%);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.92), rgba(239, 246, 255, 0.92), rgba(250, 245, 255, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 12px 25px rgba(239, 68, 68, 0.28);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.nav-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #374151;
  background: transparent;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-button:hover {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

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

.dropdown-panel a {
  padding: 9px 10px;
  border-radius: 12px;
  color: #4b5563;
  font-size: 0.92rem;
}

.dropdown-panel a:hover {
  color: var(--red);
  background: #fff1f2;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #374151;
  transition: 0.2s ease;
}

body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav-link,
.mobile-category-list a {
  display: block;
  padding: 11px 14px;
  border-radius: 14px;
  color: #4b5563;
}

.mobile-nav-link.active,
.mobile-nav-link:hover,
.mobile-category-list a:hover {
  color: var(--pink);
  background: #fff1f2;
}

.mobile-category-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.hero-shell {
  position: relative;
  overflow: hidden;
  padding: 34px 0 56px;
  background: linear-gradient(135deg, rgba(255, 228, 230, 0.75), rgba(219, 234, 254, 0.72), rgba(250, 245, 255, 0.88));
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.35;
  animation: floatOrb 10s ease-in-out infinite;
}

.hero-orb-one {
  width: 260px;
  height: 260px;
  left: 6%;
  top: 10%;
  background: #fca5a5;
}

.hero-orb-two {
  width: 320px;
  height: 320px;
  right: 8%;
  top: 5%;
  background: #93c5fd;
  animation-delay: -4s;
}

.hero-orb-three {
  width: 300px;
  height: 300px;
  left: 45%;
  bottom: -120px;
  background: #f9a8d4;
  animation-delay: -7s;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -18px, 0) scale(1.08);
  }
}

.hero-carousel {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: saturate(1.1);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.34) 50%, rgba(15, 23, 42, 0.10)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.50), rgba(15, 23, 42, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  padding: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #fed7aa;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.hero-one-line {
  max-width: 640px;
  margin: 0 0 18px;
  color: #fff7ed;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 700;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.34);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.secondary-button {
  color: #111827;
  background: rgba(255, 255, 255, 0.88);
}

.ghost-button {
  border: 0;
  color: var(--red);
  background: #fff1f2;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.hero-controls {
  position: absolute;
  left: 62px;
  right: 62px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
}

.hero-controls > button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(8px);
}

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

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

.hero-dot.active {
  width: 34px;
  background: #fff;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 34px;
  padding-bottom: 24px;
}

.intro-tile {
  min-height: 132px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  transition: 0.22s ease;
}

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

.intro-tile strong {
  font-size: 1.25rem;
}

.intro-tile span {
  color: var(--muted);
}

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

.section-heading h2,
.page-hero h1,
.detail-card h1,
.detail-card h2 {
  margin: 0;
  color: #111827;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-heading a {
  color: var(--pink);
  font-weight: 800;
}

.compact-heading {
  align-items: center;
}

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

.category-card {
  position: relative;
  min-height: 214px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow-soft);
  transition: 0.22s ease;
}

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

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: 0.35s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.05));
}

.category-glow {
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 70px;
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.22);
  filter: blur(20px);
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
}

.category-card strong {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.category-card em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 0.92rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

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

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

.feature-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 30px;
}

.movie-card {
  overflow: hidden;
  border-radius: 25px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #dbeafe);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.02));
  opacity: 0.72;
}

.play-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 0.78rem;
}

.card-body h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--pink);
}

.card-body p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: var(--pink);
  background: #fdf2f8;
}

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

.compact-card .card-body p {
  display: none;
}

.rank-panel,
.soft-panel,
.rank-list-panel,
.detail-card,
.player-card,
.filter-panel,
.category-overview-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

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

.list-stack {
  display: grid;
  gap: 12px;
}

.list-card {
  min-height: 82px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 58px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  background: rgba(249, 250, 251, 0.95);
  transition: 0.2s ease;
}

.list-card:hover {
  background: #fff1f2;
  transform: translateX(3px);
}

.list-card img {
  width: 58px;
  height: 72px;
  border-radius: 13px;
  object-fit: cover;
}

.list-rank {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.list-card span {
  min-width: 0;
}

.list-card strong {
  display: block;
  overflow: hidden;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.list-card em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.soft-panel {
  padding: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 241, 242, 0.82));
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 54px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 18%, rgba(248, 113, 113, 0.22), transparent 18rem),
    radial-gradient(circle at 82% 10%, rgba(96, 165, 250, 0.22), transparent 18rem),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.page-hero p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.category-overview-card {
  overflow: hidden;
  transition: 0.22s ease;
}

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

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
}

.category-strip img {
  width: 100%;
  aspect-ratio: 2 / 2.7;
  object-fit: cover;
  border-radius: 16px;
}

.category-overview-card > div:last-child {
  padding: 8px 22px 24px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.category-overview-card p {
  margin: 0;
  color: var(--muted);
}

.filter-panel {
  position: sticky;
  top: 86px;
  z-index: 20;
  margin-bottom: 28px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px auto;
  gap: 12px;
  backdrop-filter: blur(14px);
}

.search-box {
  position: relative;
}

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

.search-box input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  outline: none;
  color: #374151;
  background: #fff;
}

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

.filter-panel select {
  padding: 0 16px;
}

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

.empty-state {
  display: none;
  margin-top: 20px;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
}

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

.rank-list-panel {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.player-card {
  padding: 12px;
  overflow: hidden;
  background: #111827;
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.28));
  transition: 0.22s ease;
}

.play-overlay:hover {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.20));
}

.play-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.35);
}

.play-overlay strong {
  font-size: 1.08rem;
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.detail-card h2 {
  margin: 24px 0 10px;
  font-size: 1.45rem;
}

.detail-card p {
  margin: 0;
  color: #4b5563;
}

.lead-text {
  font-size: 1.08rem;
  font-weight: 700;
}

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

.detail-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.side-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.side-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.side-info li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-info li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-info strong {
  color: #6b7280;
}

.side-info span {
  text-align: right;
  color: #111827;
  font-weight: 800;
}

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

.site-footer {
  margin-top: 36px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(249, 250, 251, 0.96));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 30px;
}

.footer-brand p {
  max-width: 480px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.footer-links a {
  color: var(--muted);
}

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

.footer-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footer-cats h2 {
  grid-column: 1 / -1;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #6b7280;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.2s ease;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 48px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  body.nav-open .mobile-nav {
    display: block;
  }

  .hero-shell {
    padding-top: 18px;
  }

  .hero-carousel {
    min-height: 580px;
    border-radius: 28px;
  }

  .hero-content {
    min-height: 580px;
    padding: 34px 26px 76px;
  }

  .hero-controls {
    left: 24px;
    right: 24px;
    bottom: 22px;
  }

  .intro-grid,
  .category-grid,
  .category-overview-grid,
  .footer-inner,
  .rank-list-panel {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .small-grid,
  .feature-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-hero {
    padding: 34px 26px;
  }

  .soft-panel,
  .detail-card {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section-wrap,
  .page-hero,
  .detail-layout,
  .footer-inner,
  .hero-carousel {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 1.15rem;
  }

  .movie-grid,
  .small-grid,
  .feature-three {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .hero-summary {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .list-card {
    grid-template-columns: auto 52px 1fr;
  }

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