/* 映剧社 · azure-bolt 宝蓝快闪 · site 27 */
:root{
  --bolt-primary:#2563eb;
  --bolt-secondary:#f97316;
  --bolt-accent:#06b6d4;
  --bolt-bg:#f8fafc;
  --bolt-surface:#ffffff;
  --bolt-ink:#0f172a;
  --bolt-muted:#64748b;
  --bolt-line:#dbeafe;
  --bolt-navy:#0f172a;
  --bolt-shadow:0 12px 40px rgba(37,99,235,.1);
  --bolt-radius:12px;
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

body.bolt-body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(800px 300px at 100% -10%, rgba(37,99,235,.08), transparent 55%),
    radial-gradient(600px 240px at 0% 100%, rgba(6,182,212,.06), transparent 50%),
    var(--bolt-bg)!important;
  color:var(--bolt-ink)!important;
  font-family:"Segoe UI","PingFang SC","Noto Sans SC",system-ui,sans-serif;
  line-height:1.5;
}
body.bolt-body a{color:var(--bolt-primary);text-decoration:none;transition:color .2s ease,transform .2s ease,box-shadow .2s ease,background .2s ease}
body.bolt-body a:hover{color:#1d4ed8}
body.bolt-body img{display:block;max-width:100%;height:auto}
body.bolt-body img.image-off{opacity:0}

/* ── 极简顶栏：白底 + 底边蓝线 + 下划线导航 ── */
.bolt-head{
  position:sticky;top:0;z-index:90;
  background:var(--bolt-surface);
  border-bottom:3px solid var(--bolt-primary);
  box-shadow:0 4px 24px rgba(15,23,42,.06);
}
.bolt-head__inner{
  max-width:1280px;margin:0 auto;
  display:grid;grid-template-columns:auto 1fr auto auto;
  align-items:center;gap:24px;
  min-height:62px;padding:0 20px;
}
.bolt-brand{display:inline-flex;align-items:center;gap:10px;color:var(--bolt-ink)!important;font-weight:900;font-size:1.25rem}
.bolt-brand__mark{
  display:grid;place-items:center;width:36px;height:36px;border-radius:8px;
  background:var(--bolt-primary);color:#fff;font-size:.85rem;font-weight:900;
}
.bolt-brand__text{color:var(--bolt-primary)!important}
.bolt-nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;justify-content:center}
.bolt-nav a{
  position:relative;padding:6px 2px;color:var(--bolt-muted)!important;
  font-weight:700;font-size:.9rem;
}
.bolt-nav a::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:var(--bolt-secondary);transform:scaleX(0);transition:transform .2s ease;
}
.bolt-nav a:hover,.bolt-nav a[aria-current="page"]{color:var(--bolt-primary)!important}
.bolt-nav a:hover::after,.bolt-nav a[aria-current="page"]::after{transform:scaleX(1)}
.bolt-search{
  display:flex;align-items:stretch;border-radius:8px;overflow:hidden;
  border:2px solid var(--bolt-line);background:var(--bolt-bg);min-width:180px;
}
.bolt-search input{
  flex:1;min-width:0;border:0;outline:none;padding:8px 12px;
  background:transparent;color:var(--bolt-ink);font-size:.88rem;
}
.bolt-search button{
  border:0;padding:0 14px;cursor:pointer;font-weight:800;font-size:.85rem;
  background:var(--bolt-secondary);color:#fff!important;
}
.bolt-toggle{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  width:40px;height:40px;padding:8px;border:2px solid var(--bolt-line);border-radius:8px;
  background:var(--bolt-surface);cursor:pointer;
}
.bolt-toggle span{display:block;height:2px;border-radius:1px;background:var(--bolt-primary)}

/* ── 主内容 ── */
.bolt-main{max-width:1280px;margin:0 auto;padding:24px 20px 48px}

