:root {
  color-scheme: light;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --orange: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --line: #ffe4e6;
  --soft: #fff1f2;
  --card: #ffffff;
  --shadow: 0 20px 55px rgba(190, 18, 60, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 228, 230, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.mini-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mini-nav a:hover,
.mini-nav a.active {
  color: var(--rose);
  background: #fff1f2;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--rose);
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8 45%, #fff7ed);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  filter: blur(20px);
  transform: scale(1.06);
}

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

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.5;
}

.hero::before {
  width: 360px;
  height: 360px;
  right: 8%;
  top: 8%;
  background: rgba(244, 63, 94, 0.18);
}

.hero::after {
  width: 280px;
  height: 280px;
  left: 4%;
  bottom: 8%;
  background: rgba(249, 115, 22, 0.16);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px);
  gap: 56px;
  align-items: center;
  padding: 74px 0 86px;
}

.hero-copy h1 {
  margin: 16px 0 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
  color: #101827;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #4b5563;
  font-size: clamp(17px, 2vw, 22px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-actions,
.section-head,
.detail-labels,
.card-meta,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.28);
}

.btn.ghost {
  color: var(--rose);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(225, 29, 72, 0.16);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.3));
}

.hero-poster img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(225, 29, 72, 0.25);
}

.hero-dots button.is-active {
  background: var(--rose);
}

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

.section.tint {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #fff7f8, #ffffff);
}

.soft-panel {
  width: min(1180px, calc(100% - 32px));
}

.section-head {
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-head.centered {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-content: center;
}

.section-head h2,
.page-hero h1,
.detail-content h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.text-link {
  color: var(--rose);
  font-weight: 900;
}

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

.feature-box,
.category-card,
.category-overview-card a,
.movie-card,
.rank-row,
.side-panel,
.player-card {
  background: var(--card);
  border: 1px solid rgba(255, 228, 230, 0.9);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.08);
}

.feature-box {
  display: block;
  padding: 28px;
  transition: 0.25s ease;
}

.feature-box:hover,
.category-card:hover,
.movie-card:hover,
.rank-row:hover,
.category-overview-card a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.feature-box span,
.card-body p,
.rank-row p,
.detail-content p,
.side-panel dd,
.site-footer p,
.site-footer a {
  color: var(--muted);
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  transition: 0.25s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.68));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  display: block;
  margin-top: 98px;
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.search-box input {
  width: min(360px, 100%);
  height: 48px;
  padding: 0 18px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.search-box input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

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

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

.movie-card {
  overflow: hidden;
  transition: 0.25s ease;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fff1f2, #fce7f3);
}

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

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

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.56);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.45;
}

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

.card-meta {
  gap: 8px;
  margin: 10px 0;
  color: #9f1239;
  font-size: 13px;
  font-weight: 800;
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.tag-row span,
.detail-labels span,
.detail-labels a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #9f1239;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 98px;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.08);
  transition: 0.25s ease;
}

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

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 950;
}

.rank-item img {
  grid-row: span 2;
  width: 58px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-weight: 900;
}

.rank-item small {
  color: var(--muted);
}

.page-hero {
  padding: 84px max(16px, calc((100% - 1180px) / 2));
  text-align: center;
  background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.16), transparent 35%), linear-gradient(135deg, #fff1f2, #fdf2f8 56%, #fff7ed);
}

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
}

.mini-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 960px;
  margin: 28px auto 0;
}

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

.category-overview-card a {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  overflow: hidden;
  padding: 18px;
  transition: 0.25s ease;
}

.category-overview-card img {
  width: 190px;
  height: 150px;
  border-radius: 18px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 10px 0;
  font-size: 28px;
  line-height: 1.1;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 14px;
  transition: 0.25s ease;
}

.rank-row-img img {
  width: 110px;
  height: 146px;
  border-radius: 18px;
  object-fit: cover;
}

.rank-row-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.rank-row-top a {
  font-size: 22px;
  font-weight: 950;
}

.rank-row p {
  margin: 0 0 12px;
}

.page-search-wide {
  margin: 28px auto 0;
}

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 18px;
}

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

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

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

.player-card {
  overflow: hidden;
}

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

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.26), rgba(0, 0, 0, 0.48));
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-left: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
  font-size: 34px;
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin-top: 18px;
}

.detail-content .lead {
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 18px;
}

.detail-content h2 {
  margin: 26px 0 10px;
  font-size: 22px;
}

.detail-content p {
  margin: 0;
}

.detail-tags {
  margin-top: 24px;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 16px;
}

.side-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  object-fit: cover;
}

.side-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  padding: 14px;
  border-radius: 18px;
  background: #fff1f2;
}

.side-meta strong {
  color: var(--rose);
  font-size: 34px;
  line-height: 1;
}

.side-meta span {
  color: #9f1239;
  font-weight: 900;
}

.side-panel dl {
  margin: 0;
}

.side-panel dl div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #ffe4e6;
}

.side-panel dt {
  color: #9f1239;
  font-weight: 900;
}

.side-panel dd {
  margin: 0;
}

.related-section {
  padding-top: 38px;
}

.movie-card.compact .card-body p {
  display: none;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid #ffe4e6;
  background: linear-gradient(180deg, #fff7f8, #ffffff);
}

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

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: var(--muted);
  border-top: 1px solid #ffe4e6;
  font-size: 14px;
}

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

@media (max-width: 1080px) {
  .hero-content,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid #ffe4e6;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero,
  .hero-content {
    min-height: 740px;
  }

  .hero-content {
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 76px;
  }

  .hero-poster img {
    height: 360px;
  }

  .feature-grid,
  .footer-grid,
  .category-overview-grid,
  .category-overview-card a,
  .rank-row {
    grid-template-columns: 1fr;
  }

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

  .section,
  .section.tint {
    padding-top: 52px;
    padding-bottom: 52px;
  }

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

  .search-box,
  .search-box input {
    width: 100%;
  }

  .category-overview-card img,
  .rank-row-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

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

@media (max-width: 480px) {
  .category-grid,
  .movie-grid.large,
  .movie-grid,
  .rank-strip {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 18px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-content h1 {
    font-size: 34px;
  }
}
