:root {
  --moonlight-50: #f8f9fd;
  --moonlight-100: #f0f3fb;
  --moonlight-500: #9baee3;
  --moonlight-600: #7d93d9;
  --moonlight-700: #6178ca;
  --pudding-50: #fefdfb;
  --pudding-100: #fef9f3;
  --pudding-200: #fdf3e7;
  --pudding-500: #f8c98f;
  --pudding-600: #f0b46f;
  --pink-soft: #fde8f5;
  --blue-soft: #e8f4fd;
  --green-soft: #e8fdf4;
  --ink: #1f2937;
  --muted: #667085;
  --line: rgba(125, 147, 217, 0.18);
  --white: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 45px rgba(97, 120, 202, 0.15);
  --shadow-strong: 0 24px 70px rgba(97, 120, 202, 0.24);
  --radius: 1.25rem;
  --shell: min(1200px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(248, 201, 143, 0.34), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(155, 174, 227, 0.36), transparent 30%),
    linear-gradient(135deg, var(--pudding-50), var(--moonlight-100));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(253, 243, 231, 0.95);
}

.header-inner {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--pudding-600), var(--moonlight-600));
  box-shadow: 0 12px 26px rgba(125, 147, 217, 0.28);
}

.brand-text {
  font-size: 1.08rem;
  background: linear-gradient(90deg, #f0b46f, #6178ca);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #3f4654;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--moonlight-700);
  background: var(--moonlight-100);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--pudding-200);
  border-radius: 999px;
  background: rgba(254, 253, 251, 0.82);
}

.header-search input {
  width: 220px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 4px 8px 12px;
  color: var(--ink);
}

.header-search button,
.big-search button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--pudding-600), var(--moonlight-600));
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(125, 147, 217, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--moonlight-100);
  padding: 11px;
  cursor: pointer;
}

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

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

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 24%, rgba(125, 147, 217, 0.34), transparent 35%),
    linear-gradient(135deg, #121826, #2f3753 48%, #f0b46f 140%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 24, 0.92), rgba(10, 14, 24, 0.56), rgba(10, 14, 24, 0.22)),
    linear-gradient(0deg, rgba(10, 14, 24, 0.82), transparent 46%);
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(1.08) contrast(1.05);
}

.image-missing {
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding-top: 170px;
  color: white;
  max-width: 1120px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--moonlight-700);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #ffe1b9;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 13px;
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.hero h1 {
  max-width: 720px;
  margin: 22px 0 16px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.85;
}

.hero-tags,
.movie-meta,
.detail-meta-grid,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  backdrop-filter: blur(14px);
}

.hero-actions,
.intro-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  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 {
  color: white;
  background: linear-gradient(135deg, var(--pudding-600), var(--moonlight-600));
  box-shadow: 0 14px 30px rgba(125, 147, 217, 0.28);
}

.btn.ghost {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.btn.soft {
  color: var(--moonlight-700);
  background: var(--moonlight-100);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 32px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 54px 0;
}

.intro-panel,
.info-card,
.ranking-card,
.text-card,
.detail-info-card,
.player-card,
.category-overview-card a {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: -70px;
  position: relative;
  z-index: 8;
  padding: 28px;
}

.intro-panel h2,
.section-head h2,
.ranking-card h2,
.info-card h2,
.text-card h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.intro-panel p,
.page-hero p,
.info-card p,
.text-card p {
  color: var(--muted);
  line-height: 1.85;
}

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

.compact-head {
  align-items: center;
}

.more-link {
  color: var(--moonlight-700);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card a {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 243, 251, 0.88));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card a:hover,
.movie-card:hover,
.ranking-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.category-name,
.category-large-name {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-count,
.category-large-count {
  color: var(--moonlight-700);
  font-weight: 800;
}

.category-desc,
.category-overview-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pudding-200), var(--moonlight-100));
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 16 / 10;
}

.poster-img,
.ranking-img,
.side-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.movie-card:hover .poster-img,
.ranking-row:hover .ranking-img {
  transform: scale(1.05);
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  color: white;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(240, 180, 111, 0.92), rgba(125, 147, 217, 0.92));
}

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

