/* LiveDeck 直播工作台 —— 第 3 组：左栏（本场阵容 + 流水）、右栏直播控制台、底栏动态部分。
   只使用 app.css 的设计变量；index.html 静态引入。左栏类名前缀 lc-（「阵容与玩法」面板 config.css 用 lu-，互不影响）。
   直播区：大按钮 ≥ 48px、主要数字 24–32px（VS 大比分 44px）；动效仅 transform/opacity。 */

/* ================= 通用 ================= */
.bump { animation: bump .45s ease-out; }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.14); } 100% { transform: scale(1); } }
.callout-error { background: var(--danger-soft); color: #FFB3C0; }
.cc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 36px 16px; color: var(--muted); text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-card); }
.cc-empty .ic { color: #B9A0FF; }
.cc-empty p { margin: 0; }
.pm { font-weight: 800; font-size: 16px; line-height: 1; }

/* ================= 左栏 ================= */
.lc-card { display: flex; flex-direction: column; min-height: 0; padding: 12px 10px 10px; gap: 8px; }
.lc-lineup { flex: 0 1 auto; max-height: 52%; }
.lc-feed { flex: 1 1 0; }
.lc-head { display: flex; align-items: center; gap: 6px; padding: 0 4px; min-height: 26px; }
.lc-head .card-title { color: var(--fg); font-size: 14px; white-space: nowrap; flex: none; }
.lc-head > * { min-width: 0; }
.lc-head .tag { height: 20px; padding: 0 7px; font-size: 11px; }
.lc-hint { font-size: 11px; color: var(--dim); white-space: nowrap; }

.lc-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; padding: 2px; margin: -2px; }
.lc-row { position: relative; display: grid; grid-template-columns: 16px 14px 36px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 8px 10px 8px 4px; border-radius: 10px; background: var(--panel-2); border: 1px solid transparent; transition: border-color .15s, background-color .15s, opacity .15s; }
.lc-row:hover { border-color: var(--line-2); }
.lc-row.active { border-color: var(--accent-line); background: #1F1A33; }
.lc-row.leader { box-shadow: inset 3px 0 0 var(--warn); }
.lc-row.hit { animation: hitpulse 1.5s ease-out; border-color: var(--accent); }
.lc-row.dragging { opacity: .92; border-color: var(--accent); background: #241D3D; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); transform: scale(1.02); z-index: 2; }
.lc-list.is-dragging .lc-row:not(.dragging) { opacity: .75; }
.lc-lineup.saving .lc-list { opacity: .6; pointer-events: none; }
/* 拖动排序中：预览 iframe 不接收指针（否则在其上松开时页面收不到 pointerup）；全页保持抓取光标 */
body.lc-dragging { cursor: grabbing; user-select: none; }
body.lc-dragging iframe { pointer-events: none; }
.lc-grip { width: 16px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--dim); cursor: grab; touch-action: none; }
.lc-grip:hover { color: var(--fg); background: var(--panel-3); }
.lc-grip:active { cursor: grabbing; }
.lc-grip.off { cursor: default; }
.lc-order { font-size: 12px; font-weight: 800; color: var(--dim); text-align: center; }
.lc-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lc-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lc-nick { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-label { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lc-tags .tag { height: 19px; padding: 0 7px; font-size: 11px; }
.lc-right { display: flex; flex-direction: column; align-items: flex-end; min-width: 34px; }
.lc-score { font-size: 18px; font-weight: 800; line-height: 1.15; }
.lc-sub { font-size: 11px; color: var(--dim); white-space: nowrap; }
.lc-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px; color: var(--muted); text-align: center; font-size: 13px; }
.lc-empty p { margin: 0; }
.lc-empty .ic { color: #B9A0FF; margin-bottom: 4px; }

/* 分段标签 */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: #10141B; border: 1px solid var(--line); }
.seg-btn { height: 24px; padding: 0 9px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.seg-btn:hover { color: var(--fg); }
.seg-btn[aria-selected="true"] { background: var(--accent); color: #fff; }
.fd-count { font-size: 12px; color: var(--dim); font-weight: 700; }

.fd-hint { margin: 0 2px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); color: #D2C2FF; font-size: 12px; }
.fd-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.fd-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; width: 100%; padding: 6px 6px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--fg); text-align: left; font: inherit; animation: rowin .35s ease-out; }
.fd-row:nth-child(odd) { background: rgba(255, 255, 255, .018); }
.fd-row.clickable { cursor: pointer; }
.fd-row.clickable:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.fd-row.r-none, .fd-row.r-outside { opacity: .78; }
@keyframes rowin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fd-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--info-soft); color: #8DB4FF; }
.fd-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fd-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 13px; }
.fd-top .fd-dia, .fd-bottom .fd-tag { margin-left: auto; }
.fd-who { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 3.5em; flex: 0 1 auto; }
.fd-gift, .fd-kw { color: var(--muted); white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fd-kw { color: #8DB4FF; font-weight: 700; }
.fd-bottom { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); min-width: 0; }
.fd-time { flex: none; }
.fd-dest { display: inline-flex; gap: 3px; min-width: 0; color: #C9D2E0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fd-dest span:last-child { overflow: hidden; text-overflow: ellipsis; }
.fd-arrow { color: var(--dim); }
.fd-dia { flex: none; color: var(--warn); font-weight: 700; font-size: 12px; padding-left: 4px; }
.fd-tag { flex: none; height: 18px !important; padding: 0 6px !important; font-size: 11px !important; }
.fd-list:empty { display: none; }
.fd-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 28px 8px; color: var(--muted); text-align: center; font-size: 13px; }
.fd-empty p { margin: 0; }
.fd-empty .ic { color: #B9A0FF; margin-bottom: 4px; }

/* ================= 右栏控制台 ================= */
#col-control > .cc { flex: 1; min-height: 0; }
.cc { display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 18px; overflow-y: auto; }
.cc > * { flex-shrink: 0; }
.cc-head { display: flex; align-items: flex-start; gap: 16px; }
.cc-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cc-mode { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.cc-mode.live { background: var(--accent-soft); border-color: var(--accent-line); color: #C7B3FF; }
.cc-mode.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.cc-status { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: .3px; line-height: 1.2; }
.cc-status.running { color: #fff; }
.cc-sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.cc-cd { flex: none; display: grid; grid-template-columns: auto; justify-items: end; gap: 2px; padding: 8px 16px 10px; border-radius: 14px; background: #10141B; border: 1px solid var(--line-2); min-width: 150px; }
.cc-cd-label { font-size: 12px; color: var(--dim); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cc-cd-num { font-size: 40px; font-weight: 800; line-height: 1; color: var(--warn); letter-spacing: 1px; }
.cc-cd.manual .cc-cd-num { font-size: 22px; color: var(--muted); padding: 6px 0 4px; }
.cc-cd.urgent { border-color: rgba(255, 92, 114, .6); background: #1E1117; }
.cc-cd.urgent .cc-cd-num { color: var(--danger); animation: blink 1s ease-in-out infinite; }
.cc-cd-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cc-cd-tags:empty { display: none; }

.cc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.cc-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: #1A202A; border: 1px solid var(--line); color: var(--muted); font-size: 12px; white-space: nowrap; }
.cc-warns { display: flex; flex-direction: column; gap: 6px; }
.cc-warn { padding: 8px 12px; align-items: center; }
.cc-warn .ic { margin-top: 0; }

.cc-actbar { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, rgba(139, 92, 255, .07), rgba(139, 92, 255, .02)); border: 1px solid var(--line-2); }
.cc[data-kind="dance"] .cc-actbar { display: none; }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cc-btn-main { height: 56px; min-width: 220px; font-size: 17px; flex: 1 1 220px; max-width: 360px; }
.cc-btn-revive { height: 56px; font-size: 16px; flex: 0 1 auto; }
.btn-danger.cc-btn-main { background: rgba(255, 92, 114, .16); border: 1.5px solid var(--danger); color: #FF9AAA; }
.btn-danger.cc-btn-main:hover:not(:disabled) { background: rgba(255, 92, 114, .26); color: #FFC2CC; }
.cc-sec { display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 14px; border-radius: var(--r-btn); background: var(--panel-2); border: 1px solid var(--line-2); }
.cc-sec-label, .cc-sec-unit { color: var(--muted); font-size: 14px; font-weight: 700; }
.cc-sec-input { width: 86px; height: 40px; font-size: 20px; font-weight: 800; text-align: center; padding: 0 6px; }
.cc-hint { margin: 0; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.cc-hint.warn { color: var(--warn); }
.cc-hint.warn::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--warn-soft); font-weight: 900; font-size: 11px; }

.cc-body { display: flex; flex-direction: column; }

/* 成员分数卡（礼物比分 / 台上 / 弹幕） */
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mc-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.mc-card.leader { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 26px rgba(139, 92, 255, .18); background: linear-gradient(180deg, #221B3A, var(--panel-2) 70%); }
.mc-card.on-stage { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.mc-top { display: grid; grid-template-columns: auto 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.mc-rank:empty { visibility: hidden; }
.mc-rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #262E3D; color: var(--muted); font-weight: 800; font-size: 13px; }
.mc-rank.r1 { background: linear-gradient(135deg, #FFD36B, #FFB020); color: #3A2600; }
.mc-rank.r2 { background: #C9D2E0; color: #1B212C; }
.mc-rank.r3 { background: #D9A273; color: #2A1606; }
.mc-id { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mc-name { font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-giftline { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 12.5px; }
.mc-giftname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-kw { align-self: start; padding: 4px 10px; border-radius: 10px; background: var(--info-soft); color: #A9C6FF; font-weight: 800; font-size: 16px; white-space: nowrap; }
.mc-stage-tag { align-self: start; }
.mc-scoreline { display: flex; align-items: baseline; gap: 6px; }
.mc-score { font-size: 32px; font-weight: 800; line-height: 1.05; display: inline-block; }
.mc-card.leader .mc-score { color: #fff; }
.mc-unit { color: var(--muted); font-size: 13px; font-weight: 600; }
.mc-lead { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--dim); white-space: nowrap; }
.mc-lead.up { color: #C7B3FF; }
.mc-lead.up::before { content: "▲ "; font-size: 10px; }
.mc-extra:empty { display: none; }
.mc-meta { display: flex; align-items: center; gap: 10px; margin-top: -4px; font-size: 13px; color: #C9D2E0; font-weight: 600; }
.mc-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.mc-foot:empty { display: none; }
.mc-foot .mc-btn { flex: 1; }
.mc-total { font-size: 12px; color: var(--dim); white-space: nowrap; font-weight: 500; }
.mc-btn { height: 40px; padding: 0 14px; border-radius: 10px; }
.mc-btn-stage { padding: 0 12px; }

/* 点舞 */
.dance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.dance-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 12px 14px; border-radius: 16px; background: var(--panel-2); border: 1.5px solid var(--line); transition: border-color .2s; }
.dance-card.hit { border-color: var(--accent); animation: hitpulse 1.5s ease-out; }
@keyframes hitpulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 92, 255, .7); }
  15% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(139, 92, 255, .35); }
  100% { transform: scale(1); box-shadow: 0 0 0 16px rgba(139, 92, 255, 0); }
}
.dance-av { position: relative; }
.dance-name { font-size: 17px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dance-label { font-size: 13px; color: #C7B3FF; font-weight: 700; min-height: 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dance-label.dim { color: var(--dim); font-weight: 500; }
.dance-gift { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); max-width: 100%; white-space: nowrap; min-width: 0; }
.dance-gift > span { overflow: hidden; text-overflow: ellipsis; }
.dance-gift > span.dim { flex: none; }
.dance-countline { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.dance-count { font-size: 34px; font-weight: 800; line-height: 1; display: inline-block; }
.dance-count-label { color: var(--dim); font-size: 12.5px; }
.plays { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #10141B; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.plays-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.plays-head .ic { color: var(--warn); }
.plays-list { display: flex; flex-wrap: wrap; gap: 8px; }
.play-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: var(--r-pill); background: var(--warn-soft); border: 1px solid rgba(255, 176, 32, .3); }
.play-name { font-weight: 700; }
.play-count { font-weight: 800; color: var(--warn); }

/* 攻守擂 */
.cc-duel { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1080px; }
.duel-result { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: #FFD88A; font-weight: 700; }
.duel-result-score { margin-left: auto; color: var(--fg); font-weight: 800; }
.duel-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 14px; }
.duel-side { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 14px 14px; border-radius: 16px; background: var(--panel-2); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; min-width: 0; }
.duel-side.def { --side: var(--accent); --side-soft: var(--accent-soft); }
.duel-side.chal { --side: #FF7AA2; --side-soft: rgba(255, 122, 162, .15); }
.duel-side.lead { border-color: var(--side); box-shadow: 0 0 0 3px var(--side-soft); }
.duel-side.vacant { opacity: .6; border-style: dashed; }
.duel-role { display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: var(--r-pill); background: var(--side-soft); color: var(--side); font-weight: 800; font-size: 12.5px; }
.duel-side.chal .duel-role { color: #FF9DBA; }
.duel-side.def .duel-role { color: #C7B3FF; }
.duel-av { position: relative; margin-top: 6px; }
.duel-av .avatar { box-shadow: 0 0 0 3px var(--side); }
.duel-av .gift-ic { position: absolute; right: -4px; bottom: -2px; border: 2px solid var(--panel-2); border-radius: 8px; }
.duel-av-empty { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--line-2); color: var(--dim); }
.duel-name { font-size: 18px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.duel-subline { font-size: 12.5px; color: var(--muted); min-height: 0; }
.duel-subline:empty { display: none; }
.duel-score { font-size: 44px; font-weight: 800; line-height: 1.05; display: inline-block; }
.duel-side.pending .duel-score { font-size: 28px; color: var(--dim); }
.duel-unit { font-size: 12.5px; color: var(--dim); font-weight: 600; min-height: 17px; }
.duel-act { margin-top: 6px; min-height: 40px; display: flex; justify-content: center; }
.duel-mid { display: grid; place-items: center; }
.duel-vs-text { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #10141B; border: 1px solid var(--line-2); color: var(--muted); font-weight: 900; font-size: 16px; letter-spacing: 1px; }
.duel-bar { position: relative; height: 14px; border-radius: 99px; overflow: hidden; background: #FF7AA2; }
.duel-bar.idle { background: #2A3242; }
.duel-bar.idle .duel-fill { background: #3A4456; }
.duel-bar.revive { background: #262E3D; }
.duel-bar.revive .duel-fill { background: linear-gradient(90deg, #FF7AA2, #FFB020); }
.duel-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; transition: transform .35s ease-out; }
.duel-rule { margin: -4px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.duel-lineup { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 12px 14px; border-radius: 12px; background: #10141B; border: 1px solid var(--line); }
.q-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.q-group.grow { flex: 1; }
.q-label { font-size: 12.5px; color: var(--dim); font-weight: 700; white-space: nowrap; }
.q-list { display: flex; flex-wrap: wrap; gap: 6px; }
.q-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 4px; border-radius: var(--r-pill); background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; }
.q-tag { font-size: 11px; color: var(--dim); font-weight: 700; }
.q-group.cand .q-chip { border-color: rgba(255, 176, 32, .45); background: var(--warn-soft); }
.q-group.cand .q-tag { color: var(--warn); }

/* 座位抢夺 */
.cc-seat { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 1080px; }
.seat-list, .seat-wait { display: flex; flex-direction: column; gap: 8px; }
.seat-row { display: grid; grid-template-columns: 64px auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--panel-2); border: 1.5px solid var(--line); }
.seat-row.king { border-color: rgba(255, 176, 32, .55); background: linear-gradient(90deg, rgba(255, 176, 32, .12), var(--panel-2) 45%); }
.seat-row.empty { grid-template-columns: 64px minmax(0, 1fr) auto; border-style: dashed; background: transparent; min-height: 66px; }
.seat-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 46px; border-radius: 12px; background: #10141B; border: 1px solid var(--line-2); color: var(--muted); font-weight: 800; font-size: 18px; }
.seat-badge.king { background: linear-gradient(135deg, #FFD36B, #FFB020); border-color: transparent; color: #3A2600; font-size: 12px; }
.seat-id { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.seat-name { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 16px; min-width: 0; }
.seat-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-tags { display: flex; gap: 4px; }
.seat-tags:empty { display: none; }
.seat-nums { display: flex; align-items: flex-end; gap: 18px; }
.seat-num-col { display: flex; flex-direction: column; align-items: flex-end; }
.seat-hold { font-size: 26px; font-weight: 800; line-height: 1.1; display: inline-block; }
.seat-row.king .seat-hold { color: #FFD88A; }
.seat-round { font-size: 16px; font-weight: 700; color: #C9D2E0; }
.seat-num-label { font-size: 11px; color: var(--dim); white-space: nowrap; }
.seat-act { min-width: 0; }
.seat-empty-text { font-weight: 700; color: var(--muted); }
.seat-empty-hint { font-size: 12px; }
.seat-wait-head { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; font-weight: 800; font-size: 13px; color: var(--muted); }
.seat-wait-head .dim { font-weight: 500; font-size: 12px; }
.wait-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 6px 14px 6px 10px; border-radius: 12px; background: #171C25; border: 1px solid var(--line); }
.wait-row .seat-hold { font-size: 20px; }
.wait-row .seat-round { font-size: 14px; }
.seat-gap { padding: 3px 10px; border-radius: var(--r-pill); background: var(--danger-soft); color: #FF9AAA; font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.seat-wait-empty { margin: 0; font-size: 13px; }

/* 本轮数据 */
.cc-stats { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #11151C; border: 1px solid var(--line); }
.st-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }
.st-head .ic { color: var(--warn); }
.st-title { color: var(--fg); }
.st-note { font-size: 12px; font-weight: 500; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.st-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.st-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.st-tile.main { grid-column: 1 / -1; background: linear-gradient(90deg, rgba(255, 176, 32, .12), var(--panel-2) 70%); }
.st-tile.main .st-val { font-size: 26px; color: #FFD88A; }
.st-val { font-size: 19px; font-weight: 800; line-height: 1.2; }
.st-label { font-size: 12px; color: var(--dim); }
.st-topwrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-sub { font-size: 12px; color: var(--dim); font-weight: 700; }
.st-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.st-row { display: grid; grid-template-columns: 22px 26px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; background: var(--panel-2); font-size: 13px; }
.st-rank { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #262E3D; color: var(--muted); font-weight: 800; font-size: 12px; }
.st-rank.r1 { background: linear-gradient(135deg, #FFD36B, #FFB020); color: #3A2600; }
.st-rank.r2 { background: #C9D2E0; color: #1B212C; }
.st-rank.r3 { background: #D9A273; color: #2A1606; }
.st-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-to { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.st-dia { color: var(--warn); white-space: nowrap; }
.st-empty { padding: 8px; font-size: 13px; }

/* 本场轮次历史 */
.cc-hist { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; background: #11151C; }
.cc-hist > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 700; color: var(--muted); }
.cc-hist > summary::-webkit-details-marker { display: none; }
.cc-hist > summary:hover { color: var(--fg); }
.cc-hist .hist-title { color: var(--fg); }
.cc-hist .hist-toggle { font-size: 12px; font-weight: 600; }
.hist-list { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; max-height: 360px; overflow-y: auto; }
.hist { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
.hist-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hist-no { font-weight: 800; color: var(--fg); }
.hist-time { color: var(--dim); font-size: 12px; }
.hist-detail { color: #FFD88A; font-weight: 600; }
.hist-parts { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #C9D2E0; }
.hist-part.win b { color: #FFD88A; }
.hist-part.win b::before { content: "★ "; }
.hist-adj { display: flex; gap: 8px; font-size: 12px; color: var(--muted); padding-left: 2px; }
.hist-empty { margin: 0; padding: 4px 4px 2px; font-size: 13px; }

/* 调分 / 改绑 弹窗 */
.adj-who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); }
.adj-name { font-weight: 800; font-size: 16px; }
.adj-cur { font-size: 13px; }
.adj-input { text-align: center; font-weight: 800; font-size: 22px; }
.adj-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: -4px; }
.adj-chip { height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: #8EF0C9; font-weight: 800; font-variant-numeric: tabular-nums; }
.adj-chip.neg { color: #FF9AAA; }
.adj-chip:hover { background: var(--panel-3); }
.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.rb-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; min-height: 104px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--panel-2); color: var(--fg); font-weight: 700; }
.rb-opt:hover:not(:disabled) { border-color: var(--accent); background: #221B3A; }
.rb-opt.current { opacity: .7; cursor: default; }
.rb-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= 底栏 ================= */
.sb-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); }
.sb-item .ic { color: var(--dim); }
.sb-label { color: var(--dim); }
.sb-hint { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; cursor: help; outline-offset: 1px; }
.sb-hint-info { background: var(--info-soft); color: #8DB4FF; }
.sb-hint-warn { background: var(--warn-soft); color: var(--warn); }
.sb-hint-err { background: var(--danger-soft); color: var(--danger); }
#status-hints { gap: 8px; }
.sb-main { height: 34px; padding: 0 18px; font-size: 14px; }

/* ================= 窄屏（1280×720） ================= */
@media (max-width: 1440px) {
  .cc { padding: 14px 16px; gap: 12px; }
  .cc-status { font-size: 26px; }
  .cc-cd-num { font-size: 34px; }
  .cc-cd { min-width: 128px; padding: 6px 12px 8px; }
  .cc-btn-main { min-width: 180px; flex-basis: 180px; }
  .mc-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
  .mc-card { padding: 12px; gap: 6px; }
  .mc-score { font-size: 28px; }
  .duel-score { font-size: 38px; }
  .duel-side { padding: 12px 10px 10px; }
  .dance-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
  .dance-card { padding: 14px 8px 12px; }
  .dance-count { font-size: 30px; }
  .seat-row { gap: 10px; }
  .st-grid { grid-template-columns: 1fr; }
}
@media (max-height: 800px) {
  .cc-actbar { padding: 10px 12px; }
  .cc-btn-main, .cc-btn-revive, .cc-sec { height: 50px; }
  .duel-av .avatar { width: 60px !important; height: 60px !important; font-size: 24px !important; }
  .duel-av-empty { width: 60px; height: 60px; }
  .cc-meta { gap: 4px; }
}

/* ================= 第 4 组：场次 / 原生连线 PK 提示 / 整场 ================= */
.cc-live { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; margin-left: auto; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--dim); font: inherit; font-size: 11.5px; cursor: copy; white-space: nowrap; }
.cc-live:hover { color: var(--muted); background: var(--panel-2); }
.cc-live:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cc-pk { align-items: flex-start; padding-right: 6px; }
.cc-pk > span { flex: 1; min-width: 0; line-height: 1.55; }
.cc-pk-close { flex: none; margin: -4px 0 -4px 4px; }
.duel-total { font-size: 12px; color: var(--dim); font-weight: 600; }
.duel-total:empty { display: none; }
.seat-total { font-size: 11.5px; color: var(--dim); font-weight: 600; white-space: nowrap; }
.seat-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.wait-row .seat-id { gap: 1px; }
.seat-gap.off { visibility: hidden; }
