:root {
  --pink: #db2777;
  --pink-soft: #fce7f3;
  --purple: #7e22ce;
  --purple-soft: #f3e8ff;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(219, 39, 119, 0.14);
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 60px rgba(126, 34, 206, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 30rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34rem),
    linear-gradient(135deg, #fdf2f8 0%, #faf5ff 46%, #eff6ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 20px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 12px 28px rgba(219, 39, 119, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--pink);
  background: rgba(252, 231, 243, 0.8);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--pink);
  background: white;
  box-shadow: 0 8px 24px rgba(126, 34, 206, 0.12);
  cursor: pointer;
}

.hero {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 56px;
  position: relative;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 900ms ease;
  pointer-events: none;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.58) 45%, rgba(17, 24, 39, 0.22) 100%),
    linear-gradient(0deg, rgba(219, 39, 119, 0.28), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 92px 68px;
  color: white;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .hero-kicker {
  color: #f9a8d4;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 18px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
  font-size: 13px;
}

.tag-row span {
  color: #7e22ce;
  background: #faf5ff;
  border-color: #f3e8ff;
}

.hero-actions,
.quick-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 14px 32px rgba(219, 39, 119, 0.24);
  cursor: pointer;
}

.primary-btn.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.ghost-btn {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
}

.hero-controls {
  position: absolute;
  left: 68px;
  bottom: 44px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 36px;
  background: white;
}

.hero-search-panel {
  width: min(960px, calc(100% - 48px));
  margin: -50px auto 0;
  position: relative;
  z-index: 5;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(126, 34, 206, 0.14);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.hero-search input,
.inline-filter input,
.inline-filter select {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.hero-search input:focus,
.inline-filter input:focus,
.inline-filter select:focus {
  border-color: rgba(219, 39, 119, 0.5);
  box-shadow: 0 0 0 4px rgba(252, 231, 243, 0.9);
}

.quick-links {
  margin-top: 12px;
  justify-content: center;
}

.quick-links a,
.text-link {
  color: var(--pink);
  font-weight: 900;
}

.content-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 58px;
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

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

.movie-card,
.category-card,
.category-overview-card,
.side-card,
.rank-panel,
.detail-article {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(126, 34, 206, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
}

.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  box-shadow: 0 24px 54px rgba(126, 34, 206, 0.18);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.08;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-soft), var(--purple-soft), var(--blue-soft));
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent);
}

.poster-year,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  border-radius: 999px;
  color: white;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
  padding: 6px 10px;
  font-weight: 900;
  font-size: 12px;
}

.rank-badge {
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.rank-badge + .poster-year {
  left: auto;
  right: 12px;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

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

.soft-panel {
  padding: 34px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

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

.category-card {
  padding: 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.category-card strong {
  line-height: 1.55;
  font-size: 14px;
}

.category-sample {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.rank-heading,
.side-card h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
}

.rank-row,
.side-rank a {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(126, 34, 206, 0.1);
}

.rank-row span,
.side-rank span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
}

.rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.page-main,
.detail-main {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.page-main .content-section,
.detail-main .content-section {
  width: 100%;
}

.page-hero,
.detail-hero {
  border-radius: 36px;
  padding: 48px;
  margin-bottom: 36px;
  color: white;
  background:
    linear-gradient(135deg, rgba(219, 39, 119, 0.92), rgba(126, 34, 206, 0.9), rgba(37, 99, 235, 0.84)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 26rem);
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 760px;
}

.inline-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 180px));
  gap: 12px;
  margin-top: 24px;
}

.search-filter {
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(120px, 160px));
}

.result-status {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 18px;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  align-items: center;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  height: 188px;
  overflow: hidden;
  border-radius: 24px;
}

.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card h2 {
  font-size: 30px;
  margin: 8px 0;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  margin: 18px 0;
  font-weight: 800;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.24);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.08;
  object-fit: cover;
}

.detail-lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.detail-score {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: baseline;
  margin: 20px 0;
}

.detail-score span {
  font-size: 30px;
  font-weight: 950;
}

.detail-score em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.tag-row.wide span {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.player-section {
  margin-bottom: 34px;
}

.video-box {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #050816;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.22);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050816;
  outline: none;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 10px;
  color: white;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.42), rgba(17, 24, 39, 0.2));
  cursor: pointer;
}

.video-box.is-playing .play-layer {
  display: none;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 42px rgba(219, 39, 119, 0.34);
  font-size: 30px;
}

.play-layer strong {
  font-size: 22px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  margin-bottom: 52px;
}

.detail-article,
.side-card {
  padding: 28px;
}

.detail-article h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.detail-article p {
  color: #374151;
  line-height: 2;
  margin: 0 0 26px;
}

.side-card {
  position: sticky;
  top: 96px;
}

.side-rank a {
  grid-template-columns: 32px 1fr;
  color: #374151;
}

.site-footer {
  padding: 44px 0;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
}

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

.footer-inner p {
  color: var(--muted);
  margin: 8px 0 0;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
}

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

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

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

  .two-col-layout,
  .detail-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .side-card {
    position: static;
  }

  .search-filter,
  .inline-filter {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    height: 64px;
  }

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
  }

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

  .hero-content {
    padding: 60px 28px;
  }

  .hero-controls {
    left: 28px;
    bottom: 28px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .movie-card-body {
    padding: 13px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    display: none;
  }

  .soft-panel,
  .page-hero,
  .detail-hero {
    padding: 24px;
    border-radius: 28px;
  }

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

  .category-cover-stack {
    height: 150px;
  }

  .detail-poster {
    max-width: 260px;
  }

  .inline-filter,
  .search-filter {
    grid-template-columns: 1fr;
  }
}

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