.movie-title {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.35;
}

.movie-desc {
  min-height: 3.6em;
  margin: 10px 0 12px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.movie-meta {
  color: #7b8496;
  font-size: 0.82rem;
}

.movie-meta span,
.tag-row span,
.tag-cloud span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--moonlight-100);
  color: var(--moonlight-700);
  font-weight: 700;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  background: var(--pudding-100);
  color: #a86824;
  font-size: 0.78rem;
}

.ranking-card {
  padding: 22px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.rank-item:first-of-type {
  border-top: 0;
}

.rank-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pudding-600), var(--moonlight-600));
}

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

.rank-score {
  color: var(--moonlight-700);
  font-weight: 900;
}

.page-hero {
  padding: 78px 0 34px;
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  letter-spacing: -0.05em;
}

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

.info-card {
  padding: 24px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pudding-200), var(--moonlight-100));
}

.ranking-row-title {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 900;
}

.ranking-row-title span {
  color: var(--pudding-600);
}

.ranking-row p {
  color: var(--muted);
  line-height: 1.75;
}

.big-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 760px;
  margin-top: 22px;
  padding: 8px;
  border: 1px solid var(--pudding-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.big-search input {
  border: 0;
  outline: 0;
  padding: 13px 16px;
  background: transparent;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--moonlight-700);
  background: var(--moonlight-100);
  cursor: pointer;
  font-weight: 800;
}

.filter-tabs button.active {
  color: white;
  background: linear-gradient(135deg, var(--pudding-600), var(--moonlight-600));
}

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

.detail-wrap {
  padding: 34px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
}

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

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

.detail-main {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0b1020;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #0b1020;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at 50% 45%, rgba(125, 147, 217, 0.22), transparent 36%),
    rgba(10, 14, 24, 0.46);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pudding-600), var(--moonlight-600));
  box-shadow: 0 16px 40px rgba(125, 147, 217, 0.36);
}

.detail-info-card,
.text-card {
  margin-top: 22px;
  padding: 24px;
}

.detail-title-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.detail-title-row h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  letter-spacing: -0.06em;
}

.score-box {
  width: 98px;
  min-width: 98px;
  padding: 14px 8px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--pudding-100), var(--moonlight-100));
}

.score-box strong {
  display: block;
  font-size: 2rem;
  color: var(--moonlight-700);
}

.score-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-one-line {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.05rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.detail-meta-grid span {
  padding: 13px;
  border-radius: 16px;
  background: rgba(240, 243, 251, 0.72);
  color: var(--muted);
}

.detail-meta-grid b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.detail-tags span {
  font-size: 0.9rem;
}

.text-card p {
  margin-bottom: 0;
  font-size: 1.03rem;
}

.related-section {
  padding-bottom: 0;
}

.detail-side {
  display: grid;
  gap: 20px;
}

.side-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--pudding-200), var(--moonlight-100));
  box-shadow: var(--shadow);
}

.sticky-card {
  position: sticky;
  top: 94px;
}

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

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--moonlight-700);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.pagination .current {
  color: white;
  background: linear-gradient(135deg, var(--pudding-600), var(--moonlight-600));
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0 24px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(253, 243, 231, 0.95);
}

.footer-grid {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin: 8px 0;
}

.footer-grid a:hover {
  color: var(--moonlight-700);
}

.footer-bottom {
  width: var(--shell);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

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

  .detail-side {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 22px, 1200px);
  }

  .header-inner {
    min-height: 64px;
  }

  .main-nav {
    position: fixed;
    left: 11px;
    right: 11px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-strong);
  }

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 14vw, 4.2rem);
  }

  .intro-panel,
  .section-head,
  .footer-bottom,
  .detail-title-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-panel {
    margin-top: -44px;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .six-grid,
  .four-grid,
  .info-grid,
  .footer-grid,
  .detail-side,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .big-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .big-search button {
    min-height: 44px;
  }
}
