/* FCBF - Ver jogos por grupo na tabela */
.standings-group-games-btn {
    appearance: none;
    border: 1px solid rgba(147, 197, 253, .42);
    background:
        radial-gradient(circle at 20% 10%, rgba(125, 211, 252, .22), transparent 32%),
        linear-gradient(135deg, rgba(15, 35, 72, .98), rgba(10, 72, 88, .88));
    color: #bfe8ff;
    font: inherit;
    font-weight: 900;
    font-size: .78rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: .48rem .72rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        0 0 18px rgba(56, 189, 248, .16);
    cursor: pointer;
    white-space: nowrap;
}

.standings-group-games-btn::before {
    content: "📅";
    font-size: .9rem;
    filter: drop-shadow(0 0 8px rgba(125, 211, 252, .45));
}

.standings-group-games-btn:hover,
.standings-group-games-btn:focus {
    color: #ffffff;
    border-color: rgba(125, 211, 252, .85);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        0 0 26px rgba(56, 189, 248, .32);
}

.fcbf-group-games-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background:
        radial-gradient(circle at 50% 15%, rgba(34, 197, 94, .16), transparent 34%),
        rgba(2, 6, 23, .82);
    backdrop-filter: blur(12px);
}

.fcbf-group-games-modal.is-open {
    display: flex;
}

.fcbf-group-games-modal__box {
    width: min(94vw, 560px);
    max-height: min(82vh, 720px);
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(56, 189, 248, .34);
    background:
        radial-gradient(circle at 90% 0%, rgba(34, 197, 94, .14), transparent 34%),
        linear-gradient(180deg, rgba(10, 24, 48, .98), rgba(4, 12, 26, .98));
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .58),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

.fcbf-group-games-modal__head {
    padding: 1rem 1rem .85rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.fcbf-group-games-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .58rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #86efac);
    color: #06131f;
    font-size: .72rem;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .45rem;
}

.fcbf-group-games-modal__title {
    margin: 0;
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1.05;
    font-weight: 1000;
}

.fcbf-group-games-modal__subtitle {
    color: #a9c4df;
    font-weight: 800;
    font-size: .85rem;
    margin-top: .28rem;
}

.fcbf-group-games-modal__close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 14px;
    background: rgba(15, 23, 42, .82);
    color: #e5f4ff;
    font-size: 1.35rem;
    font-weight: 900;
    cursor: pointer;
}

.fcbf-group-games-modal__body {
    padding: .9rem;
    max-height: calc(min(82vh, 720px) - 98px);
    overflow: auto;
}

.fcbf-group-games-list {
    display: grid;
    gap: .78rem;
}

.fcbf-group-game {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .18);
    background:
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, .10), transparent 32%),
        rgba(15, 23, 42, .76);
    padding: .85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.fcbf-group-game.is-live {
    border-color: rgba(74, 222, 128, .56);
    box-shadow:
        0 0 0 1px rgba(74, 222, 128, .16),
        0 0 24px rgba(34, 197, 94, .14);
}

.fcbf-group-game.is-finished {
    border-color: rgba(148, 163, 184, .25);
}

.fcbf-group-game__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .65rem;
    margin-bottom: .7rem;
}

.fcbf-group-game__badge {
    padding: .28rem .55rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, .12);
    color: #b8c9dd;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.fcbf-group-game__badge.is-live {
    background: linear-gradient(135deg, #55ff9c, #bbf7d0);
    color: #062817;
}

.fcbf-group-game__badge.is-finished {
    background: linear-gradient(135deg, #cbd5e1, #64748b);
    color: #08111f;
}

.fcbf-group-game__date {
    color: #a7b8cc;
    font-size: .78rem;
    font-weight: 800;
    text-align: right;
}

.fcbf-group-game__scoreline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .7rem;
}

.fcbf-group-game__team {
    display: grid;
    justify-items: center;
    gap: .32rem;
    min-width: 0;
}

.fcbf-group-game__team img {
    width: 38px;
    height: 26px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}

.fcbf-group-game__team strong {
    color: #ffffff;
    font-size: .85rem;
    font-weight: 1000;
    text-align: center;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.fcbf-group-game__score {
    min-width: 82px;
    padding: .42rem .5rem;
    border-radius: 16px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)),
        rgba(2, 6, 23, .78);
    border: 1px solid rgba(148, 163, 184, .20);
    color: #ffffff;
    font-weight: 1000;
    font-size: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.fcbf-group-game__penalties {
    color: #facc15;
    font-size: .74rem;
    font-weight: 900;
    margin-top: .18rem;
}

.fcbf-group-game__place {
    margin-top: .75rem;
    color: #a7b8cc;
    font-size: .78rem;
    font-weight: 800;
}

.fcbf-group-games-loading,
.fcbf-group-games-empty {
    border: 1px dashed rgba(148, 163, 184, .28);
    border-radius: 18px;
    padding: 1rem;
    color: #c8d8ea;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 768px) {
    .standings-card__header {
        gap: .75rem;
    }

    .standings-group-games-btn {
        font-size: .72rem;
        padding: .42rem .62rem;
    }

    .fcbf-group-games-modal {
        padding: .7rem;
    }

    .fcbf-group-games-modal__box {
        border-radius: 22px;
    }

    .fcbf-group-game__scoreline {
        gap: .45rem;
    }

    .fcbf-group-game__score {
        min-width: 70px;
        font-size: 1.05rem;
    }

    .fcbf-group-game__team strong {
        font-size: .78rem;
    }
}
