/* =========================================================
   STARSCREEN V2 · 长标题保护
   目标：任何影片名都不能撑破卡片、网格、两栏/三栏布局。
   ========================================================= */
body[data-tone] .video-card,
body[data-tone] .video-card-link,
body[data-tone] .video-card-body,
body[data-tone] .rank-copy,
body[data-tone] .category-hot-copy,
body[data-tone] .playlist-copy,
body[data-tone] .player-titlebar>div,
body[data-tone] .detail-v2-info,
body[data-tone] .detail-main,
body[data-tone] .detail-side{min-width:0}

body[data-tone] .video-card-body h3{
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
body[data-tone] .video-card-body h3,
body[data-tone] .rank-copy strong,
body[data-tone] .category-hot-copy strong,
body[data-tone] .playlist-copy strong{
  min-width:0;
  max-width:100%;
}
body[data-tone] .rank-copy strong,
body[data-tone] .category-hot-copy strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Hero：最多两行，超长直接截断，不再把操作区顶开 */
body[data-tone] .hero-title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* 详情标题：最多两行，避免占满 Hero 并挤压右侧速览 */
body[data-tone] .detail-v2-title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* 播放页标题：左侧可缩，右侧收藏/分享不被推走 */
body[data-tone] .player-titlebar{gap:14px}
body[data-tone] .player-titlebar>div:first-child{flex:1 1 auto;min-width:0}
body[data-tone] .player-titlebar h1{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
body[data-tone] .player-title-actions{flex:0 0 auto}

/* 付费墙 / 账号投稿 / 后台表格里的长标题 */
body[data-tone] .paywall-card h1,
body[data-tone] .account-body .panel strong,
body[data-tone] .table-title{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* 长类型/地区等元信息也不要撑破详情栏 */
body[data-tone] .detail-side .facts-list dd,
body[data-tone] .detail-v2-facts strong,
body[data-tone] .player-meta span{overflow-wrap:anywhere}

@media(max-width:680px){
  body[data-tone] .detail-v2-title,
  body[data-tone] .hero-title{-webkit-line-clamp:2}
  body[data-tone] .player-titlebar h1{-webkit-line-clamp:2}
}

/* 用户名 / 作者名 / 投稿标题等同类长文本 */
body[data-tone] .profile-title h1,
body[data-tone] .account-identity h1,
body[data-tone] .cm-author strong,
body[data-tone] .cm-content{overflow-wrap:anywhere;word-break:break-word}
body[data-tone] .cm-meta{min-width:0;flex-wrap:wrap}
body[data-tone] .category-card-body strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
