/* Game-style vertical team rosters. Kept as a standalone asset so deployments
   cannot be hidden by a long-lived cache entry for the main stylesheet. */
.team-builder {
    grid-template-columns: minmax(0,1fr) 72px minmax(0,1fr);
    align-items: stretch;
}
.team-zone {
    background: linear-gradient(180deg,rgba(9,19,33,.76),rgba(3,9,18,.5));
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.team-zone > header,
.record-team > header {
    min-height: 46px;
    padding: 10px 14px;
}
.team-zone > header > b,
.record-team > header > b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.team-zone > header > span,
.record-team > header > span {
    font-size: 12px;
}
.team-emblem {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid currentColor;
    border-radius: 7px;
    color: inherit !important;
    font-size: 11px !important;
    font-weight: 900;
    background: rgba(255,255,255,.045);
}
.team-versus {
    display: grid;
    place-content: center;
    align-self: center;
    gap: 3px;
    width: 72px;
    min-height: 112px;
    color: #f8d98e;
    text-align: center;
}
.team-versus b {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(245,198,106,.45);
    border-radius: 50%;
    font-size: 18px;
    letter-spacing: 1px;
    background: radial-gradient(circle,rgba(245,198,106,.16),rgba(217,154,43,.035));
    box-shadow: 0 0 30px rgba(217,154,43,.13),inset 0 0 16px rgba(245,198,106,.08);
}
.team-versus span {
    color: var(--text-3);
    font-size: 10px;
    white-space: nowrap;
}
.team-dropzone {
    display: grid;
    grid-auto-rows: minmax(52px,auto);
    gap: 7px;
    min-height: 302px;
    padding: 10px;
    counter-reset: team-slot;
}
.team-bench .team-dropzone {
    grid-template-columns: repeat(2,minmax(0,1fr));
    min-height: 70px;
}
.team-dropzone.is-empty::after { display: none; }
.team-bench .team-dropzone.is-empty::after {
    content: "暂无待分配玩家";
    display: block;
    place-self: center;
    color: var(--text-3);
    font-size: 12px;
}
.team-player {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) 24px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 52px;
    padding: 7px 7px 7px 8px;
    border-color: color-mix(in srgb,var(--player) 30%,transparent);
    border-left: 3px solid var(--player);
    border-radius: 9px;
    background: linear-gradient(90deg,var(--player-bg),rgba(8,17,30,.5));
    counter-increment: team-slot;
    box-sizing: border-box;
}
.team-player::before {
    content: counter(team-slot,decimal-leading-zero);
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid color-mix(in srgb,var(--player) 40%,transparent);
    border-radius: 8px;
    color: color-mix(in srgb,var(--player) 72%,white);
    background: rgba(2,8,16,.45);
    font-size: 11px;
    font-weight: 900;
}
.team-player b {
    grid-column: 2;
    grid-row: 1;
    color: #eef6ff;
    font-size: 14px;
}
.team-player small {
    grid-column: 2;
    grid-row: 2;
    color: var(--text-2);
    font-size: 12px;
}
.team-empty-slot {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    min-height: 52px;
    padding: 7px 10px;
    border: 1px dashed rgba(148,163,184,.16);
    border-radius: 9px;
    color: var(--text-3);
    background: rgba(255,255,255,.012);
    box-sizing: border-box;
}
.team-empty-slot::before {
    content: attr(data-slot);
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px dashed rgba(148,163,184,.22);
    border-radius: 8px;
    font-size: 11px;
}
.team-empty-slot b {
    grid-column: 2;
    grid-row: 1;
    color: #64748b;
    font-size: 13px;
}
.team-empty-slot small {
    grid-column: 2;
    grid-row: 2;
    color: #475569;
    font-size: 11px;
}
.record-team-grid {
    grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr);
    align-items: stretch;
}
.record-team .battle-player-list {
    display: grid;
    grid-auto-rows: minmax(44px,auto);
    gap: 6px;
    min-height: 60px;
    padding: 10px;
    align-content: start;
    counter-reset: record-slot;
}
.record-versus {
    display: grid;
    place-items: center;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    color: #f5c66a;
    background: linear-gradient(180deg,rgba(245,198,106,.055),rgba(245,198,106,.015));
}
.record-versus b {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(245,198,106,.35);
    border-radius: 50%;
    font-size: 12px;
    background: rgba(3,9,18,.42);
    box-shadow: 0 0 20px rgba(217,154,43,.1);
}
.record-team.is-history .battle-player-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
}
.record-team .battle-player {
    counter-increment: record-slot;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 7px 9px;
    border-left: 3px solid var(--player);
    border-radius: 8px;
    box-sizing: border-box;
    text-align: left;
}
.record-team .battle-player::before {
    content: counter(record-slot,decimal-leading-zero);
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid color-mix(in srgb,var(--player) 35%,transparent);
    border-radius: 7px;
    font-size: 10px;
}
.record-team .battle-player .player-dot { display: none; }
.record-team .battle-player > span {
    overflow: hidden;
    color: #e7eef8;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.record-team .battle-player small {
    justify-self: end;
    padding-left: 8px;
    font-size: 11px;
    white-space: nowrap;
}
.record-empty-slot {
    display: grid;
    grid-template-columns: 30px minmax(0,1fr);
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 7px 9px;
    border: 1px dashed rgba(148,163,184,.13);
    border-radius: 8px;
    color: #475569;
    background: rgba(255,255,255,.01);
    box-sizing: border-box;
}
.record-empty-slot::before {
    content: attr(data-slot);
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px dashed rgba(148,163,184,.18);
    border-radius: 7px;
    font-size: 10px;
}
.record-empty-slot b { font-size: 12px; font-weight: 600; }

