/* 频道图库选图弹层 — W图库：深色底 + 柔灰字，避免纯白刺眼 */
.ws-channel-gallery-modal{
  position:fixed;inset:0;z-index:12000;
  display:flex;align-items:center;justify-content:center;
  background:rgba(8,10,14,.72);padding:16px;box-sizing:border-box;
}
.ws-channel-gallery-modal[hidden]{display:none!important}
.ws-channel-gallery-card{
  width:min(1180px,100%);height:min(86vh,920px);
  display:flex;flex-direction:column;overflow:hidden;
  border-radius:16px;background:#12151c;border:1px solid rgba(255,255,255,.1);
  box-shadow:0 24px 64px rgba(0,0,0,.45);
}
.ws-channel-gallery-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.08);background:#181c26;
}
.ws-channel-gallery-head h2{margin:0;font-size:16px;font-weight:900;color:#b8c4d8}
.ws-channel-gallery-head .hint{margin:0;color:#6b7588;font-size:12px;font-weight:700}
.ws-channel-gallery-close{
  border:0;border-radius:10px;width:36px;height:36px;cursor:pointer;
  background:rgba(255,255,255,.06);color:#8b95a8;font-size:20px;line-height:1;
}
.ws-channel-gallery-close:hover{background:rgba(255,255,255,.1);color:#b8c4d8}
.ws-channel-gallery-frame{flex:1;min-height:0;border:0;width:100%;background:#0d0f14}
.ws-channel-gallery-frame[hidden]{display:none!important}
.ws-channel-gallery-inline{flex:1;min-height:0;overflow:auto;background:#0d0f14;padding:12px}
.ws-channel-gallery-inline[hidden]{display:none!important}
.ws-channel-gallery-inline-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px}
.ws-channel-gallery-inline-item{position:relative;border:0;border-radius:12px;padding:0;overflow:hidden;cursor:pointer;background:#181c26;aspect-ratio:3/4}
.ws-channel-gallery-inline-item img{width:100%;height:100%;object-fit:cover;display:block}
.ws-channel-gallery-inline-cap{position:absolute;left:0;right:0;bottom:0;padding:6px 8px;font-size:11px;font-weight:700;color:#e2e8f0;background:linear-gradient(transparent,rgba(0,0,0,.72));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ws-channel-gallery-inline-empty{padding:48px 16px;text-align:center;color:#6b7588;font-size:14px;font-weight:700}
.ws-gallery-source-menu{
  position:fixed;z-index:13000;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
  min-width:168px;padding:8px;border:1px solid rgba(255,255,255,.1);border-radius:14px;
  background:#181c26;box-shadow:0 18px 42px rgba(0,0,0,.45);
}
.ws-gallery-source-menu[hidden]{display:none!important}
.ws-gallery-source-menu button{
  height:38px;border:1px solid rgba(255,255,255,.1);border-radius:11px;background:#232836;
  color:#b8c4d8;font-size:13px;font-weight:750;cursor:pointer;white-space:nowrap;
}
.ws-gallery-source-menu button:hover{background:#2a3040;border-color:rgba(255,212,0,.28);color:#ffd400}
.ws-gallery-source-menu button[hidden]{display:none!important}
body.ws-channel-gallery-open{overflow:hidden}
/* 各模块共用的 W图库 入口按钮 */
.ws-w-pick{
  flex:0 0 auto;margin:0;padding:6px 10px;border:1px solid rgba(255,255,255,.12);border-radius:8px;
  background:#232733;color:#b8c4d8;font:inherit;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap;line-height:1.2
}
.ws-w-pick:hover{border-color:rgba(255,212,0,.35);color:#ffd400;background:#2a3040}
@media (max-width:760px){
  .ws-channel-gallery-modal{padding:0}
  .ws-channel-gallery-card{width:100%;height:100%;border-radius:0}
}
