/* ============================================================
   长歌杯赛事系统样式（选手端 + 主办方后台共用）
   ============================================================ */

/* ---------- 赛事主视觉 ---------- */
#event-hero {
    min-height: 34vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 52px 24px 30px;
    position: relative;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(243, 205, 116, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 120%, rgba(139, 92, 246, 0.45) 0%, transparent 60%);
}

/* ---------- 宣传海报 / 交流群二维码（页面底部展示，按赛事配置） ---------- */
/* 多图默认并排展示（如 背景横幅 + 宣传海报），不再依赖 JS 添加 .row */
.ev-poster {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    margin-top: 8px;
}
.ev-poster img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 70vh;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    cursor: zoom-in;
    transition: transform 0.25s;
}
.ev-poster img:hover {
    transform: scale(1.015);
}
.ev-poster img.qr {
    width: 232px;
    max-width: 232px;
    max-height: none;
    border-radius: 18px;
    padding: 10px;
    background: #fff;
    cursor: default;
}
.ev-poster img.qr:hover {
    transform: none;
}
/* 多图海报并排展示（如 背景横幅 + 宣传海报）：由 JS 在存在多图时给容器加 .row */
.ev-poster.row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
}
.ev-poster.row img {
    max-height: 66vh;
}
.ev-poster.row .ev-poster-note {
    width: 100%;
    text-align: center;
}
.ev-poster-note {
    width: 100%;
    text-align: center;
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ---------- 顶部「赛事交流群」横幅（.group-card + 二维码/群列表） ---------- */
.group-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 22px 26px;
    border-radius: 18px;
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(243, 205, 116, 0.10), rgba(243, 205, 116, 0) 55%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(243, 205, 116, 0.28);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}
.grp-head {
    flex: 1 1 260px;
    min-width: 0;
}
.grp-label {
    margin: 0 0 6px;
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--gold-dim);
}
.grp-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.4;
}
.grp-sub {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.9;
}
/* 群二维码：统一缩到 160px 宽，完整显示不裁切（原图多为 540×816 / 1284×2283 的长图） */
.grp-qr {
    flex: none;
    text-align: center;
}
.grp-qr img {
    display: block;
    width: 160px;
    max-width: 160px;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    border-radius: 14px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    cursor: zoom-in;
}
.grp-qr-note {
    margin: 8px auto 0;
    max-width: 190px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-muted);
}
/* 后台填写的赛事群列表 */
.grp-list {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.grp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}
.grp-ico { font-size: 1.3rem; }
.grp-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grp-txt b { font-size: 0.95rem; }
.grp-id { font-size: 12.5px; color: var(--text-muted); }
.grp-id.dim { opacity: 0.75; }
/* 后台为某个群上传了二维码截图：群列表改为并排卡片，每个群一张二维码（点击可放大） */
.grp-list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}
.grp-item { flex: 1 1 190px; }
.grp-item-qr {
    flex: 0 1 auto;
    flex-direction: column;
    align-items: center;
    padding: 14px 16px;
    text-align: center;
}
.grp-item-qr .grp-qr-note { max-width: 176px; }
@media (max-width: 479px) {
    .group-card { padding: 18px 16px; gap: 16px; }
    .grp-qr img { width: 132px; max-width: 132px; max-height: 220px; }
}

/* ---------- 顶部「主办方联系方式」横幅（赛事群满 200 人无法扫码进群时置顶展示） ---------- */
.contact-sec { padding: 28px 0 0; }
.contact-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 26px;
    padding: 20px 26px;
    border-radius: 18px;
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(243, 205, 116, 0.16), rgba(243, 205, 116, 0) 55%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(243, 205, 116, 0.42);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}
.ct-head { flex: 1 1 300px; min-width: 0; }
.ct-label {
    margin: 0 0 6px;
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--gold-dim);
}
.ct-title { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.4; }
.ct-sub { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }
.ct-body {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.ct-value {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--gold);
    background: rgba(243, 205, 116, 0.10);
    border: 1px dashed rgba(243, 205, 116, 0.5);
    word-break: break-all;
    -webkit-user-select: all;
    user-select: all;
}
.ct-copy {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1b1206;
    background: linear-gradient(135deg, #f7d98a, var(--gold));
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.ct-copy.done { color: var(--green); background: rgba(116, 217, 154, 0.16); }
@media (max-width: 479px) {
    .contact-card { padding: 16px; gap: 14px; }
    .ct-body { width: 100%; }
    .ct-value { flex: 1 1 auto; }
}

/* ---------- 赛事解说（赛前加好友，支持点击复制） ---------- */
.caster-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 26px;
    padding: 20px 24px;
    border-radius: 18px;
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(155, 108, 248, 0.14), rgba(155, 108, 248, 0) 55%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(155, 108, 248, 0.32);
}
.caster-head { flex: 1 1 240px; min-width: 0; }
.caster-label {
    margin: 0 0 6px;
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--gold-dim);
}
.caster-title { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.4; }
.caster-sub { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }

.caster-list {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.caster-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}
.caster-no {
    flex: none;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    font-size: 11px;
    color: var(--gold);
    background: rgba(243, 205, 116, 0.12);
}
.caster-id {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.caster-copy {
    flex: none;
    font: inherit;
    font-size: 12px;
    color: var(--gold);
    background: rgba(243, 205, 116, 0.1);
    border: 1px solid rgba(243, 205, 116, 0.42);
    border-radius: 8px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.18s;
    -webkit-tap-highlight-color: transparent;
}
.caster-copy:hover { background: rgba(243, 205, 116, 0.22); }
.caster-copy.done { color: var(--green); border-color: rgba(116, 217, 154, 0.6); background: rgba(116, 217, 154, 0.14); }

.caster-foot {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding-top: 2px;
}
.caster-copy-all {
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(243, 205, 116, 0.12);
    border: 1px solid rgba(243, 205, 116, 0.5);
    border-radius: 999px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.18s;
    -webkit-tap-highlight-color: transparent;
}
.caster-copy-all:hover { background: rgba(243, 205, 116, 0.24); }
.caster-copy-all.done { color: var(--green); border-color: rgba(116, 217, 154, 0.6); background: rgba(116, 217, 154, 0.14); }
.caster-tip { color: var(--text-muted); font-size: 12px; }

/* 手机端：整块改为单列，复制按钮加大便于点触 */
@media (max-width: 560px) {
    .caster-card { padding: 16px 14px; gap: 14px; }
    .caster-title { font-size: 1.1rem; }
    .caster-sub { font-size: 0.85rem; }
    .caster-item { padding: 10px 12px; }
    .caster-id { font-size: 0.92rem; }
    .caster-copy { padding: 7px 14px; font-size: 12.5px; }
    .caster-foot { gap: 8px 10px; }
    .caster-copy-all { width: 100%; text-align: center; padding: 10px 16px; }
    .caster-tip { width: 100%; }
}

.tg-kicker {
    font-size: 0.8rem;
    letter-spacing: 6px;
    color: var(--gold-dim);
    margin-bottom: 10px;
}

.tg-title {
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #fff 30%, var(--gold) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tg-sub {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.98rem;
    letter-spacing: 1px;
}

.tg-hero-meta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tg-actions {
    margin-top: 18px;
}

.tg-hero-meta .badge,
.badge {
    display: inline-block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

.badge.on { color: var(--green); border-color: rgba(111, 208, 140, 0.45); background: rgba(111, 208, 140, 0.08); }
.badge.warn { color: var(--gold); border-color: rgba(240, 201, 111, 0.45); background: rgba(240, 201, 111, 0.08); }
.badge.off { color: var(--red); border-color: rgba(227, 107, 107, 0.45); background: rgba(227, 107, 107, 0.08); }
.badge.info { color: var(--blue); border-color: rgba(79, 157, 247, 0.45); background: rgba(79, 157, 247, 0.08); }
.badge.dim { color: var(--text-muted); }

/* ---------- 登录 / 报名 ---------- */
.tg-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.tg-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.tg-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s;
}

.tg-tab.on {
    color: var(--gold);
    border-bottom-color: var(--gold);
    font-weight: 600;
}

.tg-field { margin-bottom: 14px; }

.tg-field label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tg-field label b { color: var(--red); font-weight: 600; }

.tg-input,
.tg-textarea {
    width: 100%;
    background: #0e1422;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tg-input:focus,
.tg-textarea:focus {
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 3px rgba(240, 201, 111, 0.12);
}

.tg-input[readonly] { opacity: 0.75; }

.tg-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.7;
}

/* 分轮配置表（逐行：轮次区间 / 赛制 / 职业数 / Ban） */
.tg-rounds-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.tg-rounds-row .rnd-label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 62px;
}
.tg-rounds-row .tg-input {
    width: auto;
    padding: 6px 10px;
}
.tg-rounds-row select.tg-input {
    width: auto;
}
.tg-rounds-row .rnd-del {
    margin-left: auto;
    padding: 4px 10px;
}

