:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --orange: #fb923c;
  --paper: #ffffff;
  --soft: #fff1f5;
  --soft-2: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #ffe4e6;
  --shadow: 0 24px 60px rgba(190, 18, 60, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.12), transparent 32rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 38%, #fff1f5 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(190, 18, 60, 0.08);
  border-bottom: 1px solid rgba(255, 228, 230, 0.75);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--rose);
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}

.logo-text {
  font-size: 1.25rem;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  background: #fff1f5;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f5;
  padding: 10px;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    linear-gradient(135deg, rgba(255, 241, 245, 0.98), rgba(255, 247, 237, 0.95)),
    radial-gradient(circle at 80% 10%, rgba(219, 39, 119, 0.22), transparent 26rem);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(225, 29, 72, 0.08) 0 1px, transparent 1px 100%);
  background-size: 34px 34px;
  opacity: 0.45;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 46px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: #111827;
}

.hero-desc,
.page-hero p {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-search,
.page-filter {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(190, 18, 60, 0.12);
  border: 1px solid rgba(255, 228, 230, 0.9);
}

.hero-search input,
.page-filter input {
  flex: 1;
  border: 0;
  outline: 0;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  padding: 0 16px;
}

.hero-search button,
.primary-btn,
.ghost-btn,
.section-link,
.page-filter button {
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.hero-search button,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.24);
}

.hero-search button {
  padding: 12px 24px;
}

.primary-btn,
.ghost-btn {
  padding: 14px 24px;
}

.primary-btn:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.32);
}

.ghost-btn {
  color: var(--rose);
  background: #ffffff;
  border: 1px solid #fecdd3;
}

.ghost-btn:hover {
  background: #fff1f5;
  transform: translateY(-2px);
}

.hero-actions,
.hero-chips,
.filter-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 24px;
}

.hero-chips {
  margin-top: 26px;
}

.chip,
.filter-chip,
.tag-row span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #fecdd3;
  font-weight: 800;
}

.chip,
.filter-chip {
  padding: 9px 14px;
}

.filter-chip {
  cursor: pointer;
}

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

.hero-carousel {
  position: relative;
  height: min(620px, 72vh);
  min-height: 440px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.86));
}

.hero-slide-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  color: #ffffff;
}

.hero-slide-content span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 900;
  font-size: 0.82rem;
}

.hero-slide-content h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.hero-slide-content a {
  display: inline-flex;
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--rose);
  background: #ffffff;
  font-weight: 900;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.46);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  line-height: 1;
}

.hero-arrow.prev {
  left: 16px;
}

.hero-arrow.next {
  right: 16px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: 0.25s ease;
}

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

.feature-strip {
  padding: 28px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.feature-grid article {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff1f5, #fff7ed);
  box-shadow: 0 14px 36px rgba(190, 18, 60, 0.08);
}

.feature-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-grid span {
  color: var(--muted);
  line-height: 1.7;
}

.content-section {
  padding: 64px 0;
}

.soft-bg {
  background: linear-gradient(180deg, #ffffff, #fff1f5);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: -0.04em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rose);
  font-weight: 900;
}

.section-link span {
  transition: transform 0.25s ease;
}

.section-link:hover span {
  transform: translateX(4px);
}

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(190, 18, 60, 0.1);
  border: 1px solid rgba(255, 228, 230, 0.85);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(190, 18, 60, 0.18);
}

.poster-wrap {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fff7ed);
}

.movie-card-wide .poster-wrap {
  aspect-ratio: 16 / 10;
}

.poster-wrap img,
.compact-card img,
.category-covers img,
.detail-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .poster-wrap img,
.compact-card:hover img,
.category-feature:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.36);
  opacity: 0;
  transition: 0.25s ease;
}

.poster-shade span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.32);
}

.movie-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-meta-line,
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.movie-card h2,
.compact-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.38;
}

.movie-card p,
.compact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.card-tags span {
  padding: 6px 9px;
  font-size: 0.78rem;
  background: #fff1f5;
}

.card-foot {
  font-weight: 800;
  color: #9f1239;
}

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

