/* ═══════════════════════════════════════════════
   match-calendar.css — 赛事日历
   ═══════════════════════════════════════════════ */

/* 场景根 */
.scene--match-calendar {
    background: #080c14;
    overflow-y: auto !important;
}

/* 背景 */
.mcal {
    position: relative; min-height: 100%;
}
.mcal__bg {
    position: fixed; inset: 0; z-index: 0;
    background: url('../../resources/bg/battle-bg.webp') center/cover no-repeat;
    filter: blur(6px) brightness(0.28);
    pointer-events: none;
}

/* ═══════════ 顶部栏 ═══════════ */
.mcal__header {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px;
    background: rgba(8,12,20,0.92);
    border-bottom: 1px solid rgba(240,192,64,0.15);
}

.mcal__btn-home {
    flex-shrink: 0;
    padding: 8px 16px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #e8eaf0; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all 0.15s;
    font-family: inherit;
}
.mcal__btn-home:hover {
    background: rgba(78,168,222,0.15); border-color: #4ea8de; color: #4ea8de;
}

.mcal__header-center {
    flex: 1; display: flex; align-items: center;
    justify-content: center; gap: 10px;
}
.mcal__h-icon { font-size: 26px; }
.mcal__h-title {
    font-size: 20px; font-weight: 900; color: #f0c040;
    letter-spacing: 3px; text-shadow: 0 0 12px rgba(240,192,64,0.3);
}
.mcal__h-tag {
    font-size: 11px; font-weight: 700; color: #4ea8de;
    background: rgba(78,168,222,0.1); padding: 3px 10px; border-radius: 10px;
}