@media (max-width: 720px) {
    .team-builder { grid-template-columns: minmax(0,1fr) 38px minmax(0,1fr); gap: 5px; }
    .record-team-grid { grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); }
    .team-versus { width: 38px; min-height: 80px; }
    .team-versus b { width: 34px; height: 34px; font-size: 12px; }
    .team-versus span { display: none; }
    .record-versus b { width: 28px; height: 28px; font-size: 10px; }
    .team-zone > header, .record-team > header { min-height: 42px; padding: 8px; }
    .team-zone > header > b, .record-team > header > b { gap: 5px; font-size: 12px; }
    .team-zone > header > span, .record-team > header > span { font-size: 11px; }
    .team-emblem { width: 20px; height: 20px; border-radius: 6px; font-size: 9px !important; }
    .team-dropzone { grid-auto-rows: 48px; min-height: 278px; padding: 6px; gap: 5px; }
    .team-bench .team-dropzone { grid-template-columns: 1fr; min-height: 60px; }
    .team-player { grid-template-columns: 26px minmax(0,1fr) 18px; min-height: 48px; padding: 5px; column-gap: 6px; }
    .team-player::before { width: 23px; height: 23px; font-size: 9px; }
    .team-player b { font-size: 12px; }
    .team-player small, .team-empty-slot small { display: none; }
    .team-player-remove { right: 3px; }
    .team-empty-slot { grid-template-columns: 26px minmax(0,1fr); min-height: 48px; padding: 5px; column-gap: 6px; }
    .team-empty-slot::before { width: 23px; height: 23px; font-size: 9px; }
    .record-team .battle-player-list { padding: 6px; gap: 5px; }
    .record-team .battle-player { grid-template-columns: 24px minmax(0,1fr); min-height: 40px; padding: 5px 6px; gap: 5px; }
    .record-team .battle-player::before,
    .record-empty-slot::before { width: 21px; height: 21px; font-size: 8px; }
    .record-team .battle-player > span { font-size: 12px; }
    .record-team .battle-player small { display: none; }
    .record-empty-slot { grid-template-columns: 24px minmax(0,1fr); min-height: 40px; padding: 5px 6px; gap: 5px; }
}
