:root {
  --bg: #fff7fb;
  --panel: #ffffff;
  --panel-soft: #fff1f7;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.16);
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --blue: #60a5fa;
  --shadow: 0 22px 60px rgba(190, 24, 93, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(244, 114, 182, 0.2), transparent 34rem), linear-gradient(180deg, #fff7fb 0%, #ffffff 48%, #f8fbff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(244, 114, 182, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.24);
}

.brand-text {
  font-size: 23px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 700;
}

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

.site-nav a:hover,
.mobile-nav a:hover {
  color: var(--pink);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff0f7;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--pink-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 10px 6px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-nav.is-open {
  display: block;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.4s ease;
}

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

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-summary {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  color: #be185d;
  background: rgba(252, 231, 243, 0.92);
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 16px 34px rgba(219, 39, 119, 0.3);
}

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

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.section-heading p,
.page-hero p,
.detail-content p,
.category-overview-card p,
.movie-card p,
.rank-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.center-heading {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  min-height: 40px;
  color: var(--pink-dark);
  background: #fff0f7;
}

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

.category-card {
  min-height: 168px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(253, 242, 248, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(190, 24, 93, 0.18);
}

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

.category-card strong {
  display: block;
  margin-top: 14px;
  color: #111827;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-card em {
  display: block;
  margin-top: 12px;
  color: #6b7280;
  font-style: normal;
  line-height: 1.55;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 44px rgba(139, 92, 246, 0.08);
}

.search-box {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  min-width: 240px;
  padding: 0 16px;
  background: #fff7fb;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 999px;
}

.search-box span {
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  height: 44px;
  color: #111827;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  height: 40px;
  padding: 0 16px;
  color: #be185d;
  background: #fff0f7;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.filter-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.movie-card:hover img,
.rank-card:hover img {
  transform: scale(1.05);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.68);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.card-title,
.rank-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.card-title:hover,
.rank-title:hover {
  color: var(--pink-dark);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 10px 0;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 800;
}

.movie-card p,
.rank-card p {
  margin: 0 0 14px;
  font-size: 14px;
}

.no-result {
  padding: 24px;
  color: #be185d;
  background: #fff0f7;
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 24px;
  font-weight: 800;
}

.ranking-panel {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.86), rgba(237, 233, 254, 0.86), rgba(219, 234, 254, 0.86));
}

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

.compact-rank {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.rank-card {
  display: grid;
  grid-template-columns: 52px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 44px rgba(139, 92, 246, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 16px;
  font-size: 20px;
  font-weight: 950;
}

.rank-poster {
  display: block;
  height: 124px;
  overflow: hidden;
  background: #fce7f3;
  border-radius: 18px;
}

.center-actions {
  justify-content: center;
}

.page-hero {
  position: relative;
  display: flex;
  min-height: 360px;
  align-items: center;
  padding: 80px max(16px, calc((100vw - 1180px) / 2));
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #8b5cf6 52%, #ec4899);
  background-position: center;
  background-size: cover;
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.page-hero div {
  width: min(820px, 100%);
}

.slim-hero,
.ranking-hero {
  min-height: 320px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
  display: flex;
  min-height: 190px;
  align-items: end;
  padding: 18px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  border-radius: 22px;
  font-size: 26px;
  font-weight: 950;
}

.category-overview-card h2 {
  margin: 8px 0;
  color: #111827;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sample-links a,
.side-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: #be185d;
  background: #fff0f7;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--pink-dark);
  font-weight: 800;
}

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

.player-section,
.detail-content,
.info-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.player-section {
  overflow: hidden;
  padding: 12px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.26), #111827 62%);
  border-radius: 22px;
}

.movie-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.68), rgba(219, 39, 119, 0.36));
  border: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.movie-player.is-ready .player-cover,
.movie-player.is-playing .player-cover {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-symbol {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: var(--pink-dark);
  background: #ffffff;
  border-radius: 999px;
  font-size: 32px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.detail-content {
  margin-top: 24px;
  padding: 32px;
}

.detail-content h1 {
  margin-bottom: 18px;
}

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

.detail-tags {
  margin: 22px 0 28px;
}

.detail-content h2,
.info-card h2,
.site-footer h2 {
  margin: 28px 0 12px;
  color: #111827;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.info-card {
  padding: 24px;
}

.info-card h2 {
  margin-top: 0;
}

.info-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
}

.info-card dt {
  color: #9d174d;
  font-weight: 900;
}

.info-card dd {
  margin: 0;
  color: #4b5563;
}

.soft-card {
  background: linear-gradient(135deg, #fff7fb, #f5f3ff);
}

.soft-card .side-link {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.related-section {
  padding-top: 42px;
}

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

.site-footer {
  margin-top: 60px;
  padding: 56px max(16px, calc((100vw - 1180px) / 2)) 28px;
  background: linear-gradient(135deg, #fff0f7, #f5f3ff, #eff6ff);
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  margin-bottom: 14px;
}

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

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

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

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  color: #6b7280;
  border-top: 1px solid rgba(236, 72, 153, 0.16);
  text-align: center;
}

[data-card].is-hidden {
  display: none;
}

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 640px;
  }

  .toolbar,
  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .rank-grid,
  .category-overview-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 18px;
  }

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

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

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

  .rank-card {
    grid-template-columns: 42px 74px 1fr;
    gap: 12px;
  }

  .rank-poster {
    height: 104px;
  }

  .detail-content,
  .info-card {
    padding: 22px;
  }
}
