/* mother-diversity · site-6 · glaze-reel · 琉璃跟播基座 */
:root{
  --vod-primary:#2563eb;
  --vod-secondary:#ea580c;
  --vod-accent:#059669;
  --vod-bg:#f8fafc;
  --vod-surface:#ffffff;
  --vod-panel:#f1f5f9;
  --vod-ink:#1e293b;
  --vod-muted:#64748b;
  --vod-line:rgba(37,99,235,.14);
  --vod-radius:10px;
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}

body.vod-body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--vod-bg)!important;
  color:var(--vod-ink)!important;
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  line-height:1.55;
}

body.vod-body a{color:var(--vod-primary);text-decoration:none;transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease,opacity .18s ease}
body.vod-body a:hover{color:var(--vod-secondary)}
body.vod-body img{display:block;max-width:100%;height:auto}

/* ── Header 基线（视觉由 site-craft 覆盖） ── */
.lp-header{
  position:sticky;top:0;z-index:90;
  background:#fff;
  box-shadow:none;
  border-bottom:1px solid var(--vod-line);
}
.lp-header__bar{
  max-width:1120px;margin:0 auto;
  display:flex;align-items:center;gap:14px;flex-wrap:nowrap;
  padding:12px 16px;
}
.lp-brand{
  display:inline-flex;align-items:center;gap:10px;
  color:var(--vod-ink);font-weight:700;font-size:1.05rem;flex-shrink:0;
}
.lp-brand__icon{
  display:grid;place-items:center;width:32px;height:32px;
  background:linear-gradient(135deg,#2563eb,#059669);
  color:#fff;border-radius:8px;font-size:.7rem;
}
.lp-brand__name{max-width:10em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-nav{display:flex;flex-wrap:nowrap;gap:2px;margin-left:auto}
.lp-nav a{
  display:inline-flex;align-items:center;padding:8px 10px;
  border-radius:6px;color:var(--vod-muted);font-weight:600;font-size:.86rem;
}
.lp-nav a:hover,.lp-nav a[aria-current="page"]{
  background:rgba(37,99,235,.08);color:var(--vod-primary);
}
.lp-nav-toggle{
  display:none;width:44px;height:44px;border:1px solid var(--vod-line);
  background:#fff;color:var(--vod-ink);font-size:1.2rem;cursor:pointer;
  border-radius:8px;margin-left:auto;
}
.lp-header__sub,.lp-header__quick{display:none}
.lp-search{
  display:flex;flex:1;min-width:0;max-width:420px;
  border:1px solid rgba(30,41,59,.08);border-radius:999px;overflow:hidden;
  background:#fff;padding:4px;
}
.lp-search input{
  flex:1;min-width:0;padding:8px 14px;border:0;outline:none;
  background:transparent;color:var(--vod-ink);font-size:.95rem;
}
.lp-search__btn{
  padding:8px 18px;border:0;cursor:pointer;font-weight:700;border-radius:999px;
  background:linear-gradient(90deg,#2563eb,#059669);color:#fff;
}
.lp-search__btn:hover{filter:brightness(1.05)}

/* ── Main ── */
.lp-main{flex:1;max-width:1280px;width:100%;margin:0 auto;padding:28px 20px 56px}

/* ── Hero ── */
.lp-hero{
  margin-bottom:32px;padding:36px 32px 28px;
  background:linear-gradient(135deg,var(--vod-surface) 0%, color-mix(in srgb,var(--vod-primary) 12%, var(--vod-surface)) 100%);
  border-radius:var(--vod-radius);
  border:1px solid var(--vod-line);
  border-top:4px solid var(--vod-primary);
}
.lp-hero__badge{
  display:inline-block;margin-bottom:12px;padding:5px 12px;
  background:color-mix(in srgb,var(--vod-secondary) 22%, var(--vod-panel));
  color:var(--vod-secondary);font-size:.78rem;font-weight:900;
  border-radius:999px;letter-spacing:.06em;
}
.lp-hero h1{
  margin:0 0 14px;font-size:clamp(1.65rem,4.2vw,2.75rem);
  line-height:1.12;font-weight:900;letter-spacing:-.03em;color:var(--vod-ink);
}
.lp-hero__lead{margin:0;max-width:580px;color:var(--vod-muted);font-size:1.02rem;line-height:1.75}
.lp-hero__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.lp-btn{
  display:inline-flex;align-items:center;padding:12px 24px;
  font-weight:900;border-radius:999px;font-size:.92rem;
}
.lp-btn--primary{
  background:linear-gradient(135deg,var(--vod-secondary),#ca8a04);
  color:#422006!important;box-shadow:0 8px 24px rgba(234,179,8,.25);
}
.lp-btn--primary:hover{transform:translateY(-1px);filter:brightness(1.06)}
.lp-btn--outline{
  border:2px solid var(--vod-primary);color:var(--vod-primary)!important;background:transparent;
}
.lp-btn--outline:hover{background:color-mix(in srgb,var(--vod-primary) 12%, transparent)}
.lp-chips{
  display:flex;flex-wrap:wrap;gap:8px;margin-top:24px;padding-top:20px;
  border-top:1px solid var(--vod-line);
}
.lp-chips a{
  padding:7px 16px;border-radius:999px;
  background:var(--vod-panel);border:1px solid var(--vod-line);
  color:var(--vod-muted)!important;font-weight:700;font-size:.85rem;
}
.lp-chips a:hover{border-color:var(--vod-primary);color:var(--vod-primary)!important}
.lp-chips a:last-child{border-color:var(--vod-secondary);color:var(--vod-secondary)!important}

/* ── Sections ── */
.lp-section{margin-bottom:40px}
.lp-section__head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  margin-bottom:18px;
}
.lp-section__tag{
  display:inline-block;margin-bottom:4px;padding:2px 8px;
  background:var(--vod-accent);color:#422006;
  font-size:.68rem;font-weight:900;border-radius:4px;letter-spacing:.08em;
}
.lp-section__head h2{margin:0;font-size:1.4rem;font-weight:900;letter-spacing:-.02em;color:var(--vod-ink)}
.lp-section__more{color:var(--vod-primary)!important;font-weight:800;font-size:.88rem;white-space:nowrap}
.lp-section__more:hover{color:var(--vod-secondary)!important}

/* ── Horizontal scroll ── */
.lp-scroll{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(160px,200px);
  gap:16px;overflow-x:auto;padding-bottom:10px;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.lp-scroll--compact{grid-auto-columns:minmax(140px,180px)}

/* ── Grids ── */
.lp-grid{display:grid;gap:18px}
.lp-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.lp-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}

/* ── Cards: 竖版海报 + 播放遮罩 ── */
.lp-card{
  background:var(--vod-surface);border:1px solid var(--vod-line);
  border-radius:var(--vod-radius);overflow:hidden;
  transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.lp-card:hover{
  border-color:var(--vod-primary);transform:translateY(-4px);
  box-shadow:0 12px 32px rgba(34,197,94,.15);
}
.lp-card__link{display:block;color:inherit!important}
.lp-card__poster{position:relative;margin:0;overflow:hidden;background:#111}
.lp-card__poster img{width:100%;aspect-ratio:2/3;object-fit:cover;transition:transform .35s ease}
.lp-card--mini .lp-card__poster img{aspect-ratio:16/9}
.lp-card:hover .lp-card__poster img{transform:scale(1.05)}
.lp-card__badge{
  position:absolute;left:8px;top:8px;z-index:2;
  padding:3px 9px;background:var(--vod-accent);color:#422006;
  font-size:.68rem;font-weight:900;border-radius:4px;
}
.lp-card__play{
  position:absolute;inset:0;display:grid;place-items:center;
  background:rgba(0,0,0,.45);color:#fff;font-size:2rem;
  opacity:0;transition:opacity .25s ease;
}
.lp-card:hover .lp-card__play{opacity:1}
.lp-card--mini .lp-card__play{display:none}
.lp-card__body{padding:12px 12px 14px}
.lp-card__body h3{
  margin:0 0 6px;font-size:.9rem;line-height:1.35;font-weight:800;color:var(--vod-ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.lp-card:hover .lp-card__body h3{color:var(--vod-primary)}
.lp-card__meta{margin:0;display:flex;flex-wrap:wrap;gap:6px;font-size:.74rem;color:var(--vod-muted);font-weight:600}
.lp-card__meta span:first-child{color:var(--vod-secondary)}
.lp-card--mini .lp-card__body h3{font-size:.82rem;-webkit-line-clamp:1}

/* ── Category page: 侧栏筛选 + 三列栅格 ── */
.lp-cat-head{margin-bottom:24px;padding-bottom:20px;border-bottom:2px solid var(--vod-primary)}
.lp-crumb{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;font-size:.82rem;color:var(--vod-muted);font-weight:600}
.lp-crumb a{color:var(--vod-primary)!important}
.lp-cat-head h1{margin:0 0 8px;font-size:clamp(1.45rem,3vw,2rem);font-weight:900;color:var(--vod-ink)}
.lp-cat-head p{margin:0;color:var(--vod-muted);max-width:640px;line-height:1.7}
.lp-cat-body{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start}
.lp-cat-side{
  position:sticky;top:140px;
  padding:18px;background:var(--vod-surface);
  border:1px solid var(--vod-line);border-left:4px solid var(--vod-secondary);
  border-radius:var(--vod-radius);
}
.lp-cat-side__block{margin-bottom:16px}
.lp-cat-side__block:last-child{margin-bottom:0}
.lp-cat-side__label{display:block;margin-bottom:6px;font-size:.72rem;font-weight:800;letter-spacing:.06em;color:var(--vod-accent);text-transform:uppercase}
.lp-cat-side input,.lp-cat-side select{
  width:100%;padding:10px 12px;border:1px solid var(--vod-line);border-radius:8px;
  background:var(--vod-panel);color:var(--vod-ink);outline:none;font-weight:600;font-size:.88rem;
}
.lp-cat-side input:focus,.lp-cat-side select:focus{border-color:var(--vod-primary)}
.lp-empty{padding:32px;text-align:center;color:var(--vod-muted);font-weight:700;background:var(--vod-surface);border-radius:var(--vod-radius);margin-top:16px}

/* ── Player page: 上播下栏 ── */
.lp-player{margin-bottom:36px}
.lp-player__screen{margin-bottom:20px}
.lp-player__screen video{
  width:100%;aspect-ratio:16/9;background:#000;
  border:2px solid color-mix(in srgb,var(--vod-primary) 50%, transparent);
  border-radius:var(--vod-radius);
}
.lp-player__info{
  padding:24px;background:var(--vod-surface);
  border:1px solid var(--vod-line);border-top:4px solid var(--vod-primary);
  border-radius:var(--vod-radius);
}
.lp-player__info h1{margin:0 0 16px;font-size:clamp(1.2rem,2.5vw,1.65rem);line-height:1.3;font-weight:900;color:var(--vod-ink)}
.lp-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px;padding:0}
.lp-meta div{
  padding:12px;background:var(--vod-panel);border-radius:8px;text-align:center;
}
.lp-meta dt{margin:0 0 4px;font-size:.72rem;font-weight:800;color:var(--vod-muted);text-transform:uppercase;letter-spacing:.05em}
.lp-meta dd{margin:0;font-size:1rem;font-weight:900;color:var(--vod-secondary)}
.lp-synopsis h2{margin:0 0 10px;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--vod-accent)}
.lp-synopsis p{margin:0;color:var(--vod-muted);font-size:.92rem;line-height:1.85}

/* ── Footer: 黄绿双段 ── */
.lp-footer{margin-top:auto;background:var(--vod-surface);border-top:1px solid var(--vod-line)}
.lp-footer__banner{
  padding:24px 20px;text-align:center;
  background:linear-gradient(90deg,#15803d,var(--vod-primary));
}
.lp-footer__brand{display:block;font-size:1.1rem;font-weight:900;color:#fff;margin-bottom:6px}
.lp-footer__tagline{margin:0;color:rgba(255,255,255,.85);font-size:.88rem}
.lp-footer__grid{
  max-width:1280px;margin:0 auto;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;
  padding:32px 20px;
}
.lp-footer__label{display:block;margin-bottom:12px;font-size:.78rem;font-weight:900;letter-spacing:.06em;color:var(--vod-primary);text-transform:uppercase}
.lp-footer__col{display:flex;flex-direction:column;gap:8px;color:var(--vod-muted);font-size:.85rem;line-height:1.6}
.lp-footer__col a{color:var(--vod-muted)!important;font-weight:600}
.lp-footer__col a:hover{color:var(--vod-primary)!important}
.lp-footer__col p{margin:0}

/* ── HOME_SECTIONS 区块适配 ── */
.lp-sections .section-block{margin-bottom:36px}
.lp-sections .section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.lp-sections .section-head h2{margin:0;font-size:1.25rem;font-weight:900;color:var(--vod-ink)!important;background:none!important;-webkit-text-fill-color:unset!important}
.lp-sections .section-head a{color:var(--vod-primary)!important;font-weight:800;font-size:.88rem}
.lp-sections .section-icon{display:none}
.lp-sections .movie-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}

/* ── 次级页基线（细节由 site-craft 覆盖） ── */
body.vod-body .page-hero,
body.vod-body .compact-hero{
  background:transparent;border:0;border-bottom:1px solid var(--vod-line);border-radius:0;
  color:var(--vod-ink);padding:4px 0 18px;margin:0 0 18px;
}
body.vod-body .page-hero h1,
body.vod-body .compact-hero h1,
body.vod-body .section-head h2{color:var(--vod-ink)!important;background:none!important;-webkit-text-fill-color:unset!important}
body.vod-body .page-hero p,
body.vod-body .compact-hero p,
body.vod-body .empty-state{color:var(--vod-muted)!important}
body.vod-body .eyebrow,
body.vod-body .eyebrow.solo,
body.vod-body .eyebrow span{
  display:inline-block;width:auto;background:transparent;color:var(--vod-accent);
  padding:0;font-size:.72rem;font-weight:700;letter-spacing:.08em;
}
body.vod-body .rank-panel,
body.vod-body .section-block{background:transparent;border:0;padding:0;margin:0 0 28px}
body.vod-body .filter-panel{
  display:flex;flex-wrap:wrap;gap:10px 12px;margin:0 0 20px;padding:0 0 16px;
  border-bottom:1px solid var(--vod-line);background:transparent;
}
body.vod-body .filter-panel input,
body.vod-body .filter-panel select{
  background:#fff;border:1px solid var(--vod-line);color:var(--vod-ink);
  border-radius:8px;min-height:42px;padding:10px 14px;font-weight:600;
}
body.vod-body .primary-btn{background:linear-gradient(90deg,#2563eb,#059669)!important;color:#fff!important}
body.vod-body .ghost-btn{border:1px solid var(--vod-primary)!important;color:var(--vod-primary)!important;background:transparent!important}
body.vod-body .movie-grid{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px 14px;
}
body.vod-body .category-grid,
body.vod-body .category-grid.large{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;
}
body.vod-body .category-tile,
body.vod-body .overview-card{
  display:flex;flex-direction:column;justify-content:space-between;gap:14px;
  padding:18px;background:rgba(255,255,255,.72);border:1px solid var(--vod-line);
  border-radius:var(--vod-radius);transition:border-color .2s ease,transform .2s ease;
}
body.vod-body .category-tile:hover,
body.vod-body .overview-card:hover{border-color:var(--vod-primary)!important;transform:translateY(-2px)}
body.vod-body .category-tile strong,
body.vod-body .overview-main strong{
  display:block;font-size:1.05rem;font-weight:700;margin-bottom:6px;color:var(--vod-ink)!important;
  background:none!important;-webkit-text-fill-color:unset!important;
}
body.vod-body .category-tile span,
body.vod-body .overview-main span{color:var(--vod-muted)!important;line-height:1.55}
body.vod-body .overview-links{
  display:flex;justify-content:space-between;gap:10px;padding-top:4px;
  border-top:1px solid var(--vod-line);font-size:.82rem;font-weight:600;
}
body.vod-body .overview-links span:last-child{color:var(--vod-primary)!important}
body.vod-body .section-head a{color:var(--vod-primary)!important;font-weight:700}
body.vod-body .site-footer{background:var(--vod-surface)!important;border-top:1px solid var(--vod-line)!important}
body.vod-body .footer-inner{color:var(--vod-muted)!important}
body.vod-body .footer-inner a{color:var(--vod-primary)!important}

/* ── Mobile ── */
@media (max-width:1024px){
  .lp-grid--4,.lp-sections .movie-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lp-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:820px){
  body.vod-body .movie-grid,
  .lp-grid--4,.lp-sections .movie-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.vod-body .filter-panel input,
  body.vod-body .filter-panel select{flex:1 1 100%;font-size:16px}
  body.vod-body .category-grid,
  body.vod-body .category-grid.large{grid-template-columns:1fr}
  .lp-header__bar{flex-wrap:wrap;padding:10px 14px}
  .lp-nav{
    display:none;order:3;width:100%;flex-direction:column;align-items:stretch;
    margin:8px 0 0;padding:0;
  }
  .lp-nav.open{display:flex}
  .lp-nav a{border-radius:8px}
  .lp-nav-toggle{display:inline-flex;align-items:center;justify-content:center}
  .lp-header__sub,.lp-header__quick{display:none}
  .lp-search{max-width:none;flex:1 1 100%;order:2}
  .lp-main{padding:20px 14px 44px}
  .lp-hero{padding:24px 20px 20px}
  .lp-cat-body{grid-template-columns:1fr}
  .lp-cat-side{position:static;display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .lp-cat-side__block{margin-bottom:0}
  .lp-cat-side__block:first-child{grid-column:1/-1}
  .lp-meta{grid-template-columns:1fr}
  .lp-footer__grid{grid-template-columns:1fr 1fr;gap:22px}
  .lp-section__head{flex-direction:column;align-items:flex-start}
  .lp-scroll{grid-auto-columns:minmax(145px,42vw)}
}
@media (max-width:540px){
  .lp-grid--4,.lp-grid--3,.lp-sections .movie-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .lp-footer__grid{grid-template-columns:1fr}
  .lp-cat-side{grid-template-columns:1fr}
  .lp-brand__name{max-width:7em;font-size:.95rem}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}
