* {
  box-sizing: border-box;
}

:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --orange: #f97316;
  --yellow: #fde047;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.35);
}

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

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

.brand {
  font-size: 24px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #7c2d12;
  background: var(--yellow);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(253, 224, 71, 0.4);
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--yellow);
  opacity: 1;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

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

.mobile-link {
  display: block;
  padding: 11px 0;
  color: #ffffff;
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 56px 0 70px;
  background: radial-gradient(circle at 12% 12%, rgba(236, 72, 153, 0.25), transparent 32%), radial-gradient(circle at 82% 16%, rgba(59, 130, 246, 0.22), transparent 36%);
}

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

.hero-carousel {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 44px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.5s ease both;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #be185d;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  color: transparent;
  background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 720px;
  margin: 0 0 24px;
  color: #374151;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-meta span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  border-radius: 999px;
}

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

.primary-button,
.secondary-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 28px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.35);
}

.secondary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(99, 102, 241, 0.16);
}

.small-button {
  min-height: 36px;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  white-space: nowrap;
}

.primary-button:hover,
.secondary-button:hover,
.small-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(124, 58, 237, 0.25);
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 42px;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.7), rgba(59, 130, 246, 0.7));
  filter: blur(10px);
}

.hero-visual a {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.hero-visual:hover img {
  transform: scale(1.06);
}

.hero-card-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 20px;
  color: #ffffff;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.82));
  backdrop-filter: blur(8px);
}

.hero-card-caption strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-control {
  width: 44px;
  height: 44px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

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

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

.section-title {
  margin: 0;
  color: transparent;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

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

.tool-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(10px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-box span {
  color: var(--pink);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  background: transparent;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  color: #7c3aed;
  font-weight: 900;
  background: #ffffff;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.11);
}

.filter-button.is-active,
.filter-button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.11);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 62px rgba(124, 58, 237, 0.2);
}

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

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

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

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(180deg, transparent 20%, rgba(17, 24, 39, 0.78));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
}

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

.movie-title,
.list-title {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-title:hover,
.list-title:hover {
  color: var(--purple);
}

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

.movie-card p,
.list-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #4b5563;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.list-card {
  display: grid;
  grid-template-columns: auto 132px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.1);
}

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

.list-poster {
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.list-poster img {
  width: 132px;
  height: 176px;
  object-fit: cover;
}

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

.category-card {
  min-height: 210px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(124, 58, 237, 0.94));
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(124, 58, 237, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(236, 72, 153, 0.94));
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(124, 58, 237, 0.94));
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(236, 72, 153, 0.28);
}

.category-card h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.category-card p {
  margin: 0 0 22px;
  line-height: 1.75;
  opacity: 0.92;
}

.category-card span {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  color: #7c2d12;
  font-weight: 900;
  background: #fef3c7;
  border-radius: 999px;
}

.page-hero {
  padding: 70px 0 30px;
}

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

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  color: transparent;
  background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
}

.page-hero p {
  max-width: 800px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

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

.breadcrumb a {
  color: #7c3aed;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.player-card,
.detail-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ffffff;
  text-align: center;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.32), rgba(15, 23, 42, 0.7));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border: 0;
  color: #ffffff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.42);
}

.player-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.player-meta {
  padding: 20px 24px;
}

.player-meta h2,
.detail-card h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 22px;
}

.player-meta p,
.detail-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.85;
}

.detail-card {
  padding: 26px;
}

.detail-poster {
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 22px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.detail-facts {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.detail-facts div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-facts dt {
  color: var(--muted);
}

.detail-facts dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.content-block {
  margin-top: 36px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.content-block h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-block p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
}

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

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

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

.footer-brand {
  margin-bottom: 12px;
  color: #f9a8d4;
  font-size: 24px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #f9a8d4;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .card-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-visual {
    max-width: 520px;
  }

  .tool-panel {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-toggle {
    display: block;
  }

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

  .brand {
    font-size: 20px;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 48px;
  }

  .hero-slide {
    gap: 28px;
  }

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

  .section-head {
    display: block;
  }

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

  .list-card .small-button {
    grid-column: 3;
    justify-self: start;
  }

  .list-poster img {
    width: 96px;
    height: 132px;
  }

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

@media (max-width: 520px) {
  .card-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-actions,
  .filter-buttons {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .rank-number {
    position: absolute;
    margin: 12px;
  }

  .list-poster img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }
}
