:root {
  --pink: #ec4899;
  --rose: #fb7185;
  --orange: #fb923c;
  --amber: #fbbf24;
  --ink: #24111f;
  --muted: #715c67;
  --soft: #fff1f7;
  --line: rgba(236, 72, 153, 0.18);
  --shadow: 0 24px 60px rgba(128, 32, 90, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 228, 240, 0.9), transparent 34rem),
    linear-gradient(135deg, #fff7fb 0%, #fff1f2 46%, #fff7ed 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 14px 36px rgba(236, 72, 153, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: scale(1.04);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--pink);
  background: #fff;
  box-shadow: inset 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  opacity: 0.94;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  opacity: 1;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.header-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 8px 8px 8px 14px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.84);
}

.header-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  color: var(--pink);
  background: #fff;
  padding: 8px 16px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

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

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

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

.hero-content {
  color: #fff;
  max-width: 720px;
  padding: 80px 0 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.detail-copy p {
  max-width: 780px;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.hero-meta span,
.detail-meta span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-tags,
.detail-tags,
.filter-chips,
.side-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags a,
.filter-chips button,
.side-chips a {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.32);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.cta-panel a:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 32px;
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 32px;
  border-radius: 999px;
  background: #fff;
}

.section-block {
  padding: 58px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading span {
  font-size: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.section-heading a {
  margin-left: auto;
  color: var(--pink);
  font-weight: 900;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 6px;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.32), transparent);
}

.section-heading a + ::after,
.section-heading.slim::after {
  display: none;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 74px rgba(128, 32, 90, 0.23);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(135deg, #f9a8d4, #fb7185 48%, #fb923c);
}

.card-media img,
.horizontal-cover img,
.ranking-thumb img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .card-media img,
.horizontal-card:hover .horizontal-cover img {
  transform: scale(1.08);
}

.card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 58%);
}

.card-badge,
.card-duration {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: var(--pink);
}

.card-duration {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.66);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-body strong {
  overflow: hidden;
  min-height: 44px;
  font-size: 18px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-line {
  min-height: 44px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #8a6d79;
  font-size: 13px;
}

.card-tags {
  color: var(--pink);
  font-weight: 700;
}

.movie-card-compact .card-body strong {
  min-height: 40px;
  font-size: 16px;
}

.movie-card-compact .card-line,
.movie-card-compact .card-tags {
  display: none;
}

.soft-panel {
  width: min(1180px, calc(100% - 32px));
  border-radius: 34px;
  padding: 42px;
  background: linear-gradient(120deg, rgba(252, 231, 243, 0.92), rgba(255, 237, 213, 0.88));
  box-shadow: var(--shadow);
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
}

.feature-card,
.ranking-feature {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
  border-radius: 26px;
  padding: 32px;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.feature-card span,
.ranking-feature span {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--pink);
  font-weight: 900;
}

.feature-card strong,
.ranking-feature h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.feature-card em,
.ranking-feature em {
  font-style: normal;
  font-weight: 800;
}

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

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

.category-tile,
.category-overview-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 150px;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
}

.category-tile strong,
.category-overview-card span {
  font-size: 26px;
  font-weight: 900;
}

.category-overview-card {
  min-height: 210px;
}

