.live-section-nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); background: #081422; }
.live-section-nav .btn { min-width: min(7rem, 25%); background: transparent; border-color: transparent; }
.live-section-nav .btn[aria-pressed="true"] { background: #18283a; color: var(--accent); border-color: var(--gold-line); }
.live-events h2, .live-event-detail h2 { color: #f6e9c6; }
.live-event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr)); gap: 14px; }
.live-event-list > p { grid-column: 1 / -1; }
.live-event-card { display: flex; flex-direction: column; gap: 14px; background: linear-gradient(135deg, #182940, var(--surface)); }
.live-event-card-head, .live-event-card-foot, .live-event-invite, .live-event-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.live-event-card-head > div { flex: 1; min-width: 0; }
.live-event-card-head h3, .live-event-detail h2 { overflow-wrap: anywhere; }
.live-event-card-foot, .live-event-invite { justify-content: space-between; flex-wrap: wrap; }
.live-event-invite-history { border-top: 1px solid #2c4053; padding-top: 10px; }
.live-event-invite-history ul { list-style: none; margin: 4px 0 0; padding: 0; }
.live-event-invite-history li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #2c4053; overflow-wrap: anywhere; }
.live-event-invite-history .badge { flex-shrink: 0; }
.live-event-invite-history .invite-accepted { color: #8de4dc; background: #193d43; }
.live-event-invite-history .invite-declined { color: #f1c0c5; background: #472c37; }
.live-event-invite-history .invite-pending { color: #f0d39c; background: #493b26; }
.live-event-card > .live-event-card-foot { margin-top: auto; }
.live-event-card-reward { display: grid; gap: 3px; min-width: 0; padding: 8px 10px; color: #f1e9d8; border: 1px solid var(--gold-line); border-radius: 6px; }
.live-event-card-reward > strong { color: var(--accent); font-size: 12px; }
.live-event-card-reward p strong { color: var(--accent); }
.live-event-card-reward p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; white-space: pre-wrap; }
.live-event-card-champion { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--gold-line); border-radius: 6px; background: var(--surface); }
.live-event-card-champion h4 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--accent); overflow-wrap: anywhere; }
.live-event-card-champion .live-event-card-reward { padding: 10px 0 0; border: 0; border-top: 1px solid var(--gold-line); border-radius: 0; }
.live-event-card-champion .live-event-card-reward p { display: block; }
.live-event-champion-members { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px 6px; list-style: none; margin: 0; padding: 0; }
.live-event-champion-members li { display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; text-align: center; }
.live-event-champion-members .avatar { width: 36px; height: 36px; border-radius: 50%; }
.live-event-champion-members .live-event-person-id { display: grid; max-width: 100%; font-size: 13px; }
.live-event-champion-members small { color: var(--muted); }
@media (min-width: 971px) {
  .live-events { container-type: inline-size; }
  .live-event-champion-members {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: none;
  }
  .live-event-champion-members small { font-size: 10px; }
  @container (min-width: 564px) {
    .live-event-card:has(.live-event-champion-members) { grid-column: span 2; }
    .live-event-champion-members small { font-size: 12px; }
  }
}
.live-event-capacity { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; font-variant-numeric: tabular-nums; }
.live-event-full { color: #ffce9e; border-color: #8a6242; }
.live-event-emblem { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--gold-line); color: var(--accent); }
.live-event-emblem svg { width: 17px; }
.live-event-status { white-space: nowrap; }
.live-event-status.is-open { color: var(--teal, #6edbd7); border-color: #347578; }
.live-event-times { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.live-event-times dt { color: var(--muted); font-size: 12px; }
.live-event-times dd { margin: 0; font-variant-numeric: tabular-nums; }
.live-event-detail-head h3 { font-size: 15px; margin-bottom: 5px; }
.live-event-text { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.live-event-champion { display: flex; align-items: center; gap: 9px; padding: 10px; background: #24251f; color: #f6e9c6; border-left: 2px solid var(--gold-line); }
.live-event-person { padding: 8px 0; border-top: 1px solid var(--line); }
.live-event-person > .avatar { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.live-event-person > .avatar img { width: 100%; height: 100%; object-fit: cover; }
.live-event-person-id { display: flex; align-items: baseline; flex: 1; min-width: 0; white-space: nowrap; }
.live-event-person-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.live-event-person small, .live-event-invite small { color: var(--muted); white-space: nowrap; font-weight: 500; }
.live-event-person-id > small { flex: none; }
.live-event-invite small { margin-left: 4px; }
.live-event-person .btn { min-height: 32px; }
.live-event-bracket { --lane: 7rem; --card: 6rem; --gutter: 2rem; --branch-color: #64828a; display: flex; gap: var(--gutter); overflow-x: auto; min-width: 0; padding: 3px 3px 8px; }
.live-event-bracket:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.live-event-round { min-width: min(75vw, 13rem); flex: 1; display: grid; align-content: start; gap: 10px; }
.live-event-round h4 { margin: 0; color: var(--accent); }
.live-event-round-matches { position: relative; min-height: calc(var(--slots) * var(--lane)); }
.live-event-match { position: absolute; inset: calc(var(--slot) * var(--lane)) 0 auto; min-height: var(--card); display: grid; align-content: center; gap: 3px; padding: 6px; background: #091724; border: 1px solid var(--line); }
.live-event-team { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 1px 4px; min-width: 0; }
.live-event-team > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.live-event-team > b { font-variant-numeric: tabular-nums; }
.live-event-bracket-hint { display: none; font-size: 12px; }
.live-event-team.is-winner { background: #142b32; color: var(--teal, #6edbd7); font-weight: 700; }
.live-event-match-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.live-event-match-sides .live-event-team { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 4px; padding: 3px 5px; border: 1px solid; border-radius: 4px; }
.live-event-match-sides small { grid-column: 1 / -1; font-size: 11px; white-space: nowrap; }
.live-event-match-sides .side-left { color: #9bcaff; background: #172c44; border-color: #4b789f; }
.live-event-match-sides .side-right { color: #ffaabd; background: #332332; border-color: #a36978; }
.live-event-my-side { color: var(--accent); font-size: 12px; }
.live-event-match .btn { min-height: 26px; padding: 2px 7px; justify-self: start; }
.live-event-branch { position: absolute; pointer-events: none; width: var(--gutter); right: calc(-1 * var(--gutter)); top: calc(var(--branch-start) * var(--lane) + var(--card) / 2); height: calc(var(--branch-span) * var(--lane)); }
.live-event-branch::before, .live-event-branch::after { content: ""; position: absolute; width: 50%; border-top: 1px solid var(--branch-color); }
.live-event-branch::before { left: 0; top: 0; height: 100%; border-right: 1px solid var(--branch-color); }
.live-event-branch::after { right: 0; bottom: 0; }
.live-event-branch.goes-up::before { top: auto; bottom: 0; border-top: 0; border-bottom: 1px solid var(--branch-color); }
.live-event-branch.goes-up::after { bottom: auto; top: 0; }
.live-event-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.live-event-form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.live-event-guide-video { display: block; width: 100%; max-height: 65vh; background: #07111c; }
.live-event-guide-link { display: inline-flex; margin-top: 10px; }
.live-event-checkin-team { border: 1px solid var(--line); padding: 10px; }
.live-event-admin-teams > summary { color: var(--accent); cursor: pointer; }
.live-event-admin-teams > div { margin-top: 10px; }
@media (max-width: 460px) {
  .live-section-nav .btn { flex: 1; }
  .live-event-form-pair { grid-template-columns: 1fr; }
}
@media (max-width: 690px) {
  .live-event-bracket-hint { display: block; }
}

.live-event-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.live-event-group { border: 1px solid var(--line); border-radius: 6px; min-width: 0; overflow: hidden; }
.live-event-group > header { padding: 10px 12px; }
.live-event-group h4, .live-event-group-captain { color: var(--accent); }
.live-event-group-members { list-style: none; margin: 0; padding: 0 12px; }
.live-event-group-captain { flex: none; }
@media (max-width: 690px) {
  .live-event-group-grid { grid-template-columns: minmax(0, 1fr); }
}
.live-event-standing { overflow-x: auto; }
.live-event-standing table { width: 100%; border-collapse: collapse; text-align: left; }
.live-event-standing th, .live-event-standing td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }

[aria-label="积分赛对阵"] .live-event-match { position: static; }
.live-event-chat-log { max-height: min(50dvh, 420px); overflow-y: auto; padding: 10px; background: #091724; border: 1px solid var(--line); }
.live-event-chat-message { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; overflow-wrap: anywhere; }
.live-event-chat-message .avatar { flex: 0 0 34px; width: 34px; height: 34px; }
.live-event-chat-message p { margin: 3px 0 0; white-space: pre-wrap; }
[data-event-chat] form input { flex: 1; min-width: 0; }
[data-event-chat] form button { flex: none; }
[data-chat-title] { overflow-wrap: anywhere; }
[data-chat-error]:empty { display: none; }
[data-chat-picker]:empty { display: none; }
[data-chat-event] { width: 100%; }
.live-event-chat-team { margin-right: 4px; font-size: 11px; color: var(--accent); }
.live-event-chat-message strong { font-size: 13px; }
.standalone-admin .rail:has([data-event-chat]) { display: block; max-width: 1320px; margin: auto; }
@media (min-width: 971px) {
  .shell:has(> .rail > [data-event-chat]) { grid-template-columns: minmax(0, 1fr) minmax(285px, 333px); }
}
@media (max-width: 970px) {
  .workspace > .rail:has([data-event-chat]) {
    display: block;
    padding: clamp(16px, 2.35vw, 36px) clamp(16px, 2.35vw, 36px) 0;
    border: 0;
    background: transparent;
  }
  .workspace .live-event-chat-log { max-height: min(30dvh, 260px); }
  .workspace [data-event-chat] form input { font-size: 16px; }
}
@media (max-width: 690px) {
  .workspace > .rail:has([data-event-chat]) { padding: 12px 12px 0; }
}
