:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --purple-dark: #7c3aed;
  --blue: #3b82f6;
  --orange: #f97316;
  --green: #22c55e;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3d9ea;
  --soft: #fff7fb;
  --bg: #fff1f8;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(190, 24, 93, 0.13);
  --shadow-strong: 0 25px 70px rgba(76, 29, 149, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fff1f8 0%, #f5f0ff 50%, #eff6ff 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

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

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

.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.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.14);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.12);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-4deg);
}

.logo-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--pink-dark), var(--purple-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  position: relative;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff0f7;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #374151;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.mobile-nav.open {
  display: grid;
  gap: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(110deg, #ec4899, #8b5cf6 52%, #3b82f6);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.35;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(8px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: 74px 0;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.72fr);
  gap: 48px;
  align-items: center;
}

.hero-slide.active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  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(--purple-dark);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(76, 29, 149, 0.2);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

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

.hero-tags a,
.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-strong);
  aspect-ratio: 3 / 4.1;
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-card-float {
  position: absolute;
  left: -26px;
  bottom: 28px;
  width: min(280px, 78%);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 20px 40px rgba(31, 41, 55, 0.24);
  backdrop-filter: blur(12px);
}

.hero-card-float strong {
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}

.hero-card-float span {
  color: var(--muted);
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 66px 0;
}

.section.white {
  background: rgba(255, 255, 255, 0.75);
}

.section.warm {
  background: linear-gradient(135deg, #fff7ed, #fff1f8);
}

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

.section-heading span {
  color: var(--pink-dark);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.section-heading h1,
.section-heading h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 900;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.8;
}

.section-more,
.text-link {
  color: var(--pink-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(236, 72, 153, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(139, 92, 246, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(59, 130, 246, 0.18));
}

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

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

.rating-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.76);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: inline-block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  transition: color 0.2s ease;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 10px;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
}

.movie-meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: #d1d5db;
}

.movie-info p,
.compact-card p,
.rank-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.movie-card .tag-row span {
  color: var(--pink-dark);
  background: #fff0f7;
}

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

.category-tile {
  min-height: 142px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-strong);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.22s ease;
}

.category-tile:hover::after {
  background: rgba(0, 0, 0, 0.12);
}

.category-tile div {
  position: relative;
  z-index: 2;
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 14px;
}

.scroll-row {
  overflow-x: auto;
  padding: 4px 0 14px;
}

.scroll-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.scroll-track .compact-card {
  width: 360px;
}

.compact-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.1);
  box-shadow: var(--shadow);
}

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

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

.tools-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: var(--shadow);
}

.search-box,
.sort-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.sort-box select {
  width: 100%;
  height: 46px;
  border: 1px solid #f7cfe4;
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-box input:focus,
.sort-box select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 68px 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.1);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  font-weight: 900;
}

.rank-thumb {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
}

.rank-thumb img {
  height: 100%;
  object-fit: cover;
}

.page-hero {
  padding: 68px 0 36px;
}

.page-card {
  padding: 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  border: 1px solid rgba(236, 72, 153, 0.1);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--pink-dark);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-strong);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.28), rgba(76, 29, 149, 0.3));
  cursor: pointer;
  transition: opacity 0.22s ease;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink-dark);
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.play-layer.is-hidden {
  opacity: 0;
  pointer-events: none;
}

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

.detail-panel {
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(236, 72, 153, 0.1);
}

.detail-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
}

.detail-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.detail-panel p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f8d7e8;
  color: var(--muted);
}

.info-list strong {
  color: var(--ink);
}

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

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

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(236, 72, 153, 0.12);
}

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

.site-footer {
  margin-top: 44px;
  background: linear-gradient(135deg, #fff7fb, #f3edff, #eef6ff);
  border-top: 1px solid rgba(236, 72, 153, 0.14);
}

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

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

.site-footer p {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
}

.site-footer h2 {
  font-size: 17px;
  margin: 0 0 14px;
}

.site-footer a:not(.logo) {
  display: block;
  color: var(--muted);
  margin: 8px 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 18px 0 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

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

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    height: 62px;
  }

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

  .hero-inner {
    min-height: auto;
    padding: 54px 0 74px;
  }

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

  .hero-visual {
    max-width: 390px;
    margin: 0 auto;
  }

  .hero-card-float {
    left: 14px;
    bottom: 14px;
  }

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

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

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

  .tools-bar {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 48px 80px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
  }

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

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

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

  .hero p {
    font-size: 16px;
  }

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

  .scroll-track .compact-card {
    width: 306px;
  }

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

  .section {
    padding: 48px 0;
  }

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

.mini-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mini-links a {
  color: var(--muted);
  font-weight: 700;
}

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