/* ── 首页 Hero：深蓝快闪条 + 右侧装饰 ── */
.bolt-flash{
  position:relative;display:grid;grid-template-columns:1fr auto;
  align-items:stretch;margin-bottom:32px;border-radius:var(--bolt-radius);overflow:hidden;
  background:var(--bolt-navy);box-shadow:var(--bolt-shadow);
}
.bolt-flash__content{padding:36px 32px 40px;color:#fff;max-width:680px}
.bolt-flash__eyebrow{
  display:inline-block;margin-bottom:12px;padding:4px 12px;border-radius:4px;
  background:rgba(6,182,212,.25);color:var(--bolt-accent);font-size:.75rem;font-weight:800;letter-spacing:.06em;
}
.bolt-flash h1{margin:0 0 14px;font-size:clamp(1.6rem,4vw,2.4rem);font-weight:950;line-height:1.2;color:#fff}
.bolt-flash__desc{margin:0 0 22px;font-size:1rem;line-height:1.75;color:rgba(255,255,255,.85);max-width:520px}
.bolt-flash__actions{display:flex;flex-wrap:wrap;gap:10px}
.bolt-flash__accent{
  width:clamp(80px,18vw,160px);
  background:linear-gradient(180deg,var(--bolt-primary) 0%,var(--bolt-accent) 100%);
  opacity:.85;
}
.bolt-cta{
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px 22px;border-radius:8px;font-weight:800;font-size:.92rem;
  background:var(--bolt-secondary);color:#fff!important;
  box-shadow:0 6px 20px rgba(249,115,22,.35);
}
.bolt-cta:hover{transform:translateY(-1px);box-shadow:0 10px 28px rgba(249,115,22,.45);color:#fff!important}
.bolt-ghost{
  display:inline-flex;align-items:center;padding:11px 20px;border-radius:8px;font-weight:700;
  border:2px solid rgba(255,255,255,.35);color:#fff!important;background:transparent;
}
.bolt-ghost:hover{background:rgba(255,255,255,.1);color:#fff!important}

/* ── 区块标题 ── */
.bolt-sechead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.bolt-sechead h2{margin:0;font-size:1.3rem;font-weight:900;color:var(--bolt-ink);display:flex;align-items:center;gap:10px}
.bolt-sechead__badge{
  display:inline-grid;place-items:center;width:26px;height:26px;border-radius:6px;
  background:var(--bolt-secondary);color:#fff;font-size:.72rem;font-weight:900;
}
.bolt-sechead__line{width:4px;height:20px;border-radius:2px;background:var(--bolt-primary)}
.bolt-more{font-weight:800;font-size:.88rem;color:var(--bolt-primary)!important}
.bolt-more:hover{color:var(--bolt-secondary)!important}

/* ── 热播横滑 ── */
.bolt-trend{margin-bottom:36px}
.bolt-scroll{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,240px);
  gap:14px;overflow-x:auto;padding:4px 2px 14px;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.bolt-scroll::-webkit-scrollbar{height:5px}
.bolt-scroll::-webkit-scrollbar-thumb{background:var(--bolt-primary);border-radius:999px}
.bolt-scroll--wrap{
  grid-auto-flow:row;grid-auto-columns:unset;
  grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;
}

/* ── 等宽等高海报网格（2:3 竖版） ── */
.bolt-wall{margin-bottom:36px}
.bolt-poster-grid,.movie-grid.bolt-poster-grid{
  display:grid;gap:16px;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.bolt-poster-grid--cat{grid-template-columns:repeat(4,minmax(0,1fr))}

/* ── 卡片：2:3 竖版 + 标题在下方 + 橙色热门徽章 ── */
.bolt-poster{
  border-radius:var(--bolt-radius);overflow:hidden;background:var(--bolt-surface);
  border:1px solid var(--bolt-line);transition:transform .22s ease,box-shadow .22s ease;
}
.bolt-poster:hover{transform:translateY(-3px);box-shadow:var(--bolt-shadow)}
.bolt-poster__link{display:block;color:inherit!important}
.bolt-poster__fig{position:relative;margin:0;aspect-ratio:2/3;overflow:hidden;background:linear-gradient(145deg,#dbeafe,#e0f2fe)}
.bolt-poster__fig img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.bolt-poster:hover .bolt-poster__fig img{transform:scale(1.04)}
.bolt-poster__hot{
  position:absolute;top:8px;right:8px;z-index:2;
  padding:3px 9px;border-radius:4px;font-size:.68rem;font-weight:900;
  background:var(--bolt-secondary);color:#fff;
  box-shadow:0 3px 10px rgba(249,115,22,.4);
}
.bolt-poster__body{padding:12px 10px 14px}
.bolt-poster__body h3{
  margin:0 0 6px;font-size:.9rem;font-weight:800;line-height:1.35;color:var(--bolt-ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.bolt-poster__body p{margin:0;font-size:.76rem;color:var(--bolt-muted);display:flex;flex-wrap:wrap;gap:6px}
.bolt-poster__body p span::after{content:"·";margin-left:6px;opacity:.45}
.bolt-poster__body p span:last-child::after{content:none}

/* 横滑迷你卡 */
.bolt-poster--mini{scroll-snap-align:start;min-width:200px}
.bolt-poster__mini{display:block;color:inherit!important}
.bolt-poster--mini .bolt-poster__fig{aspect-ratio:2/3}
.bolt-poster--mini .bolt-poster__body{padding:10px 8px 12px}
.bolt-poster--mini .bolt-poster__body h3{font-size:.85rem;-webkit-line-clamp:2}

/* ── 分类页：全宽蓝条标题 + 胶囊筛选 + 四列网格 ── */
.bolt-catbar{
  margin-bottom:24px;padding:28px 24px;border-radius:var(--bolt-radius);
  background:linear-gradient(135deg,var(--bolt-primary) 0%,#1d4ed8 100%);
  color:#fff;
}
.bolt-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px;font-size:.82rem;font-weight:600;color:rgba(255,255,255,.75)}
.bolt-crumb a{color:#fff!important;opacity:.9}
.bolt-crumb a:hover{opacity:1;text-decoration:underline}
.bolt-catbar h1{margin:0 0 8px;font-size:clamp(1.45rem,3vw,1.9rem);font-weight:950;color:#fff}
.bolt-catbar p{margin:0;color:rgba(255,255,255,.88);line-height:1.65;max-width:600px}
.bolt-chips{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;
  margin-bottom:22px;padding:14px 16px;border-radius:var(--bolt-radius);
  background:var(--bolt-surface);border:1px solid var(--bolt-line);
}
.bolt-chips__title{font-size:.78rem;font-weight:900;color:var(--bolt-primary);margin-right:4px}
.bolt-chips__input,.bolt-chips__select{
  flex:1;min-width:120px;padding:9px 14px;border-radius:999px;
  border:2px solid var(--bolt-line);background:var(--bolt-bg);color:var(--bolt-ink);
  font-weight:600;font-size:.88rem;outline:none;
}
.bolt-chips__input:focus,.bolt-chips__select:focus{border-color:var(--bolt-primary);box-shadow:0 0 0 3px rgba(37,99,235,.12)}

/* ── 播放页：全宽播放器 + 下方信息条 ── */
.bolt-play{margin-bottom:32px}
.bolt-play__screen{
  border-radius:var(--bolt-radius);overflow:hidden;background:#000;
  box-shadow:0 16px 48px rgba(15,23,42,.2);border-bottom:4px solid var(--bolt-primary);
}
.bolt-play__screen video,.bolt-play__screen #movie-player{width:100%;aspect-ratio:16/9;display:block;background:#000}
.bolt-play__meta{
  margin-top:20px;padding:22px 24px;border-radius:var(--bolt-radius);
  background:var(--bolt-surface);border:1px solid var(--bolt-line);
}
.bolt-play__meta h1{margin:0 0 12px;font-size:clamp(1.25rem,2.5vw,1.6rem);font-weight:950;line-height:1.3}
.bolt-play__tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.bolt-play__tags span{
  padding:4px 12px;border-radius:999px;font-size:.76rem;font-weight:800;
  background:rgba(37,99,235,.1);color:var(--bolt-primary);
}
.bolt-play__tags span:nth-child(2){background:rgba(6,182,212,.15);color:#0891b2}
.bolt-play__tags span:nth-child(3){background:rgba(249,115,22,.12);color:#ea580c}
.bolt-play__desc{margin:0 0 14px;font-size:.92rem;line-height:1.8;color:var(--bolt-muted)}
.bolt-play__info{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:18px;font-size:.85rem;color:var(--bolt-muted);font-weight:600}
.bolt-play__back{display:inline-flex}

/* ── 页脚：双栏链接 + 深色底栏 ── */
.bolt-foot{margin-top:24px;background:var(--bolt-navy);color:#94a3b8}
.bolt-foot__links{
  max-width:1280px;margin:0 auto;padding:36px 20px 28px;
  display:grid;grid-template-columns:1.2fr 1fr;gap:32px;
}
.bolt-foot__brand strong{display:block;margin-bottom:10px;font-size:1.1rem;color:#fff}
.bolt-foot__brand p{margin:0;font-size:.88rem;line-height:1.7;color:#94a3b8}
.bolt-foot__cols{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.bolt-foot__col{display:flex;flex-direction:column;gap:8px}
.bolt-foot__label{font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--bolt-accent);margin-bottom:4px}
.bolt-foot__col a{color:#cbd5e1!important;font-weight:600;font-size:.88rem}
.bolt-foot__col a:hover{color:var(--bolt-secondary)!important}
.bolt-foot__bar{
  border-top:1px solid rgba(255,255,255,.08);padding:14px 20px;text-align:center;
  font-size:.8rem;color:#64748b;
}

/* ── 子页桥接（rank/search/categories + HOME_SECTIONS） ── */
.page-hero,.compact-hero{
  margin-bottom:24px;padding:28px 24px;border-radius:var(--bolt-radius);
  background:var(--bolt-navy);color:#fff;
}
.page-hero h1,.compact-hero h1{margin:0 0 8px;font-size:clamp(1.4rem,3vw,1.85rem);font-weight:950;color:#fff}
.page-hero p,.compact-hero p{margin:0;color:rgba(255,255,255,.85);line-height:1.65}
.eyebrow,.eyebrow.solo{
  display:inline-block;margin-bottom:10px;padding:4px 10px;border-radius:4px;
  background:var(--bolt-accent);color:#fff;font-size:.72rem;font-weight:900;
}
.section-block{margin-bottom:32px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.section-head h2{margin:0;font-size:1.2rem;font-weight:900;color:var(--bolt-ink)}
.section-head a{color:var(--bolt-primary)!important;font-weight:800;font-size:.88rem}
.section-icon{
  display:inline-grid;place-items:center;width:28px;height:28px;border-radius:6px;
  background:var(--bolt-secondary);color:#fff;font-weight:900;margin-right:8px;font-size:.8rem;
}
.filter-panel{
  display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px;padding:14px 16px;
  border-radius:var(--bolt-radius);background:var(--bolt-surface);border:1px solid var(--bolt-line);
}
.filter-panel input,.filter-panel select{
  flex:1;min-width:130px;padding:9px 14px;border-radius:999px;
  border:2px solid var(--bolt-line);background:var(--bolt-bg);font-weight:600;outline:none;
}
.filter-panel input:focus,.filter-panel select:focus{border-color:var(--bolt-primary)}
.empty-state{padding:28px;border-radius:var(--bolt-radius);background:var(--bolt-surface);text-align:center;color:var(--bolt-muted);font-weight:700;border:1px dashed var(--bolt-line)}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.category-grid.large{grid-template-columns:repeat(2,minmax(0,1fr))}
.category-tile,.overview-card{
  display:block;padding:20px;border-radius:var(--bolt-radius);background:var(--bolt-surface);
  border:1px solid var(--bolt-line);transition:transform .2s ease,box-shadow .2s ease;
}
.category-tile:hover,.overview-card:hover{transform:translateY(-2px);box-shadow:var(--bolt-shadow)}
.category-tile strong,.overview-main strong{display:block;margin-bottom:6px;font-size:1.05rem;font-weight:900;color:var(--bolt-primary)}
.category-tile span,.overview-main span{color:var(--bolt-muted);font-size:.86rem;line-height:1.6}
.rank-panel{padding:20px;border-radius:var(--bolt-radius);background:var(--bolt-surface);border:1px solid var(--bolt-line)}
.movie-grid:not(.bolt-poster-grid):not(.bolt-scroll){
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;
}

/* ── 移动端 ── */
@media (max-width:1024px){
  .bolt-poster-grid,.bolt-poster-grid--cat{grid-template-columns:repeat(3,minmax(0,1fr))}
  .bolt-scroll--wrap{grid-template-columns:repeat(3,minmax(0,1fr))}
  .bolt-foot__links{grid-template-columns:1fr}
  .movie-grid:not(.bolt-poster-grid):not(.bolt-scroll){grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:768px){
  .bolt-head__inner{
    grid-template-columns:auto 1fr auto;
    min-height:56px;padding:0 14px;gap:12px;
  }
  .bolt-nav{
    position:absolute;left:14px;right:14px;top:58px;
    display:none;flex-direction:column;align-items:stretch;
    padding:12px;border-radius:var(--bolt-radius);
    background:var(--bolt-surface);border:2px solid var(--bolt-primary);
    box-shadow:0 16px 40px rgba(15,23,42,.15);
  }
  .bolt-nav.open{display:flex}
  .bolt-nav a{padding:10px 12px;color:var(--bolt-ink)!important}
  .bolt-nav a::after{display:none}
  .bolt-nav a[aria-current="page"],.bolt-nav a:hover{background:var(--bolt-bg);color:var(--bolt-primary)!important}
  .bolt-search{min-width:0}
  .bolt-search input{min-width:60px}
  .bolt-toggle{display:flex}
  .bolt-flash{grid-template-columns:1fr}
  .bolt-flash__accent{height:6px;width:100%}
  .bolt-flash__content{padding:28px 20px 32px}
  .bolt-poster-grid,.bolt-poster-grid--cat,.bolt-scroll--wrap{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .bolt-foot__cols{grid-template-columns:1fr}
  .category-grid,.category-grid.large{grid-template-columns:1fr}
  .movie-grid:not(.bolt-poster-grid):not(.bolt-scroll){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:480px){
  .bolt-main{padding:18px 14px 40px}
  .bolt-poster-grid,.bolt-poster-grid--cat,.bolt-scroll--wrap,.movie-grid:not(.bolt-poster-grid):not(.bolt-scroll){grid-template-columns:1fr}
  .bolt-chips{flex-direction:column;align-items:stretch}
  .bolt-chips__title{margin-bottom:4px}
  .bolt-play__info{flex-direction:column;gap:8px}
}
