:root {
  --bg: #fff7fb;
  --bg-soft: #fff1f7;
  --card: #ffffff;
  --text: #25202b;
  --muted: #6f6775;
  --line: #f1dce7;
  --pink: #ec4899;
  --rose: #f43f5e;
  --purple: #7c3aed;
  --dark: #120914;
  --shadow: 0 24px 60px rgba(138, 36, 92, 0.14);
  --shadow-soft: 0 16px 35px rgba(138, 36, 92, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff7fb 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(241, 220, 231, 0.84);
}

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

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text);
}

.site-logo::before {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

.site-logo span {
  font-size: 21px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-menu a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #5d5463;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-menu a:hover,
.site-menu a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: #fff0f7;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--pink);
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.22), transparent 30%), radial-gradient(circle at 80% 0%, rgba(124, 58, 237, 0.18), transparent 32%), linear-gradient(135deg, #160d1d, #3a1028 56%, #7a153e);
  color: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.42;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 58px 0 68px;
}

.hero-copy {
  max-width: 690px;
}

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffe4f0;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.section-kicker,
.page-kicker {
  background: #fff0f7;
  color: var(--pink);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, #ffffff, #ffd3e8 52%, #ff9ac8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 0 0 28px;
  color: #ffe6f2;
  font-size: 18px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--pink);
  font-weight: 850;
  box-shadow: 0 14px 35px rgba(14, 6, 20, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(14, 6, 20, 0.24);
}

.btn.primary {
  background: linear-gradient(135deg, var(--pink), var(--rose));
  color: #ffffff;
}

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

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  padding: 8px;
  margin: 34px 0 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-pill input {
  flex: 1;
  min-width: 120px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 14px;
}

.search-pill input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-pill button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: #ffffff;
  color: var(--pink);
  font-weight: 850;
  cursor: pointer;
}

.hero-stage {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  transform: translateX(32px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 420px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
  isolation: isolate;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.6s ease;
}

.hero-slide:hover .hero-poster img {
  transform: scale(1.05);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.76));
}

.hero-caption {
  position: absolute;
  inset: auto 22px 22px;
  z-index: 1;
}

.hero-caption strong {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-caption span {
  color: #ffe0ec;
  font-size: 14px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.hero-tags a,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #ffffff;
}

main {
  min-height: 62vh;
}

.section,
.page-section {
  padding: 58px 0;
}

.section-title,
.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-title h2,
.page-title h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-title p,
.page-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  background: var(--card);
  border: 1px solid rgba(241, 220, 231, 0.86);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(236, 72, 153, 0.38);
}

.movie-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  background: #23101f;
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.08) rotate(1.4deg);
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 850;
  font-size: 12px;
}

.poster-badge {
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.poster-year {
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.movie-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  min-height: 154px;
}

.movie-body strong {
  font-size: 16px;
  line-height: 1.35;
}

.movie-body em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
  font-size: 13px;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 176px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(145deg, #ffffff, #fff2f8);
  border: 1px solid rgba(241, 220, 231, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 28px;
}

.rank-list,
.side-panel,
.info-card,
.filter-panel {
  background: #ffffff;
  border: 1px solid rgba(241, 220, 231, 0.86);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.rank-list {
  padding: 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: 58px 84px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-row + .rank-row {
  border-top: 1px solid #f7e7ef;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  color: #ffffff;
  font-weight: 900;
}

.rank-row img {
  width: 84px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-row h2,
.rank-row h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rank-row small {
  color: var(--pink);
  font-weight: 800;
}

.side-panel {
  padding: 22px;
  position: sticky;
  top: 92px;
}

.mini-card {
  display: grid;
  grid-template-columns: auto 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.mini-card:hover {
  background: #fff3f8;
}

.mini-card img {
  width: 70px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  margin-bottom: 6px;
  font-size: 14px;
}

.mini-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  margin-bottom: 26px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #f0dbe7;
  border-radius: 999px;
  outline: 0;
  padding: 0 16px;
  color: var(--text);
  background: #fffaff;
}

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

.filter-panel .field {
  flex: 1;
}

.detail-hero {
  padding: 36px 0 58px;
  background: radial-gradient(circle at 15% 15%, rgba(236, 72, 153, 0.18), transparent 28%), linear-gradient(180deg, #fff7fb, #ffffff);
}

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

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #050307;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050307;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #050307;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(5, 3, 7, 0.18), rgba(5, 3, 7, 0.68));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.38);
  cursor: pointer;
}

.info-card {
  padding: 28px;
  margin-top: 24px;
}

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

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

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.8vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-line {
  margin: 0 0 18px;
  color: var(--pink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff0f7;
  color: var(--pink);
  font-weight: 800;
  font-size: 13px;
}

.info-card h2,
.side-panel h2,
.side-panel h3 {
  margin: 0 0 16px;
}

.info-card p {
  margin: 0;
  color: #4f4654;
  line-height: 1.9;
}

.info-card p + p {
  margin-top: 18px;
}

.review-box {
  border-left: 4px solid var(--pink);
  background: #fff3f8;
  padding: 18px 20px;
  border-radius: 0 18px 18px 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state {
  display: none;
  padding: 48px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.site-footer {
  padding: 42px 0;
  background: #160d1d;
  color: #ffe6f2;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.footer-inner p {
  margin: 0;
  color: #d7bdcb;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner nav a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

  .hero-inner,
  .detail-layout,
  .rank-layout {
    grid-template-columns: 1fr;
  }

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu a {
    text-align: center;
  }

  .hero-inner {
    min-height: auto;
    padding: 40px 0 54px;
  }

  .hero-stage {
    min-height: 500px;
  }

  .hero-poster {
    min-height: 390px;
  }

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

  .movie-body {
    padding: 13px;
    min-height: 142px;
  }

  .section-title,
  .page-title,
  .footer-inner,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

@media (max-width: 460px) {
  .site-header-inner,
  .container,
  .footer-inner,
  .hero-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .search-pill {
    border-radius: 24px;
    align-items: stretch;
    flex-direction: column;
  }

  .search-pill button {
    width: 100%;
  }

  .play-button {
    width: 72px;
    height: 72px;
  }
}

.category-card .hero-tags a {
  background: #fff0f7;
  color: var(--pink);
}
