:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --slate: #0f172a;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.16);
  --panel: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 70px rgba(99, 102, 241, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.12), transparent 30rem), radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34rem), #fff7fb;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 35px rgba(236, 72, 153, 0.08);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  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-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink-dark), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-size: 15px;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 14px 26px rgba(236, 72, 153, 0.28);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #4b5563;
  transition: 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.09);
}

.menu-button {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(236, 72, 153, 0.1);
  color: var(--pink-dark);
}

main {
  min-height: 70vh;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 34px;
  border-radius: 34px;
  overflow: hidden;
  background: var(--slate);
  box-shadow: var(--shadow);
}

.hero-slider {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 68px;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transform: scale(1.02);
}

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

.hero-content {
  width: min(650px, 100%);
  color: white;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1,
.detail-main h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-content p,
.page-hero p,
.detail-main .lead {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.hero-tags,
.movie-meta,
.tag-cloud,
.category-tabs,
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.movie-meta span,
.tag-cloud span,
.category-tabs a,
.filter-buttons button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.tile-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.32);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(236, 72, 153, 0.42);
}

.ghost-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 28px;
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr auto;
  gap: 16px;
  align-items: center;
  z-index: 3;
}

.hero-search form {
  display: flex;
  overflow: hidden;
  min-height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
}

.hero-search input,
.search-board input {
  width: 100%;
  border: 0;
  outline: none;
  padding: 0 18px;
  background: transparent;
  color: #111827;
}

.hero-search button {
  border: 0;
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
}

.hero-category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-category-strip a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button,
.hero-dot {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  margin: 0 3px;
  opacity: 0.62;
}

.hero-dot.is-active {
  width: 26px;
  opacity: 1;
  background: white;
}

.section-wrap,
.split-section,
.detail-content,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 42px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.06em;
  color: #111827;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-head > a,
.text-link {
  color: var(--pink-dark);
  font-weight: 900;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(99, 102, 241, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 46px rgba(236, 72, 153, 0.2);
}

.movie-poster,
.ranking-cover,
.detail-poster,
.mini-movie {
  position: relative;
  display: block;
  background-size: cover;
  background-position: center;
}

.movie-poster {
  aspect-ratio: 3 / 4.05;
}

.movie-score {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(236, 72, 153, 0.88);
  font-size: 12px;
  font-weight: 900;
}

.movie-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.movie-info {
  padding: 15px;
}

.movie-info h3 {
  min-height: 44px;
  margin: 0;
  font-size: 16px;
  line-height: 1.38;
  color: #111827;
}

.movie-info p {
  min-height: 56px;
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.movie-meta span,
.category-tabs a,
.filter-buttons button,
.tag-cloud span {
  color: #9d174d;
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.15);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.feature-block,
.rank-block,
.search-board,
.story-card {
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.feature-block {
  padding: 24px;
}

.rank-block {
  position: sticky;
  top: 92px;
  padding: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  transition: 0.2s ease;
}

.rank-row:hover {
  background: rgba(236, 72, 153, 0.08);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

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

.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 34px;
  padding: clamp(34px, 6vw, 70px);
  border-radius: 34px;
  background-size: cover;
  background-position: center;
  color: white;
  box-shadow: var(--shadow);
}

.page-hero.soft {
  color: #111827;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(253, 242, 248, 0.88)), radial-gradient(circle at top right, rgba(139, 92, 246, 0.2), transparent 34rem);
}

.page-hero.soft p,
.page-hero.soft .eyebrow {
  color: #9d174d;
}

.category-grid {
  display: grid;
  gap: 22px;
}

.category-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 24px;
  min-height: 270px;
  padding: 28px;
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  color: white;
  box-shadow: var(--shadow);
}

.category-tile h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: -0.07em;
}

.category-tile p {
  max-width: 620px;
  margin: 14px 0 22px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.tile-link {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.mini-movie {
  min-height: 120px;
  padding: 16px;
  border-radius: 20px;
  overflow: hidden;
  color: white;
}

.mini-movie span,
.mini-movie em {
  position: relative;
  z-index: 1;
  display: block;
}

.mini-movie span {
  font-weight: 900;
}

.mini-movie em {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.82;
}

.category-tabs {
  margin-bottom: 24px;
}

.category-tabs a.active,
.filter-buttons button.active {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 16px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.1);
}

.ranking-cover {
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
}

.ranking-cover span {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
}

.ranking-card h2 {
  margin: 6px 0 12px;
  color: #111827;
}

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

.search-board {
  position: sticky;
  top: 86px;
  z-index: 10;
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
}

.search-board input {
  min-height: 54px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 18px;
  background: white;
}

.filter-buttons button {
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: white;
}

.detail-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}

.detail-poster {
  min-height: 360px;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.detail-stats span {
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

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

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
  aspect-ratio: 16 / 9;
}

.movie-player video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player video {
  object-fit: contain;
  background: #020617;
}

.player-cover {
  z-index: 2;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  color: white;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.player-cover[hidden] {
  display: none;
}

.play-ring {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.94);
  font-size: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.player-cover strong {
  font-size: clamp(24px, 5vw, 44px);
  letter-spacing: -0.05em;
}

.player-cover em {
  font-style: normal;
  font-weight: 900;
  opacity: 0.86;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  color: white;
  font-weight: 800;
  pointer-events: none;
}

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

.story-card {
  padding: 24px;
}

.story-card h2 {
  margin: 0 0 14px;
  color: #111827;
}

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

.info-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.site-footer {
  margin-top: 70px;
  padding: 48px 0 26px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

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

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

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

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

.footer-links a {
  color: #6b7280;
  font-weight: 700;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
  color: #9ca3af;
  font-size: 13px;
}

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

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-controls {
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(236, 72, 153, 0.14);
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    text-align: center;
  }

  .hero-slider {
    min-height: 680px;
  }

  .hero-slide {
    align-items: flex-start;
    padding: 42px 24px 220px;
  }

  .split-section,
  .detail-content,
  .footer-grid,
  .detail-grid,
  .category-tile,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .rank-block {
    position: static;
  }

  .detail-poster {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-shell,
  .page-hero,
  .detail-hero {
    width: calc(100% - 20px);
    margin-top: 14px;
    border-radius: 24px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-main h1 {
    font-size: 38px;
  }

  .hero-content p,
  .page-hero p,
  .detail-main .lead {
    font-size: 15px;
  }

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

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

  .movie-info p {
    font-size: 12px;
  }

  .section-wrap,
  .split-section,
  .detail-content,
  .player-section {
    width: calc(100% - 20px);
  }

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

  .feature-block,
  .rank-block,
  .story-card {
    padding: 16px;
    border-radius: 22px;
  }

  .mini-stack {
    grid-template-columns: 1fr;
  }

  .ranking-cover {
    min-height: 300px;
  }
}
