:root {
  color-scheme: light;
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --purple: #7c3aed;
  --purple-dark: #4c1d95;
  --pink: #db2777;
  --blue: #2563eb;
  --cyan: #0891b2;
  --red: #dc2626;
  --orange: #ea580c;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #0f172a, #581c87 48%, #111827);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand {
  color: #ffffff;
  font-size: 22px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 0 30px rgba(219, 39, 119, 0.45);
  font-size: 14px;
}

.brand-name {
  background: linear-gradient(90deg, #c4b5fd, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #e5e7eb;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
}

.hero-slider {
  position: relative;
  height: min(82vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, #312e81, #581c87, #831843);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 30%, rgba(124, 58, 237, 0.35), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  max-width: 1180px;
}

.hero-content h1 {
  width: min(760px, 100%);
  margin: 0 0 20px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-content p {
  width: min(720px, 100%);
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-label {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  font-size: 14px;
  font-weight: 700;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(219, 39, 119, 0.35);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(14px);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.hero-dot.active {
  width: 28px;
  background: #ffffff;
}

.hero-search-section {
  position: relative;
  z-index: 6;
  padding: 0 0 30px;
  margin-top: -72px;
}

.hero-search-box {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-box h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 36px);
}

.hero-search-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.search-form,
.search-panel {
  display: flex;
  gap: 12px;
}

.search-form input,
.search-panel input,
.toolbar-actions input,
.toolbar-actions select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
}

.search-form input:focus,
.search-panel input:focus,
.toolbar-actions input:focus,
.toolbar-actions select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.search-form button,
.search-panel button {
  min-width: 96px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.quick-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.quick-categories a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-weight: 800;
}

.quick-categories span {
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: #ffffff;
}

.section-warm {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.section-cool {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section-pink {
  background: linear-gradient(135deg, #fff1f2, #faf5ff);
}

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

.section-head p {
  margin: 0 0 6px;
  color: var(--purple);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--purple);
  font-weight: 900;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.movie-thumb-wide {
  width: 142px;
  min-height: 118px;
  aspect-ratio: 4 / 3;
  flex: 0 0 142px;
  border-radius: 16px;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease;
}

.movie-card:hover .movie-thumb img,
.rank-row:hover img,
.category-card:hover img {
  transform: scale(1.08);
}

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.movie-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.3);
}

.movie-info {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.movie-info strong {
  font-size: 17px;
  line-height: 1.35;
}

.movie-info span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.movie-info em,
.rank-text em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

.wide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.movie-card-wide {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding: 14px;
}

.rank-preview,
.ranking-list {
  display: grid;
  gap: 14px;
}

.rank-preview {
  grid-template-columns: repeat(2, 1fr);
}

.rank-preview-item,
.ranking-entry {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}

.rank-preview-item > span,
.ranking-number {
  display: grid;
  place-items: center;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #ffffff;
  font-weight: 900;
}

.rank-row {
  display: flex;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 10px;
  min-height: 90px;
}

.rank-thumb {
  width: 118px;
  height: 74px;
  flex: 0 0 118px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.rank-text {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-text strong,
.rank-text span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.rank-text strong {
  -webkit-line-clamp: 1;
}

.rank-text span {
  -webkit-line-clamp: 2;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.page-hero {
  padding: 72px 0;
  color: #ffffff;
}

.page-hero p {
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.05em;
}

.page-hero span {
  display: block;
  max-width: 800px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

.gradient-purple {
  background: linear-gradient(135deg, #4c1d95, #7c3aed, #be185d);
}

.gradient-blue {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.gradient-red {
  background: linear-gradient(135deg, #b91c1c, #ea580c);
}

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

.category-card {
  display: flex;
  overflow: hidden;
  min-height: 190px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-cover {
  width: 36%;
  flex: 0 0 36%;
  overflow: hidden;
  background: #111827;
}

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

.category-body {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 18px;
}

.category-body strong {
  font-size: 22px;
}

.category-body em {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.category-body span {
  color: var(--muted);
  line-height: 1.65;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.list-toolbar strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.list-toolbar span {
  color: var(--muted);
}

.toolbar-actions {
  display: flex;
  min-width: min(520px, 100%);
  gap: 12px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.pagination a.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.search-panel {
  max-width: 760px;
  margin-bottom: 18px;
}

.search-summary {
  color: var(--muted);
  margin-bottom: 22px;
  font-weight: 700;
}

.empty-state {
  margin: 32px 0 0;
  padding: 24px;
  text-align: center;
  border-radius: 18px;
  background: #f1f5f9;
  color: var(--muted);
  font-weight: 800;
}

.player-section {
  background: #020617;
  padding: 24px 0 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: #ffffff;
  font-weight: 800;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(219, 39, 119, 0.42);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-cta span {
  margin-left: 5px;
  font-size: 34px;
}

.video-stage.is-playing .player-cta {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.88);
}

.detail-section {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

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

.detail-main-card,
.related-card,
.prose-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.detail-main-card h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.05em;
}

.detail-main-card .detail-meta span {
  background: #f1f5f9;
  color: #475569;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.detail-tags a {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #6d28d9;
  font-size: 13px;
  font-weight: 800;
}

.detail-main-card section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}

.detail-main-card h2,
.related-card h2,
.prose-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-main-card p,
.prose-card p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
  font-size: 16px;
}

.related-card {
  position: sticky;
  top: 88px;
}

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

.prose-card {
  max-width: 920px;
}

.prose-card h2:not(:first-child) {
  margin-top: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.feature-grid div {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5f3ff, #fff1f2);
}

.feature-grid strong {
  display: block;
  margin-bottom: 4px;
  font-size: 34px;
  color: var(--purple);
}

.feature-grid span {
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #cbd5e1;
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 14px;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 10px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #ffffff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .movie-grid-5,
  .movie-grid-4,
  .wide-grid,
  .category-grid,
  .rank-preview,
  .footer-shell,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .related-card {
    position: static;
  }

  .quick-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-shell {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 11px 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0 6px;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
  }

  .hero-slider {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    padding: 82px 0 130px;
  }

  .hero-search-box,
  .list-toolbar,
  .toolbar-actions,
  .search-form,
  .search-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-search-box {
    display: grid;
  }

  .quick-categories,
  .movie-grid-5,
  .movie-grid-4,
  .wide-grid,
  .category-grid,
  .rank-preview,
  .footer-shell,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

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

  .movie-card-wide,
  .category-card,
  .rank-row {
    flex-direction: column;
  }

  .movie-thumb-wide,
  .category-cover,
  .rank-thumb {
    width: 100%;
    flex-basis: auto;
  }

  .rank-preview-item,
  .ranking-entry {
    grid-template-columns: 46px 1fr;
  }

  .rank-preview-item > span,
  .ranking-number {
    height: 46px;
    border-radius: 14px;
    font-size: 13px;
  }

  .detail-main-card,
  .related-card,
  .prose-card {
    padding: 20px;
  }

  .player-section {
    padding-top: 16px;
  }

  .video-stage {
    border-radius: 16px;
  }
}
