
:root {
  --bg: #fff8fa;
  --surface: rgba(255,255,255,.84);
  --surface-strong: #ffffff;
  --line: rgba(29, 24, 33, .08);
  --text: #15161a;
  --muted: #666b78;
  --primary: #ff4d76;
  --primary-2: #ff7a59;
  --accent: #10b981;
  --shadow: 0 16px 48px rgba(23, 23, 31, .10);
  --shadow-soft: 0 8px 24px rgba(23, 23, 31, .08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { 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", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 77, 118, .12), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(16, 185, 129, .08), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fff7fa 48%, #fff 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(255,255,255,.65);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff8b66);
  box-shadow: 0 10px 24px rgba(255, 77, 118, .28);
}
.brand-text {
  font-size: 1.1rem;
  background: linear-gradient(90deg, #d72a52, #ff5f8b, #ff7a59);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: #4f5564;
  font-weight: 600;
  transition: .25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.search-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(255,77,118,.18);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 8px 22px rgba(255,77,118,.06);
}
.search-inline input {
  border: 0;
  outline: none;
  min-width: 220px;
  background: transparent;
}
.search-inline button,
.btn,
.chip,
.pager a,
.icon-btn {
  border: 0;
  cursor: pointer;
  transition: .28s ease;
}
.icon-btn,
.menu-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
}
.menu-btn { display: none; }
.mobile-menu {
  display: none;
  padding: 0 0 16px;
}
.mobile-menu.open { display: block; }
.mobile-menu a,
.mobile-menu .search-inline {
  display: flex;
  width: 100%;
  margin-top: 10px;
}
.hero {
  padding: 22px 0 18px;
}
.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(16, 185, 129, .08), rgba(255, 77, 118, .10));
  border: 1px solid rgba(255,255,255,.72);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr .85fr;
  min-height: 620px;
}
.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .8s ease, transform .8s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 15, .76) 0%, rgba(10, 10, 15, .48) 44%, rgba(10, 10, 15, .18) 100%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}
.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: end;
  padding: 44px;
  color: #fff;
}
.hero-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  font-size: .88rem;
}
.hero-title {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  max-width: 12ch;
}
.hero-desc {
  max-width: 46rem;
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(255,255,255,.88);
}
.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(255,77,118,.28);
}
.btn-ghost {
  color: #fff;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
}
.hero-side {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  border-left: 1px solid rgba(255,255,255,.58);
}
.hero-side-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(29,24,33,.06);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-side-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hero-side-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 16px; }
.hero-side-card h3 { margin: 4px 0 8px; font-size: 1rem; line-height: 1.4; }
.hero-side-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.hero-dots {
  position: absolute;
  left: 44px;
  bottom: 26px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.32);
}
.hero-dots button.is-active { background: #fff; }
.section {
  padding: 28px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2.2rem);
  letter-spacing: -.02em;
}
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-link { color: var(--primary); font-weight: 700; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card,
.panel,
.category-card,
.movie-card,
.rank-card,
.info-card,
.search-box,
.detail-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.stat-card {
  padding: 20px;
}
.stat-label { color: var(--muted); font-size: .92rem; }
.stat-value { font-size: 1.8rem; font-weight: 800; margin-top: 8px; }
.section-grid {
  display: grid;
  gap: 16px;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.movie-card {
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.movie-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffdbe5, #fff);
}
.movie-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.movie-card:hover .movie-poster img { transform: scale(1.04); }
.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 18, 26, .68);
  color: #fff;
  font-size: .78rem;
  backdrop-filter: blur(10px);
}
.movie-body { padding: 14px; }
.movie-title { margin: 0 0 8px; font-size: 1rem; line-height: 1.45; min-height: 2.9em; }
.movie-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .82rem; }
.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 77, 118, .07);
  color: #b83256;
}
.movie-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
  min-height: 4.8em;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.category-card {
  padding: 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-name { font-weight: 800; font-size: 1.06rem; margin-bottom: 8px; }
.category-count { color: var(--muted); font-size: .92rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(29,24,33,.08);
  box-shadow: 0 6px 16px rgba(17,17,17,.04);
  color: #404655;
  font-weight: 600;
}
.chip:hover { border-color: rgba(255,77,118,.28); color: var(--primary); }

.chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
}
.rank-list {
  display: grid;
  gap: 14px;
}
.rank-card {
  display: grid;
  grid-template-columns: 70px 110px 1fr;
  gap: 16px;
  padding: 14px;
  align-items: center;
}
.rank-index {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 20px rgba(255,77,118,.25);
}
.rank-card img { width: 110px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px; }
.rank-title { margin: 0 0 8px; font-size: 1.06rem; }
.rank-desc { color: var(--muted); margin: 0; line-height: 1.65; }
.page-hero {
  padding: 28px 0 12px;
}
.page-hero-shell {
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.72));
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  letter-spacing: -.03em;
}
.page-hero p { margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.detail-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 22px;
  align-items: start;
}
.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.detail-poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.detail-panel { padding: 24px; }
.detail-title { margin: 0 0 14px; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.12; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 77, 118, .08);
  color: #a62f51;
  font-size: .88rem;
  font-weight: 600;
}
.detail-lead {
  color: #2a2e37;
  line-height: 1.9;
  font-size: 1.02rem;
  background: rgba(255, 77, 118, .04);
  border-left: 4px solid var(--primary);
  padding: 14px 16px;
  border-radius: 16px;
}
.detail-block { margin-top: 18px; }
.detail-block h2,
.detail-block h3 { margin: 0 0 12px; }
.detail-block p { line-height: 1.95; color: #303642; }
.playbox {
  margin-top: 20px;
  background: #0f1118;
  color: #fff;
  border-radius: 30px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.playbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.playbox video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 22px;
}
.play-hint {
  margin-top: 12px;
  color: rgba(255,255,255,.75);
  font-size: .92rem;
}
.panel-title { font-size: 1.24rem; margin: 0 0 14px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.search-box {
  padding: 18px;
}
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.search-bar input {
  flex: 1;
  border: 1px solid rgba(255,77,118,.18);
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
  background: rgba(255,255,255,.95);
}
.search-results-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.search-count { color: var(--muted); }
.footer {
  margin-top: 40px;
  padding: 28px 0 42px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 22px;
  padding: 26px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76));
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow);
}
.footer h3 { margin: 0 0 12px; color: var(--text); }
.footer a { color: inherit; }
.footer a:hover { color: var(--primary); }
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.pager a {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(29,24,33,.08);
}
.pager a.is-active,
.pager a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  margin: 12px 0 18px;
  font-size: .95rem;
}
.breadcrumb a { color: #5c6472; }
.breadcrumb span { color: var(--muted); }
.badge-green { background: rgba(16,185,129,.09) !important; color: #0f8a62 !important; }
.hidden { display: none !important; }

@media (max-width: 1120px) {
  .hero-grid, .detail-layout { grid-template-columns: 1fr; }
  .hero-carousel, .hero-grid { min-height: 560px; }
  .hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movie-grid, .category-grid, .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .container { width: min(100% - 20px, 1280px); }
  .nav-links, .search-inline.desktop-only { display: none; }
  .menu-btn { display: inline-grid; }
  .hero-copy { padding: 24px; }
  .hero-grid, .hero-carousel { min-height: 680px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-dots { left: 24px; }
  .movie-grid, .category-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-card { grid-template-columns: 52px 84px 1fr; }
  .rank-card img { width: 84px; }
  .search-bar { flex-direction: column; }
}
@media (max-width: 560px) {
  .movie-grid, .category-grid, .related-grid, .stat-grid { grid-template-columns: 1fr; }
  .section-head, .search-results-head, .playbox-head { flex-direction: column; align-items: start; }
  .hero-title { max-width: 10ch; }
  .hero-carousel, .hero-grid { min-height: 720px; }
}
