:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --sky: #38bdf8;
  --sky-dark: #0284c7;
  --mint: #34d399;
  --emerald: #10b981;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.42), #ffffff 38%, rgba(240, 249, 255, 0.52));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-row {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
  font-size: 15px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--pink);
}

.nav-search {
  position: relative;
  min-width: 260px;
}

.nav-search input,
.filter-box input,
.filter-box select {
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 999px;
  background: #f3f4f6;
  padding: 11px 16px;
  color: #374151;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  padding-left: 42px;
}

.nav-search span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.nav-search input:focus,
.filter-box input:focus,
.filter-box select:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18);
}

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

.mobile-panel {
  display: none;
  padding: 14px 0 20px;
  border-top: 1px solid var(--line);
}

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

.mobile-panel .nav-links {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-direction: column;
  margin-top: 14px;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 16% 18%, rgba(236, 72, 153, 0.20), transparent 30%),
    radial-gradient(circle at 84% 22%, rgba(56, 189, 248, 0.20), transparent 28%),
    radial-gradient(circle at 50% 92%, rgba(52, 211, 153, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(253, 242, 248, 0.75), rgba(255, 255, 255, 0.92), rgba(240, 249, 255, 0.82));
}

.float-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.46;
  animation: float 15s ease-in-out infinite;
}

.float-orb.one {
  width: 120px;
  height: 120px;
  left: 6%;
  top: 18%;
  background: rgba(236, 72, 153, 0.22);
}

.float-orb.two {
  width: 170px;
  height: 170px;
  right: 7%;
  top: 12%;
  background: rgba(56, 189, 248, 0.22);
  animation-delay: 1.5s;
}

.float-orb.three {
  width: 135px;
  height: 135px;
  right: 28%;
  bottom: 10%;
  background: rgba(52, 211, 153, 0.18);
  animation-delay: 3s;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 20px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

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

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

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-dark);
  background: rgba(252, 231, 243, 0.85);
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero h1,
.hero h2,
.page-title h1 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--sky), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin-top: 18px;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
}

.hero-desc {
  margin: 18px 0 0;
  max-width: 720px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-art {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: #f3f4f6;
}

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

.hero-slide:hover .hero-poster img {
  transform: scale(1.045);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 56%);
}

.hero-card {
  position: absolute;
  left: -24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.hero-card strong {
  display: block;
  font-size: 18px;
}

.hero-card span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: #e5e7eb;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 22px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--sky));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.22);
}

.btn-light {
  color: #374151;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #e5e7eb;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.52), rgba(224, 242, 254, 0.52), rgba(209, 250, 229, 0.52));
}

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

.section-kicker {
  color: var(--pink);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-lead {
  color: var(--muted);
  line-height: 1.75;
  margin: 10px 0 0;
  max-width: 760px;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.76);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(236, 72, 153, 0.35);
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fce7f3, #e0f2fe);
}

.poster.tall {
  aspect-ratio: 3 / 4;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.22s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-pulse {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  transform: scale(0.82);
  transition: transform 0.22s ease;
}

.movie-card:hover .play-pulse {
  transform: scale(1);
}

.badge,
.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.badge {
  left: 12px;
  top: 12px;
  background: var(--pink);
}

.score-badge {
  right: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  left: 12px;
  top: 12px;
  background: linear-gradient(90deg, #f59e0b, var(--pink));
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
  transition: color 0.2s ease;
}

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

.card-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-tags span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f3f4f6;
  padding: 5px 9px;
}

.card-desc {
  margin: 12px 0 0;
  color: #4b5563;
  line-height: 1.7;
  font-size: 14px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 26px;
  min-height: 180px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.78);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.10), rgba(56, 189, 248, 0.10));
  transition: opacity 0.2s ease;
}

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

.category-card:hover::after {
  opacity: 1;
}

.category-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  font-size: 24px;
  margin-bottom: 18px;
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 22px;
}

.category-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.7;
  margin: 12px 0 0;
}

.page-hero {
  padding: 72px 0 42px;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.10), rgba(56, 189, 248, 0.10), rgba(16, 185, 129, 0.08));
}

.page-title h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  margin-bottom: 30px;
}

.empty-state {
  display: none;
  padding: 38px;
  text-align: center;
  color: var(--muted);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.empty-state.is-visible {
  display: block;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.78);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 18px;
  background: #f3f4f6;
}

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

.rank-number {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 5px 8px;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  background: linear-gradient(90deg, #f59e0b, var(--pink));
}

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

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.42);
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
}

.player-button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 38px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.player-title {
  padding: 20px 22px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.85), rgba(56, 189, 248, 0.75));
}

.player-title h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.detail-panel,
.text-panel {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.78);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.detail-panel {
  padding: 20px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
  margin-bottom: 18px;
}

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

.detail-meta {
  display: grid;
  gap: 10px;
  color: #4b5563;
}

.detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.detail-meta strong {
  color: var(--ink);
  white-space: nowrap;
}

.text-panel {
  padding: 28px;
  margin-top: 24px;
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.text-panel p {
  color: #374151;
  line-height: 1.9;
  margin: 0;
}

.text-panel p + p {
  margin-top: 18px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-cloud span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 13px;
}

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

.related-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.78);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.related-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.related-card h3 {
  margin: 0;
  padding: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.site-footer {
  margin-top: 80px;
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.86), rgba(240, 249, 255, 0.86), rgba(236, 253, 245, 0.86));
  border-top: 1px solid rgba(229, 231, 235, 0.7);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}

.footer-title {
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(90deg, var(--pink), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.footer-grid h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 32px;
  color: #6b7280;
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  font-size: 13px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

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

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

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

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

  .detail-panel {
    max-width: 420px;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 56px 20px;
  }

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

  .hero-art {
    max-width: 420px;
    width: 100%;
  }

  .hero-card {
    left: 12px;
    right: 12px;
  }

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

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

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

@media (max-width: 620px) {
  .nav-row {
    height: 62px;
  }

  .brand {
    font-size: 19px;
  }

  .movie-grid,
  .movie-grid.small,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .section {
    padding: 48px 0;
  }

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-desc {
    display: none;
  }

  .page-hero {
    padding: 48px 0 26px;
  }

  .text-panel {
    padding: 20px;
  }

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