:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --orange: #fb923c;
  --orange-dark: #f97316;
  --blue: #38bdf8;
  --blue-dark: #0284c7;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.26);
  --surface: rgba(255, 255, 255, 0.86);
  --shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #eff6ff 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.7;
}

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

img {
  display: block;
  max-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.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

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

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(236, 72, 153, 0.1);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-link {
  display: block;
  padding: 12px 16px;
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(236, 72, 153, 0.96), rgba(251, 146, 60, 0.92) 48%, rgba(56, 189, 248, 0.9));
}

.hero-gradient::before,
.hero-gradient::after {
  position: absolute;
  content: "";
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.5;
}

.hero-gradient::before {
  top: -120px;
  right: 7%;
  background: rgba(255, 255, 255, 0.26);
}

.hero-gradient::after {
  bottom: -180px;
  left: -90px;
  background: rgba(59, 130, 246, 0.36);
}

.hero-shell {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.74fr);
  align-items: center;
  gap: 52px;
  padding: 66px 0 92px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.58s ease, transform 0.58s ease;
}

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

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

.hero-text .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.hero-text h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-text h2 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 3vw, 2.75rem);
  letter-spacing: -0.04em;
}

.hero-text p {
  max-width: 720px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.primary-button,
.ghost-button,
.ghost-light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.28);
}

.hero-section .primary-button {
  color: var(--pink-dark);
  background: #ffffff;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
}

.ghost-light-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.ghost-light-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 10px solid rgba(255, 255, 255, 0.26);
  border-radius: 34px;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.34);
  transform: rotate(2deg);
}

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

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  bottom: 92px;
  left: 0;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

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

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 90px;
  color: #ffffff;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

.hero-wave path:first-child {
  fill: rgba(255, 247, 237, 0.55);
}

.hero-wave path:last-child {
  fill: #ffffff;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  gap: 14px;
  margin-top: -42px;
  padding: 18px;
  position: relative;
  z-index: 5;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-box,
.select-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  color: var(--ink);
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.86);
  outline: 0;
  transition: border 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.search-box input:focus,
.select-box select:focus {
  border-color: rgba(236, 72, 153, 0.62);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.section-block {
  padding: 72px 0;
}

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

.section-heading h2,
.sub-hero h1,
.callout-card h2,
.detail-info h1 {
  margin: 0;
  letter-spacing: -0.055em;
}

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

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

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(236, 72, 153, 0.32);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 22;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(56, 189, 248, 0.12));
}

.movie-card.featured .poster-link {
  aspect-ratio: 16 / 20;
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.68));
}

.rank-badge,
.mini-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.3);
  font-weight: 900;
}

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

.movie-meta-row,
.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-card h3,
.compact-card h3 {
  margin: 10px 0 8px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.movie-card h3 {
  font-size: 1.12rem;
}

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

.movie-card p,
.compact-card p,
.sub-hero p,
.callout-card p,
.detail-lead,
.content-card p {
  color: var(--muted);
}

.movie-card p {
  min-height: 56px;
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--pink-dark);
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.1);
  font-size: 0.76rem;
  font-weight: 800;
}

.soft-section {
  background: linear-gradient(90deg, rgba(255, 237, 213, 0.78), rgba(252, 231, 243, 0.78));
}

.blue-section {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(252, 231, 243, 0.62));
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 24px;
  color: #ffffff;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--pink), var(--orange) 56%, var(--blue));
  box-shadow: 0 20px 44px rgba(236, 72, 153, 0.2);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, var(--orange), #facc15, var(--pink));
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue), var(--pink));
}

.category-tile::after {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 110px;
  height: 110px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.16);
}

.category-tile span {
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  font-size: 1.22rem;
  font-weight: 900;
}

.category-tile small {
  display: block;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.13);
}

.compact-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
}

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

.compact-card h3 {
  font-size: 1rem;
}

.compact-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.mini-rank {
  width: auto;
  min-width: 34px;
  height: 30px;
  font-size: 0.8rem;
}

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

.callout-card {
  padding: clamp(30px, 6vw, 68px);
  text-align: center;
  color: #ffffff;
  border-radius: 34px;
  background: linear-gradient(120deg, var(--pink), var(--orange) 48%, var(--blue));
  box-shadow: 0 30px 70px rgba(236, 72, 153, 0.24);
}

.callout-card h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.callout-card p {
  max-width: 720px;
  margin: 16px auto 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.sub-hero {
  padding: 92px 0 118px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--pink), var(--orange), var(--blue));
}

.sub-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.sub-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.sub-hero .section-kicker {
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-hero {
  padding: 72px 0;
  color: #ffffff;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.52), transparent 32%), linear-gradient(120deg, #111827, #831843 58%, #f97316);
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 9px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 16 / 22;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-info h1 {
  max-width: 850px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
}

.detail-lead {
  max-width: 780px;
  margin: 18px 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
}

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

.detail-actions {
  margin-top: 24px;
}

.player-section {
  padding: 58px 0 28px;
}

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

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.28), rgba(2, 6, 23, 0.66));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-ring {
  display: grid;
  width: 98px;
  height: 98px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.08), 0 24px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #ffffff;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 30px 0 38px;
}

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 1.42rem;
}

.content-card p {
  margin: 0;
}

.site-footer {
  padding: 34px 0;
  color: #e5e7eb;
  background: #111827;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  color: #ffffff;
}

.footer-inner p {
  margin: 0;
  color: #9ca3af;
}

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

@media (max-width: 1040px) {
  .featured-grid,
  .hot-grid,
  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .hero-poster {
    display: none;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero-section,
  .hero-shell {
    min-height: 620px;
  }

  .hero-slide {
    padding: 46px 0 120px;
  }

  .hero-dots {
    bottom: 86px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    margin-top: -32px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-grid,
  .hot-grid,
  .library-grid,
  .category-grid,
  .category-grid.large,
  .compact-grid,
  .ranking-list,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .hero-text h1 {
    font-size: 2.55rem;
  }

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

  .movie-card-body,
  .content-card {
    padding: 18px;
  }
}