.category-overview-card strong,
.category-overview-card em {
  overflow: hidden;
  font-style: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.category-overview-card strong {
  margin-top: 10px;
  -webkit-line-clamp: 1;
}

.category-overview-card em {
  margin-top: 8px;
  opacity: 0.9;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.two-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
}

.rank-list,
.side-list,
.ranking-table {
  display: grid;
  gap: 14px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(128, 32, 90, 0.1);
}

.rank-list b,
.ranking-row b {
  color: var(--pink);
  font-size: 22px;
}

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

.rank-list em,
.ranking-score {
  color: #d97706;
  font-style: normal;
  font-weight: 900;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 16px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(128, 32, 90, 0.1);
}

.horizontal-cover {
  position: relative;
  display: block;
  min-height: 94px;
  background: linear-gradient(135deg, #f9a8d4, #fb923c);
}

.horizontal-cover span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.horizontal-card:hover .horizontal-cover span {
  opacity: 1;
}

.horizontal-copy {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px 14px 12px 0;
}

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

.horizontal-copy em,
.horizontal-copy small {
  color: var(--muted);
  font-style: normal;
}

.cta-panel {
  margin-bottom: 64px;
  padding: 56px;
  border-radius: 30px;
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
}

.cta-panel p {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.cta-panel div {
  justify-content: center;
}

.cta-panel a {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.page-hero {
  color: #fff;
  padding: 72px 0;
  background:
    linear-gradient(90deg, rgba(236, 72, 153, 0.94), rgba(251, 113, 133, 0.88), rgba(251, 146, 60, 0.9)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 22rem);
  background-size: cover;
  background-position: center;
}

.page-hero-sub {
  min-height: 360px;
  display: flex;
  align-items: center;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.search-panel {
  display: flex;
  gap: 12px;
  max-width: 680px;
  margin: 24px 0 16px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--ink);
  background: #fff;
}

.filter-chips {
  margin-top: 12px;
}

.filter-chips button {
  cursor: pointer;
}

.filter-chips button.is-active {
  color: var(--pink);
  background: #fff;
}

.empty-state {
  padding: 60px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  box-shadow: var(--shadow);
}

.ranking-page {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 28px;
  align-items: start;
}

.ranking-feature {
  position: sticky;
  top: 92px;
}

.ranking-feature p {
  line-height: 1.7;
}

.ranking-row {
  display: grid;
  grid-template-columns: 56px 86px 1fr auto;
  align-items: center;
  gap: 16px;
  border-radius: 22px;
  padding: 12px 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(128, 32, 90, 0.1);
  transition: transform 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(6px);
}

.ranking-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: linear-gradient(135deg, #f9a8d4, #fb923c);
}

.ranking-main strong,
.ranking-main em {
  display: block;
}

.ranking-main em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
}

.detail-main {
  background: linear-gradient(135deg, #fff7fb 0%, #fff1f2 52%, #fff7ed 100%);
}

.detail-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background: linear-gradient(135deg, #f9a8d4, #fb923c);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.detail-copy h1 {
  max-width: 900px;
}

.detail-tags a {
  background: rgba(255, 255, 255, 0.18);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 54px 0 0;
}

.detail-content {
  display: grid;
  gap: 24px;
}

.player-panel,
.content-card,
.side-panel {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.player-panel h2,
.content-card h2,
.side-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.26);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.32), rgba(0, 0, 0, 0.44));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.42);
  font-size: 34px;
  transform: translateX(3px);
}

.video-player.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.content-card p {
  color: #4f3f48;
  font-size: 17px;
  line-height: 1.85;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.side-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.side-panel dd {
  margin: 0;
  color: var(--ink);
}

.side-chips a {
  color: var(--pink);
  background: #fff1f7;
}

.site-footer {
  margin-top: 40px;
  color: #fff;
  background: linear-gradient(90deg, #db2777, #e11d48, #ea580c);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

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

.footer-grid p,
.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-shell {
    min-height: 560px;
  }

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

  .feature-layout,
  .two-columns,
  .ranking-page,
  .detail-layout,
  .detail-hero-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-feature {
    position: static;
  }

  .detail-poster {
    width: min(280px, 70vw);
  }
}

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

  .brand {
    font-size: 20px;
  }

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

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .soft-panel,
  .cta-panel {
    width: min(100% - 22px, 1180px);
    padding: 26px;
    border-radius: 24px;
  }

  .search-panel {
    border-radius: 24px;
    flex-direction: column;
  }

  .ranking-row {
    grid-template-columns: 44px 1fr;
  }

  .ranking-thumb,
  .ranking-score {
    display: none;
  }

  .horizontal-card {
    grid-template-columns: 110px 1fr;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-inner {
    padding: 42px 0;
  }
}
