:root {
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --rose: #fff1f8;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.18);
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 45px rgba(139, 92, 246, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff1f8 0%, #f5f3ff 45%, #eff6ff 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  font-size: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.38);
}

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

.nav-link,
.nav-button {
  border: 0;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  font-weight: 700;
  padding: 9px 0;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  display: grid;
  min-width: 168px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #4b5563;
}

.dropdown-panel a:hover {
  color: var(--pink);
  background: linear-gradient(90deg, #fff1f8, #f5f3ff);
}

.top-search {
  display: flex;
  gap: 8px;
}

.top-search input,
.inline-filter input,
.list-toolbar input,
.list-toolbar select,
.inline-filter select {
  min-height: 42px;
  border: 2px solid #fbcfe8;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 16px;
  outline: none;
  color: var(--ink);
}

.top-search input:focus,
.inline-filter input:focus,
.list-toolbar input:focus,
.list-toolbar select:focus,
.inline-filter select:focus {
  border-color: var(--pink);
}

.top-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: var(--pink);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-panel.open {
  display: grid;
}

.mobile-panel a {
  padding: 11px 14px;
  border-radius: 14px;
  background: #ffffff;
  color: #4b5563;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(120deg, #db2777, #7c3aed 48%, #2563eb);
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(0deg, #fff1f8, transparent);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 24%),
    radial-gradient(circle at 85% 30%, rgba(96, 165, 250, 0.34), transparent 26%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 18px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  opacity: 0;
  transform: translateX(-50%) scale(1.02);
  transition: opacity 0.5s ease, transform 0.6s ease;
  z-index: 2;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(54px) saturate(1.25);
  opacity: 0.18;
  transform: scale(1.12);
  z-index: -1;
}

.hero-image-card {
  position: relative;
  border-radius: 34px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 35px 80px rgba(31, 41, 55, 0.32);
  backdrop-filter: blur(12px);
}

.hero-image-card img {
  height: 500px;
  object-fit: cover;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.04));
}

.hero-copy {
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #ffe4f3;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #ffe4f3;
  font-size: 20px;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags a,
.detail-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.primary-btn {
  color: var(--pink);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(255, 255, 255, 0.22);
}

.ghost-btn {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.line-btn {
  color: var(--pink);
  border: 1px solid #f9a8d4;
  background: #ffffff;
}

.primary-btn:hover,
.ghost-btn:hover,
.line-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: 0.2s ease;
}

.hero-dots button.active {
  width: 38px;
  background: #ffffff;
}

.section-block {
  margin-top: 54px;
}

.intro-strip,
.list-toolbar,
.inline-filter,
.category-overview-card,
.content-panel,
.ranking-panel {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.intro-strip h2,
.section-title h2,
.ranking-panel h2,
.content-panel h2,
.category-overview-head h2,
.site-footer h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  letter-spacing: -0.06em;
}

.intro-strip p {
  margin: 8px 0 0;
  color: var(--muted);
}

.inline-filter,
.list-toolbar {
  display: flex;
  gap: 12px;
  padding: 14px;
}

.inline-filter {
  box-shadow: none;
}

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

.section-title span,
.ranking-panel > span,
.category-overview-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--pink);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title h2,
.ranking-panel h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-title a {
  color: var(--pink);
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-tile {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: var(--shadow);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 62%), var(--tile-image);
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  transition: transform 0.35s ease;
}

.category-tile:hover::before {
  transform: scale(1.08);
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 1;
}

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

.category-tile strong {
  margin-top: 6px;
  font-size: 14px;
  color: #ffe4f3;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(139, 92, 246, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(236, 72, 153, 0.18);
}

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

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

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

.score,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.score {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #f97316, var(--pink));
}

.rank-badge {
  left: 12px;
  top: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

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

.card-body p {
  min-height: 72px;
  margin: 0 0 16px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions a {
  color: var(--pink);
  font-weight: 900;
}

.card-actions span {
  color: #9ca3af;
  font-size: 13px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  align-items: start;
}

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

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

.ranking-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(90deg, #fff1f8, #f5f3ff);
}

.ranking-row:hover {
  background: linear-gradient(90deg, #fce7f3, #ede9fe);
}

.ranking-row b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.ranking-row span {
  font-weight: 900;
}

.ranking-row small {
  grid-column: 2;
  color: var(--muted);
}

.page-hero {
  padding: 88px 0 58px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.25), transparent 28%),
    linear-gradient(120deg, #db2777, #7c3aed 52%, #2563eb);
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #ffe4f3;
  font-size: 19px;
}

.categories-stack {
  display: grid;
  gap: 22px;
}

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

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  font-size: 32px;
}

.category-overview-head p {
  max-width: 760px;
  color: var(--muted);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mini-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 18px;
  background: #ffffff;
}

.mini-card:hover {
  color: var(--pink);
}

.mini-card img {
  grid-row: span 2;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fce7f3, #ede9fe, #dbeafe);
}

.mini-card span {
  font-weight: 900;
}

.mini-card small {
  color: var(--muted);
}

.list-toolbar {
  margin-bottom: 22px;
}

.all-list {
  grid-template-columns: repeat(5, 1fr);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #db2777, #7c3aed 52%, #2563eb);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(34px) saturate(1.2);
  transform: scale(1.1);
  opacity: 0.32;
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, #fce7f3, #ede9fe, #dbeafe);
}

.detail-copy h1 {
  max-width: 840px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
}

.detail-copy p {
  max-width: 820px;
  color: #ffe4f3;
  font-size: 19px;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 26px;
}

.detail-stats span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
  margin-top: 44px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.58));
}

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

.play-cover span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  color: var(--pink);
  font-size: 30px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.content-panel {
  padding: 24px;
}

.content-panel h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.content-panel p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 700;
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.side-card dd a {
  color: var(--pink);
}

.side-mini {
  grid-template-columns: 1fr;
}

.site-footer {
  margin-top: 70px;
  color: #ffffff;
  background: linear-gradient(90deg, #db2777, #7c3aed 50%, #2563eb);
}

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

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
}

.site-footer p,
.footer-links a,
.footer-bottom {
  color: #ffe4f3;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.compact-links {
  grid-template-columns: repeat(2, 1fr);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.is-filter-hidden {
  display: none !important;
}

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

  .movie-grid,
  .all-list {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 20px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 22px;
    align-content: center;
    padding-top: 24px;
  }

  .hero-image-card img {
    height: 320px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .intro-strip,
  .category-overview-head,
  .inline-filter,
  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .all-list,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    max-width: 260px;
  }
}

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

  .hero-slider {
    min-height: 720px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
    letter-spacing: -0.05em;
  }

  .movie-card {
    border-radius: 22px;
  }

  .content-panel,
  .ranking-panel,
  .category-overview-card {
    padding: 18px;
  }
}
