:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f3d3df;
  --soft: #fff1f2;
  --paper: #ffffff;
  --shadow: 0 22px 55px rgba(190, 18, 60, 0.15);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(18px);
}

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

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 32px rgba(236, 72, 153, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-text strong {
  font-size: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.main-nav a {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.header-search {
  position: relative;
  display: flex;
  width: 268px;
  height: 42px;
  border: 1px solid #f2cbd8;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.header-search input {
  min-width: 0;
  flex: 1;
  padding: 0 14px 0 18px;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.header-search button {
  padding: 0 18px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  font-weight: 700;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background: radial-gradient(circle at 15% 20%, rgba(244, 114, 182, 0.26), transparent 32%),
              radial-gradient(circle at 84% 18%, rgba(251, 113, 133, 0.22), transparent 28%),
              linear-gradient(135deg, #fff7fb 0%, #ffffff 46%, #ffe4e6 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: 52%;
  height: 78%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(244, 63, 94, 0.05));
  filter: blur(3px);
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
}

.hero-slide {
  display: none;
  min-height: 660px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 54px;
  padding: 70px 0 48px;
}

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

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pink);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 16px 0 18px;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 680px;
  color: #4b5563;
  font-size: clamp(17px, 2.1vw, 21px);
}

.hero-tags,
.mini-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 26px 0 34px;
}

.hero-tags span,
.mini-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  color: #9f1239;
  background: rgba(255, 241, 242, 0.88);
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 18px 30px rgba(244, 63, 94, 0.28);
}

.btn-secondary {
  color: #be123c;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.18);
}

.btn-light {
  color: #be123c;
  background: #ffffff;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 34px rgba(244, 63, 94, 0.2);
}

.hero-poster {
  position: relative;
  max-width: 430px;
  margin-left: auto;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 34px -24px -24px 28px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.38), rgba(251, 113, 133, 0.12));
  filter: blur(3px);
}

.hero-poster img {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero-score {
  position: absolute;
  z-index: 3;
  left: -22px;
  bottom: 44px;
  min-width: 142px;
  padding: 16px 18px;
  color: #ffffff;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 22px 36px rgba(244, 63, 94, 0.28);
}

.hero-score strong {
  display: block;
  font-size: 27px;
  line-height: 1;
}

.hero-score small {
  display: block;
  margin-top: 5px;
  opacity: 0.86;
}

.hero-thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  z-index: 5;
  display: flex;
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-control {
  width: 62px;
  height: 78px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(190, 18, 60, 0.12);
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.hero-control.is-active,
.hero-control:hover {
  opacity: 1;
  border-color: var(--pink);
  transform: translateY(-2px);
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: linear-gradient(180deg, #ffffff, #fff1f2);
}

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

.section-heading h1,
.section-heading h2 {
  margin: 8px 0 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--pink);
  font-weight: 900;
}

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

.stat-card {
  padding: 24px;
  border: 1px solid rgba(244, 63, 94, 0.11);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(190, 18, 60, 0.08);
}

.stat-card strong {
  display: block;
  color: var(--rose);
  font-size: 32px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.13);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(190, 18, 60, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(190, 18, 60, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ffe4e6;
}

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

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

.poster-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-meta {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.card-body h3 {
  min-height: 56px;
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.36;
}

.card-body h3 a:hover {
  color: var(--pink);
}

.card-desc {
  display: -webkit-box;
  min-height: 70px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: #6b7280;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mini-tags {
  gap: 7px;
}

.mini-tags span {
  min-height: 25px;
  padding: 4px 8px;
  font-size: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(190, 18, 60, 0.08);
}

.rank-no {
  color: var(--rose);
  font-size: 28px;
  font-weight: 950;
}

.rank-cover img {
  width: 86px;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
}

.rank-score {
  color: var(--pink);
  font-size: 22px;
  font-weight: 950;
}

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

.category-pill {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(190, 18, 60, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.45);
}

.category-pill strong {
  font-size: 18px;
}

.category-pill span {
  color: var(--pink);
  font-weight: 900;
}

.page-hero {
  padding: 68px 0 42px;
  background: radial-gradient(circle at 20% 20%, rgba(244, 114, 182, 0.28), transparent 36%),
              linear-gradient(135deg, #fff7fb, #ffffff 58%, #ffe4e6);
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin: 0 0 28px;
}

.filter-bar input {
  flex: 1;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #f1cbd7;
  border-radius: 999px;
  outline: 0;
  background: #ffffff;
}

.filter-bar button {
  padding: 0 22px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  font-weight: 900;
  cursor: pointer;
}

.detail-hero {
  padding: 48px 0 70px;
  background: radial-gradient(circle at 15% 10%, rgba(244, 114, 182, 0.22), transparent 34%),
              linear-gradient(180deg, #fff7fb, #ffffff);
}

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

.player-card,
.detail-side,
.content-panel {
  border: 1px solid rgba(244, 63, 94, 0.13);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  background: #111827;
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.62));
  cursor: pointer;
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 26px 52px rgba(244, 63, 94, 0.34);
  cursor: pointer;
}

.play-button svg {
  width: 34px;
  height: 34px;
  margin-left: 5px;
}

.player-copy {
  padding: 26px;
}

.player-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.035em;
}

.player-copy p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.player-status {
  margin-top: 14px;
  color: var(--pink);
  font-weight: 800;
}

.detail-side {
  overflow: hidden;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info {
  padding: 22px;
}

.detail-info h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-info dl {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.detail-info div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #f2cbd8;
}

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

.detail-info dd {
  margin: 0;
  color: #111827;
  font-weight: 900;
  text-align: right;
}

.content-panel {
  padding: 30px;
}

.content-panel h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 30px;
}

.content-panel p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 17px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 20px;
  background: #ffffff;
}

.related-cover img {
  width: 96px;
  height: 132px;
  object-fit: cover;
  border-radius: 14px;
}

.related-card p {
  margin: 0 0 6px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.related-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.34;
}

.related-card span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.search-results-empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #f2cbd8;
  border-radius: 24px;
  background: #ffffff;
}

.site-footer {
  padding: 54px 0;
  color: #f9fafb;
  background: #111827;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 42px;
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  color: #d1d5db;
}

.footer-links {
  display: grid;
  gap: 10px;
  min-width: 160px;
}

.footer-links a {
  color: #d1d5db;
  font-weight: 700;
}

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

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

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

@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav,
  .header-search {
    display: none;
    width: 100%;
  }

  .main-nav.is-open,
  .header-search.is-open {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0 6px;
  }

  .header-search {
    margin-bottom: 8px;
  }

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

  .hero-poster {
    max-width: 340px;
    margin: 0 auto 72px;
  }

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

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

@media (max-width: 680px) {
  .brand-text strong {
    font-size: 20px;
  }

  .hero,
  .hero-stage,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding-bottom: 122px;
  }

  .hero-thumbs {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading,
  .footer-inner,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

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

  .rank-item {
    grid-template-columns: 52px 74px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 2 / -1;
    font-size: 18px;
  }

  .rank-cover img {
    width: 74px;
    height: 104px;
  }

  .content-panel {
    padding: 22px;
  }
}
