:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #f97316;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #ffe4e6;
  --card: rgba(255, 255, 255, 0.88);
  --soft: #fff7ed;
  --shadow: 0 20px 50px rgba(244, 63, 94, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(244, 63, 94, 0.12), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(249, 115, 22, 0.14), transparent 30%),
    linear-gradient(180deg, #fff1f2 0%, #fff7ed 34%, #ffffff 100%);
}

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

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

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

.nav-wrap {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.24);
}

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

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

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

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

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 11px;
  background: rgba(244, 63, 94, 0.09);
  color: var(--rose);
  font-size: 22px;
}

.main-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 22px 70px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #ffedd5 100%);
  box-shadow: var(--shadow);
}

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

.hero-carousel::before {
  width: 420px;
  height: 420px;
  right: -130px;
  top: -120px;
  background: rgba(244, 63, 94, 0.22);
}

.hero-carousel::after {
  width: 340px;
  height: 340px;
  left: -110px;
  bottom: -140px;
  background: rgba(249, 115, 22, 0.18);
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 42px;
  padding: 58px;
  opacity: 0;
  transform: translateX(28px) scale(0.98);
  transition: opacity 0.58s ease, transform 0.58s ease;
  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--rose);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: #111827;
}

.hero-copy h1 span,
.hero-copy h2 span {
  display: block;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p.hero-desc {
  max-width: 650px;
  margin: 22px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary,
.rank-action {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.26);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(244, 63, 94, 0.15);
  color: var(--rose);
}

.btn-primary:hover,
.btn-secondary:hover,
.rank-action:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 3 / 4.15;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(249, 115, 22, 0.24));
  box-shadow: 0 28px 60px rgba(31, 41, 55, 0.18);
}

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

.hero-poster::after,
.poster::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 58px;
  bottom: 38px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.22);
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--rose);
  font-weight: 900;
}

.section-head h1,
.section-head h2,
.category-hero h1,
.detail-info h1,
.simple-hero h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.section-head p,
.category-hero p,
.simple-hero p {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  min-width: 0;
}

.poster {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 3 / 4.18;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.14), rgba(249, 115, 22, 0.18));
  box-shadow: 0 16px 34px rgba(31, 41, 55, 0.12);
}

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

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

.poster-badge {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(244, 63, 94, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  position: relative;
  z-index: 3;
  margin: -24px 12px 0;
  min-height: 172px;
  padding: 16px;
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(14px);
}

.card-meta,
.mini-meta,
.rank-meta,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span,
.mini-meta span,
.rank-meta span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.08);
}

.card-body h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.mini-title:hover,
.rank-info a:hover {
  color: var(--rose);
}

.card-body p,
.mini-card p,
.rank-info p,
.detail-info p,
.story-section p {
  color: var(--muted);
  line-height: 1.75;
}

.card-body p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #be123c;
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card,
.simple-hero,
.category-hero,
.detail-panel,
.story-section,
.filter-panel,
.rank-item,
.mini-card {
  border: 1px solid rgba(244, 63, 94, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(16px);
}

.category-card {
  min-height: 156px;
  padding: 22px;
  border-radius: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  margin: 0 0 24px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: var(--soft);
}

.rank-cover img,
.mini-poster img {
  height: 100%;
  object-fit: cover;
}

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

.rank-info p {
  margin: 0 0 10px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
}

.mini-poster {
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 3 / 4;
  background: var(--soft);
}

.mini-title {
  display: block;
  margin: 4px 0 6px;
  font-weight: 900;
  line-height: 1.35;
}

.mini-card p {
  margin: 0 0 8px;
  font-size: 14px;
}

.simple-hero,
.category-hero {
  padding: 36px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 10%, rgba(249, 115, 22, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.92));
}

.breadcrumb {
  margin: 10px 0 20px;
}

.detail-panel {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
  border-radius: 30px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 3 / 4.15;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(249, 115, 22, 0.18));
}

.detail-poster img {
  height: 100%;
  object-fit: cover;
}

.detail-info p {
  font-size: 17px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.24);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.58));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.36);
}

.story-section {
  padding: 28px;
  border-radius: 28px;
}

.story-section h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-section p {
  margin: 0 0 18px;
  font-size: 17px;
}

.site-footer {
  margin-top: 40px;
  padding: 46px 22px 28px;
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.65), rgba(255, 255, 255, 0.96));
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-grid p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.copyright {
  max-width: 1240px;
  margin: 26px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 63, 94, 0.1);
  color: var(--muted);
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1060px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 13px 12px;
  }

  .hero-carousel {
    min-height: 760px;
  }

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

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

  .hero-dots {
    left: 24px;
    bottom: 28px;
  }

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

  .category-grid,
  .mini-grid,
  .footer-grid,
  .detail-panel,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

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

  .rank-action {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .main-wrap {
    padding: 18px 14px 52px;
  }

  .brand-text {
    font-size: 19px;
  }

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

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

  .card-body {
    min-height: auto;
  }

  .simple-hero,
  .category-hero,
  .detail-panel,
  .story-section {
    padding: 22px;
  }
}
