/* El buscador global toma el color de acción de la paleta elegida en el sidebar: _changeColor() (main.js)
   pone --secondary y --primary en <html>, así que cambia solo al cambiar de paleta. Si faltan, azul. */
.gs-overlay {
    --gs-action: var(--secondary, #0052f5);
    --gs-on-action: var(--primary, #ffffff);
}

/* Tarjeta de jugador del buscador global (GlobalSearch usa DOM normal: este CSS le llega) */
.buscador-jugador {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.buscador-jugador img {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gs-kbd-bg);
}

.buscador-jugador>div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.buscador-jugador .nombre {
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buscador-jugador .club {
    font-size: 12.5px;
    color: var(--gs-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* una línea por ranking (individual y/o dobles): puntos y posición a la izquierda, ranking · género · modalidad al lado */
.buscador-jugador .ranking {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    font-size: 12.5px;
}

.buscador-jugador .ranking .puntos {
    flex: none;
    font-weight: 700;
    color: var(--gs-action);
}

.buscador-jugador .ranking .detalle {
    color: var(--gs-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buscador-jugador .ranking:not(.abrible) {
    opacity: .55;
}

.buscador-jugador .ranking.abrible {
    cursor: pointer;
}

.buscador-jugador .ranking.abrible:hover .detalle {
    text-decoration: underline;
}
