.bcgr-widget-source,
.bcgr-admin-widget {
    position: fixed !important;
    left: -100000px !important;
    top: -100000px !important;
    width: 240px !important;
    height: 140px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bcgr-game {
    width: 100%;
    margin: 26px 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .08);
    font-family: inherit;
}

.bcgr-game__loading,
.bcgr-game__message {
    margin: 0;
    padding: 22px;
    text-align: center;
}

.bcgr-game__head,
.bcgr-game__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
}

.bcgr-game__head {
    color: #fff;
    background: #222;
}

.bcgr-game__competition {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.bcgr-game__status {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.bcgr-game__status--live {
    background: #d60000;
    animation: bcgr-pulse 1.8s infinite;
}

.bcgr-game__teams {
    padding: 12px 16px;
}

.bcgr-team {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    border-bottom: 1px solid #eef0f2;
}

.bcgr-team:last-child {
    border-bottom: 0;
}

.bcgr-team__logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.bcgr-team__logo--empty {
    display: block;
    border-radius: 50%;
    background: #f0f1f3;
}

.bcgr-team__name {
    min-width: 0;
    overflow: hidden;
    font-size: 17px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bcgr-team__score {
    min-width: 42px;
    font-size: 30px;
    line-height: 1;
    text-align: right;
}

.bcgr-game__foot {
    border-top: 1px solid #eceff2;
    background: #f7f8fa;
    font-size: 13px;
}

.bcgr-game__link {
    font-weight: 800;
    text-decoration: none;
}

.bcgr-fixture {
    width: 100%;
    overflow: hidden;
}

.bcgr-error {
    padding: 12px;
    border-left: 4px solid #b32d2e;
    background: #fcf0f1;
}

@keyframes bcgr-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .62; }
}

@media (max-width: 600px) {
    .bcgr-game__head,
    .bcgr-game__foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .bcgr-team {
        grid-template-columns: 36px minmax(0, 1fr) auto;
    }

    .bcgr-team__logo {
        width: 34px;
        height: 34px;
    }

    .bcgr-team__name {
        font-size: 15px;
    }

    .bcgr-team__score {
        font-size: 27px;
    }
}

/* Tabla de posiciones */
.bcgr-standings {
    width: 100%;
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid #e2e5e9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    font-family: inherit;
}

.bcgr-standings__title {
    padding: 13px 16px;
    color: #fff;
    background: #222;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.bcgr-standings__scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bcgr-standings table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.bcgr-standings th,
.bcgr-standings td {
    padding: 10px 7px;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    font-size: 13px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.bcgr-standings th {
    background: #f3f5f7;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.bcgr-standings tbody tr:last-child td {
    border-bottom: 0;
}

.bcgr-standings .bcgr-col-pos {
    width: 30px;
    color: #656b73;
    font-weight: 800;
}

.bcgr-standings .bcgr-col-team {
    width: auto;
    min-width: 120px;
    text-align: left;
}

.bcgr-standings td.bcgr-col-team {
    overflow: hidden;
    font-weight: 800;
}

.bcgr-standings__team-cell {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

/*
 * Medidas estrictas para evitar que reglas globales del tema o Elementor
 * conviertan los escudos en imágenes de ancho completo dentro de la tabla.
 */
.bcgr-standings td.bcgr-col-team > .bcgr-standings__team-cell > img.bcgr-standings__team-logo {
    display: block !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: contain !important;
}

.bcgr-standings__team-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bcgr-standings__note {
    margin: 0;
    padding: 9px 14px;
    border-top: 1px solid #edf0f2;
    color: #6b7178;
    background: #fafbfc;
    font-size: 11px;
    line-height: 1.35;
}

.bcgr-standings--compact th:not(.bcgr-col-team),
.bcgr-standings--compact td:not(.bcgr-col-team) {
    width: 35px;
}

@media (max-width: 480px) {
    .bcgr-standings th,
    .bcgr-standings td {
        padding: 9px 4px;
        font-size: 11px;
    }

    .bcgr-standings .bcgr-col-team {
        min-width: 98px;
    }

    .bcgr-standings__team-cell {
        gap: 4px;
    }

    .bcgr-standings td.bcgr-col-team > .bcgr-standings__team-cell > img.bcgr-standings__team-logo {
        flex-basis: 16px !important;
        width: 16px !important;
        min-width: 16px !important;
        max-width: 16px !important;
        height: 16px !important;
        min-height: 16px !important;
        max-height: 16px !important;
    }

    .bcgr-standings--compact th:not(.bcgr-col-team),
    .bcgr-standings--compact td:not(.bcgr-col-team) {
        width: 29px;
    }
}

/* Centro de partidos */
.bcgr-center {
    width: 100%;
    margin: 0 auto;
}

.bcgr-center__hero {
    margin: 0 0 24px;
    padding: clamp(22px, 4vw, 38px);
    color: #fff;
    background: #222;
    border-radius: 16px;
}

.bcgr-center__hero h2 {
    margin: 5px 0 4px;
    color: inherit;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1;
}

.bcgr-center__hero p,
.bcgr-center__eyebrow {
    margin: 0;
    font-weight: 800;
}

.bcgr-center__eyebrow {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bcgr-games-list {
    margin: 26px 0;
}

.bcgr-games-list__title,
.bcgr-team-page__news h2 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.15;
}

.bcgr-games-list__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bcgr-list-game {
    margin: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.bcgr-list-game .bcgr-team {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-height: 48px;
}

.bcgr-list-game .bcgr-team__logo {
    width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    max-height: 30px !important;
    object-fit: contain !important;
}

.bcgr-list-game .bcgr-team__score {
    font-size: 25px;
}

.bcgr-list-game__article {
    display: block;
    padding: 10px 16px;
    border-top: 1px solid #eceff2;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

/* Página de equipo */
.bcgr-team-page__head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 18px;
    padding: 22px;
    color: #fff;
    background: #222;
    border-radius: 16px;
}

.bcgr-team-page__head > img {
    display: block !important;
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
    margin: 0 !important;
    object-fit: contain !important;
}

.bcgr-team-page__head span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bcgr-team-page__head h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1;
}

.bcgr-team-page__stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 24px;
}

.bcgr-team-page__stats div {
    padding: 14px 8px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 12px;
}

.bcgr-team-page__stats strong,
.bcgr-team-page__stats span {
    display: block;
}

.bcgr-team-page__stats strong {
    font-size: 22px;
}

.bcgr-team-page__stats span {
    color: #68707a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.bcgr-team-page__news {
    margin: 30px 0;
}

.bcgr-team-page__news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bcgr-team-page__news article {
    padding: 14px;
    border: 1px solid #e2e5e9;
    border-radius: 12px;
    background: #fff;
}

.bcgr-team-page__news a,
.bcgr-team-page__news time {
    display: block;
}

.bcgr-team-page__news a {
    font-weight: 900;
    text-decoration: none;
}

.bcgr-team-page__news time {
    margin-top: 6px;
    color: #68707a;
    font-size: 12px;
}

.bcgr-standings sup {
    margin-left: 2px;
    font-size: 9px;
}

@media (max-width: 720px) {
    .bcgr-games-list__grid,
    .bcgr-team-page__news-grid {
        grid-template-columns: 1fr;
    }

    .bcgr-team-page__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .bcgr-team-page__head {
        gap: 12px;
        padding: 18px;
    }

    .bcgr-team-page__head > img {
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
    }

    .bcgr-team-page__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
