:root {
  --pink-50: #fff1f7;
  --pink-100: #ffe4ef;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f3d3e4;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(157, 23, 77, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--pink-50), #ffffff 36%, var(--purple-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 241, 247, 0.95), rgba(255, 255, 255, 0.96), rgba(250, 245, 255, 0.95));
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: 0 10px 26px rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner,
.content-section,
.detail-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--purple-600));
  box-shadow: 0 10px 24px rgba(219, 39, 119, 0.25);
}

.brand-name {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--pink-600), var(--purple-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  padding: 10px 15px;
  border-radius: 14px;
  color: #374151;
  font-weight: 650;
  transition: 0.2s ease;
}

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

.top-search,
.mobile-search,
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.08);
}

.top-search input,
.mobile-search input,
.search-box input,
.filter-bar input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 12px;
  min-width: 210px;
  color: var(--ink);
}

.top-search button,
.mobile-search button,
.search-box button {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--purple-600));
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--pink-600);
  background: var(--pink-100);
}

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

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero {
  position: relative;
  height: min(72vh, 640px);
  min-height: 500px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 30%, rgba(236, 72, 153, 0.32), transparent 24%),
    linear-gradient(90deg, rgba(219, 39, 119, 0.92), rgba(126, 34, 206, 0.78) 45%, rgba(17, 24, 39, 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding-right: min(40vw, 470px);
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-weight: 750;
  letter-spacing: 0.02em;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-info p {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-tags,
.movie-tags,
.detail-meta,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span,
.detail-meta span,
.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--pink-600);
  background: var(--pink-50);
  font-size: 0.86rem;
  font-weight: 700;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  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) scale(1.02);
}

.btn.primary {
  color: var(--pink-600);
  background: #fff;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.22);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

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

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

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

.content-section.soft-panel {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, rgba(255, 241, 247, 0.9), rgba(250, 245, 255, 0.92));
}

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

.section-head h2,
.detail-section h2,
.footer-column h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.section-head a,
.text-link {
  color: var(--pink-600);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-100), var(--purple-100));
}

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

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

.thumb-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(17, 24, 39, 0.42);
  transition: opacity 0.25s ease;
}

.movie-card:hover .thumb-mask {
  opacity: 1;
}

.thumb-play {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pink-600);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.movie-body {
  padding: 18px;
}

.movie-title {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 850;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--pink-600);
}

.movie-meta {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.movie-body p {
  min-height: 3.2em;
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 0.94rem;
}

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

.category-card,
.category-overview-card,
.ranking-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.08);
}

.category-card {
  grid-template-columns: 124px 1fr;
  align-items: center;
}

.category-card img {
  width: 124px;
  height: 86px;
  border-radius: 18px;
  object-fit: cover;
}

.category-card strong,
.category-overview-card h2,
.mini-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
}

.category-card em,
.mini-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.08);
}

.rank-row b,
.ranking-card b {
  color: var(--pink-600);
  font-size: 1.25rem;
}

.mini-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 14px;
}

.mini-card img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(135deg, var(--pink-600), var(--purple-700));
}

.page-hero.slim {
  min-height: 310px;
}

.page-hero > div:first-child {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 30px;
  padding: 0 max(16px, calc((100% - 1180px) / 2));
}

.category-hero > div:first-child {
  width: auto;
  padding: 76px 0;
}

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

.hero-mini-list .mini-card {
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-mini-list .mini-card strong,
.hero-mini-list .mini-card em {
  color: #fff;
}

.filter-bar {
  margin: 0 0 24px;
}

.filter-bar input {
  width: 100%;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.08);
}

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

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

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  width: 100%;
  height: 190px;
  border-radius: 16px;
  object-fit: cover;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--pink-600);
  background: var(--pink-50);
  font-weight: 700;
  font-size: 0.9rem;
}

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

.ranking-card {
  align-content: start;
}

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

.search-section {
  min-height: 520px;
}

.search-box {
  max-width: 760px;
  margin: 0 auto 18px;
}

.search-box input {
  flex: 1;
  min-width: 0;
}

.filter-chips {
  justify-content: center;
  margin-bottom: 20px;
}

.filter-chips button {
  cursor: pointer;
}

.search-status {
  margin: 22px 0;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #fff;
  background: #111827;
}

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-bg {
  filter: blur(8px) saturate(1.08);
  transform: scale(1.04);
  opacity: 0.55;
}

.detail-shade {
  background: linear-gradient(120deg, rgba(17, 24, 39, 0.92), rgba(219, 39, 119, 0.66), rgba(126, 34, 206, 0.8));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 34px;
  padding: 48px 0;
}

.player-card {
  border-radius: 30px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

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

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.42));
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pink-600);
  background: #fff;
  font-size: 2rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.player-overlay.hidden {
  display: none;
}

.crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.crumbs a:hover {
  color: #fff;
}

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

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

.detail-section {
  padding: 62px 0 0;
}

.detail-section:last-of-type {
  padding-bottom: 74px;
}

.detail-section p {
  max-width: 960px;
  margin: 18px 0 0;
  color: #374151;
  font-size: 1.05rem;
}

.related-grid {
  margin-top: 24px;
}

.site-footer {
  background: linear-gradient(135deg, var(--purple-50), var(--pink-50));
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 30px;
  padding: 52px 0;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-brand p,
.footer-column p,
.footer-column a,
.footer-bottom {
  color: var(--muted);
}

.footer-column h2 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

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

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

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero-content {
    padding-right: 0;
  }

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

  .category-grid,
  .rank-list,
  .category-overview-grid,
  .footer-inner,
  .detail-wrap,
  .category-hero {
    grid-template-columns: 1fr;
  }

  .detail-wrap {
    padding-top: 34px;
  }
}

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

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

  .hero {
    min-height: 560px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 2.3rem;
  }

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

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

  .movie-body {
    padding: 14px;
  }

  .movie-body p {
    min-height: auto;
  }

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

  .category-card img,
  .mini-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .category-cover-stack img {
    height: 150px;
  }

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

  .detail-hero,
  .detail-wrap {
    min-height: auto;
  }

  .detail-wrap {
    padding: 24px 0 46px;
  }

  .footer-inner {
    padding: 38px 0;
  }
}

@media (max-width: 460px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