.category-card,
.category-feature {
  border-radius: 26px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(255, 228, 230, 0.86);
  box-shadow: 0 16px 42px rgba(190, 18, 60, 0.1);
  transition: 0.25s ease;
}

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

.category-card span,
.category-feature span {
  display: block;
  color: var(--rose);
  font-weight: 900;
  margin-bottom: 10px;
}

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

.category-feature {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-covers img {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #fff1f5;
}

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

.ranking-panel,
.text-panel,
.detail-side,
.player-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 228, 230, 0.86);
}

.ranking-panel {
  padding: 24px;
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.ranking-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.ranking-head p {
  margin: 0 0 6px;
  color: var(--rose);
  font-weight: 900;
}

.ranking-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.ranking-head a {
  color: var(--rose);
  font-weight: 900;
  white-space: nowrap;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 36px 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7fb;
  border: 1px solid rgba(255, 228, 230, 0.82);
}

.compact-card img {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #fff1f5;
}

.compact-card h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.96rem;
}

.compact-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 0.82rem;
}

.compact-card span:not(.list-rank) {
  color: var(--muted);
  font-size: 0.78rem;
}

.list-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 900;
}

.list-rank.soft {
  color: var(--rose);
  background: #ffe4e6;
}

.page-hero,
.detail-hero {
  padding: 58px 0;
  background: linear-gradient(135deg, #fff1f5, #fff7ed);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  text-align: center;
}

.page-hero .breadcrumbs {
  justify-content: center;
}

.wide-filter {
  width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.filter-row {
  justify-content: center;
  margin-top: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.player-card {
  overflow: hidden;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.26), rgba(3, 7, 18, 0.64));
  font-weight: 900;
  letter-spacing: 0.08em;
}

.play-overlay[hidden] {
  display: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  font-size: 1.6rem;
}

.player-info {
  padding: 28px;
}

.player-info h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -0.04em;
}

.player-info p {
  margin: 16px 0 20px;
  color: var(--muted);
  line-height: 1.82;
  font-size: 1.05rem;
}

.tag-row span {
  padding: 8px 12px;
  font-size: 0.84rem;
  background: #fff1f5;
}

.detail-side {
  padding: 22px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  background: #fff1f5;
}

.score-box {
  margin: 18px 0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff1f5, #fff7ed);
}

.score-box span {
  color: var(--muted);
  font-weight: 800;
}

.score-box strong {
  color: var(--rose);
  font-size: 2rem;
}

.meta-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

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

.meta-grid span {
  color: var(--muted);
}

.meta-grid strong {
  text-align: right;
}

.full {
  width: 100%;
}

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

.text-panel {
  padding: 34px;
}

.text-panel h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
}

.text-panel h2:not(:first-child) {
  margin-top: 32px;
}

.text-panel p {
  margin: 0;
  color: #374151;
  line-height: 2;
  font-size: 1.03rem;
}

.site-footer {
  background: linear-gradient(180deg, #fff1f5, #ffffff);
  border-top: 1px solid var(--line);
  padding: 48px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 38px;
}

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

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 520px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.site-footer a:not(.site-logo) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

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

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

.movie-card[hidden],
.compact-card[hidden] {
  display: none;
}

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

  .hero-carousel {
    width: min(620px, 100%);
    margin: 0 auto;
  }

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

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    text-align: center;
  }

  .hero-section,
  .page-hero,
  .detail-hero {
    padding: 42px 0;
  }

  .hero-search,
  .page-filter {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search input,
  .page-filter input {
    min-height: 44px;
  }

  .hero-carousel {
    min-height: 380px;
    height: 520px;
    border-radius: 26px;
  }

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

  .category-feature {
    grid-template-columns: 1fr;
  }

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

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

  .player-info,
  .text-panel {
    padding: 22px;
  }
}

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

  .logo-text {
    font-size: 1.05rem;
  }

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

  .movie-grid,
  .search-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 32px 82px minmax(0, 1fr);
  }

  .hero-carousel {
    height: 460px;
    min-height: 340px;
  }

  .hero-slide-content {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }
}
