/* __KIKI_CHANNEL_FIT_V3__ 稀疏频道页：Pixso 满格死高度随内容收缩，不用 display:none 遮盖 */

.pixso-embed--channel .Pixso-frame-218_3840,
.pixso-embed--channel .Pixso-frame-218_1964{
  height:auto!important;
  min-height:0!important;
  justify-content:flex-start!important;
}

.pixso-embed--channel .Pixso-frame-218_3963,
.pixso-embed--channel .frame-content-218_3963,
.pixso-embed--channel .stroke-wrapper-218_3964,
.pixso-embed--channel .Pixso-frame-218_3964,
.pixso-embed--channel .frame-content-218_3964,
.pixso-embed--channel .stroke-wrapper-218_3081,
.pixso-embed--channel .Pixso-frame-218_3081,
.pixso-embed--channel .frame-content-218_3081,
.pixso-embed--channel .kiki-channel-main-list{
  height:auto!important;
  min-height:0!important;
}

.pixso-embed--channel .Pixso-frame-218_3964,
.pixso-embed--channel .frame-content-218_3964,
.pixso-embed--channel .Pixso-frame-218_3081,
.pixso-embed--channel .frame-content-218_3081{
  justify-content:flex-start!important;
}

/* 空行之间的 20px gap 会叠出死白，改由标题/可见行自己留距 */
.pixso-embed--channel .frame-content-218_3964,
.pixso-embed--channel .frame-content-218_3081{
  gap:0!important;
}
.pixso-embed--channel .Pixso-frame-218_3965,
.pixso-embed--channel .Pixso-frame-218_3082{
  margin-bottom:20px!important;
}

.pixso-embed--channel .kiki-channel-card-row{
  height:auto!important;
  min-height:0!important;
  margin-bottom:16px!important;
}

/* 空卡行（子卡已被 JS 隐藏）压成 0 高，节点仍在 */
.pixso-embed--channel .frame-content-218_3964 > [class*="Pixso-frame-"]:has(> [class*="Pixso-frame-"][data-kiki-empty="1"], > [class*="Pixso-frame-"][style*="display: none"], > [class*="Pixso-frame-"][style*="display:none"]):not(:has(.kiki-channel-card:not([data-kiki-empty="1"]))),
.pixso-embed--channel .frame-content-218_3081 > [class*="Pixso-frame-"]:has(> [class*="Pixso-frame-"][data-kiki-empty="1"], > [class*="Pixso-frame-"][style*="display: none"], > [class*="Pixso-frame-"][style*="display:none"]):not(:has(.kiki-channel-card:not([data-kiki-empty="1"]))){
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:none!important;
  flex:0 0 0!important;
}

/* V3：同样条件改看后代，避免 frame-content 夹层漏掉空行 */
.pixso-embed--channel .kiki-channel-card-row:not(:has(.kiki-channel-card:not([data-kiki-empty="1"]))),
.pixso-embed--channel .frame-content-218_3964 > [class*="Pixso-frame-"]:has([data-kiki-empty="1"]):not(:has(.kiki-channel-card:not([data-kiki-empty="1"]))),
.pixso-embed--channel .frame-content-218_3081 > [class*="Pixso-frame-"]:has([data-kiki-empty="1"]):not(:has(.kiki-channel-card:not([data-kiki-empty="1"]))){
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:none!important;
  flex:0 0 0!important;
}

.pixso-embed--channel [data-kiki-empty="1"]{
  height:0!important;
  min-height:0!important;
  overflow:hidden!important;
}