.mcal-detail__buffs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-top: 12px; padding: 10px;
    background: rgba(0,0,0,0.15); border-radius: 8px;
}
.mcal-detail__buffs-col { min-width: 0; }
.mcal-detail__buffs-title {
    font-size: 11px; color: #8892a4; margin-bottom: 4px;
    font-weight: 600; letter-spacing: 0.5px;
}
.mcal-detail__no-buff { font-size: 11px; color: #556; }

.mcal-detail__analysis-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0;
    padding: 10px;
    border-radius: 10px;
    background: rgba(78,168,222,0.06);
    border: 1px solid rgba(78,168,222,0.14);
}
.mcal-detail__analysis-entry span {
    font-size: 12px;
    color: #8892a4;
}
.mcal-analysis-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.mcal-analysis-modal {
    width: min(980px, 96vw);
    max-height: 88vh;
    overflow-y: auto;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(18,27,43,0.98), rgba(8,12,20,0.98));
    border: 1px solid rgba(240,192,64,0.28);
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}
.mcal-analysis-modal__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.mcal-analysis-modal__hd h3 {
    margin: 0;
    color: #f0c040;
    font-size: 18px;
    letter-spacing: 2px;
}
.mcal-analysis-modal__bd {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}
.mcal-analysis-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
}
.mcal-analysis-side--my {
    border-color: rgba(78,168,222,0.22);
}
.mcal-analysis-side--opp {
    border-color: rgba(231,76,60,0.20);
}
.mcal-analysis-side__hd {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #e8eaf0;
}
.mcal-analysis-side--my .mcal-analysis-side__hd { color: #4ea8de; }
.mcal-analysis-side--opp .mcal-analysis-side__hd { color: #e76f51; }
.mcal-analysis-modal__preview .mcal-prep {
    margin-top: 0;
}
.mcal-detail__power--modal {
    margin-bottom: 12px;
}

.mcal-prep {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(78,168,222,0.08), rgba(240,192,64,0.06));
    border: 1px solid rgba(240,192,64,0.16);
}
.mcal-prep__title {
    font-size: 13px;
    font-weight: 800;
    color: #f0c040;
    margin-bottom: 8px;
}
.mcal-prep__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}
.mcal-prep__item {
    padding: 8px;
    border-radius: 8px;
    background: rgba(0,0,0,0.18);
    font-size: 11px;
}
.mcal-prep__item b {
    display: block;
    color: #8892a4;
    margin-bottom: 3px;
}
.mcal-prep__item span { color: #e8eaf0; font-weight: 700; }
.mcal-prep__line {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 11px;
}
.mcal-prep__line b { color: #8892a4; min-width: 86px; }
.mcal-prep__buff {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #e8eaf0;
    border: 1px solid rgba(255,255,255,0.08);
}
.mcal-prep__buff--power { border-color: rgba(240,192,64,0.35); color: #f0c040; }
.mcal-prep__buff--intel { border-color: rgba(78,168,222,0.35); color: #4ea8de; }
.mcal-prep__buff--tactic { border-color: rgba(155,89,182,0.35); color: #c084fc; }
.mcal-prep__buff--node { border-color: rgba(46,204,113,0.35); color: #3ecf8e; }
.mcal-prep__muted, .mcal-prep__hint { color: #8892a4; font-size: 11px; }
.mcal-prep__hint { margin-top: 8px; opacity: 0.85; }
.mcal-analysis-card {
    padding: 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
}
.mcal-analysis-card__title {
    color: #f0c040;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}
.mcal-analysis-buff {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border-left: 3px solid rgba(255,255,255,0.18);
    margin-top: 6px;
}
.mcal-analysis-buff--power { border-left-color: #f0c040; }
.mcal-analysis-buff--intel { border-left-color: #4ea8de; }
.mcal-analysis-buff--tactic { border-left-color: #c084fc; }
.mcal-analysis-buff--node { border-left-color: #3ecf8e; }
.mcal-analysis-buff--growth { border-left-color: #2ecc71; }
.mcal-analysis-buff__name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #e8eaf0;
    font-size: 12px;
    font-weight: 800;
}
.mcal-analysis-buff__name span {
    color: #8892a4;
    font-size: 10px;
    font-weight: 700;
}
.mcal-analysis-buff__impact {
    margin-top: 4px;
    color: #aeb6c8;
    font-size: 11px;
    line-height: 1.45;
}
.mcal-analysis-empty {
    color: #667085;
    font-size: 12px;
}

.mcal__header-right {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
}
.mcal__h-progress {
    font-size: 12px; font-weight: 700; color: #8892a4;
}

.mcal__btn-icon {
    width: 38px; height: 38px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #e8eaf0; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.mcal__btn-icon:hover {
    border-color: #f0c040; background: rgba(240,192,64,0.1);
    box-shadow: 0 0 8px rgba(240,192,64,0.15);
}

/* ═══════════ 赛季阶段时间线 ═══════════ */
.mcal__timeline {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding: 12px 20px; gap: 0;
    background: rgba(8,12,20,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mcal__tl-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 0 12px;
}
.mcal__tl-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.06);
}
.mcal__tl-item--done .mcal__tl-dot { background: #2a9d8f; border-color: #3ecf8e; }
.mcal__tl-item--now .mcal__tl-dot {
    background: #f0c040; border-color: #ffd700;
    box-shadow: 0 0 10px rgba(240,192,64,0.5);
    animation: mc-pulse 2s infinite;
}
.mcal__tl-item--later .mcal__tl-dot { opacity: 0.25; }

.mcal__tl-name { font-size: 10px; color: #8892a4; white-space: nowrap; }
.mcal__tl-item--now .mcal__tl-name { color: #f0c040; font-weight: 700; }
.mcal__tl-item--done .mcal__tl-name { color: #2a9d8f; }

.mcal__tl-line {
    width: 32px; height: 2px; flex-shrink: 0;
    background: rgba(255,255,255,0.08); margin-bottom: 18px;
}

/* 时光长廊：已完成阶段可点击回溯 */
.mcal__tl-item--clickable {
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    position: relative;
}
.mcal__tl-item--clickable:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}
.mcal__tl-item--clickable:hover .mcal__tl-dot {
    box-shadow: 0 0 10px rgba(78,168,222,0.6);
}
.mcal__tl-rewind {
    font-size: 10px;
    color: #4ea8de;
    opacity: 0.65;
    transition: opacity 0.15s ease, transform 0.15s ease;
    margin-top: -2px;
}
.mcal__tl-item--clickable:hover .mcal__tl-rewind {
    opacity: 1; transform: rotate(-20deg) scale(1.15);
}

/* 时间线提示文案（让用户知道可点击） */
.mcal__timeline-hint {
    padding: 4px 20px 8px;
    background: rgba(8,12,20,0.8);
    color: #8892a4; font-size: 11px; text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

@keyframes mc-pulse {
    0%,100% { box-shadow: 0 0 6px rgba(240,192,64,0.3); }
    50% { box-shadow: 0 0 16px rgba(240,192,64,0.6); }
}

/* ═══════════ 比赛卡槽 ═══════════ */
.mcal__slots-wrap {
    position: relative; z-index: 2;
    padding: 16px 0;
}
.mcal__slots {
    display: flex; gap: 12px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(240,192,64,0.2) transparent;
    justify-content: center;
}

/* 单卡槽 */
.mcal-s {
    flex: 0 0 124px;
    display: flex; flex-direction: column; align-items: center;
    padding: 10px 8px 14px;
    border-radius: 10px; cursor: pointer;
    border: 2px solid rgba(255,255,255,0.05);
    background: linear-gradient(180deg, rgba(22,30,48,0.9), rgba(10,14,23,0.95));
    position: relative; transition: all 0.2s;
    scroll-snap-align: center;
}
.mcal-s:hover:not(.mcal-s--locked) {
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.mcal-s--sel {
    border-color: rgba(240,192,64,0.55) !important;
    box-shadow: 0 0 14px rgba(240,192,64,0.18) !important;
}

.mcal-s--won { border-color: rgba(46,204,113,0.25); }
.mcal-s--won::after { content:''; position:absolute; top:0;left:0;right:0; height:3px; background:linear-gradient(90deg,#2a9d8f,#3ecf8e); border-radius:10px 10px 0 0; }
.mcal-s--lost { border-color: rgba(231,76,60,0.2); opacity:0.7; }
.mcal-s--lost::after { content:''; position:absolute; top:0;left:0;right:0; height:3px; background:linear-gradient(90deg,#c0392b,#e74c3c); border-radius:10px 10px 0 0; }

.mcal-s--current {
    border-color: rgba(240,192,64,0.4);
    background: linear-gradient(180deg, rgba(240,192,64,0.08), rgba(10,14,23,0.96));
}
.mcal-s--current::after { content:''; position:absolute; top:0;left:0;right:0; height:3px; background:linear-gradient(90deg,#f0c040,#ffd700); border-radius:10px 10px 0 0; animation: mc-shimmer 2s infinite; }
@keyframes mc-shimmer { 0%,100%{opacity:.7} 50%{opacity:1} }

.mcal-s--locked { opacity:0.3; filter:grayscale(.4); cursor:not-allowed; }

.mcal-s__badge {
    position:absolute; top:5px; right:5px; z-index:1;
    font-size:9px; font-weight:800; background:#f0c040; color:#000;
    padding:2px 6px; border-radius:4px; animation: mc-pulse 2s infinite;
}
.mcal-s__num { font-size:11px; font-weight:700; color:#8892a4; margin-bottom:2px; }
.mcal-s--current .mcal-s__num { color:#f0c040; }
.mcal-s__type {
    font-size:9px; font-weight:600; color:rgba(255,255,255,.4);
    padding:1px 6px; border-radius:3px; background:rgba(255,255,255,.04);
    margin-bottom:6px;
}
.mcal-s--current .mcal-s__type { color:#f0c040; background:rgba(240,192,64,.1); }

.mcal-s__logo {
    width:54px; height:54px; display:flex; align-items:center; justify-content:center;
    margin-bottom:5px; border-radius:8px;
    background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.04);
}
.mcal-s__logo .img-wrapper { display:flex; align-items:center; justify-content:center; }

.mcal-s__name { font-size:12px; font-weight:700; color:#e8eaf0; margin-bottom:3px; }

.mcal-s__res { font-size:12px; font-weight:900; text-align:center; padding:2px 8px; border-radius:4px; line-height:1.3; }
.mcal-s__res--w { color:#3ecf8e; background:rgba(46,204,113,.1); }
.mcal-s__res--l { color:#e74c3c; background:rgba(231,76,60,.08); }
.mcal-s__res small { font-size:9px; font-weight:600; opacity:.6; }

.mcal-s__lock { font-size:16px; opacity:.3; margin-top:4px; }

/* ═══════════ 底部详情区 ═══════════ */
.mcal__detail {
    position: relative; z-index: 2;
    padding: 0 20px 24px;
}

.mcal-detail-card {
    background: rgba(12,18,30,0.88);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 20px 24px;
    animation: mc-fadeUp 0.25s ease;
}
@keyframes mc-fadeUp {
    from { opacity:0; transform:translateY(8px); }
    to { opacity:1; transform:translateY(0); }
}

/* 对阵 */
.mcal-detail__matchup {
    display: flex; align-items: center; justify-content: center; gap: 24px;
    margin-bottom: 16px;
}
.mcal-detail__team { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:80px; }
.mcal-detail__logo {
    width:56px; height:56px; display:flex; align-items:center; justify-content:center;
    border-radius:10px; overflow:hidden;
    background:rgba(255,255,255,.03); border:2px solid rgba(255,255,255,.06);
    box-shadow:0 3px 12px rgba(0,0,0,.3);
}
.mcal-detail__logo--my { border-color:rgba(78,168,222,.3); }
.mcal-detail__logo--opp { border-color:rgba(231,76,60,.2); }
.mcal-detail__tname { font-size:14px; font-weight:800; color:#e8eaf0; }
.mcal-detail__trec { font-size:10px; color:#8892a4; }

.mcal-detail__vs { display:flex; flex-direction:column; align-items:center; gap:2px; min-width:90px; }
.mcal-v__label { font-size:11px; color:#8892a4; font-weight:600; }
.mcal-v__vs {
    font-size:28px; font-weight:900; color:#f0c040;
    text-shadow:0 0 14px rgba(240,192,64,.3); letter-spacing:3px;
}
.mcal-v__group { font-size:10px; color:#4ea8de; background:rgba(78,168,222,.08); padding:2px 8px; border-radius:4px; }
.mcal-v__score { font-size:30px; font-weight:900; color:#e8eaf0; letter-spacing:4px; }
.mcal-v__tag { font-size:13px; font-weight:800; padding:2px 12px; border-radius:5px; letter-spacing:2px; }
.mcal-v__tag--w { color:#3ecf8e; background:rgba(46,204,113,.12); }
.mcal-v__tag--l { color:#e74c3c; background:rgba(231,76,60,.08); }
.mcal-v__sub { font-size:11px; color:#8892a4; }

/* ═══════════ 战力对比条 ═══════════ */
.mcal-detail__power {
    display: flex; align-items: center; justify-content: center; gap: 0;
    margin: 12px 0 8px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 10px; padding: 10px 0;
}
.mcal-power__side {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: transparent; border: 1px dashed rgba(255,255,255,0);
    border-radius: 10px; padding: 6px 8px;
    color: inherit; font: inherit; cursor: pointer;
    transition: background .15s, border-color .15s, transform .12s;
}
.mcal-power__side:hover {
    background: rgba(78,168,222,0.08);
    border-color: rgba(78,168,222,0.3);
    transform: translateY(-1px);
}
.mcal-power__side strong {
    font-size: 22px; font-weight: 900; letter-spacing: 1px;
}
.mcal-power__side small { font-size: 11px; color: #8892a4; display: flex; align-items: center; gap: 4px; }
.mcal-power__side--my strong { color: #4ea8de; }
.mcal-power__side--opp strong { color: #e76f51; }
.mcal-power__comp {
    flex-shrink: 0; padding: 4px 14px; border-radius: 6px;
    font-size: 12px; font-weight: 800; letter-spacing: 1px;
}

.mcal-power__chev {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 10px; padding: 1px 6px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #c2c8d6; background: rgba(255,255,255,0.04);
    transition: all .15s;
}
.mcal-power__more--on .mcal-power__chev {
    background: rgba(240,192,64,0.22);
    color: #ffd93d;
    border-color: rgba(240,192,64,0.5);
}

/* 战力计算明细面板 */
.mcal-detail__breakdown {
    margin: 6px 0;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
}
.mcal-detail__breakdown--my { border-left: 3px solid #4ea8de; }
.mcal-detail__breakdown--opp { border-left: 3px solid #e76f51; }
.mcal-bd__title {
    font-weight: 800; font-size: 13px; margin-bottom: 6px; color: #f0c040;
}
.mcal-bd__row {
    display: flex; justify-content: space-between; padding: 3px 0;
    color: #c2c8d6; border-bottom: 1px dashed rgba(255,255,255,0.04);
}
.mcal-bd__row--head { font-weight: 700; color: #e8eaf0; }
.mcal-bd__row--empty { color: #8892a4; font-style: italic; }
.mcal-bd__bonus--pos span:last-child { color: #78e08f; }
.mcal-bd__bonus--neg span:last-child { color: #ff7675; }
.mcal-bd__formula {
    margin-top: 8px; padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    color: #8892a4; line-height: 1.5;
}
.mcal-bd__formula strong { color: #f0c040; font-size: 14px; }

/* 选手状态徽章 */
.mcal-roster__cond {
    font-size: 10px; font-weight: 700;
    padding: 1px 5px; border-radius: 4px;
    background: rgba(0,0,0,0.35);
    flex-shrink: 0;
    letter-spacing: 0;
}

/* ═══════════ 双方首发阵容对比 ═══════════ */
.mcal-detail__rosters {
    background: rgba(255,255,255,.015); border-radius: 10px;
    padding: 12px 14px; border: 1px solid rgba(255,255,255,.03);
    margin-top: 10px;
}

.mcal-roster__header {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; font-weight: 700; color: #e8eaf0;
    margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.mcal-roster__hd-left { color: #4ea8de; }
.mcal-roster__hd-right { color: #e76f51; }

.mcal-roster__row {
    display: flex; align-items: center; gap: 0;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.02);
}
.mcal-roster__row:last-child { border-bottom: none; }

.mcal-roster__vs-dot {
    flex-shrink: 0; width: 28px;
    text-align: center; font-size: 10px; color: rgba(255,255,255,.2);
}

.mcal-roster__p {
    flex: 1; display: flex; align-items: center; gap: 6px;
    padding: 4px 8px; border-radius: 6px;
    background: rgba(255,255,255,.015);
    transition: background 0.15s;
}
.mcal-roster__p:hover { background: rgba(255,255,255,.04); }
.mcal-roster__p--clickable { cursor: pointer; }
.mcal-roster__p--clickable:hover {
    background: rgba(78,168,222,.1);
    box-shadow: inset 0 0 0 1px rgba(78,168,222,.35);
}
.mcal-roster__p--my.mcal-roster__p--clickable:hover { background: rgba(78,168,222,.1); }
.mcal-roster__p--opp.mcal-roster__p--clickable:hover { background: rgba(231,111,81,.1); box-shadow: inset 0 0 0 1px rgba(231,111,81,.35); }

.mcal-roster__p--my {
    flex-direction: row-reverse;
    text-align: right;
}
.mcal-roster__p--opp {
    flex-direction: row;
}
.mcal-roster__p--empty {
    justify-content: center; color: #444; font-size: 12px;
}

.mcal-roster__avatar {
    flex-shrink: 0; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
}
.mcal-roster__name { font-size: 13px; font-weight: 700; color: #e8eaf0; flex: 1; }
.mcal-roster__p--my .mcal-roster__name { text-align: right; }
.mcal-roster__p--opp .mcal-roster__name { text-align: left; }
.mcal-roster__role {
    font-size: 10px; color: #8892a4; flex-shrink: 0; width: 30px; text-align: center;
}
.mcal-roster__rating {
    font-size: 14px; font-weight: 800; color: #f0c040; flex-shrink: 0; width: 46px; text-align: center;
}
/* 选手星级 + 等级 迷你徽章（我方/敌方都会显示） */
.mcal-roster__lvstar {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 9px;
    line-height: 1;
    flex-shrink: 0;
    min-width: 32px;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(0,0,0,0.3);
}
.mcal-roster__star {
    color: #f0c040;
    font-size: 8px;
    letter-spacing: -1px;
    white-space: nowrap;
}
.mcal-roster__lv {
    color: #78e08f;
    font-weight: 700;
    font-size: 9px;
}

/* 操作 */
.mcal-detail__act {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    margin-top: 14px; padding: 4px 0;
}
.mcal-detail__act-row {
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.mcal-detail__act .btn { min-width: 200px; font-size: 15px !important; padding: 12px 32px !important; letter-spacing: 2px; }
.mcal-detail__act-hint {
    font-size: 12px; color: #8892a4; text-align: center;
    max-width: 520px; line-height: 1.5;
}

.mcal-detail__act--rewind {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(78,168,222,0.25);
}
.mcal-detail__act--rewind .btn {
    min-width: 240px;
    color: #4ea8de !important;
    border-color: rgba(78,168,222,0.4) !important;
}
.mcal-detail__act--rewind .btn:hover {
    background: rgba(78,168,222,0.1) !important;
}

/* 赛季完成 */
.mcal-detail-card--done { text-align:center; padding:32px 20px; }
.mcal-detail__done-icon { font-size:48px; margin-bottom:10px; }
.mcal-detail__done-text { font-size:17px; color:#f0c040; font-weight:800; margin-bottom:6px; letter-spacing:1px; }
.mcal-detail__done-sub  { font-size:13px; color:#8892a4; margin-bottom:18px; }
.mcal-detail-card--done .btn { display:inline-block; margin: 6px 6px 0; }

/* ═══════════ 赛制弹窗 ═══════════ */
.mcal__modal {
    position:fixed; inset:0; z-index:200;
    display:flex; align-items:center; justify-content:center;
}
.mcal__modal[hidden] { display:none !important; }

.mcal__modal-bg {
    position:absolute; inset:0;
    background:rgba(0,0,0,.65); cursor:pointer;
}
.mcal__modal-box {
    position:relative; z-index:1;
    background: linear-gradient(180deg,#1a2235,#0e1320);
    border:1px solid rgba(240,192,64,.2);
    border-radius:14px; padding:24px 28px;
    max-width:520px; width:90%;
    box-shadow:0 12px 40px rgba(0,0,0,.5);
    animation: mc-fadeUp 0.2s ease;
}
.mcal-rules__hd {
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:14px; padding-bottom:10px;
    border-bottom:1px solid rgba(255,255,255,.06);
}
.mcal-rules__hd h3 { margin:0; font-size:16px; color:#f0c040; font-weight:800; }
.mcal-rules__x {
    width:28px; height:28px; border:1px solid rgba(255,255,255,.1);
    border-radius:6px; background:rgba(255,255,255,.04);
    color:#8892a4; cursor:pointer; font-size:14px;
    display:flex; align-items:center; justify-content:center;
}
.mcal-rules__x:hover { border-color:#e74c3c; color:#e74c3c; }

.mcal-rules__ul { margin:0; padding:0 0 0 18px; font-size:13px; color:#e8eaf0; line-height:1.9; }
.mcal-rules__ul li::marker { color:#f0c040; }

.mcal-rules__flow-section { margin-top:16px; }
.mcal-rules__flow-section h4 { margin:0 0 8px; font-size:13px; color:#8892a4; }
.mcal-rules__flow { display:flex; align-items:center; gap:4px; flex-wrap:wrap; font-size:11px; }
.mcal-rules__fi {
    padding:4px 10px; border-radius:6px;
    background:rgba(255,255,255,.04); color:#8892a4;
    border:1px solid rgba(255,255,255,.04); white-space:nowrap;
}
.mcal-rules__fi--on {
    background:rgba(240,192,64,.12); color:#f0c040;
    border-color:rgba(240,192,64,.3); font-weight:700;
}
.mcal-rules__arrow { color:#8892a4; font-size:10px; }

.power--ahead { color: #3ecf8e; font-weight: 700; }
.power--behind { color: #e76f51; font-weight: 700; }
.power--even { color: #f0c040; font-weight: 700; }

/* ═══════════ 晋级图 (Bracket) ═══════════ */

.mcal__btn-icon--bracket {
    color: #f0c040;
}

.mcal__modal-box--bracket {
    max-width: 960px;
    width: 94%;
    max-height: 88vh;
    overflow: auto;
    padding: 20px 24px;
}

.mcal-bkt__hd {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.mcal-bkt__hd h3 { margin:0; font-size: 16px; color: #f0c040; font-weight: 800; }

.mcal-bkt__legend {
    display: flex; flex-wrap: wrap; gap: 14px;
    padding: 8px 0 14px; font-size: 12px; color: #8892a4;
}
.mcal-bkt__lg { display: inline-flex; align-items: center; gap: 4px; }
.mcal-bkt__lg--player { color: #f0c040; }
.mcal-bkt__lg--won    { color: #3ecf8e; }
.mcal-bkt__lg--lost   { color: #e76f51; }
.mcal-bkt__lg--tbd    { color: #8892a4; }

.mcal-bkt__grid {
    display: flex; align-items: stretch; gap: 8px;
    overflow-x: auto;
    padding: 6px 4px 14px;
}

.mcal-bkt__col {
    flex: 0 0 auto;
    display: flex; flex-direction: column;
    min-width: 200px;
}
.mcal-bkt__col-head {
    text-align: center;
    font-size: 13px; font-weight: 700;
    color: #f0c040; letter-spacing: 1px;
    padding: 6px 10px; margin-bottom: 10px;
    background: rgba(240,192,64,.08);
    border: 1px solid rgba(240,192,64,.18);
    border-radius: 6px;
}
.mcal-bkt__col-slots {
    display: flex; flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: space-around;
}

.mcal-bkt__arrow {
    display: flex; align-items: center;
    color: rgba(240,192,64,.4); font-size: 22px;
    padding: 0 2px;
}

.mcal-bkt__slot {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(10,14,22,.7);
    display: flex; flex-direction: column; gap: 4px;
    min-width: 180px;
    transition: all 0.15s;
}
.mcal-bkt__slot--ready { border-color: rgba(240,192,64,.35); }
.mcal-bkt__slot--ready::before {
    content: '待开打';
    font-size: 10px; color: #f0c040; opacity: 0.7;
}
.mcal-bkt__slot--played { border-color: rgba(62,207,142,.25); background: rgba(10,14,22,.85); }
.mcal-bkt__slot--tbd  { opacity: 0.68; }

.mcal-bkt__slot-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 2px;
}
.mcal-bkt__slot-label {
    font-size: 11px; color: #8892a4; font-weight: 700;
    letter-spacing: 0.5px;
}
.mcal-bkt__bracket-tag {
    font-size: 10px; padding: 1px 6px; border-radius: 4px;
    background: rgba(255,255,255,.06);
    color: #c8ced8; border: 1px solid rgba(255,255,255,.08);
}
.mcal-bkt__bracket-tag--wb { background: rgba(62,207,142,.12); color: #3ecf8e; border-color: rgba(62,207,142,.25); }
.mcal-bkt__bracket-tag--lb { background: rgba(231,111,81,.12); color: #e76f51; border-color: rgba(231,111,81,.25); }
.mcal-bkt__bracket-tag--gf { background: rgba(240,192,64,.14); color: #f0c040; border-color: rgba(240,192,64,.3); }

.mcal-bkt__team {
    display: flex; align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,.03);
    border: 1px solid transparent;
    font-size: 13px; color: #c8ced8;
    transition: all 0.15s;
}
.mcal-bkt__team--player {
    border-color: rgba(240,192,64,.5);
    background: rgba(240,192,64,.08);
    color: #f0c040; font-weight: 700;
}
.mcal-bkt__team--won {
    border-color: rgba(62,207,142,.45);
    background: rgba(62,207,142,.1);
    color: #3ecf8e; font-weight: 700;
}
.mcal-bkt__team--lost {
    opacity: 0.5;
    text-decoration: line-through;
    text-decoration-color: rgba(231,111,81,.6);
}
.mcal-bkt__team--player.mcal-bkt__team--won {
    border-color: #f0c040;
    background: linear-gradient(90deg, rgba(62,207,142,.15), rgba(240,192,64,.18));
    color: #f0c040;
    box-shadow: 0 0 10px rgba(240,192,64,.25);
}
.mcal-bkt__team--tbd {
    color: #5a6474; font-style: italic;
    background: rgba(255,255,255,.02);
    border: 1px dashed rgba(255,255,255,.08);
}

.mcal-bkt__logo {
    flex-shrink: 0; width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
}
.mcal-bkt__tname { flex: 1; }
.mcal-bkt__score {
    flex-shrink: 0; font-weight: 800;
    font-size: 14px; padding-left: 6px;
    min-width: 16px; text-align: right;
}
.mcal-bkt__vs {
    text-align: center; font-size: 10px; color: #5a6474;
    letter-spacing: 1px; font-weight: 700;
    padding: 2px 0;
}

.mcal-bracket__empty {
    padding: 40px; text-align: center; color: #8892a4;
}

/* ═══════════ 响应式 ═══════════ */
@media (max-width:768px) {
    .mcal__header { flex-wrap:wrap; padding:8px 12px; }
    .mcal__header-center { order:-1; width:100%; justify-content:center; }
    .mcal__h-title { font-size:16px; letter-spacing:2px; }
    .mcal-s { flex:0 0 105px; }
    .mcal-s__logo { width:44px; height:44px; }
    .mcal-detail__matchup { gap:12px; }
    .mcal-detail__logo { width:44px; height:44px; }
    .mcal-v__vs { font-size:22px; }
    .mcal-detail__player { flex:1 1 130px; min-width:120px; }
    .mcal-bkt__col { min-width: 170px; }
    .mcal-bkt__slot { min-width: 160px; }
    .mcal__modal-box--bracket { padding: 14px 16px; }
}
