/* SPOKAZ Sports Matrix - 종합분석실2 */
.spk-mx-wrap { max-width: 100%; }

/* ── 헤더 ── */
.spk-mx-header {
    background: linear-gradient(135deg, #0c2d5e, #1a6dff);
    border-radius: var(--spk-radius);
    padding: 16px 20px; color: #fff; margin-bottom: 10px;
}
.spk-mx-header h2 { margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.spk-mx-header p { margin: 0; font-size: 12px; color: #7899bb; }

/* ── 종목 탭 ── */
.mx-sport-tabs {
    display: none; gap: 0; margin-bottom: 8px;
    background: var(--spk-card); border-radius: var(--spk-radius);
    box-shadow: var(--spk-shadow); overflow: hidden;

}
.mx-sport-tab {
    flex: 1; padding: 12px 16px; border: none; background: transparent;
    font-size: 13px; font-weight: 700; color: var(--spk-muted);
    cursor: pointer; transition: all .2s;
    border-bottom: 3px solid transparent;
}
.mx-sport-tab:hover { background: rgba(26,109,255,.03); color: var(--spk-text); }
.mx-sport-tab.active {
    color: #1a6dff; border-bottom-color: #1a6dff;
    background: rgba(26,109,255,.05);
}

/* ── 필터 ── */
.spk-mx-filter {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 18px; margin-bottom: 8px;
    background: var(--spk-card); border-radius: var(--spk-radius);
    box-shadow: var(--spk-shadow);
}
.mx-filter-item { display: flex; align-items: center; gap: 6px; }
.mx-filter-label { font-size: 11px; color: var(--spk-muted); font-weight: 600; }
.mx-select {
    padding: 8px 12px; border: 1.5px solid var(--spk-line); border-radius: 8px;
    font-size: 13px; font-weight: 700; background: #fff; outline: none;
    cursor: pointer; transition: border-color .15s;
}
.mx-select:focus { border-color: var(--spk-primary); }
.mx-btn-load {
    padding: 8px 24px; border: none; border-radius: 8px;
    background: linear-gradient(135deg, #1a6dff, #0050cc);
    color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all .15s; box-shadow: 0 2px 8px rgba(26,109,255,.25);
}
.mx-btn-load:hover { box-shadow: 0 4px 14px rgba(26,109,255,.4); transform: translateY(-1px); }
.mx-summary { margin-left: auto; font-size: 11px; color: var(--spk-muted); font-weight: 600; }

/* ── 범례 ── */
.mx-legend {
    display: flex; align-items: center; gap: 14px;
    padding: 6px 18px; margin-bottom: 8px;
    font-size: 11px; color: var(--spk-muted); font-weight: 600;
}
.mx-leg { display: flex; align-items: center; gap: 4px; }
.mx-leg-box { width: 14px; height: 14px; border-radius: 50%; }
.leg-w { background: #0d326a; box-shadow: 0 1px 4px rgba(0,188,212,.4); }
.leg-d { background: #888; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.leg-l { background: #f44336; box-shadow: 0 1px 4px rgba(244,67,54,.4); }
.leg-none { background: #ddd; }

/* ══════════════════════════════════════
   공 모양 요약 테이블
   ══════════════════════════════════════ */
.spk-mx-dot-wrap {
    background: var(--spk-card);
    border-radius: var(--spk-radius);
    box-shadow: var(--spk-shadow);
    overflow-x: auto;
    overflow-y: auto;
    max-height: 60vh;
    margin-bottom: 12px;
    cursor: grab;
    user-select: none;
}
.spk-mx-dot-wrap.is-grabbing { cursor: grabbing; }
.spk-mx-dot-table {
    width: max-content; min-width: 100%;
    border-collapse: collapse;
}
.spk-mx-dot-table thead { position: sticky; top: 0; z-index: 10; }
.spk-mx-dot-table th {
    padding: 6px 2px; font-size: 9px; font-weight: 700;
    text-align: center; white-space: nowrap;
    background: #f0f2f5; color: #888;
    border-bottom: 2px solid #ddd; border-right: 1px solid #eee;
}
.spk-mx-dot-table th.dt-no { width: 28px; }
.spk-mx-dot-table th.dt-team { width: 80px; text-align: left; padding-left: 8px; font-size: 10px; color: #555; }
.spk-mx-dot-table th.dt-round { width: 18px; min-width: 18px; }
.spk-mx-dot-table th.dt-stat { width: 50px; font-size: 9px; }

.spk-mx-dot-table td {
    padding: 4px 2px; text-align: center; vertical-align: middle;
    border-bottom: 1px solid #eee; border-right: 1px solid #f0f0f0;
    height: 28px;
}
.spk-mx-dot-table tr:hover td { background: rgba(0,0,0,.015); }

.dt-no-cell { font-size: 10px; font-weight: 800; color: #999;
    position: sticky; left: 0; z-index: 5; background: #fafbfc; }
.dt-team-cell {
    text-align: left !important; padding: 0 6px !important;
    font-size: 11px; font-weight: 800; color: #333; white-space: nowrap;
    position: sticky; left: 28px; z-index: 5; background: #fafbfc;
    max-width: 80px; overflow: hidden; text-overflow: ellipsis;
}
.dt-team-cell::after {
    content: ''; position: absolute; top: 0; right: -4px;
    width: 4px; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,.04), transparent);
    pointer-events: none;
}

/* 공 (dot) */
.dt-dot {
    display: inline-block; width: 14px; height: 14px;
    border-radius: 50%; cursor: default;
}
.dt-dot-w {
    background:radial-gradient(circle at 35% 35%, #5996ff, #0d326a);
    box-shadow: 0 1px 3px rgba(0,188,212,.5);
}
.dt-dot-d {
    background: radial-gradient(circle at 35% 35%, #bbb, #666);
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.dt-dot-l {
    background: radial-gradient(circle at 35% 35%, #ff7043, #c62828);
    box-shadow: 0 1px 3px rgba(244,67,54,.5);
}
.dt-dot-none {
    background: radial-gradient(circle at 35% 35%, #eee, #ccc);
    width: 10px; height: 10px;
}

/* 전적 통계 */
.dt-stat-cell { font-size: 10px; font-weight: 700; white-space: nowrap; }
.dt-stat-w { color: #00838f; }
.dt-stat-d { color: #888; }
.dt-stat-l { color: #c62828; }
.dt-stat-pts { color: #333; font-weight: 900; }

/* ══════════════════════════════════════
   상세 매트릭스 테이블
   ══════════════════════════════════════ */
.spk-mx-table-wrap {
    background: var(--spk-card);
    border-radius: var(--spk-radius);
    box-shadow: var(--spk-shadow);
    overflow-x: auto;
    overflow-y: auto;
   
    cursor: grab;
    user-select: none;
}
.spk-mx-table-wrap.is-grabbing { cursor: grabbing; }
.mx-loading {
    padding: 60px 20px; text-align: center;
    color: var(--spk-muted); font-size: 13px;
}

.spk-mx-table {
    width: max-content; min-width: 100%;
    border-collapse: collapse; border-spacing: 0;
}

/* 헤더 */
.spk-mx-table thead { position: sticky; top: 0; z-index: 10; }
.spk-mx-table th {
    padding: 10px 6px; font-size: 12px; font-weight: 800;
    text-align: center; white-space: nowrap;
    background: linear-gradient(180deg, #f0f2f5, #e4e7ec);
    color: #333; border-bottom: 2px solid #ccc;
    border-right: 1px solid #ddd;
}
.spk-mx-table th.th-no { width: 36px; }
.spk-mx-table th.th-team { width: 100px; text-align: left; padding-left: 10px; }
.spk-mx-table th.th-round { min-width: 110px; }

/* 셀 */
.spk-mx-table td {
    padding: 0; font-size: 12px;
    text-align: center; vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e8e8e8;
    height: 48px;
}
.spk-mx-table tr:hover td { filter: brightness(.97); }

/* No 열 */
.mx-no {
    font-weight: 900; color: #555; font-size: 13px;
    background: #f8f9fb; width: 36px;
    position: sticky; left: 0; z-index: 5;
}

/* 팀명 열 */
.mx-team {
    text-align: left !important; padding: 0 8px !important;
    font-weight: 800; color: #222; white-space: nowrap;
    background: #f8f9fb;
    position: sticky; left: 36px; z-index: 5;
    max-width: 100px; overflow: hidden; text-overflow: ellipsis;
}
.mx-team-inner { display: flex; align-items: center; gap: 6px; }
.mx-team-badge { width: 18px; height: 18px; flex-shrink: 0; }
.mx-team-badge img { width: 100%; height: 100%; object-fit: contain; }

/* 라운드 결과 셀 */
.mx-cell { padding: 3px 5px !important; position: relative; }

.mx-cell-inner {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0; height: 100%;
}
.mx-result {
    font-size: 16px; font-weight: 900; line-height: 1.2;
    letter-spacing: 1px;
}
.mx-score {
    font-size: 11px; font-weight: 800; line-height: 1;
    color: rgba(255,255,255,.95);
}
.mx-vs {
    font-size: 8px; font-weight: 700; line-height: 1;
    color: rgba(255,255,255,.95); white-space: nowrap;
    max-width: 100px; overflow: hidden; text-overflow: ellipsis;
}

/* 승/무/패 배경색 */
.mx-w { background: #0e3779; color: #fff; }
.mx-d { background: #78909c; color: #fff; }
.mx-l { background: #e53935; color: #fff; }
.mx-none { background: #f5f5f5; color: #bbb; }

/* sticky 컬럼 그림자 */
.mx-team::after, .dt-team-cell::after {
    content: ''; position: absolute; top: 0; right: -6px;
    width: 6px; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,.06), transparent);
    pointer-events: none;
}

/* 클릭 가능 셀 */
.mx-cell.mx-clickable:hover { filter: brightness(1.15); }
.spk-mx-table-wrap:not(.is-grabbing) .mx-cell.mx-clickable { cursor: pointer; }

/* ══════════════════════════════════════
   경기 상세 모달
   ══════════════════════════════════════ */
.md-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.6); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(3px);
}
.md-modal {
    background: #fff; border-radius: 16px;
    width: 520px; max-width: 95vw; max-height: 85vh;
    overflow-y: auto; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: mdSlideIn .25s ease;
}
@keyframes mdSlideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.md-close {
    position: absolute; top: 10px; right: 14px; z-index: 10;
    width: 32px; height: 32px; border: none; border-radius: 50%;
    background: rgba(0,0,0,.1); color: #fff;
    font-size: 20px; cursor: pointer; transition: all .15s;
    display: flex; align-items: center; justify-content: center;
}
.md-close:hover { background: rgba(0,0,0,.3); }
.md-loading, .md-error {
    padding: 60px 20px; text-align: center; font-size: 13px; color: #888;
}
.md-error { color: #cc3333; }

/* 스코어 헤더 */
.md-score-header {
    background: linear-gradient(135deg, #0a1628, #1a3a5c);
    padding: 24px 20px 18px; color: #fff; text-align: center;
    border-radius: 16px 16px 0 0;
}
.md-match-info { font-size: 10px; color: #7899bb; margin-bottom: 12px; }
.md-teams {
    display: flex; align-items: center; justify-content: center; gap: 16px;
}
.md-team {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: 120px;
}
.md-team-logo { width: 48px; height: 48px; }
.md-team-logo img { width: 100%; height: 100%; object-fit: contain; }
.md-team-name { font-size: 12px; font-weight: 700; }
.md-score-big {
    font-size: 36px; font-weight: 900; letter-spacing: 4px;
    min-width: 80px; text-align: center;
}
.md-score-big .md-score-sep { color: #556; font-size: 24px; margin: 0 4px; }
.md-status-badge {
    display: inline-block; margin-top: 8px;
    padding: 3px 14px; border-radius: 12px;
    font-size: 10px; font-weight: 700;
    background: rgba(255,255,255,.15); color: #aaccee;
}

/* 이벤트 타임라인 */
.md-events {
    padding: 14px 18px; border-bottom: 1px solid #eee;
}
.md-events-title {
    font-size: 11px; font-weight: 800; color: #888;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 10px;
}
.md-evt {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 0; font-size: 12px;
}
.md-evt-time {
    min-width: 40px; font-weight: 800; color: #333; text-align: right;
}
.md-evt-icon { font-size: 14px; flex-shrink: 0; }
.md-evt-icon-goal { color: #1a6dff; }
.md-evt-icon-yellow { color: #f9a825; }
.md-evt-icon-red { color: #e53935; }
.md-evt-icon-sub { color: #888; }
.md-evt-icon-var { color: #7c4dff; }
.md-evt-player { font-weight: 700; color: #333; }
.md-evt-assist { font-weight: 400; color: #999; font-size: 11px; }
.md-evt-team-logo { width: 14px; height: 14px; }
.md-evt-team-logo img { width: 100%; height: 100%; object-fit: contain; }

/* 통계 바 */
.md-stats { padding: 14px 18px 20px; }
.md-stats-title {
    font-size: 11px; font-weight: 800; color: #888;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 12px;
}
.md-stat-row {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px;
}
.md-stat-label {
    width: 100%; text-align: center;
    font-size: 10px; font-weight: 700; color: #888;
    text-transform: uppercase;
}
.md-stat-val {
    min-width: 36px; font-size: 13px; font-weight: 900; color: #333;
}
.md-stat-val-home { text-align: right; }
.md-stat-val-away { text-align: left; }
.md-stat-bar-wrap {
    flex: 1; height: 6px; border-radius: 3px;
    background: #eee; display: flex; overflow: hidden;
}
.md-stat-bar-home {
    height: 100%; border-radius: 3px 0 0 3px;
    background: linear-gradient(90deg, #1a5ccc, #4a9dff);
    transition: width .4s ease;
}
.md-stat-bar-away {
    height: 100%; border-radius: 0 3px 3px 0;
    background: linear-gradient(90deg, #ff6666, #cc2233);
    transition: width .4s ease;
}

/* ══════════════════════════════════════
   순위표 (야구/농구)
   ══════════════════════════════════════ */
.spk-mx-standings-wrap {
    background: var(--spk-card);
    border-radius: var(--spk-radius);
    box-shadow: var(--spk-shadow);
    overflow: auto; max-height: 80vh;
}
.spk-mx-standings {
    width: 100%; border-collapse: collapse;
}
.spk-mx-standings thead { position: sticky; top: 0; z-index: 5; }
.spk-mx-standings th {
    padding: 10px 12px; font-size: 11px; font-weight: 800;
    text-align: center; white-space: nowrap;
    background: linear-gradient(180deg, #f0f2f5, #e4e7ec);
    color: #555; border-bottom: 2px solid #ccc;
    text-transform: uppercase; letter-spacing: .5px;
}
.spk-mx-standings th.st-team-th { text-align: left; padding-left: 14px; }
.spk-mx-standings td {
    padding: 10px 12px; font-size: 13px;
    text-align: center; vertical-align: middle;
    border-bottom: 1px solid #eee;
}
.spk-mx-standings tr:hover td { background: rgba(26,109,255,.02); }
.st-rank-cell { font-weight: 900; color: #888; width: 40px; }
.st-rank-cell.top3 { color: #1a6dff; }
.st-team-cell {
    text-align: left !important; font-weight: 700; white-space: nowrap;
}
.st-team-inner { display: flex; align-items: center; gap: 10px; }
.st-team-logo { width: 24px; height: 24px; flex-shrink: 0; }
.st-team-logo img { width: 100%; height: 100%; object-fit: contain; }
.st-w-cell { color: #1a6dff; font-weight: 800; }
.st-l-cell { color: #e53935; font-weight: 800; }
.st-d-cell { color: #888; font-weight: 700; }
.st-pct-cell { font-weight: 900; color: #333; }
.st-pts-cell { font-weight: 900; color: #333; font-size: 14px; }
.st-form-cell { display: flex; gap: 2px; justify-content: center; }
.st-form-char {
    width: 18px; height: 18px; border-radius: 3px;
    font-size: 9px; font-weight: 900; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}
.st-form-W { background: #1a6dff; }
.st-form-D { background: #999; }
.st-form-L { background: #e53935; }

/* ── 반응형 ── */
@media (max-width: 768px) {
    .spk-mx-filter { padding: 10px 12px; gap: 8px; }
    .mx-select { font-size: 12px; padding: 6px 8px; }
    .spk-mx-table th.th-round { min-width: 90px; }
    .mx-result { font-size: 13px; }
    .mx-vs { font-size: 7px; }
    .mx-team { max-width: 80px; }
    .dt-dot { width: 12px; height: 12px; }
    .md-modal { width: 100%; border-radius: 12px; }
    .md-team-logo { width: 36px; height: 36px; }
    .md-score-big { font-size: 28px; }
}

/* ─────────────────────────────────────────────────
   사용설명서 — 버튼 + 모달
   ───────────────────────────────────────────────── */
.mx-help-btn {
    margin-left: 8px;
    padding: 8px 16px;
    border: 1.5px solid var(--spk-line);
    border-radius: 8px;
    background: #f0f5ff;
    color: var(--spk-primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.mx-help-btn i { margin-right: 4px; }
.mx-help-btn:hover {
    background: var(--spk-primary);
    color: #fff;
    border-color: var(--spk-primary);
    box-shadow: 0 4px 14px rgba(26,109,255,.3);
}

/* 모달 */
.mx-help-modal {
    position: fixed; inset: 0;
    z-index: 9999;
    background: rgba(2, 6, 18, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: mxHelpIn .18s ease;
}
.mx-help-modal[hidden] { display: none; }
@keyframes mxHelpIn { from { opacity: 0; } to { opacity: 1; } }
.mx-help-box {
    width: min(900px, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.mx-help-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0c2d5e, #1a6dff);
    color: #fff;
}
.mx-help-head strong { font-size: 16px; font-weight: 900; letter-spacing: -.01em; }
.mx-help-head strong i { margin-right: 6px; }
.mx-help-close {
    width: 32px; height: 32px;
    border: 0;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.mx-help-close:hover { background: rgba(255,255,255,0.3); }

.mx-help-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 30px;
    background: #fafcff;
    font-size: 13px;
    line-height: 1.7;
    color: #2c3e50;
}
.mx-help-body .help-intro {
    background: linear-gradient(135deg, #eaf2ff, #f3f7fc);
    border-left: 4px solid var(--spk-primary);
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 18px;
}
.mx-help-body .help-intro h3 {
    margin: 0 0 6px;
    font-size: 17px; font-weight: 900;
    color: var(--spk-primary-deep);
    letter-spacing: -.01em;
}
.mx-help-body .help-intro p { margin: 0; color: #4a5d74; font-size: 13px; }

.mx-help-body .help-sec {
    margin: 14px 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--spk-line);
    border-radius: 10px;
}
.mx-help-body .help-sec h4 {
    margin: 0 0 10px;
    font-size: 14.5px; font-weight: 800;
    color: var(--spk-primary-deep);
}
.mx-help-body .help-sec h5 {
    margin: 14px 0 8px;
    font-size: 13px; font-weight: 800;
    color: var(--spk-primary);
}
.mx-help-body .help-sec p { margin: 0 0 8px; }
.mx-help-body .help-sec ul,
.mx-help-body .help-sec ol { margin: 8px 0 0; padding-left: 22px; }
.mx-help-body .help-sec li { margin-bottom: 6px; }
.mx-help-body .help-sec b { color: var(--spk-primary-deep); font-weight: 800; }
.mx-help-body .hl-red  { color: #cc2233; font-weight: 900; }
.mx-help-body .hl-blue { color: var(--spk-primary); font-weight: 900; }

.mx-help-body .help-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
    padding: 10px 14px;
    background: #f5f9ff;
    border-radius: 8px;
}
.mx-help-body .help-legend > div {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px;
}
.mx-help-body .help-dot {
    display: inline-block;
    width: 16px; height: 16px;
    border-radius: 50%;
}
.mx-help-body .help-dot.dot-w    { background: radial-gradient(circle at 35% 35%, #5996ff, #0d326a); }
.mx-help-body .help-dot.dot-d    { background: radial-gradient(circle at 35% 35%, #bbb, #666); }
.mx-help-body .help-dot.dot-l    { background: radial-gradient(circle at 35% 35%, #ff7043, #c62828); }
.mx-help-body .help-dot.dot-none { background: radial-gradient(circle at 35% 35%, #eee, #ccc); width: 12px; height: 12px; }

/* ⭐ 연승/연패 핵심 섹션 */
.mx-help-body .help-highlight-streak {
    background: linear-gradient(135deg, #fff4e6, #ffece0);
    border: 2px solid #ff6b00;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(255,107,0,0.15);
}
.mx-help-body .help-highlight-streak h4 {
    color: #c14800;
    font-size: 15.5px;
}
.mx-help-body .help-highlight-streak h5 {
    color: #c14800;
    border-bottom: 1px dashed #ff9955;
    padding-bottom: 6px;
}
.mx-help-body .hl-box {
    margin: 12px 0;
    padding: 14px 18px;
    background: #fff;
    border: 1.5px dashed #ff6b00;
    border-radius: 10px;
    font-size: 13px;
    line-height: 2;
    color: #5a3000;
    font-weight: 500;
}
.mx-help-body .hl-box b { font-weight: 900; color: #c14800; }
.mx-help-body .hl-tip {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff9e6;
    border-left: 3px solid #f4b400;
    border-radius: 6px;
    font-size: 12.5px;
    color: #6b5b00;
}

.mx-help-body .help-tip-sec {
    background: linear-gradient(135deg, #f5fffa, #e6fff0);
    border-color: #0abf53;
}
.mx-help-body .help-tip-sec h4 { color: #067838; }

.mx-help-body .help-disclaimer {
    background: #fff4f4;
    border-color: #f4c2c2;
}
.mx-help-body .help-disclaimer p { font-size: 12px; color: #7a3b3b; }

@media (max-width: 600px) {
    .mx-help-body { padding: 14px 16px 24px; }
    .mx-help-body .help-sec { padding: 12px 14px; }
    .mx-help-btn { margin-left: auto; margin-top: 4px; }
}

/* ══════════════════════════════════════
   팀 다중 선택 드롭다운
   ══════════════════════════════════════ */
.mx-team-filter { position: relative; }
.mx-team-toggle {
    padding: 8px 14px; border: 1.5px solid var(--spk-line); border-radius: 8px;
    background: #fff; font-size: 13px; font-weight: 700; color: #333;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: border-color .15s;
}
.mx-team-toggle:hover { border-color: var(--spk-primary); }
.mx-team-toggle .mx-team-cnt {
    display: inline-block; padding: 1px 8px; border-radius: 10px;
    background: #1a6dff; color: #fff; font-size: 11px; font-weight: 800;
}
.mx-team-toggle .fa-caret-down { color: #888; }
.mx-team-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 100;
    width: 280px; max-height: 360px;
    background: #fff; border: 1px solid var(--spk-line); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    display: flex; flex-direction: column;
}
.mx-team-dropdown[hidden] { display: none; }
.mx-team-dd-head {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 10px; border-bottom: 1px solid #eee;
    background: #f8f9fb; border-radius: 10px 10px 0 0;
}
.mx-team-mini {
    padding: 4px 10px; border: 1px solid #ddd; border-radius: 5px;
    background: #fff; font-size: 11px; font-weight: 700; color: #555;
    cursor: pointer; transition: all .15s;
}
.mx-team-mini:hover { background: #1a6dff; color: #fff; border-color: #1a6dff; }
.mx-team-close {
    margin-left: auto; padding: 0 8px; border: none; background: transparent;
    font-size: 22px; line-height: 1; color: #888; cursor: pointer;
}
.mx-team-close:hover { color: #f44336; }
.mx-team-dd-list {
    flex: 1; overflow-y: auto; padding: 6px 4px;
}
.mx-team-opt {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; cursor: pointer; border-radius: 4px;
    font-size: 12px; font-weight: 600; color: #333;
    transition: background .12s;
}
.mx-team-opt:hover { background: #f0f5ff; }
.mx-team-opt input[type=checkbox] { width: 14px; height: 14px; cursor: pointer; }

/* ══════════════════════════════════════
   좌측 sidebar 리그 순위 카드 (한판분석에서 주입)
   ══════════════════════════════════════ */
.mx-side-rank-card .spk-card-body { padding: 0; }
.mx-side-loading, .mx-side-empty {
    padding: 22px 14px; text-align: center; font-size: 12px; color: var(--spk-muted);
}
.mx-side-rank-table {
    width: 100%; border-collapse: collapse; font-size: 11px;
}
.mx-side-rank-table thead th {
    padding: 6px 3px; background: #f5f7fa; color: #666;
    font-size: 10px; font-weight: 700; text-align: center;
    border-bottom: 1px solid #ddd;
}
.mx-side-rank-table th.rk-team { text-align: left; padding-left: 8px; }
.mx-side-rank-table td {
    padding: 5px 3px; text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.mx-side-rank-table .rk-rank {
    font-weight: 900; color: #888; width: 22px;
}
.mx-side-rank-table .rk-row.rk-top3 .rk-rank {
    color: #fff; background: #1a6dff; border-radius: 4px;
}
.mx-side-rank-table .rk-row.rk-relegation .rk-rank {
    color: #f44336;
}
.mx-side-rank-table .rk-team-cell {
    text-align: left; padding-left: 6px; font-weight: 700; color: #222;
    display: flex; align-items: center; gap: 6px;
    max-width: 120px;
}
.mx-side-rank-table .rk-badge {
    width: 18px; height: 18px; object-fit: contain; flex-shrink: 0;
}
.mx-side-rank-table .rk-pts {
    font-weight: 800; color: #1a6dff;
}
.mx-side-rank-table tbody tr:hover td { background: rgba(26,109,255,.04); }

@media (max-width: 600px) {
    .mx-team-dropdown { width: 240px; left: auto; right: 0; }
}

