* {
  box-sizing: border-box;
}

:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --purple-dark: #581c87;
  --yellow: #fde047;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.16);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 60px rgba(88, 28, 135, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 48%, #fdf2f8 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 52%, #f472b6 100%);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #7e22ce;
  background: linear-gradient(135deg, #fde047, #fff7ed);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 10px 24px rgba(0, 0, 0, 0.16);
}

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

.nav-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink-dark);
  background: #fff;
  transform: translateY(-1px);
}

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

.nav-search input,
.intro-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 11px 16px;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.nav-search input {
  width: 220px;
}

.nav-search button,
.intro-search button,
.big-search button,
.filter-panel button,
.btn,
.text-link {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-search button,
.intro-search button,
.big-search button,
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
}

.nav-search button {
  color: var(--pink-dark);
  background: #fde047;
  box-shadow: none;
}

.nav-search button:hover,
.intro-search button:hover,
.big-search button:hover,
.btn:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(139, 92, 246, 0.25);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #1f1235;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.6), transparent 30%), linear-gradient(135deg, #111827, #581c87);
}

.hero-media::after {
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.12));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.cover-image.image-off {
  opacity: 0;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
}

.hero-content > * {
  max-width: 690px;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(236, 72, 153, 0.95);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 12px;
  background: rgba(236, 72, 153, 0.1);
  color: var(--pink-dark);
}

.hero-content h1 {
  margin: 16px 0 12px;
  color: #fff;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2.3vw, 22px);
}

.hero-meta,
.rank-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-meta span,
.rank-card-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.btn-ghost.dark {
  color: var(--purple-dark);
  background: rgba(139, 92, 246, 0.12);
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 34px;
  cursor: pointer;
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.section-block,
.page-main {
  padding: 48px 0 0;
}

.intro-panel,
.page-hero,
.detail-hero,
.detail-section,
.filter-panel,
.overview-card,
.ranking-panel,
.prose-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 28px;
  padding: 34px;
}

.intro-panel h2,
.section-title h2,
.page-hero h1,
.detail-info h1,
.prose-card h2 {
  margin: 0;
  color: #111827;
  line-height: 1.18;
}

.intro-panel h2,
.page-hero h1,
.detail-info h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.intro-panel p,
.page-hero p,
.prose-card p,
.detail-lead {
  color: var(--muted);
  font-size: 17px;
}

.intro-search,
.big-search {
  display: flex;
  gap: 10px;
}

.intro-search input,
.big-search input {
  flex: 1;
  min-width: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.16);
}

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

.section-title h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-title a,
.text-link {
  color: var(--pink-dark);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(88, 28, 135, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(88, 28, 135, 0.2);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-surface,
.category-cover,
.list-thumb,
.rank-card-poster {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 25% 18%, rgba(253, 224, 71, 0.42), transparent 26%), linear-gradient(135deg, #ec4899, #8b5cf6 55%, #312e81);
}

.poster-surface {
  aspect-ratio: 3 / 4;
}

.poster-surface img,
.category-cover img,
.list-thumb img,
.rank-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-surface img,
.category-card:hover .category-cover img,
.list-item:hover .list-thumb img,
.rank-card:hover .rank-card-poster img {
  transform: scale(1.08);
}

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

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

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

.movie-card-compact .movie-card-body h2 {
  font-size: 15px;
}

.movie-card-compact .movie-card-body p {
  display: none;
}

.movie-badges,
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-badges span {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.09);
  font-size: 12px;
  font-weight: 700;
}

.rank-mark {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #7e22ce;
  background: #fde047;
  font-weight: 900;
}

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

.category-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(88, 28, 135, 0.12);
}

.category-cover {
  aspect-ratio: 16 / 10;
}

.category-card div:last-child {
  padding: 16px;
}

.category-card span,
.overview-head span {
  color: var(--pink-dark);
  font-weight: 800;
}

