/* cb-audit-fix-v30 — browse 页族侧栏修复(2026-10-27, 取代 v28/v29)
 * 1) 侧栏底部补法务链接区(隐私/条款/DMCA/2257/关于/线路), 对齐 home
 * 2) 桌面 ≥1101px 汉堡可收成 72px 图标条(此前桌面 guide-open 无规则, 点了没反应)
 * 3) 英文长词适配(mini 态两行 clamp, footer 自动换行)
 * 注: bundle 里有 html body.page-browse .yt-mini-guide a { width:204px !important } 提权规则,
 *     本文件覆盖处必须带 !important。
 */

/* ---- 1) 法务 footer ---- */
body.page-browse .yt-mini-guide .yt-guide-footer {
  margin-top: 16px;
  padding: 12px 12px 24px;
  border-top: 1px solid rgba(0, 0, 0, .1);
  font-size: 12px;
  line-height: 1.6;
  color: #606060;
}
body.page-browse .yt-mini-guide .yt-guide-footer a {
  display: inline-block !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 24px;
  line-height: 24px;
  padding: 0;
  margin-right: 8px;
  border-radius: 0;
  color: #606060;
  font-size: 12px;
  font-weight: 500;
  gap: 0;
}
body.page-browse .yt-mini-guide .yt-guide-footer a:hover {
  background: none;
  color: #0f0f0f;
}
body.page-browse .yt-mini-guide .yt-guide-copy {
  margin-top: 6px;
  font-size: 11px;
  color: #909090;
}

/* ---- 2) 桌面收缩: guide-open 在 ≥1101px = 收成图标条 ----
 * (<1100px 的 guide-open 仍是抽屉, 规则在 bundle 里, 互不干扰) */
@media (min-width: 1101px) {
  body.page-browse.guide-open .yt-mini-guide {
    width: 72px !important;
    flex: 0 0 72px !important;
    padding: 12px 4px 24px;
  }
  body.page-browse.guide-open .yt-mini-guide > a {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 64px !important;
    max-width: 64px !important;
    height: auto !important;
    min-height: 56px;
    padding: 10px 0;
    font-size: 10px;
    line-height: 1.2;
  }
  body.page-browse.guide-open .yt-mini-guide > a > span {
    max-width: 62px;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  /* mini 态只留一级导航, 藏分组标题/登录提示/二级库入口/footer */
  body.page-browse.guide-open .yt-mini-guide .yt-guide-heading,
  body.page-browse.guide-open .yt-mini-guide .yt-guide-signin,
  body.page-browse.guide-open .yt-mini-guide .yt-guide-promo,
  body.page-browse.guide-open .yt-mini-guide .yt-guide-footer,
  body.page-browse.guide-open .yt-mini-guide .yt-guide-lib,
  body.page-browse.guide-open .yt-mini-guide .g-gap {
    display: none !important;
  }
}

/* ---- 3) 展开态 nav item 文字防溢出兜底(英文长词) ---- */
body.page-browse .yt-mini-guide > a > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