.tg-msg {
    font-size: 13px;
    color: var(--red);
    min-height: 18px;
    margin-top: 8px;
    line-height: 1.7;
}

.tg-msg.ok { color: var(--green); }

.tg-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tg-row .grow { flex: 1; min-width: 200px; }

/* ---------- 对阵表 ---------- */
.tg-bracket {
    overflow-x: auto;
    padding-bottom: 8px;
}

.br-col { display: flex; gap: 10px; min-width: 1000px; }

.br-round { flex: 1; min-width: 0; }

.br-round-title {
    text-align: center;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 0 12px;
}

.br-round-title small {
    display: block;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 11.5px;
    margin-top: 2px;
}

.br-list { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 单败树形对阵图（图标形式：第 1 轮在最左，决赛在最右，带晋级连线） ---------- */
.br-find {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 10px;
}
.br-find .sec-head-sub { flex: 1 1 100%; }
.br-find a.vs-export { text-decoration: none; line-height: normal; }
.vs-export.on { background: rgba(243, 205, 116, 0.26); box-shadow: 0 0 0 2px rgba(243, 205, 116, 0.18); font-weight: 700; }

/* 单败「重新抽签」轮次提示：树形连线不再代表真实晋级路径 */
.br-redraw-note {
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px dashed rgba(243, 205, 116, 0.5);
    background: rgba(243, 205, 116, 0.08);
    color: var(--gold);
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.7;
}

.br-tree-wrap { padding: 4px 0 10px; }
.br-tree-tip { color: var(--text-muted); font-size: 0.78rem; margin: 0 0 10px; }
.br-tree { --br-line: rgba(255, 255, 255, 0.22); display: inline-block; padding: 6px 4px; }
.tr-node { display: flex; align-items: center; justify-content: flex-end; }
.tr-kids { display: flex; flex-direction: column; position: relative; }
.tr-kids > .tr-node { padding: 5px 0; }
.tr-match {
    position: relative;
    flex: none;
    box-sizing: border-box;
    width: 188px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px 8px 4px;
    font-size: 12.5px;
}
.tr-top { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; line-height: 14px; color: var(--text-muted); }
.tr-top .tr-mid { color: var(--gold); font-weight: 800; letter-spacing: 0.5px; }
.tr-slot { display: flex; align-items: center; gap: 6px; height: 19px; min-width: 0; }
.tr-slot b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.tr-slot i { flex: none; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 10px; color: var(--text-muted); }
.tr-slot em { flex: none; font-style: normal; font-weight: 800; color: var(--gold); }
.tr-slot.win b { color: var(--gold); }
.tr-slot.lose { opacity: 0.5; }
.tr-match.done { border-color: rgba(243, 205, 116, 0.38); }
.tr-match.bad { border-color: #c15b5b; }
.tr-match.tbd { border-style: dashed; background: rgba(255, 255, 255, 0.025); }
.tr-match.bye .tr-slot:last-child b { color: var(--text-muted); font-weight: 400; }
/* 晋级连线：子节点右侧横线 → 竖线 → 父节点卡片 */
.tr-kids > .tr-node > .tr-match::after { content: ''; position: absolute; left: 100%; top: 50%; width: 14px; border-top: 1px solid var(--br-line); }
.tr-kids::after { content: ''; position: absolute; left: calc(100% + 14px); top: 25%; height: 50%; border-left: 1px solid var(--br-line); }
.tr-kids + .tr-match { margin-left: 28px; }
.tr-kids + .tr-match::before { content: ''; position: absolute; left: -14px; top: 50%; width: 14px; border-top: 1px solid var(--br-line); }
/* 搜索命中高亮 */
.tr-match.hit, .br-match.hit {
    border-color: var(--gold);
    background: rgba(243, 205, 116, 0.14);
    box-shadow: 0 0 0 2px rgba(243, 205, 116, 0.45);
}

.br-match {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.br-match .slot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    color: var(--text-muted);
}

.br-match .slot b {
    color: var(--text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.br-match .slot .bn {
    font-size: 11px;
    color: var(--text-muted);
}

.br-match .slot .s {
    font-weight: 800;
    font-size: 13px;
    color: var(--gold);
}

.br-match .slot.win b { color: var(--gold); }
.br-match .slot.lose { opacity: 0.55; }
.br-match .slot.bye b { color: var(--text-muted); }

.br-status {
    border-top: 1px dashed rgba(255, 255, 255, 0.07);
    margin-top: 6px;
    padding-top: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.br-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 60px 0;
    font-size: 0.95rem;
}

/* ---------- 双败赛程图（胜者组 / 败者组 / 总决赛 + TBD 占位） ---------- */
.de-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding: 4px 2px 12px;
    font-size: 12px;
}
.de-legend .lg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-muted);
    white-space: nowrap;
}
.de-legend .lg-w { color: var(--blue); }
.de-legend .lg-l { color: #f28b8b; }
.de-legend .lg-f { color: var(--gold); }
.de-legend .lg-dim { border-style: dashed; color: var(--text-muted); }

.br-round-title .pool-chip {
    display: inline-block;
    font-size: 10px;
    vertical-align: 2px;
    margin-right: 5px;
    padding: 1px 7px;
    border-radius: 5px;
    letter-spacing: 0.5px;
}

.br-round.pool-w { border-top: 3px solid var(--blue); }
.br-round.pool-l { border-top: 3px solid #c15b5b; }
.br-round.pool-f { border-top: 3px solid var(--gold); }
.br-round.pool-w .br-round-title { color: var(--blue); }
.br-round.pool-l .br-round-title { color: #e88b8b; }
.br-round.pool-f .br-round-title { color: var(--gold); }
.br-round.on {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 10px 8px;
}
.br-round.on .br-list { margin-top: 0; }

.br-match.tbd {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.025);
    min-height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.br-match.tbd .slot b { color: var(--text-muted); }
.tbd-txt {
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 12px;
}
.br-final-note {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.7;
    color: var(--text-muted);
    background: rgba(240, 201, 111, 0.07);
    border: 1px dashed rgba(240, 201, 111, 0.35);
    border-radius: 8px;
    padding: 8px 10px;
}
.br-final-note b { color: var(--gold); }

/* ---------- 双败经典赛程图（胜者组/败者组/总决赛 · M 场次号 · 箭头连线） ---------- */
.de-bracket {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: max-content;
    padding: 2px 2px 10px;
}
.de-body { display: flex; flex-direction: column; gap: 30px; }
.de-lane { display: flex; align-items: center; gap: 6px; }
.de-lane .br-round { width: 204px; flex: none; }
.de-lane .br-round .br-round-title { padding-bottom: 8px; }
.de-arrow {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 700;
    padding: 0 3px;
    flex: none;
    line-height: 1;
}
.br-mwrap { margin-bottom: 9px; }
.br-mnum {
    display: block;
    font-size: 11px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.br-match { margin: 0; }

/* 晋级位 */
.br-advance {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 150px;
    text-align: center;
    flex: none;
}
.br-advance .adv-tag { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 5px; }
.br-advance .adv-name { font-weight: 800; font-size: 14px; }
.br-advance.adv-w { border-color: var(--blue); }
.br-advance.adv-w .adv-tag { color: var(--blue); }
.br-advance.adv-w .adv-name { color: var(--blue); }
.br-advance.adv-l { border-color: #c15b5b; }
.br-advance.adv-l .adv-tag { color: #e88b8b; }
.br-advance.adv-l .adv-name { color: #f28b8b; }

/* 总决赛列 */
.de-final-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 210px;
}
.de-final-col .de-arrow { font-size: 24px; }
.br-final-wrap {
    background: var(--card);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 12px 14px;
    width: 210px;
    box-shadow: 0 0 0 3px rgba(240, 201, 111, 0.12);
}
.br-final-wrap .br-mnum { color: var(--gold); }
.br-final-wrap .br-match { border: none; padding: 0; background: transparent; }
.br-final-wrap .slot.fin .fin-tag {
    font-size: 10px;
    color: var(--text-muted);
    margin-right: 6px;
    flex: none;
}
.br-final-wrap .slot.fin b { color: var(--text); }
.br-final-wrap .br-final-note { margin-top: 10px; }

/* 决赛卡片分出胜负时的高亮（需覆盖上面的 .slot.fin b 默认色，故更具体） */
.br-final-wrap .slot.fin.win b { color: var(--gold); }
.br-final-wrap .slot.fin.lose { opacity: 0.55; }
.br-final-wrap .slot.fin.lose b { color: var(--text-muted); }
.br-final-wrap.is-champ {
    box-shadow: 0 0 0 4px rgba(243, 205, 116, 0.22), 0 0 22px rgba(243, 205, 116, 0.3);
}
.br-final-result {
    margin-top: 9px;
    text-align: center;
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 0.3px;
    color: var(--gold);
    background: rgba(243, 205, 116, 0.13);
    border: 1px solid rgba(243, 205, 116, 0.45);
    border-radius: 8px;
    padding: 5px 8px;
}
.br-final-result.adv { color: var(--green); background: rgba(111, 208, 140, 0.12); border-color: rgba(111, 208, 140, 0.4); }
.br-final-result.pending { color: var(--text-muted); background: rgba(255, 255, 255, 0.05); border-color: var(--border); }

/* ---------- 比赛卡片（我的比赛） ---------- */
.tg-match-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.tg-match-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

.tg-match-vs {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tg-p { text-align: center; min-width: 120px; }
.tg-p b { display: block; font-size: 1.05rem; }
.tg-p small { color: var(--text-muted); font-size: 11.5px; }

.tg-vsmid {
    color: var(--gold-dim);
    font-weight: 700;
    font-size: 13px;
}

.tg-vsmid .big {
    font-size: 1.5rem;
    color: var(--gold);
    padding: 0 10px;
    font-weight: 800;
}

.tg-note-line {
    font-size: 12px;
    color: var(--text-muted);
    margin: 8px 0 2px;
    line-height: 1.8;
}

.tg-shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.tg-shot {
    width: 120px;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: zoom-in;
    transition: transform 0.15s;
}

.tg-shot:hover { transform: scale(1.03); }

.tg-report-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.7;
}

.tg-report-box b { color: var(--text); }

/* ---------- 参赛选手 ---------- */
.tg-player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.tg-player {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}

.tg-player b { display: block; font-size: 0.98rem; }
.tg-player small { color: var(--text-muted); font-size: 11.5px; }
.tg-player .bt {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--gold-dim);
    background: rgba(240, 201, 111, 0.08);
    border-radius: 999px;
    padding: 1px 10px;
    overflow-wrap: anywhere;
}

/* ---------- 手册 ---------- */
.tg-manual { line-height: 1.95; font-size: 0.92rem; color: #d8d9e3; }

/* ---------- 直播 / 转播 ---------- */
.stream-list { display: flex; flex-direction: column; gap: 10px; }
.stream-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}
.stream-item:hover {
    border-color: rgba(240, 201, 111, 0.5);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}
.stream-item .stm-ico { font-size: 1.4rem; flex: none; }
.stream-item .stm-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.stream-item .stm-info b { font-size: 0.98rem; }
.stream-item .stm-info small { color: var(--text-muted); font-size: 0.78rem; }
.stream-item .stm-info .stm-desc { color: rgba(243, 205, 116, 0.85); font-size: 0.82rem; }
.stream-item .stm-go { color: var(--gold); font-weight: 700; flex: none; }
.stream-more { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.stream-more small { color: var(--text-muted); font-size: 0.78rem; }
.stream-apply {
    border: 1px dashed rgba(243, 205, 116, 0.5);
    background: rgba(243, 205, 116, 0.06);
    color: var(--gold);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.stream-apply:hover { background: rgba(243, 205, 116, 0.16); }

/* ---------- 赛程时间表 ---------- */
.vs-export {
    border: 1px solid rgba(243, 205, 116, 0.55);
    background: rgba(243, 205, 116, 0.1);
    color: var(--gold);
    font-size: 13px;
    border-radius: 999px;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.vs-export:hover { background: rgba(243, 205, 116, 0.22); box-shadow: 0 0 0 3px rgba(243, 205, 116, 0.12); }
.vs-export:disabled { opacity: 0.6; cursor: wait; }
.sc-head { margin-bottom: 10px; }
.sc-head .tg-input { max-width: 260px; margin-left: auto; }
.sc-head .sec-head-sub { width: 100%; }
.sc-panel-top {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}
.sc-panel-top b { font-size: 1.02rem; color: var(--gold); }
.sc-panel-top small { color: var(--text-muted); }
.sc-list { margin-top: 6px; }
.sc-block + .sc-block { margin-top: 6px; }
.sc-block-hd {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    padding: 6px 4px 6px;
    background: rgba(243, 205, 116, 0.08);
    border-radius: 6px;
    border-bottom: 1px solid rgba(243, 205, 116, 0.28);
}
.sc-block-no { font-weight: 800; color: var(--gold); font-size: 0.95rem; }
.sc-block-time { font-weight: 700; color: var(--text); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.sc-block-tip { color: var(--text-muted); font-size: 0.75rem; }
.sc-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 9px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sc-row:last-child { border-bottom: none; }
.sc-time {
    flex: none;
    min-width: 64px;
    font-weight: 800;
    font-size: 1.12rem;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.sc-vs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-vs b { font-size: 0.96rem; }
.sc-vs .sc-mark { color: var(--text-muted); font-size: 0.8rem; }
.sc-meta { flex: none; color: var(--text-muted); font-size: 0.76rem; text-align: right; }
.sc-eta { margin-top: 10px; color: var(--text-muted); font-size: 0.8rem; line-height: 1.7; }
.tg-manual h3 { color: var(--gold); font-size: 1.05rem; margin: 20px 0 8px; }
.tg-manual h3:first-child { margin-top: 0; }
.tg-manual p { margin: 8px 0; }
.tg-manual ul, .tg-manual ol { padding-left: 22px; margin: 8px 0; }
.tg-manual li { margin: 4px 0; }
.tg-manual b { color: var(--text); }
.tg-manual .hl { color: var(--gold); font-weight: 700; }
.tg-manual .red { color: var(--red); font-weight: 700; }
.tg-manual table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 0.85rem; }
.tg-manual th, .tg-manual td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.tg-manual th { background: #161d2e; color: var(--text-muted); }

.manual-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 30px 0;
}

/* ---------- 弹窗 ---------- */
.tg-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tg-modal[hidden] { display: none; }

.tg-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.tg-modal-panel {
    position: relative;
    width: 520px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #161d2e;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
    padding: 22px 24px;
}

.tg-modal-panel.wide {
    width: 760px;
}

#ur-out {
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.75;
    white-space: pre;
    overflow-x: auto;
}

.tg-modal-panel h3 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.tg-modal-sub {
    color: var(--text-muted);
    font-size: 12.5px;
    margin-bottom: 16px;
}

.tg-modal-x {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}

.tg-modal-x:hover { color: #fff; }

.tg-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.tg-shot-thumb {
    position: relative;
    display: inline-block;
}

.tg-shot-thumb img {
    width: 96px;
    height: 66px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 4px;
}

.tg-shot-thumb .rm {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    cursor: pointer;
    line-height: 1;
}

/* ---------- 图片放大 ---------- */
.tg-zoom {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.tg-zoom img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 8px;
}

/* ---------- 轻提示 ---------- */
.tg-toast {
    position: fixed;
    top: 78px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4000;
    background: #1c2336;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    max-width: min(92vw, 560px);
    line-height: 1.6;
}

.tg-toast.err { border-left-color: var(--red); }

/* ---------- 主办方后台 ---------- */
.tg-admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.tg-admin-top h2 { margin-bottom: 0; }

.tg-subtab {
    display: inline-block;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.15s;
}

.tg-subtab:hover { color: #fff; }

.tg-subtab.on {
    background: var(--card);
    color: var(--gold);
    border: 1px solid var(--gold-dim);
}

/* 报名 / 比赛详情两列 */
.tg-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 10px;
}

.tg-detail .col {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px 14px;
}

.tg-detail h4 {
    font-size: 12.5px;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.tg-detail .item { font-size: 13px; color: var(--text-muted); padding: 2px 0; line-height: 1.7; }
.tg-detail .item b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.tg-detail .item .lbl { display: inline-block; min-width: 64px; }

.admin-actions { margin-top: 4px; }

/* 争议行：始终淡红底（原为行内样式，改为 data-status 便于手机端卡片化后复用） */
.admin-table tbody tr[data-status="disputed"] { background: rgba(227, 107, 107, 0.06); }

.dim { color: var(--text-muted); font-weight: 400; }

.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; }
.pill.ok { background: rgba(111, 208, 140, 0.14); color: var(--green); }
.pill.wait { background: rgba(240, 201, 111, 0.14); color: var(--gold); }
.pill.no { background: rgba(227, 107, 107, 0.14); color: var(--red); }
.pill.info { background: rgba(79, 157, 247, 0.14); color: var(--blue); }
.pill.dim { background: rgba(255, 255, 255, 0.07); color: var(--text-muted); }

.status-line { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 4px 0; flex-wrap: wrap; }

.live-note {
    border: 1px dashed rgba(240, 201, 111, 0.5);
    background: rgba(240, 201, 111, 0.06);
    color: var(--gold-dim);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 14px;
}

@media (max-width: 767px) {
    .br-col { min-width: 760px; }
    .de-lane .br-round { width: 180px; }
    .de-lane .br-list { gap: 8px; }
    .de-arrow { font-size: 15px; }
    .tg-detail { grid-template-columns: 1fr; }
}

/* ============ 赞助支持（选手端） ============ */
.tg-qr-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    cursor: zoom-in;
}
#sp-method-tabs { margin-bottom: 10px; }
#sp-method-tabs .tg-tab.no { opacity: .35; cursor: not-allowed; }

.tg-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}
.tg-sponsor-card {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tg-sponsor-card b { color: var(--text); font-size: .95rem; }
.tg-sponsor-card .amt { color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.tg-sponsor-card .note {
    color: var(--text-muted);
    font-size: 12.5px;
    margin: 2px 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.tg-sponsor-card small { color: var(--text-muted); font-size: 11px; opacity: .75; }
.tg-sponsor-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tg-sponsor-head b { overflow-wrap: anywhere; }
.sponsor-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    flex: none;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.55),
        inset 0 0 0 3.5px rgba(0, 0, 0, 0.25),
        inset 0 -5px 9px rgba(0, 0, 0, 0.35),
        inset 0 3px 6px rgba(255, 255, 255, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    user-select: none;
}
.sponsor-badge.lv-bronze { background: radial-gradient(circle at 32% 28%, #f2c18b, #c9813f 58%, #7a4a18); color: #fff; }
.sponsor-badge.lv-silver { background: radial-gradient(circle at 32% 28%, #ffffff, #c3ccd9 55%, #7d8794); color: #46505c; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.sponsor-badge.lv-gold { background: radial-gradient(circle at 32% 28%, #fff3bd, #f6c64c 52%, #a87a06); color: #5f4300; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55); }
.sponsor-badge.lv-diamond { background: radial-gradient(circle at 30% 26%, #ffffff, #bfe9ff 42%, #4aa9dd 74%, #16689f); color: #06405f; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65); }
.sponsor-heart { color: #ff8a8a; font-size: 15px; line-height: 25px; flex: none; }
/* 礼品 / 实物赞助卡片 */
.tg-sponsor-card.gift { border-color: rgba(255, 196, 120, 0.35); }
.tg-sponsor-card .gift-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 9px;
    margin-bottom: 2px;
    background: rgba(255, 255, 255, 0.04);
}
.tg-sponsor-card .gift-name { color: var(--text); font-weight: 700; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.sponsor-gift-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    flex: none;
    background: radial-gradient(circle at 32% 28%, #ffe6b0, #f0a63c 60%, #9c5a10);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4);
    user-select: none;
}
/* 后台礼品缩略图 */
.gift-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); }
.avatar-thumb { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; vertical-align: middle; border: 1px solid rgba(255, 255, 255, 0.15); }
.gift-prev { min-height: 90px; display: flex; align-items: center; }
.gift-prev img { max-width: 200px; max-height: 200px; border-radius: 10px; }
/* 赞助人头像 */
.sponsor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    border: 2px solid rgba(255, 255, 255, 0.25);
}
.sponsor-avatar.fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
/* 收款码直接展示 */
.tg-qr-inline { display: flex; flex-wrap: wrap; gap: 16px; }
.tg-qr-inline .qr-item { text-align: center; }
.tg-qr-inline .qr-item img {
    width: 160px;
    max-width: 42vw;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #fff;
    padding: 4px;
}
.tg-qr-inline .qr-item small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 12px; }
/* 长列表「展开 / 收起」按钮 */
.tg-more { text-align: center; margin-top: 12px; }
.tg-more .admin-btn { min-width: 180px; }
/* 奖池 / 赏金榜 */
.pool-hero {
    background: linear-gradient(135deg, rgba(246, 198, 76, 0.14), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(246, 198, 76, 0.35);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.pool-amount { display: flex; flex-direction: column; }
.pool-amount small { color: var(--text-muted); font-size: 12px; }
.pool-amount b { color: var(--gold); font-size: 2rem; line-height: 1.2; }
.pool-split { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--text-muted); font-size: 12.5px; }
.pool-split span { background: rgba(255, 255, 255, 0.05); border-radius: 999px; padding: 3px 10px; }
.pool-like {
    margin-top: 10px;
    background: rgba(255, 138, 138, 0.1);
    border: 1px solid rgba(255, 138, 138, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.7;
}
.pool-like b { color: var(--gold); }
.pool-card .pool-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    flex: none;
}
.pool-card .pool-rank.top1 { background: radial-gradient(circle at 32% 28%, #fff3bd, #f6c64c 52%, #a87a06); color: #5f4300; }
.pool-card .pool-rank.top2 { background: radial-gradient(circle at 32% 28%, #ffffff, #c3ccd9 55%, #7d8794); color: #46505c; }
.pool-card .pool-rank.top3 { background: radial-gradient(circle at 32% 28%, #f2c18b, #c9813f 58%, #7a4a18); color: #fff; }
.tg-grp-chip {
    display: inline-block;
    background: rgba(155, 108, 248, 0.16);
    border: 1px solid rgba(155, 108, 248, 0.42);
    color: var(--blue);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 12.5px;
    line-height: 1.6;
    margin-right: 6px;
}

.tg-mine-list { display: flex; flex-direction: column; gap: 6px; }
.tg-mine-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 8px 12px;
    flex-wrap: wrap;
}
.tg-mine-item b { color: var(--gold); min-width: 70px; }
.tg-mine-item span { color: var(--text-muted); }
.tg-mine-item small { color: var(--text-muted); margin-left: auto; font-size: 11px; }

/* ============ 赞助管理（主办方后台） ============ */
.qr-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: zoom-in;
    vertical-align: middle;
}
.qr-big {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    vertical-align: middle;
}
.rcpt-prev {
    min-height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
#sp-recipients { padding: 4px 0; }
#sp-flow-summary { margin-bottom: 6px; }

/* ============ 返回赛事列表 ============ */
.tg-back { margin-bottom: 2px; }
.tg-back a {
    color: var(--text-muted);
    font-size: 12.5px;
    text-decoration: none;
    opacity: .85;
    transition: color .2s;
}
.tg-back a:hover { color: var(--gold); opacity: 1; }

/* ============ 职业 Ban（炉石 11 职业选择 / 卡片 Ban 条） ============ */
.tg-ban-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    margin: 12px 0 4px;
}
.tg-cls {
    padding: 9px 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    font-weight: 600;
}
.tg-cls:hover { border-color: var(--gold); background: rgba(243, 205, 116, 0.08); }
.tg-cls.on {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(243, 205, 116, .2), rgba(155, 108, 248, .22));
    color: var(--gold);
    box-shadow: 0 0 0 1px rgba(243, 205, 116, .55) inset;
}
.tg-ban-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 14px 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    font-size: 12.5px;
}

/* ============ 个人对战页（battle.html） ============ */
.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.sec-head .sec-title { margin: 0; }
.sec-head .admin-btn { margin-bottom: 4px; }
.sec-head-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    padding-bottom: 6px;
    max-width: 620px;
}

/* 焦点大卡提示条（出现在对战页首张比赛卡上方） */
.vs-big-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(243, 205, 116, 0.1);
    border: 1px dashed rgba(243, 205, 116, 0.55);
    color: var(--gold);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.7;
}
.vs-big-label b { color: var(--text); font-size: 1.05rem; }
.vs-big-label.warn {
    background: rgba(227, 107, 107, 0.1);
    border-color: rgba(227, 107, 107, 0.5);
    color: var(--red);
}
.vs-big-label.win {
    background: rgba(111, 208, 140, 0.1);
    border-color: rgba(111, 208, 140, 0.5);
    color: var(--green);
}
.vs-big-label.lose {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text-muted);
}

/* 对战页首张焦点大卡（当前要打的场次 / 最近赛果），由 .vs-top 包裹 */
.vs-top { margin-bottom: 22px; }
.vs-top .tg-match-card {
    border: 1px solid var(--gold-dim);
    background:
        linear-gradient(180deg, rgba(243, 205, 116, 0.09), rgba(47, 32, 105, 0) 65%),
        var(--card);
    box-shadow: 0 0 0 3px rgba(243, 205, 116, 0.12), var(--shadow);
    padding: 24px 28px;
    margin-bottom: 0;
}
.vs-top .tg-match-card .tg-match-head { margin-bottom: 16px; }
.vs-top .tg-match-card .tg-match-vs { gap: 16px; }
.vs-top .tg-match-card .tg-p { min-width: 180px; flex: 1 1 180px; }

/* 赛果总结：Markdown 原文展示 */
.tg-md {
    margin: 10px 0 0;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 460px;
    overflow: auto;
}
/* ---------- 手机端：主办方后台适配 ---------- */
@media (max-width: 767px) {
    /* 后台表格：默认保持「完整表头 + 横向滚动」，不适用卡牌站的卡片堆叠式（那会把表格压成看不懂的块）
       例外：对阵与战绩审批（.tbl-matches）列多、且「判定」按钮必须随点随到，手机端改为卡片式（见下方） */
    .tbl-wrap.tbl-admin {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tbl-wrap.tbl-admin table.data-table:not(.tbl-matches) {
        min-width: 720px;
    }
    .tbl-wrap.tbl-admin .data-table:not(.tbl-matches) thead {
        display: table-header-group;
    }
    .tbl-wrap.tbl-admin .data-table:not(.tbl-matches) tbody tr {
        display: table-row;
        border: none;
        border-radius: 0;
        background: none;
        padding: 0;
        margin-bottom: 0;
    }
    .tbl-wrap.tbl-admin .data-table:not(.tbl-matches) td {
        display: table-cell;
        flex-basis: auto;
        justify-content: flex-start;
        padding: 10px 12px;
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
    }
    .tbl-wrap.tbl-admin .data-table:not(.tbl-matches) td::before {
        content: none;
    }
    /* 后台整体：收紧留白、输入框 16px 防止 iOS 聚焦时自动放大 */
    #adm-dash .panel {
        padding: 16px 14px;
        border-radius: 14px;
    }
    #adm-dash .tg-input,
    #adm-dash textarea.tg-input,
    #adm-dash select.tg-input {
        font-size: 16px;
    }
    #adm-dash .admin-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    #adm-dash .tg-admin-top {
        gap: 8px;
    }
    #adm-dash .admin-filters {
        flex-wrap: wrap;
        width: 100%;
    }
    #adm-dash .admin-filters select {
        flex: 1 1 140px;
    }
    #adm-dash .tg-rounds-row {
        gap: 8px;
    }
    /* 兜底：任何超宽内容都在面板内滚动，不撑破整页 */
    #adm-dash {
        overflow-x: hidden;
    }
    #adm-dash .panel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    #adm-dash .container,
    #adm-dash .section {
        padding-left: 12px;
        padding-right: 12px;
    }
    #adm-dash .tg-admin-top {
        flex-direction: column;
        align-items: flex-start;
    }
    #adm-dash .tg-hint,
    #adm-dash .panel p {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    #adm-dash img {
        max-width: 100%;
        height: auto;
    }
    /* 表格内的操作按钮：手机上换行排布，避免挤成一坨 */
    .admin-table .admin-actions {
        flex-wrap: wrap;
        gap: 6px;
    }
    .admin-table .admin-btn {
        padding: 6px 10px;
        font-size: 12.5px;
        white-space: nowrap;
    }
    .admin-table td {
        white-space: normal;
    }

    /* ---------- 对阵与战绩审批：手机端改为卡片式 ----------
       原来 6 列横排 + 横向滚动，「判定」按钮在最右，手机上要一路右滑才能点到。
       卡片化后：一场一卡，信息竖排，操作按钮整行铺开，「判定」置顶并高亮。 */
    .tbl-wrap.tbl-admin table.data-table.tbl-matches { min-width: 0; }
    .tbl-wrap.tbl-admin .tbl-matches thead { display: none; }
    .tbl-wrap.tbl-admin .tbl-matches tbody tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        padding: 12px 14px;
        margin-bottom: 10px;
    }
    .tbl-wrap.tbl-admin .tbl-matches tbody tr[data-status="disputed"] {
        border-color: rgba(227, 107, 107, 0.45);
        background: rgba(227, 107, 107, 0.06);
    }
    .tbl-wrap.tbl-admin .tbl-matches tbody td {
        display: block;
        border-bottom: none;
        padding: 4px 0;
        white-space: normal;
        text-align: left !important;   /* 覆盖比分列的行内居中 */
        min-width: 0 !important;
    }
    .tbl-wrap.tbl-admin .tbl-matches tbody td::before {
        content: attr(data-label);
        display: block;
        color: var(--text-muted);
        font-size: 11.5px;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }
    /* 轮次 / 对阵 / 操作三列内容自解释，不再重复标签 */
    .tbl-wrap.tbl-admin .tbl-matches tbody td[data-label="轮次"]::before,
    .tbl-wrap.tbl-admin .tbl-matches tbody td[data-label="对阵"]::before,
    .tbl-wrap.tbl-admin .tbl-matches tbody td.admin-actions::before { display: none; }
    .tbl-wrap.tbl-admin .tbl-matches tbody td[data-label="对阵"] { font-size: 14px; }
    /* 操作区：两列网格铺满卡片宽度，按钮加大到易点尺寸 */
    .tbl-wrap.tbl-admin .tbl-matches td.admin-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed var(--border);
    }
    .tbl-wrap.tbl-admin .tbl-matches .admin-actions .admin-btn {
        width: 100%;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 10px;
        font-size: 13px;
        white-space: nowrap;
    }
    /* 判定是最高频操作，手机端金色高亮，一眼可见 */
    .tbl-wrap.tbl-admin .tbl-matches .admin-actions .admin-btn[data-act="judge"] {
        background: linear-gradient(135deg, var(--gold), #d9a94e);
        color: #111;
        font-weight: 700;
        border: none;
    }
}

/* 更小屏（<480px）：弹窗铺满、可点区域加大 */
@media (max-width: 480px) {
    .tg-modal {
        padding: 10px;
        align-items: flex-start;
    }
    .tg-modal-panel {
        width: 100%;
        padding: 16px 14px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }
    #adm-dash .admin-btn {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    #adm-dash .tg-input,
    #adm-dash select.tg-input,
    #adm-dash textarea.tg-input {
        min-height: 40px;
    }
}

/* 替补席选手卡片：虚线边框 + 稍淡，与正选区分 */
.tg-player.sub {
    border-style: dashed;
    opacity: 0.85;
}
.tg-player.sub b::after {
    content: ' 🪑';
    font-size: 0.85em;
}

/* 赛果总结：名次卡（冠军 / 亚军 / 四强） */
.sum-podium {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 4px;
}
.sum-podium .sum-item {
    flex: 1 1 180px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}
.sum-podium .sum-item .sum-tag {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.sum-podium .sum-item b { color: var(--gold); font-size: 1.02rem; }
.sum-podium .sum-item.champ { border-color: var(--gold-dim); background: rgba(243, 205, 116, 0.08); }
.sum-podium .sum-item small { display: block; color: var(--text-muted); margin-top: 4px; font-size: 12px; }
/* 抽奖：一个奖项可能有多位中奖者，逐行展示 */
.sum-podium .sum-item .lt-win { margin-top: 6px; }
.sum-podium .sum-item .lt-win + .lt-win { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--border); }

/* ---------- 皇冠标识（本场赛事单独配置，跨轮次/跨页面生效） ---------- */
.hs-crown {
    margin-right: 4px;
    font-size: 0.95em;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(243, 205, 116, 0.65));
}

/* ---------- 抽奖预热横幅 + 抽签号 ---------- */
.lt-promo { border-color: rgba(243, 205, 116, 0.45); }
.lt-promo .grp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lt-cd { font-size: 0.85rem; color: var(--text-muted); }
.lt-cd b { color: var(--gold); }
.lt-mine { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lt-mine-label { font-size: 0.85rem; color: var(--text-muted); }
.lt-num {
    display: inline-block;
    min-width: 48px;
    text-align: center;
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(243, 205, 116, 0.14);
    border: 1px solid rgba(243, 205, 116, 0.4);
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 1px;
}
.lt-num-sm { min-width: 38px; font-size: 0.85em; padding: 1px 6px; margin: 0 6px; }
.lt-claim { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.lt-claim .lt-claim-num { width: 240px; }
/* 未登录 / 未报名时的引导式入口（按钮 + 说明上下排列） */
.lt-claim-cta { flex-direction: column; align-items: flex-start; gap: 8px; }
.lt-claim-cta .grp-sub { margin: 0; }
.lt-claim-cta .admin-btn { padding: 10px 22px; }
.vs-top .tg-match-card .tg-p b { font-size: 1.65rem; line-height: 1.25; }
.vs-top .tg-match-card .tg-p small { font-size: 13px; }
.vs-top .tg-match-card .tg-vsmid { font-size: 20px; padding: 0 12px; }
.vs-top .tg-match-card .tg-vsmid .big { font-size: 2rem; }
.vs-top .tg-match-card .pill { font-size: 12.5px; padding: 3px 12px; }
.vs-top .tg-match-card .admin-btn { font-size: 0.95rem; padding: 9px 20px; }
.vs-top .tg-match-card .badge { font-size: 12px; }
@media (max-width: 767px) {
    .vs-top .tg-match-card { padding: 18px 16px; }
    .vs-top .tg-match-card .tg-p b { font-size: 1.2rem; }
    .vs-top .tg-match-card .tg-p { min-width: 120px; }
    .vs-top .tg-match-card .tg-vsmid { font-size: 15px; }
    .vs-top .tg-match-card .tg-vsmid .big { font-size: 1.4rem; }
}

/* ============ 赛程对阵独立成页（赛事主页入口 + 链接按钮） ============ */
.br-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    flex-wrap: wrap;
}
.br-entry-text {
    flex: 1 1 400px;
    min-width: 0;
    font-size: .94rem;
    line-height: 1.9;
    color: var(--text-muted);
}
.br-entry-text p { margin: 0 0 4px; }
.br-entry-text .tg-hint { margin: 0; }
.br-entry-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
a.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
}
.sec-head-sub a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px dashed rgba(243, 205, 116, 0.5);
}
.sec-head-sub a:hover { color: #fff; }

/* —— 分组双败（小组赛 + 决赛日）赛程图 —— */
.ge-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 6px;
}
.ge-block {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
    padding: 14px 16px;
    overflow-x: auto;
}
.ge-block.ge-final {
    border-color: rgba(243, 205, 116, .45);
    background: linear-gradient(180deg, rgba(243, 205, 116, .06), rgba(255, 255, 255, .02));
    box-shadow: 0 0 24px rgba(243, 205, 116, .05) inset;
}
.ge-head {
    display: flex;
    align-items: center;
    gap: 10px 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.ge-sec {
    font-size: .98rem;
    letter-spacing: .5px;
    color: var(--gold);
}
.ge-block:not(.ge-final) .ge-sec {
    color: var(--text);
}
.ge-desc {
    font-size: .84rem;
    color: var(--text-muted);
}
.ge-foot {
    margin-top: 10px;
    font-size: .84rem;
    color: var(--text-muted);
    text-align: center;
}
.ge-final .ge-foot { color: var(--gold); }
.ge-block .de-bracket {
    justify-content: flex-start;
}
.ge-block .br-round .br-round-title {
    white-space: normal;
    min-height: 30px;
}

/* ============ 移动端：赛程时间表紧凑排版 ============
   手机上「M2胜者 vs M3胜者」+ 场次信息挤在一行会被折成 3~4 行、行高被拉得很长。
   这里固定为两行：第一行 = 时间 + 场次信息（M? · BO? · 阶段），第二行 = 双方对阵；
   名称过长时省略号截断，保证每行高度一致。 */
@media (max-width: 767px) {
    .sc-row {
        flex-wrap: wrap;
        gap: 3px 10px;
        padding: 10px 2px;
    }
    .sc-time {
        width: auto;
        min-width: 52px;
        font-size: 1.02rem;
    }
    .sc-meta {
        order: 1;
        flex: 1;
        min-width: 0;
        text-align: right;
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sc-vs {
        order: 2;
        flex: 1 1 100%;
        flex-wrap: nowrap;
    }
    .sc-vs b {
        flex: 1;
        min-width: 0;
        font-size: 0.92rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sc-vs .sc-mark { flex: none; }
    .sc-panel-top small { font-size: 0.72rem; }
}

/* ============================================================
   双战队阵营战（event.json → vsTeams）：顶部队标横幅 + 报名选战队
   ============================================================ */
.tg-vs { display: none; }
.tg-vs.on {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 18px;
    margin: 20px 0 8px;
    padding: 18px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        radial-gradient(620px 210px at 14% 0%, rgba(155, 108, 248, 0.20), transparent 62%),
        radial-gradient(620px 210px at 86% 100%, rgba(243, 205, 116, 0.16), transparent 62%),
        var(--card);
}
.tg-vs-side { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.tg-vs-side:last-child { flex-direction: row-reverse; text-align: right; }
.tg-vs-logo {
    width: 106px;
    height: 106px;
    object-fit: contain;
    flex: none;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border);
    padding: 6px;
}
.tg-vs-logo.ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--gold);
    font-weight: 800;
}
.tg-vs-info { min-width: 0; }
.tg-vs-name { font-size: 1.35rem; font-weight: 800; color: var(--text); letter-spacing: 1px; }
.tg-vs-slogan { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.tg-vs-count { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.tg-vs-count b { color: var(--gold); font-size: 1.02rem; }
.tg-vs-mid { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; }
.tg-vs-vs {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    color: var(--gold);
    text-shadow: 0 0 18px rgba(243, 205, 116, 0.45);
}
.tg-vs-sub { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 2px; white-space: nowrap; }

/* 报名表单里的战队选择卡片 */
.tg-vs-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tg-vs-opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    cursor: pointer;
    transition: all 0.18s;
}
.tg-vs-opt:hover { border-color: var(--gold-dim); }
.tg-vs-opt.on { border-color: var(--gold); background: rgba(243, 205, 116, 0.10); box-shadow: 0 0 0 3px rgba(243, 205, 116, 0.12); }
.tg-vs-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tg-vs-opt img { width: 46px; height: 46px; object-fit: contain; flex: none; border-radius: 8px; background: rgba(0, 0, 0, 0.22); }
.tg-vs-opt-name { font-weight: 700; font-size: 0.95rem; }
.tg-vs-opt.on .tg-vs-opt-name { color: var(--gold); }

/* 参赛选手按阵营分列展示（强化对抗感） */
.tg-roster { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tg-roster-col { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 14px; }
.tg-roster-col.a { border-top: 3px solid #9b6cf8; }
.tg-roster-col.b { border-top: 3px solid var(--gold); }
.tg-roster-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tg-roster-logo {
    width: 54px; height: 54px; object-fit: contain; flex: none;
    border-radius: 12px; background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border); padding: 4px;
}
.tg-roster-info { min-width: 0; }
.tg-roster-name { font-size: 1.05rem; font-weight: 800; }
.tg-roster-cnt { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.tg-roster-cnt b { color: var(--gold); }
@media (max-width: 720px) { .tg-roster { grid-template-columns: 1fr; } }

@media (max-width: 720px) {
    .tg-vs.on { flex-direction: column; gap: 10px; }
    .tg-vs-side,
    .tg-vs-side:last-child { flex-direction: row; text-align: left; }
    .tg-vs-logo { width: 76px; height: 76px; }
    .tg-vs-pick { grid-template-columns: 1fr; }
}

/* ---------- 战队全交叉净胜赛：N×N 对阵矩阵 ---------- */
.vsr-wrap { padding: 4px 24px 18px; max-width: 1400px; margin: 0 auto; }
.vsr-head { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 6px 0 16px; }
.vsr-team {
    flex: 1 1 240px;
    min-width: 200px;
    text-align: center;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
}
.vsr-team.lead { border-color: rgba(243, 205, 116, 0.65); box-shadow: 0 0 0 3px rgba(243, 205, 116, 0.1); }
.vsr-team b { display: block; font-size: 1.15rem; }
.vsr-team small { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-muted); }
.vsr-mid { text-align: center; font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.vsr-mid small { display: block; margin-top: 2px; font-size: 0.72rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }

.vsr-table { min-width: 0; }
.vsr-table th,
.vsr-table td { text-align: center; padding: 7px 9px; font-size: 12.5px; white-space: nowrap; }
.vsr-table th.vsr-corner { text-align: left; color: var(--text-muted); font-weight: 600; }
.vsr-table th.vsr-rowhead { text-align: left; font-weight: 700; background: rgba(255, 255, 255, 0.03); }
.vsr-cell { color: var(--text-muted); }
.vsr-cell.empty { opacity: 0.35; }
.vsr-cell.done { font-weight: 700; }
.vsr-cell.done .win { color: var(--gold); }
.vsr-cell.done .lose { color: rgba(255, 255, 255, 0.5); }
.vsr-cell.disput { color: #e0a24a; }
.vsr-cell.mine { box-shadow: inset 0 0 0 2px rgba(243, 205, 116, 0.55); border-radius: 6px; }
@media (max-width: 720px) {
    .vsr-wrap { padding: 4px 8px 16px; }
    .vsr-table th, .vsr-table td { padding: 5px 6px; font-size: 11.5px; }
}

/* ---------- 选手介绍：我的选手卡（选手端填写） ---------- */
.card-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.card-photo {
    flex: 0 0 190px;
    height: 190px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    padding: 6px;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.card-fields { flex: 1 1 320px; min-width: 240px; }
.card-fields .tg-field { margin-bottom: 8px; }

/* 选手卡「小卡片」形态：默认只占一行，点击展开表单 */
.card-mini {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}
.card-mini-btn {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 10px 12px;
    cursor: pointer;
}
.card-mini-btn:hover { background: rgba(255, 255, 255, 0.03); }
.card-mini-ico { font-size: 1.15rem; line-height: 1; }
.card-mini-main { flex: 1 1 auto; min-width: 0; }
.card-mini-main b { font-size: 0.95rem; }
.card-mini-main small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 0.78rem; line-height: 1.55; }
.card-mini-main small.card-mini-sum { color: var(--gold); opacity: 0.92; }
.card-mini-caret { flex: 0 0 auto; color: var(--gold); font-size: 0.78rem; white-space: nowrap; }
.card-mini #card-form-wrap { padding: 4px 12px 12px; border-top: 1px solid var(--border); }
/* 必须显式声明：.card-form 自带的 display:flex 会覆盖 hidden 属性 */
.card-mini #card-form-wrap[hidden] { display: none; }
@media (max-width: 720px) {
    .card-mini .card-form { flex-direction: column; }
}

/* ---------- 选手介绍墙（赛事页展示，仿「选手介绍」图卡：左文案框 + 右照片） ---------- */
.pcard-teams { display: flex; flex-direction: column; gap: 20px; }
.pcard-team-head {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: var(--gold);
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}
.pcard-team-head small { color: var(--text-muted); font-weight: 400; font-size: 0.78rem; }
.pcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 14px; }
.pcard {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    padding: 14px 16px 16px;
}
.pcard-title { margin: 0 0 12px; font-size: 1.05rem; color: var(--gold); font-weight: 700; letter-spacing: 0.5px; }
.pcard-main { display: flex; gap: 14px; align-items: stretch; }
.pcard-boxes { flex: 1 1 54%; display: flex; flex-direction: column; gap: 10px; justify-content: center; min-width: 0; }
.pcard-box {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    border: 1px solid rgba(243, 205, 116, 0.45);
    background: rgba(243, 205, 116, 0.06);
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 0.86rem;
    line-height: 1.75;
}
.pcard-box.motto { border-color: rgba(229, 115, 115, 0.45); background: rgba(229, 115, 115, 0.06); }
.pcard-ico { font-size: 1.05rem; line-height: 1.5; }
.pcard-photo {
    flex: 0 0 42%;
    min-width: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
}
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }
@media (max-width: 720px) {
    .pcard-grid { grid-template-columns: 1fr; }
    .pcard-main { flex-direction: column; }
    .pcard-photo { flex: 0 0 auto; max-height: 300px; }
    .card-form { flex-direction: column; }
    .card-photo { flex: 0 0 auto; width: 100%; }
}

/* ============ 后台 · 赛事设置卡片化 ============ */
.set-cards { display: flex; flex-direction: column; gap: 16px; }
.set-card { padding: 18px 20px 20px; margin-bottom: 0; }
.set-card > .set-card-head { display: flex; align-items: center; gap: 10px; margin: 0; }
.set-card-head .set-ico { font-size: 20px; line-height: 1; }
.set-card-head h3 { margin: 0; font-size: 16.5px; }
.set-card-head .set-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(243, 205, 116, .14); color: var(--gold); border: 1px solid rgba(243, 205, 116, .35); white-space: nowrap; }
.set-card-sub { margin: 6px 0 14px; font-size: 12.5px; color: var(--text-muted); line-height: 1.7; }
.set-card .set-card-head + .tg-grid2 { margin-top: 10px; }

/* 对阵赛制可视化选择卡片 */
.fmt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 10px; margin: 4px 0 14px; }
.fmt-card { position: relative; display: block; background: rgba(0, 0, 0, .18); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.fmt-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.fmt-card input { position: absolute; opacity: 0; pointer-events: none; }
.fmt-card .fmt-name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-weight: 700; font-size: 14.5px; margin-bottom: 5px; }
.fmt-card .fmt-badge { font-size: 10.5px; font-weight: 400; padding: 1px 7px; border-radius: 999px; background: rgba(116, 217, 154, .15); color: var(--green); border: 1px solid rgba(116, 217, 154, .4); }
.fmt-card .fmt-badge.gold { background: rgba(243, 205, 116, .15); color: var(--gold); border-color: rgba(243, 205, 116, .4); }
.fmt-card .fmt-desc { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.65; }
.fmt-card.on { border-color: var(--gold); background: rgba(243, 205, 116, .09); box-shadow: 0 0 0 1px var(--gold) inset; }
.fmt-card.on .fmt-name { color: var(--gold); }
.fmt-card.locked { cursor: not-allowed; opacity: .55; }
.fmt-card.locked:hover { transform: none; border-color: var(--border); }
@media (max-width: 720px) { .fmt-cards { grid-template-columns: 1fr; } }

/* ============ 后台 · 换人搜索选择器 ============ */
.pp-list { max-height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; padding: 4px; display: flex; flex-direction: column; gap: 2px; background: rgba(0, 0, 0, .14); }
.pp-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; text-align: left; width: 100%; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 7px 9px; cursor: pointer; color: inherit; font-size: 13px; }
.pp-row:hover { background: rgba(243, 205, 116, .1); }
.pp-row.on { border-color: var(--gold); background: rgba(243, 205, 116, .12); }
.pp-row .pp-sub { color: var(--text-muted); font-size: 12px; }
.pp-badge { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; margin-left: auto; white-space: nowrap; }
.pp-badge.warn { background: rgba(239, 107, 107, .15); color: var(--red); border: 1px solid rgba(239, 107, 107, .4); }
.pp-empty { color: var(--text-muted); font-size: 12.5px; padding: 10px; margin: 0; }
.pp-sel { display: none; margin-top: 6px; font-size: 12.5px; color: var(--gold); line-height: 1.6; }
.pp-sel.show { display: block; }

