:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --ink: #111827;
  --muted: #6b7280;
  --paper: #ffffff;
  --soft: #fdf2f8;
  --line: #f9a8d4;
  --shadow: 0 18px 45px rgba(190, 24, 93, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 42%, #fff7fb 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(244, 114, 182, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.08);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
  position: relative;
  flex: none;
}

.logo-mark::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  border-left: 10px solid #ffffff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  color: #374151;
}

.nav a {
  transition: color 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.filter-input,
.filter-select {
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 10px 16px;
  color: #374151;
  outline: none;
  box-shadow: 0 10px 24px rgba(244, 114, 182, 0.08);
}

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

.header-search button,
.mobile-toggle,
.hero-arrow,
.play-chip {
  border: 0;
  background: transparent;
}

.header-search button,
.mobile-toggle {
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.22);
}

.mobile-toggle {
  display: none;
}

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

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7fb;
  color: #374151;
  font-weight: 700;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.65s ease, visibility 0.65s ease, transform 1.2s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(236, 72, 153, 0.4), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.54) 45%, rgba(0, 0, 0, 0.24));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding: 0 0 70px;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.9);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.2);
}

.meta-pill {
  color: #9f1239;
  background: #ffe4ef;
  box-shadow: none;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 35px rgba(0, 0, 0, 0.42);
}

.hero p {
  margin: 0 0 28px;
  font-size: clamp(17px, 2vw, 21px);
  color: #f3f4f6;
  line-height: 1.75;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.28);
}

.btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-arrows {
  position: absolute;
  right: max(22px, calc((100vw - 1180px) / 2));
  bottom: 74px;
  z-index: 3;
  display: flex;
  gap: 12px;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  font-size: 24px;
}

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

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

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

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

.section {
  padding: 54px 0 0;
}

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

.eyebrow {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
  color: var(--pink-dark);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title,
.page-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc,
.page-desc {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(190, 24, 93, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(190, 24, 93, 0.18);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 42px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 15px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-line {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  display: block;
  padding: 24px;
  border-radius: 28px;
  color: #831843;
  background:
    radial-gradient(circle at 90% 20%, rgba(244, 114, 182, 0.24), transparent 32%),
    linear-gradient(135deg, #ffffff, #fff1f7);
  border: 1px solid rgba(244, 114, 182, 0.24);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 56px rgba(190, 24, 93, 0.16);
}

.category-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.category-card span {
  color: #6b2145;
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(244, 114, 182, 0.18);
  box-shadow: 0 12px 30px rgba(190, 24, 93, 0.08);
}

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

.rank-thumb {
  width: 74px;
  height: 100px;
  border-radius: 16px;
  object-fit: cover;
  background: #111827;
}

.rank-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.rank-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px;
  gap: 12px;
  margin: 26px 0;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(244, 114, 182, 0.2);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 58px 0 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #9d174d;
  font-size: 14px;
  font-weight: 700;
}

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

.player-card,
.info-card,
.text-card {
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(244, 114, 182, 0.18);
  box-shadow: var(--shadow);
}

.movie-player {
  position: relative;
  overflow: hidden;
  background: #050507;
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050507;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #ffffff;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.video-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(236, 72, 153, 0.36), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34));
}

.movie-player.is-playing .video-overlay {
  display: none;
}

.play-button {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 15px 26px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 24px 50px rgba(236, 72, 153, 0.36);
}

.player-caption {
  padding: 22px;
}

.player-caption h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.player-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.side-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #111827;
}

.info-card-body,
.text-card {
  padding: 24px;
}

.info-list {
  display: grid;
  gap: 12px;
  color: #4b5563;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(244, 114, 182, 0.18);
}

.info-list strong {
  color: #111827;
}

.article-stack {
  display: grid;
  gap: 22px;
}

.text-card h2 {
  margin: 0 0 12px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.text-card p {
  margin: 0;
  color: #374151;
  line-height: 2;
}

.site-footer {
  margin-top: 64px;
  padding: 36px 0;
  color: #7f1d4d;
  background: #fff1f7;
  border-top: 1px solid rgba(244, 114, 182, 0.2);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hidden-card {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 24px;
  color: #9f1239;
  text-align: center;
  background: #fff1f7;
  border: 1px solid rgba(244, 114, 182, 0.24);
}

.empty-state.is-visible {
  display: block;
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 580px;
    height: auto;
  }

  .hero-content {
    padding: 82px 0 80px;
    align-items: flex-end;
  }

  .hero-arrows {
    right: 18px;
    bottom: 28px;
  }

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

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

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

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

  .rank-item .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 20px;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 15px;
  }
}
