
:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #f97316;
  --yellow: #f59e0b;
  --dark: #0f172a;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.28);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  transition: 0.2s ease;
}

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

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

main {
  min-height: 70vh;
}

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

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 96px max(24px, calc((100vw - 1180px) / 2)) 84px;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: saturate(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.32), transparent 34%), linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.92));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--pink);
  background: #fdf2f8;
  font-weight: 800;
  font-size: 14px;
}

.hero-content .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 22px 0 18px;
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-tags {
  margin: 24px 0 28px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.search-box button,
.inline-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-btn,
.search-box button,
.inline-filter button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 15px 30px rgba(236, 72, 153, 0.28);
}

.primary-btn:hover,
.search-box button:hover,
.inline-filter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(236, 72, 153, 0.34);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero-poster {
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 85px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  background: linear-gradient(135deg, #fdf2f8, #ffedd5);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel h2,
.page-hero h1,
.section-heading h2,
.spotlight-block h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.search-panel p,
.page-hero p,
.spotlight-block p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.search-box,
.inline-filter {
  display: flex;
  gap: 10px;
  padding: 7px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

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

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 26px 4px 4px;
}

.category-pill {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  color: #be185d;
  background: #fdf2f8;
  font-weight: 800;
  transition: 0.2s ease;
}

.category-pill:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  transform: translateY(-2px);
}

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

.section-heading h2 {
  margin-top: 10px;
}

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

.section-heading.compact {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

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

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.82));
}

.score {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.95);
  font-weight: 900;
  font-size: 13px;
}

.poster-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.card-body {
  padding: 18px;
}

.meta-row {
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.meta-row span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: #cbd5e1;
}

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

.card-body h3 a:hover {
  color: var(--pink);
}

.card-body p {
  min-height: 42px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tag-row span {
  color: #be185d;
  background: #fdf2f8;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 26px;
}

.ranking-block,
.spotlight-block,
.page-hero,
.detail-text {
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  padding: 30px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  transition: 0.2s ease;
}

.rank-item:hover {
  background: #fdf2f8;
  transform: translateX(4px);
}

.rank-no {
  color: var(--pink);
  font-size: 21px;
  font-weight: 950;
}

.rank-item img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #ffe4e6;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--yellow);
  font-weight: 950;
}

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

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

.category-cards.small {
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.category-card,
.category-cards.small a {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #f97316);
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.18);
  transition: 0.2s ease;
}

.category-card:nth-child(3n+2),
.category-cards.small a:nth-child(3n+2) {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.category-card:nth-child(3n),
.category-cards.small a:nth-child(3n) {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

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

.category-card span,
.category-cards.small a strong {
  font-size: 22px;
  font-weight: 950;
}

.category-card strong,
.category-cards.small a span {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
  line-height: 1.7;
}

.page-hero {
  margin-top: 34px;
  background: linear-gradient(135deg, #ffffff, #fff7ed 55%, #fdf2f8);
}

.page-hero h1 {
  margin-top: 16px;
}

.inline-filter {
  max-width: 680px;
  margin-top: 22px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 28px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.empty-state.show {
  display: block;
}

.detail-hero {
  padding-top: 34px;
}

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

.breadcrumb a:hover {
  color: var(--pink);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 26px;
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.3);
  aspect-ratio: 16 / 9;
}

.player-card video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}

.player-cover {
  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 at center, rgba(236, 72, 153, 0.36), rgba(15, 23, 42, 0.82));
  cursor: pointer;
}

.player-card.is-playing .player-cover {
  display: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--pink);
  background: #ffffff;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.28);
  font-size: 28px;
}

.detail-copy {
  border-radius: 30px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.detail-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.lead {
  color: #334155;
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  color: #be185d;
  background: #fdf2f8;
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

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

.detail-text p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 40px;
  background: #111827;
  color: #ffffff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 680px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 980px) {
  .hero-slide,
  .search-panel,
  .split-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    gap: 28px;
    padding-top: 82px;
  }

  .hero-poster {
    width: min(320px, 70vw);
    margin: 0 auto;
  }

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

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

  .nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .hero {
    min-height: 780px;
  }

  .hero-slide {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .search-box input,
  .inline-filter input {
    min-height: 44px;
  }

  .movie-grid,
  .category-cards,
  .ranking-list.large {
    grid-template-columns: 1fr;
  }

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

  .rank-score {
    grid-column: 3;
  }

  .detail-copy,
  .ranking-block,
  .spotlight-block,
  .page-hero,
  .detail-text {
    padding: 22px;
    border-radius: 24px;
  }
}
