:root {
  --rose: #ec4899;
  --rose-dark: #db2777;
  --red: #ef4444;
  --orange: #f97316;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --line: #fce7f3;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(236, 72, 153, 0.15);
  --shadow-strong: 0 26px 70px rgba(239, 68, 68, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 10%, rgba(236, 72, 153, 0.13), transparent 34rem),
    radial-gradient(circle at 82% 0%, rgba(249, 115, 22, 0.14), transparent 30rem),
    linear-gradient(180deg, #fff 0%, #fdf2f8 45%, #fff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(252, 231, 243, 0.95);
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.95), rgba(254, 242, 242, 0.95), rgba(255, 247, 237, 0.95));
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.08);
}

.nav-shell,
.footer-shell,
.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.24);
}

.logo-text {
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--rose), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #374151;
  font-size: 0.94rem;
  font-weight: 650;
  white-space: nowrap;
}

.main-nav a {
  padding: 8px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--rose-dark);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(252, 231, 243, 0.95);
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #374151;
}

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

.mobile-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 650;
}

.mobile-nav a:hover {
  background: #fce7f3;
  color: var(--rose-dark);
}

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

.page-shell {
  padding: 34px 0 60px;
}

.hero {
  position: relative;
  min-height: 560px;
  margin: 28px auto 54px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.72fr;
  gap: 34px;
  align-items: center;
  padding: 54px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.46;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.63), rgba(17, 24, 39, 0.38)),
    radial-gradient(circle at 18% 20%, rgba(236, 72, 153, 0.52), transparent 26rem),
    radial-gradient(circle at 78% 82%, rgba(249, 115, 22, 0.46), transparent 26rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
}

.hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.85rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p {
  width: min(640px, 100%);
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
}

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

.hero-meta span,
.tag-row span,
.detail-tag,
.rank-badge,
.meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-meta span {
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--red), var(--orange));
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.28);
}

.btn-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.23);
}

.hero-poster {
  justify-self: end;
  width: min(330px, 100%);
}

.hero-poster a {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.36);
  transform: rotate(3deg);
  transition: transform 0.3s ease;
}

.hero-poster a:hover {
  transform: rotate(0deg) translateY(-8px);
}

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

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.is-active {
  width: 24px;
  background: #fff;
}

.section {
  margin: 0 0 54px;
}

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

.section-eyebrow {
  margin: 0 0 6px;
  color: var(--rose-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.section h1,
.section h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(1.72rem, 3vw, 2.55rem);
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.section-intro,
.page-title p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

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

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

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

.duration-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.movie-card h2 {
  margin: 8px 0 7px;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--rose-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.detail-tag {
  padding: 4px 8px;
  color: var(--rose-dark);
  background: var(--soft);
}

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

.category-card {
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(253, 242, 248, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.18), transparent 15rem);
  box-shadow: 0 12px 36px rgba(236, 72, 153, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2 {
  margin: 0 0 8px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.category-card span {
  color: var(--rose-dark);
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.08);
}

.rank-badge {
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--red));
}

.rank-item img {
  width: 92px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rank-score {
  color: var(--rose-dark);
  font-weight: 900;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
}

.filter-panel h2 {
  margin: 0 0 14px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #f9a8d4;
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: #fff;
}

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

.empty-message {
  display: none;
  padding: 28px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border: 1px dashed #f9a8d4;
}

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

.page-title {
  margin: 14px 0 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(253, 242, 248, 0.96), rgba(255, 247, 237, 0.92)),
    radial-gradient(circle at 0 0, rgba(236, 72, 153, 0.14), transparent 20rem);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 28px;
  align-items: start;
  margin: 26px 0 34px;
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58) saturate(1.1);
}

.play-button {
  position: absolute;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--red), var(--orange));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.play-button::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 27px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #fff;
}

.detail-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.detail-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 18px;
}

.meta-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.meta-list b {
  color: var(--ink);
}

.detail-content {
  display: grid;
  gap: 26px;
}

.prose-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 34px rgba(236, 72, 153, 0.08);
}

.prose-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.prose-card p {
  margin: 0;
  color: #4b5563;
  white-space: pre-line;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.compact-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.compact-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.compact-card span {
  font-weight: 800;
  line-height: 1.35;
}

.compact-card small {
  color: var(--muted);
}

.site-footer {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(253, 242, 248, 0.75), #fff);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 30px;
  padding: 44px 0;
}

.footer-brand p {
  max-width: 340px;
  color: var(--muted);
}

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

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 8px 0;
}

.site-footer a {
  color: #4b5563;
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .hero-poster {
    justify-self: start;
    width: min(250px, 70vw);
  }

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

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

  .detail-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
  }

  .detail-card img {
    margin-bottom: 0;
  }

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

@media (max-width: 640px) {
  .nav-shell,
  .footer-shell,
  .page-shell {
    width: min(100% - 22px, 1200px);
  }

  .hero {
    min-height: 680px;
    border-radius: 24px;
    margin-top: 18px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-controls {
    left: 22px;
    right: auto;
    bottom: 20px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

  .rank-badge {
    width: 36px;
    height: 36px;
  }

  .rank-item img {
    width: 72px;
  }

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

  .page-title {
    padding: 24px;
    border-radius: 24px;
  }

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

  .play-button {
    width: 72px;
    height: 72px;
  }

  .play-button::before {
    left: 29px;
    top: 22px;
    border-top-width: 14px;
    border-bottom-width: 14px;
    border-left-width: 21px;
  }

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