/* ===============================
   TEAM LOGO IN TABLE
================================= */

.team-cell {
    display: flex;
    align-items: center;
}

.team-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.team-logo-wrapper {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #2a2a2a; /* 🔥 neutral gray for all logos */
    overflow: hidden;
}

.team-logo {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.team-name {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #000000;
}

/* ===============================
   TEAM COLOR BACKGROUNDS
================================= */

/* Mercedes */
.team-mercedes {
    background: #27F4D2;
}

/* Ferrari */
.team-ferrari {
    background: #E8002D;
}

/* Red Bull */
.team-redbullracing {
    background: #3671C6;
}

/* Racing Bulls */
.team-racingbulls {
    background: #070b36;
}

/* McLaren */
.team-mclaren {
    background: #000000;
}

/* Aston Martin */
.team-astonmartin {
    background: #229971;
}

/* Alpine */
.team-alpine {
    background: #111111;
}

/* Audi */
.team-audi {
    background: #FF2D00;
}

/* Haas */
.team-haas {
    background: #DEE1E2;
}

/* Williams */
.team-williams {
    background: #1868DB;
}

/* Cadillac (special) */
.team-cadillac {
    background: #ffffff;
}

.team-logo-wrapper.team-mercedes img,
.team-logo-wrapper.team-haas img,
.team-logo-wrapper.team-astonmartin img,
.team-logo-wrapper.team-racingbulls img {
    max-width: 150%;
    max-height: 150%;
}

.team-logo-wrapper.large-logo img {
    overflow: visible;
}