/* ── LEW Player Comparador ───────────────────────────────────────────────────── */

/* Spacer vacío — conserva el margin-top del LEW_BodyTitle para alinear con col izq */
.LEW_PlayerCompare_TitleSpacer {
    visibility: hidden;
    margin-bottom: 0 !important;
    line-height: 0;
    font-size: 0;
    height: 0;
    overflow: hidden;
}

/* Contenedor externo: flex column, sin bg propio */
.LEW_PlayerCompare {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Pastilla 1: Gráfico ─────────────────────────────────────────────────────── */
.LEW_PlayerCompare_ChartBlock {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f4f6fb;
    border: 1px solid #e8ecf4;
    border-radius: 18px;
    padding: 16px 20px 12px;
}

.LEW_PlayerCompare_ChartWrap {
    width: 100%;
    height: 320px;
    min-height: 320px;
    flex-shrink: 0;
    position: relative;
}
.LEW_PlayerCompare_ChartWrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ── Legend ───────────────────────────────────────────────────────────────────── */
.LEW_PlayerCompare_Legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.LEW_CmpLeg_Item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.LEW_CmpLeg_Dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.LEW_CmpLeg_Name {
    font-size: 11px;
    font-family: 'Roboto Mono', monospace;
    color: #1a2b3c;
    font-weight: 600;
}

/* ── Pastilla 2: Comparador ──────────────────────────────────────────────────── */
.LEW_PlayerCompare_CmpBlock {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f4f6fb;
    border: 1px solid #e8ecf4;
    border-radius: 14px;
    padding: 12px 16px 12px;
}

/* ── Tabs header ──────────────────────────────────────────────────────────────── */
.LEW_CmpTabs_Header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.LEW_CmpTabs_Title {
    font-size: 11px;
    font-family: 'Roboto Mono', monospace;
    color: #7a8fa0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.LEW_CmpTabs_Btns {
    display: flex;
    gap: 4px;
}

.LEW_CmpTabBtn {
    background: #7a8fa0 !important;
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11px;
    font-family: 'Roboto Mono', monospace;
    color: #fff !important;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.LEW_CmpTabBtn:hover {
    background: #6a7f90 !important;
}
.LEW_CmpTabBtn.active {
    background: #1B99D2 !important;
}

/* ── Search input ─────────────────────────────────────────────────────────────── */
.LEW_PlayerCompare_SearchWrap {
    position: relative;
}

.LEW_PlayerCompare_Input {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1.5px solid #d0d6e0;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: 'Roboto Mono', monospace;
    color: #1a2b3c;
    outline: none;
    transition: border-color .18s;
}
.LEW_PlayerCompare_Input::placeholder { color: #9aaab8; }
.LEW_PlayerCompare_Input:focus { border-color: #1B99D2; }

/* ── Dropdown ─────────────────────────────────────────────────────────────────── */
.LEW_PlayerCompare_Dropdown {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 999;
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    background: #fff;
    border: 1.5px solid #d0d6e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    max-height: 200px;
    overflow-y: auto;
}
.LEW_PlayerCompare_Dropdown:empty { display: none; }
.LEW_PlayerCompare_Dropdown li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Roboto Mono', monospace;
    color: #1a2b3c;
    transition: background .12s;
}
.LEW_PlayerCompare_Dropdown li:hover { background: #f0f4f8; }
.LEW_CmpDrop_Dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.LEW_CmpDrop_Name { font-weight: 600; flex: 1; }
.LEW_CmpDrop_Team { color: #7a8fa0; font-size: 11px; }
.LEW_CmpDrop_Empty { color: #9aaab8 !important; cursor: default !important; }
.LEW_CmpDrop_Empty:hover { background: transparent !important; }

/* ── Note ─────────────────────────────────────────────────────────────────────── */
.LEW_PlayerCompare_Note {
    font-size: 10px;
    font-family: 'Roboto Mono', monospace;
    color: #7a8fa0;
    line-height: 1.6;
    margin-top: 2px;
}
