
:root{
  --bg: #f7f7fb;
  --panel: rgba(255,255,255,.78);
  --panel-strong: rgba(255,255,255,.95);
  --text: #1f2940;
  --muted: #66738d;
  --line: rgba(124, 142, 170, .18);
  --shadow: 0 18px 50px rgba(109, 123, 161, .16);
  --shadow-soft: 0 12px 30px rgba(109, 123, 161, .10);
  --primary: #6578d8;
  --primary-2: #9b7ef0;
  --accent: #f1b27d;
  --accent-2: #f58fb5;
  --radius: 24px;
  --radius-lg: 32px;
  --wrap: 1240px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Noto Sans CJK SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(155,126,240,.12), transparent 26%),
    radial-gradient(circle at top right, rgba(241,178,125,.15), transparent 24%),
    linear-gradient(180deg,#fbfbfe 0%, #f4f6fb 58%, #eef2fb 100%);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input{font:inherit}
.wrap{width:min(var(--wrap), calc(100% - 32px)); margin-inline:auto}
.site-header{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(18px);
  background: rgba(247,248,252,.72);
  border-bottom:1px solid rgba(124,142,170,.12);
}
.header-inner{
  min-height:76px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{
  display:flex; align-items:center; gap:12px; font-weight:800;
  letter-spacing:.04em;
}
.brand-mark{
  display:grid; place-items:center;
  width:44px; height:44px; border-radius:16px;
  color:#fff;
  background: linear-gradient(135deg,var(--primary),var(--primary-2));
  box-shadow: var(--shadow-soft);
  font-size:14px;
}
.brand-text{font-size:18px}
.nav{display:flex; gap:10px; flex-wrap:wrap}
.nav a{
  padding:10px 14px; border-radius:999px; color:var(--muted);
  transition: .2s ease;
}
.nav a:hover,.nav a.active{
  color:var(--text); background: rgba(255,255,255,.8); box-shadow: var(--shadow-soft);
}
.hero{
  padding: 28px 0 10px;
}
.hero-shell{
  position:relative;
  overflow:hidden;
  border-radius: 40px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.64)),
    radial-gradient(circle at left top, rgba(155,126,240,.18), transparent 32%),
    radial-gradient(circle at right top, rgba(245,143,181,.20), transparent 24%);
  border:1px solid rgba(124,142,170,.16);
  box-shadow: var(--shadow);
}
.hero-shell::before,.hero-shell::after{
  content:""; position:absolute; inset:auto;
  border-radius:999px; filter: blur(6px);
  pointer-events:none;
}
.hero-shell::before{
  width:240px; height:240px; right:-70px; top:-80px;
  background: radial-gradient(circle, rgba(101,120,216,.25), transparent 68%);
}
.hero-shell::after{
  width:280px; height:280px; left:-100px; bottom:-100px;
  background: radial-gradient(circle, rgba(241,178,125,.25), transparent 68%);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items:center;
  position:relative;
  z-index:1;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--primary);
  font-weight:700; letter-spacing:.06em;
  text-transform:uppercase;
  font-size:12px;
}
.hero h1{
  margin:12px 0 14px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.02;
}
.hero p.lead{
  margin:0 0 22px;
  color:var(--muted);
  max-width: 58ch;
  line-height:1.85;
}
.hero-tools{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top:16px;
}
.searchbar{
  display:flex; gap:10px; align-items:center;
  padding:10px;
  border-radius:999px;
  background: rgba(255,255,255,.8);
  border:1px solid rgba(124,142,170,.15);
  box-shadow: var(--shadow-soft);
  max-width: 650px;
}
.searchbar input{
  border:0; outline:0; background:transparent; flex:1;
  padding:8px 14px;
  min-width:0;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:12px 18px;
  border-radius:999px; border:1px solid transparent;
  transition:.2s ease;
  white-space:nowrap;
}
.btn-primary{
  color:#fff;
  background: linear-gradient(135deg,var(--primary),var(--primary-2));
  box-shadow: 0 10px 24px rgba(101,120,216,.25);
}
.btn-primary:hover{transform: translateY(-1px)}
.btn-ghost{
  color:var(--text);
  background: rgba(255,255,255,.72);
  border-color: rgba(124,142,170,.16);
}
.btn-ghost:hover{background:#fff}
.hero-media{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.hero-slide{
  display:flex; flex-direction:column; gap:14px;
  padding:14px;
  min-height: 100%;
  border-radius: 28px;
  background: rgba(255,255,255,.56);
  border:1px solid rgba(124,142,170,.14);
  box-shadow: var(--shadow-soft);
}
.hero-poster{
  aspect-ratio: 3/4;
  overflow:hidden; border-radius: 22px;
  position:relative;
}
.hero-poster img,.movie-cover img,.related-card img,.rank-item img,.detail-poster img{
  width:100%; height:100%; object-fit:cover;
}
.hero-copy h3{
  margin:8px 0 8px;
  font-size: 22px;
  line-height:1.2;
}
.hero-text{color:var(--muted); line-height:1.7; margin:0 0 10px}
.hero-chips,.detail-tags,.movie-tags,.keyword-cloud,.category-pills{
  display:flex; flex-wrap:wrap; gap:8px;
}
.hero-chip,.chip,.tag{
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 12px; border-radius:999px;
  background: rgba(255,255,255,.78);
  border:1px solid rgba(124,142,170,.14);
  color:var(--muted);
  font-size:13px;
}
.tag-soft{background: rgba(255,255,255,.72)}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:6px}
.hero-side{
  display:grid;
  gap:14px;
}
.stat-strip{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:12px;
}
.stat{
  padding:14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.64);
  border:1px solid rgba(124,142,170,.14);
}
.stat strong{display:block; font-size:22px}
.stat span{color:var(--muted); font-size:13px}
.section{
  padding: 18px 0 4px;
}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:16px;
  margin: 22px 0 14px;
}
.section-head h2{
  margin: 0;
  font-size: 26px;
}
.section-tip,.section-link{
  color:var(--muted); font-size:14px;
}
.grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 16px;
}
.movie-card{
  overflow:hidden;
  border-radius: 24px;
  background: rgba(255,255,255,.76);
  border:1px solid rgba(124,142,170,.14);
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}
.movie-card:hover{transform: translateY(-4px); box-shadow: var(--shadow)}
.movie-cover{
  display:block; position:relative; aspect-ratio: 3/4; overflow:hidden;
}
.movie-cover::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 52%, rgba(18,24,44,.75) 100%);
}
.cover-year,.cover-badge{
  position:absolute; z-index:1;
  padding:6px 10px; border-radius:999px;
  color:#fff; font-size:12px;
  background: rgba(17,24,39,.52); backdrop-filter: blur(8px);
}
.cover-year{left:12px; top:12px}
.cover-badge{right:12px; bottom:12px}
.movie-body{padding:14px}
.movie-head h3{
  margin:0 0 6px;
  font-size: 17px;
  line-height:1.32;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.movie-meta{display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:13px}
.movie-desc{
  margin:10px 0 12px; color:var(--muted); line-height:1.65; font-size:14px;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  min-height: 4.7em;
}
.movie-tags .tag{padding:6px 10px; font-size:12px}
.rank-list{
  display:grid;
  gap:12px;
}
.rank-item{
  display:grid;
  grid-template-columns: 74px 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius: 20px;
  background: rgba(255,255,255,.74);
  border:1px solid rgba(124,142,170,.14);
  box-shadow: var(--shadow-soft);
}
.rank-item img{
  width:74px; height:92px; border-radius: 16px;
}
.rank-item strong{display:block; margin-bottom:6px}
.rank-item span{display:block; color:var(--muted); font-size:13px; line-height:1.55}
.rank-item em{font-style:normal; color:var(--primary); font-weight:800}
.page-block{
  padding: 16px 0 28px;
}
.category-strip{
  display:grid;
  grid-template-columns: repeat(5,1fr);
  gap: 14px;
}
.category-card{
  padding:18px;
  border-radius: 24px;
  background: rgba(255,255,255,.76);
  border:1px solid rgba(124,142,170,.14);
  box-shadow: var(--shadow-soft);
}
.category-card h3{margin:8px 0 8px}
.category-card p{color:var(--muted); line-height:1.7; min-height: 4.8em}
.category-card .count{display:inline-flex; margin-top:10px; color:var(--primary); font-weight:700}
.category-pages{
  display:grid;
  gap: 18px;
}
.category-banner{
  padding: 26px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.6)),
    radial-gradient(circle at top left, rgba(101,120,216,.14), transparent 30%);
  border:1px solid rgba(124,142,170,.14);
  box-shadow: var(--shadow);
}
.category-banner h1{margin: 8px 0 10px; font-size: 36px}
.category-banner p{color:var(--muted); margin:0; line-height:1.8; max-width: 70ch}
.filters{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top:16px;
}
.filters input{
  flex:1;
  min-width:220px;
  padding:14px 18px;
  border-radius:999px;
  border:1px solid rgba(124,142,170,.16);
  background: rgba(255,255,255,.86);
  outline:none;
}
.detail-hero{
  padding: 30px 0 12px;
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items:stretch;
}
.detail-poster{
  position:relative;
  overflow:hidden;
  border-radius: 32px;
  background: rgba(255,255,255,.74);
  border:1px solid rgba(124,142,170,.14);
  box-shadow: var(--shadow);
}
.detail-poster img{aspect-ratio: 3/4}
.detail-poster-badges{
  position:absolute; left:16px; right:16px; bottom:16px;
  display:flex; justify-content:space-between; gap:10px;
}
.detail-poster-badges span{
  padding:7px 12px; border-radius:999px; color:#fff; font-size:12px;
  background: rgba(17,24,39,.55); backdrop-filter: blur(8px);
}
.detail-copy{
  padding: 8px 4px;
}
.detail-copy h1{
  margin:10px 0 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height:1.05;
}
.detail-copy .lead{color:var(--muted); line-height:1.9; font-size:16px; max-width: 70ch}
.detail-meta{
  display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 16px;
}
.detail-meta span{
  padding:8px 12px; border-radius:999px;
  background: rgba(255,255,255,.76);
  border:1px solid rgba(124,142,170,.14);
  color:var(--muted);
}
.detail-grid{
  display:grid;
  grid-template-columns: minmax(0,1.3fr) minmax(320px,.7fr);
  gap: 20px;
  padding-bottom: 18px;
}
.player-panel,.info-panel{
  padding: 20px;
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  border:1px solid rgba(124,142,170,.14);
  box-shadow: var(--shadow-soft);
}
.video-player{
  width:100%;
  aspect-ratio: 16/9;
  background:#0e1020;
  border-radius: 22px;
  overflow:hidden;
}
.player-note{color:var(--muted); margin:12px 0 0}
.info-list{
  list-style:none; padding:0; margin:0; display:grid; gap:10px;
}
.info-list li{
  display:flex; justify-content:space-between; gap:12px;
  padding-bottom:10px; border-bottom:1px dashed rgba(124,142,170,.18);
}
.info-list li span{color:var(--muted)}
.related-section,.simple-section{
  padding-bottom: 24px;
}
.related-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 14px;
}
.related-card{
  overflow:hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  border:1px solid rgba(124,142,170,.14);
  box-shadow: var(--shadow-soft);
}
.related-card img{aspect-ratio: 3/4}
.related-card span{
  display:block;
  padding:10px 12px;
  font-size: 14px;
  line-height:1.5;
}
.site-footer{
  margin-top: 28px;
  padding: 22px 0 34px;
  color: var(--muted);
}
.footer-inner{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding-top: 18px;
  border-top:1px solid rgba(124,142,170,.14);
}
.search-results{
  display:grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
}
.empty-state{
  padding: 26px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border:1px solid rgba(124,142,170,.14);
  color: var(--muted);
}
.hidden{display:none !important}
.text-center{text-align:center}
.mb-0{margin-bottom:0}
.mb-8{margin-bottom:8px}
.mb-12{margin-bottom:12px}
.mb-16{margin-bottom:16px}
.mb-24{margin-bottom:24px}
.section-grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 20px;
}
.hero-side .rank-list{min-height: 100%}
.section-card{
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.74);
  border:1px solid rgba(124,142,170,.14);
  box-shadow: var(--shadow-soft);
}
.page-detail .site-header{position:sticky}
@media (max-width: 1100px){
  .grid{grid-template-columns: repeat(4,minmax(0,1fr))}
  .search-results{grid-template-columns: repeat(3,minmax(0,1fr))}
  .related-grid{grid-template-columns: repeat(4,minmax(0,1fr))}
  .category-strip{grid-template-columns: repeat(3,1fr)}
  .detail-hero,.detail-grid,.hero-grid,.section-grid{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .wrap{width:min(var(--wrap), calc(100% - 20px))}
  .hero-shell{padding: 18px; border-radius: 28px}
  .hero-media{grid-template-columns:1fr}
  .grid,.search-results,.related-grid{grid-template-columns: repeat(2,minmax(0,1fr))}
  .category-strip{grid-template-columns:1fr}
  .header-inner{min-height:68px}
  .nav{display:none}
  .hero h1,.category-banner h1,.detail-copy h1{font-size: clamp(28px, 11vw, 42px)}
  .detail-grid{grid-template-columns:1fr}
  .section-head{align-items:flex-start; flex-direction:column}
  .stat-strip{grid-template-columns:1fr}
  .rank-item{grid-template-columns:64px 1fr}
  .rank-item em{grid-column:2; justify-self:end}
}