/* ============ 后台 · 圆桌赛分桌排阵（预览 → 手调 → 发布） ============ */
.rt-draft { border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 12px; padding: 12px 14px; background: rgba(243, 205, 116, .05); }
.rt-draft-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 10px; }
.rt-draft-table { background: rgba(0, 0, 0, .2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.rt-draft-head { font-weight: 700; font-size: 13.5px; color: var(--gold); margin-bottom: 6px; }
.rt-draft-players { display: flex; flex-direction: column; gap: 4px; }
.rt-chip { text-align: left; width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; cursor: pointer; color: inherit; font: inherit; font-size: 13px; transition: border-color .12s, background .12s; }
.rt-chip:hover { border-color: var(--gold); background: rgba(243, 205, 116, .1); }
.rt-chip.rt-sel { border-color: var(--gold); background: rgba(243, 205, 116, .18); box-shadow: 0 0 0 1px var(--gold) inset; }
@media (max-width: 720px) { .rt-draft-tables { grid-template-columns: 1fr 1fr; } }

/* ============ 职业 Ban 小标签（对阵图 / 对阵表 / 后台对阵列） ============ */
.mg-ban { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 10.5px; font-weight: 700; line-height: 1; color: var(--blue); background: rgba(79, 157, 247, .14); border: 1px solid rgba(79, 157, 247, .35); border-radius: 999px; padding: 1px 6px; white-space: nowrap; }
.mg-ban b { color: var(--gold); font-weight: 800; }
.mg-ban.wait { color: var(--text-muted); background: rgba(255, 255, 255, .05); border-color: var(--border); }
.tr-slot .mg-ban { font-size: 9.5px; padding: 0 5px; }
.br-match .slot .mg-ban { font-size: 10px; padding: 0 5px; }
td[data-label="对阵"] .mg-ban { margin: 2px 0 0; }
