* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7fb;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(109, 40, 217, 0.14);
  --purple: #7c3aed;
  --pink: #ec4899;
  --blue: #2563eb;
  --gold: #f59e0b;
  --shadow: 0 18px 45px rgba(76, 29, 149, 0.13);
  --soft-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(236, 72, 153, 0.12), transparent 32rem),
    radial-gradient(circle at 82% 12%, rgba(124, 58, 237, 0.16), transparent 34rem),
    linear-gradient(180deg, #fff7fb 0%, #f8f5ff 42%, #ffffff 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
  backdrop-filter: blur(18px);
}

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

.brand,
.desktop-nav,
.footer-links,
.hero-actions,
.card-meta,
.tag-row,
.hero-meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.26);
}

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

.desktop-nav {
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.24);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f3e8ff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--purple);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.6s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0.62) 48%, rgba(3, 7, 18, 0.18) 100%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.08) 0%, rgba(17, 24, 39, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
  color: white;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.hero h2 + p,
.hero h1 + h2 {
  margin-top: -8px;
}

.hero h1 + h2 {
  font-size: clamp(24px, 3.2vw, 42px);
  color: #fce7f3;
}

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

.hero-meta {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-pill,
.tag-row span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.section-more,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-button,
.play-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border: 0;
  box-shadow: 0 18px 32px rgba(236, 72, 153, 0.30);
  cursor: pointer;
}

.primary-button:hover,
.play-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 42px rgba(124, 58, 237, 0.34);
}

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

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.hero-dots button.active {
  width: 58px;
  background: linear-gradient(90deg, #facc15, #ec4899);
}

.content-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.page-hero {
  margin-bottom: 34px;
  padding: 46px;
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 10%, rgba(250, 204, 21, 0.25), transparent 20rem),
    linear-gradient(135deg, #581c87, #1e3a8a 58%, #db2777);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

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

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  color: transparent;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.2);
}

.filter-panel {
  margin: 0 0 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  align-items: end;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(124, 58, 237, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.card-cover {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
}

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

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

.card-cover figcaption,
.card-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.card-cover figcaption {
  right: 12px;
  top: 12px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-badge {
  left: 12px;
  top: 12px;
  padding: 7px 11px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.card-body {
  padding: 18px;
}

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

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

.card-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #6d28d9;
  font-size: 13px;
  font-weight: 800;
}

.card-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3e8ff;
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  color: #be185d;
  background: #fce7f3;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.28), transparent 6rem),
    linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-card:nth-child(2n) {
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.26), transparent 6rem),
    linear-gradient(135deg, #2563eb, #7c3aed);
}

.category-card:nth-child(3n) {
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.26), transparent 6rem),
    linear-gradient(135deg, #db2777, #f59e0b);
}

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

.category-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.rank-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.rank-panel,
.detail-card,
.info-panel {
  border: 1px solid rgba(124, 58, 237, 0.10);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.rank-panel {
  padding: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 64px 1fr 58px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px;
  border-radius: 18px;
  transition: 0.2s ease;
}

.rank-row:hover {
  background: linear-gradient(90deg, #faf5ff, #fdf2f8);
  transform: translateX(3px);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

.rank-row img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: #f3e8ff;
}

.rank-title {
  font-weight: 900;
}

.rank-score {
  color: #d97706;
  font-weight: 900;
  text-align: right;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.detail-card {
  overflow: hidden;
}

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

.player-shell video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-shell video {
  object-fit: contain;
  background: #000000;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
}

.player-cover .play-button {
  position: relative;
  z-index: 3;
  gap: 10px;
  font-size: 18px;
}

.player-cover.hidden {
  display: none;
}

.detail-body {
  padding: 26px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

.detail-pill {
  color: #6d28d9;
  background: #f3e8ff;
}

.detail-body h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-body p {
  margin: 0 0 14px;
  color: #374151;
  line-height: 1.9;
}

.info-panel {
  padding: 20px;
}

.info-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted);
}

.info-list span {
  color: var(--ink);
  font-weight: 900;
}

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

.related-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #faf5ff;
  transition: 0.2s ease;
}

.related-item:hover {
  background: #fce7f3;
  transform: translateX(3px);
}

.related-item img {
  width: 70px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
  background: #ede9fe;
}

.related-item strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, #581c87, #1e3a8a 55%, #831843);
}

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

.footer-logo {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.spaced-section {
  margin-top: 54px;
}

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

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

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

  .hero-poster {
    display: none;
  }
}

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

  .menu-button {
    display: block;
  }

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

  .header-inner {
    width: min(100% - 24px, 1240px);
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    width: min(100% - 24px, 1240px);
    padding: 92px 0 72px;
  }

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

  .content-wrap {
    width: min(100% - 24px, 1240px);
    padding: 30px 0;
  }

  .page-hero {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .section-head {
    display: grid;
  }

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

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

  .card-body {
    padding: 14px;
  }

  .footer-inner {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .rank-row {
    grid-template-columns: 34px 56px 1fr 44px;
    gap: 10px;
  }

  .rank-row img {
    width: 56px;
    height: 56px;
  }
}