.category-card h2,
.overview-head h2 {
  margin: 6px 0 8px;
  font-size: 21px;
}

.category-card p,
.overview-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
}

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

.list-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(88, 28, 135, 0.1);
}

.list-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.list-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.list-item p {
  margin: 0 0 6px;
  color: var(--muted);
}

.list-item span {
  color: var(--pink-dark);
  font-weight: 800;
  font-size: 13px;
}

.ranking-panel {
  padding: 22px;
}

.compact-title {
  align-items: center;
  margin-bottom: 16px;
}

.ranking-list {
  display: grid;
  gap: 8px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  color: #7e22ce;
  background: #fde047;
  font-weight: 900;
}

.ranking-title {
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-meta {
  color: var(--muted);
  font-size: 13px;
}

.page-main {
  padding-bottom: 18px;
}

.page-hero {
  padding: 36px;
  margin: 34px 0 24px;
}

.soft-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(253, 242, 248, 0.9));
}

.rank-hero {
  color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(253, 224, 71, 0.28), transparent 28%), linear-gradient(135deg, #581c87, #ec4899);
}

.rank-hero h1,
.rank-hero p {
  color: #fff;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 24px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.16);
}

.page-grid {
  padding-bottom: 22px;
}

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

.overview-card {
  padding: 24px;
}

.overview-links {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.overview-links a {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(236, 72, 153, 0.07);
  color: #374151;
  font-weight: 700;
}

.rank-grid {
  display: grid;
  gap: 14px;
  padding-bottom: 24px;
}

.rank-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(88, 28, 135, 0.12);
}

.rank-card a {
  display: grid;
  grid-template-columns: 56px 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-card-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #7e22ce;
  background: #fde047;
  font-size: 20px;
  font-weight: 900;
}

.rank-card-poster {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.rank-card-body h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-card-body p {
  margin: 0 0 10px;
  color: var(--muted);
}

.rank-card .rank-card-meta span {
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.09);
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 255, 0.92));
}

.detail-poster {
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(88, 28, 135, 0.2);
}

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

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

.detail-info h1 {
  margin-bottom: 14px;
}

.detail-lead {
  margin: 0 0 18px;
}

.detail-badges {
  margin-bottom: 22px;
}

.detail-section {
  padding: 26px;
  margin-top: 24px;
}

.player-section {
  background: rgba(255, 255, 255, 0.95);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 30% 20%, rgba(236, 72, 153, 0.35), transparent 30%), #080414;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 52px rgba(0, 0, 0, 0.2);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #09090b;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.58), rgba(88, 28, 135, 0.28));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  padding-left: 6px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.35);
  font-size: 40px;
}

.player-shell.is-ready .player-start {
  opacity: 0;
  pointer-events: none;
}

.prose-card p {
  margin: 12px 0 0;
  white-space: pre-line;
}

.search-status {
  min-height: 26px;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  margin-top: 56px;
  color: #fff;
  background: linear-gradient(90deg, #581c87, #831843, #581c87);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 32px;
  padding: 42px 0;
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 900;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

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

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

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

  .split-layout,
  .intro-panel,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    order: -1;
  }
}

@media (max-width: 820px) {
  .main-nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }

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

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

  .nav-link {
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-search,
  .intro-search,
  .big-search {
    flex-direction: column;
  }

  .nav-search input {
    width: 100%;
  }

  .hero {
    height: 560px;
  }

  .hero-control {
    display: none;
  }

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

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

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

@media (max-width: 560px) {
  .container,
  .detail-main,
  .main-nav,
  .footer-inner,
  .hero-content {
    width: min(100% - 20px, 1180px);
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .movie-grid-6,
  .movie-grid-4,
  .movie-grid-3,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .intro-panel,
  .detail-hero,
  .detail-section {
    padding: 22px;
    border-radius: 22px;
  }

  .list-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .rank-card-body p,
  .ranking-meta {
    display: none;
  }
}
