/* a9-dh-css-v2 20261128-1240 */

#a9-facecard-dh .srcbtn.sel{background:#2563EB!important;border-color:#2563EB!important;color:#fff!important;font-weight:700}
#a9-facecard-dh .srcbtn{min-width:67px}
#a9-facecard-dh .a9tpi.sel{background:#2563EB!important;border-color:#2563EB!important;color:#fff!important}
#a9-facecard-dh .a9tpi[aria-checked="true"]::after{content:"✓";position:absolute;top:2px;right:4px;font-size:10px}
#a9-facecard-dh .a9tpi{position:relative}
#a9-facecard-dh #a9fc-msg-c{min-height:16px;margin-top:8px;font-size:12.5px;line-height:1.4;color:#dbeafe}
#a9-facecard-dh #a9fc-msg-c[data-kind="err"]{color:#fecaca}
#a9-facecard-dh #a9fc-msg-c[data-kind="ok"]{color:#bbf7d0}
#a9-facecard-dh #a9fc-send{opacity:1;transition:opacity .2s}
#a9-facecard-dh #a9fc-send[data-busy="1"]{opacity:.65;cursor:progress}
#a9-facecard-dh #a9fc-go[aria-disabled="true"]{opacity:.6}
#a9-facecard-dh #a9fc-prev a{font-size:12.5px;color:#dbeafe;text-decoration:underline}
#a9-facecard-dh:focus-within{outline:none}
#a9-facecard-dh *:focus-visible{outline:2px solid #93c5fd;outline-offset:2px;border-radius:8px}
@media (max-width:340px){#a9-facecard-dh .a9thirdgrid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* 2026-11-28 微调：四个素材按钮破格顶出右栏修复
   原则：只在必要时换行，任何宽度都不越出卡片；触控高度保持 44px */
#a9-facecard-dh{max-width:100%!important;overflow:hidden}
#a9-facecard-dh .srcrow{display:flex!important;flex-wrap:wrap!important;gap:8px!important;
  width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:visible!important}
#a9-facecard-dh .srcbtn{flex:1 1 0!important;min-width:0!important;width:auto!important;
  max-width:100%!important;box-sizing:border-box!important;min-height:44px!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media (max-width:359px){
  #a9-facecard-dh .srcbtn{flex:1 1 calc(50% - 4px)!important}
}

/* v3 2026-11-28：窄屏/大字号兜底 —— 强行允许换行，永不越出 */
#a9-facecard-dh .srcrow{flex-wrap:wrap !important; column-gap:8px !important; row-gap:8px !important}
#a9-facecard-dh .srcbtn{flex:1 1 calc(25% - 6px) !important; min-width:0 !important; max-width:100% !important}
@media (max-width:340px){
  #a9-facecard-dh .srcbtn{flex:1 1 calc(50% - 4px) !important}
}

/* 2026-11-28：开播平台品牌图标（补回丢失的 logo） */
#a9-facecard-dh .a9tpi{display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:3px!important;padding:6px 2px!important;min-height:56px!important}
#a9-facecard-dh .a9tpi svg{width:22px!important;height:22px!important;flex:0 0 22px!important;display:block!important}
#a9-facecard-dh .a9tpi span{font-size:10px!important;font-weight:700!important;line-height:1.1!important;
  max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#a9-facecard-dh .a9tpi.a9tpi-more svg{display:none!important}
