/*
 * Baseline structural styles for Soee.League:Content.TopScorers.
 * Colours are kept theme-neutral (currentColor + alpha) so the site's
 * dark/light theme drives the surface; theming lives in the site package.
 */

.c-top-scorers {
    width: 100%;
}

.c-top-scorers__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: scorer-rank;
}

.c-top-scorers__row {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid currentColor;
    /* Faded border that adapts to dark/light because it's based on text colour. */
    border-bottom-color: rgba(128, 128, 128, 0.2);
}

.c-top-scorers__row:last-child {
    border-bottom: none;
}

.c-top-scorers__rank {
    font-weight: 700;
    text-align: right;
    opacity: 0.6;
    font-variant-numeric: tabular-nums;
}

.c-top-scorers__players {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.c-top-scorers__player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.c-top-scorers__player--highlight {
    font-weight: 600;
}

.c-top-scorers__team-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: help;
}

.c-top-scorers__team-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.c-top-scorers__player-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c-top-scorers__player-team {
    margin-left: 0.25rem;
    opacity: 0.7;
    font-size: 0.9em;
}

.c-top-scorers__goals {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    min-width: 2.5rem;
}

.c-top-scorers__goals-value {
    display: inline-block;
    padding: 0.15em 0.5em;
    border-radius: 0.25rem;
    background: rgba(128, 128, 128, 0.15);
}

.c-top-scorers__placeholder {
    padding: 1rem;
    text-align: center;
    opacity: 0.7;
    font-style: italic;
}
