:root {
  --bg: #fff7fb;
  --paper: #ffffff;
  --text: #20202a;
  --muted: #6f6c7a;
  --line: #f6cddd;
  --pink: #ec4899;
  --red: #ef4444;
  --orange: #fb923c;
  --shadow: 0 18px 50px rgba(220, 38, 127, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 251, 0.92);
  border-bottom: 1px solid rgba(246, 205, 221, 0.85);
  backdrop-filter: blur(14px);
}

.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--pink), var(--red), var(--orange));
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.28);
}

.logo-text,
.footer-logo {
  font-size: 20px;
  background: linear-gradient(90deg, var(--pink), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #4b4658;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a:hover,
.footer-grid a:hover {
  color: var(--pink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.14);
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
}

.mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
}

.category-strip {
  border-top: 1px solid rgba(246, 205, 221, 0.55);
}

.strip-scroll {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  overflow-x: auto;
}

.nav-pill {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: #7c344e;
  background: #ffffff;
  border: 1px solid rgba(246, 205, 221, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.nav-pill:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--red));
  border-color: transparent;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #140711;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.04);
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(236, 72, 153, 0.34), transparent 34%),
    linear-gradient(90deg, rgba(12, 4, 12, 0.94) 0%, rgba(40, 8, 30, 0.76) 47%, rgba(236, 72, 153, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 56px;
  padding: 72px 0;
}

.hero-copy {
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff7fb;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.eyebrow {
  color: var(--pink);
  background: #fff0f7;
  border-color: #ffd4e7;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #7c344e;
  background: #fff0f7;
  font-size: 12px;
  font-weight: 700;
}

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

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

.primary-button,
.ghost-button,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--red));
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.26);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.hero-poster,
.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fce7f3, #fee2e2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.hero-poster span,
.detail-cover span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

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

.search-panel,
.filter-panel,
.section-block {
  margin-top: 42px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  transform: translateY(-70px);
  margin-bottom: -44px;
}

.search-panel h2,
.section-title-row h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.home-search,
.filter-row {
  display: flex;
  gap: 12px;
}

.home-search input,
.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #ffd4e7;
  border-radius: 999px;
  background: #ffffff;
  outline: none;
}

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

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

.section-more {
  color: var(--pink);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(246, 205, 221, 0.82);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

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

.poster::after,
.rank-poster::after,
.hero-poster::after,
.detail-cover::after {
  content: attr(aria-label);
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  color: #7c344e;
  text-align: center;
  font-weight: 800;
  background: linear-gradient(135deg, #fce7f3, #fee2e2, #ffedd5);
}

.poster-fallback::after {
  display: grid;
}

.play-badge,
.year-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  left: auto;
  right: 12px;
  background: rgba(0, 0, 0, 0.48);
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-card h3 a:hover {
  color: var(--pink);
}

.movie-desc {
  min-height: 48px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #81798a;
  font-size: 12px;
}

.meta-row span,
.detail-stats span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7fb;
}

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

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

.category-card {
  min-height: 160px;
  padding: 20px;
  border: 1px solid rgba(246, 205, 221, 0.86);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #fff0f7);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.category-card span {
  color: var(--pink);
  font-weight: 800;
  font-size: 13px;
}

.category-card h3 {
  margin: 18px 0 8px;
  font-size: 21px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.hot-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 24px;
}

.hot-left,
.hot-right,
.filter-panel,
.content-card {
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

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

.rank-line {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7fb;
}

.rank-line:hover {
  background: #ffeaf4;
}

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

.rank-title {
  font-weight: 800;
}

.rank-views {
  color: var(--muted);
  font-size: 13px;
}

.hot-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #fff0f7, #fff7ed);
}

.hot-right h3 {
  margin: 0 0 12px;
  font-size: 26px;
}

.hot-right p {
  color: var(--muted);
  line-height: 1.8;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #43132b, #8b174c, #f97316);
}

.page-hero .container {
  padding: 78px 0;
}

.compact-hero .container {
  padding: 54px 0;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.84);
}

.filter-panel {
  margin-bottom: 40px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 170px 170px 170px;
  margin-bottom: 16px;
}

.result-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(246, 205, 221, 0.82);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
}

.rank-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #fde7f3, #ffe5d7);
}

.rank-poster span {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink), var(--red));
  font-weight: 900;
}

.rank-card h3 {
  margin: 4px 0 8px;
}

.rank-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-hero {
  min-height: 520px;
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: center;
  padding: 72px 0;
}

.detail-copy h1 {
  color: #ffffff;
}

.detail-one-line {
  color: rgba(255, 255, 255, 0.84);
}

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

.player-section {
  margin-top: 40px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #08040a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #08040a;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 32%),
    rgba(0, 0, 0, 0.45);
  font-size: 18px;
  font-weight: 900;
}

.video-play span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--red));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.36);
}

.video-frame.is-playing .video-play {
  display: none;
}

.video-tip {
  position: absolute;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #51495b;
  line-height: 1.9;
}

.info-table {
  grid-column: 1 / -1;
}

.info-table dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-table div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7fb;
}

.info-table dt {
  color: var(--muted);
}

.info-table dd {
  margin: 0;
  font-weight: 800;
}

.site-footer {
  margin-top: 70px;
  padding: 42px 0 24px;
  background: linear-gradient(180deg, #fff7fb, #ffffff);
  border-top: 1px solid rgba(246, 205, 221, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: var(--muted);
  line-height: 1.8;
}

.copyright {
  margin-top: 28px;
  color: #9b8da1;
  text-align: center;
  font-size: 13px;
}

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

  .menu-button {
    display: block;
  }

  .hero-content,
  .detail-layout,
  .search-panel,
  .hot-layout,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-cover {
    max-width: 280px;
    margin: 0 auto;
  }

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

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

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

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

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

  .hero-content {
    gap: 26px;
    padding: 44px 0 76px;
  }

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

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .home-search,
  .filter-row,
  .section-title-row {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .movie-info h3 {
    font-size: 15px;
  }

  .movie-desc {
    display: none;
  }

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

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

  .detail-layout {
    padding: 42px 0;
  }
}
