:root {
  --page-bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.82);
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(244, 63, 94, 0.16);
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #fb923c;
  --shadow: 0 22px 60px rgba(190, 18, 60, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% -10%, rgba(251, 113, 133, 0.24), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(251, 146, 60, 0.20), transparent 32rem),
    linear-gradient(180deg, #fff1f7 0%, #fff7ed 42%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  background: rgba(255, 247, 251, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.08);
}

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #be123c;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  color: #4b5563;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.site-search {
  position: relative;
  display: flex;
  align-items: center;
}

.site-search input {
  width: 220px;
  border: 1px solid rgba(244, 63, 94, 0.22);
  border-radius: 999px;
  padding: 11px 44px 11px 18px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus {
  border-color: rgba(244, 63, 94, 0.54);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.site-search button {
  position: absolute;
  right: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #be123c;
  background: rgba(244, 63, 94, 0.10);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(244, 63, 94, 0.10);
  padding: 14px 16px 20px;
  background: rgba(255, 255, 255, 0.94);
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  font-weight: 800;
  color: #4b5563;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 34px;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 22px;
  padding: 58px;
  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-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(17, 24, 39, 0.95) 0%, rgba(136, 19, 55, 0.84) 48%, rgba(17, 24, 39, 0.30) 100%),
    radial-gradient(circle at 28% 20%, rgba(251, 113, 133, 0.38), transparent 26rem);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.06);
}

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

.hero-copy {
  align-self: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 690px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 660px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pill,
.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 11px;
  color: #be123c;
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.30);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.38);
  filter: saturate(1.1);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.hero-poster {
  align-self: center;
}

.poster-stack {
  position: relative;
  width: min(420px, 100%);
  margin-left: auto;
}

.poster-stack::before,
.poster-stack::after {
  content: "";
  position: absolute;
  inset: 22px -18px -18px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(4deg);
}

.poster-stack::after {
  inset: 44px -34px -34px 34px;
  opacity: 0.52;
  transform: rotate(8deg);
}

.poster-stack img {
  position: relative;
  z-index: 2;
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 58px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.quick-row a {
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  padding: 10px 14px;
  color: #be123c;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.10);
}

.section {
  padding: 38px 0;
}

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

.section-kicker {
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.more-link {
  flex: 0 0 auto;
  color: #be123c;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: var(--surface-soft);
  box-shadow: 0 14px 38px rgba(244, 63, 94, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.30);
  box-shadow: 0 22px 46px rgba(244, 63, 94, 0.18);
}

.card-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(251, 146, 60, 0.18));
}

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

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.28);
}

.card-rating {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.74);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

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

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9f1239;
  font-size: 13px;
  font-weight: 800;
}

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

.category-card {
  min-height: 150px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 242, 0.82));
  box-shadow: 0 14px 36px rgba(244, 63, 94, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(244, 63, 94, 0.17);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  padding: 54px 0 20px;
}

.page-panel {
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 34px;
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 242, 0.78)),
    radial-gradient(circle at 92% 0%, rgba(251, 146, 60, 0.22), transparent 24rem);
  box-shadow: var(--shadow);
}

.page-panel h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-panel p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #9f1239;
  font-size: 14px;
  font-weight: 800;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 900;
  background: #ffffff;
}

.pagination .active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: #fff1f2;
  box-shadow: var(--shadow);
}

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

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

.detail-card,
.player-card,
.copy-card {
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 30px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 16px 42px rgba(244, 63, 94, 0.10);
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-card .lead {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

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

.info-item {
  border-radius: 18px;
  padding: 12px 14px;
  background: #fff1f2;
}

.info-item strong {
  display: block;
  margin-bottom: 4px;
  color: #9f1239;
  font-size: 12px;
}

.player-card {
  padding: 16px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #111827;
  cursor: pointer;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.20), rgba(17, 24, 39, 0.56));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-layer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 18px 44px rgba(244, 63, 94, 0.38);
  font-size: 32px;
}

.video-shell.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.copy-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

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

.copy-card p + p {
  margin-top: 14px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.09);
}

.rank-num {
  color: #be123c;
  font-size: 30px;
  font-weight: 1000;
  text-align: center;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 16px;
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-score {
  color: #be123c;
  font-size: 18px;
  font-weight: 1000;
}

.search-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 22px;
}

.search-tools input {
  border: 1px solid rgba(244, 63, 94, 0.20);
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
  background: #ffffff;
}

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

.empty-state {
  display: none;
  border-radius: 22px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.site-footer {
  margin-top: 42px;
  padding: 44px 0;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.70);
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 12px;
  color: var(--text);
}

.footer-grid p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 9px;
}

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

@media (max-width: 980px) {
  .nav-links,
  .nav-wrap > .site-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-stage {
    min-height: 720px;
  }

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

  .poster-stack {
    width: min(300px, 82%);
    margin: 0 auto;
  }

  .hero-controls {
    left: 36px;
    bottom: 26px;
  }

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

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

  .detail-poster {
    max-width: 430px;
  }

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

@media (max-width: 620px) {
  .nav-wrap,
  .container {
    width: min(100% - 22px, 1180px);
  }

  .logo {
    font-size: 18px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-stage {
    min-height: 760px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 26px;
  }

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

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

  .section-head {
    display: block;
  }

  .more-link {
    display: inline-flex;
    margin-top: 12px;
  }

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

  .page-panel,
  .detail-card,
  .copy-card {
    padding: 22px;
    border-radius: 24px;
  }

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

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

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

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

  .search-tools button {
    min-height: 46px;
  }
}
