.home-match-card-premium {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 16px;
    border: 1px solid rgba(120, 160, 220, .18);
    background:
        radial-gradient(circle at top right, rgba(80,153,255,.10), transparent 30%),
        linear-gradient(145deg, rgba(10,23,42,.98), rgba(7,16,31,.98));
    box-shadow: 0 14px 32px rgba(0,0,0,.20);
}

.home-match-card-premium + .home-match-card-premium {
    margin-top: 14px;
}

.home-match-card-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.045), transparent 32%);
}

.home-match-card-premium > * {
    position: relative;
    z-index: 2;
}

.home-match-top-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.home-match-group-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.home-match-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(80,153,255,.11);
    border: 1px solid rgba(80,153,255,.22);
    color: #dbeafe;
    font-size: 11px;
    font-weight: 900;
}

.home-match-pill.group {
    background: rgba(46,232,137,.10);
    border-color: rgba(46,232,137,.24);
    color: #bcffd9;
}

.home-match-time-premium {
    color: #bdd2f4;
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

.home-match-teams-premium {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.home-match-team-premium {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    min-width: 0;
}

.home-match-flag {
    width: 58px;
    height: 40px;
    border-radius: 11px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(255,255,255,.10), transparent 40%),
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 8px 18px rgba(0,0,0,.20);
}

.home-match-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #fff;
}

.home-match-flag span {
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .06em;
}

.home-match-team-premium strong {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 1000;
    overflow-wrap: anywhere;
}

.home-match-vs-premium {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color: #aebbd0;
    font-weight: 1000;
    font-size: 13px;
}

.home-match-status-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 12px;
    margin-top: 8px;
    color: #ffed9a;
    font-size: 12px;
    font-weight: 1000;
    background: rgba(255,176,32,.10);
    border: 1px solid rgba(255,176,32,.32);
}

.home-match-status-premium.has-prediction {
    color: #9fffd1;
    background: rgba(46,232,137,.10);
    border-color: rgba(46,232,137,.28);
}

.home-match-actions-premium {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.home-match-actions-premium a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    text-decoration: none;
    color: #eaf4ff;
    background: linear-gradient(180deg, rgba(12,26,48,.98), rgba(8,18,34,.98));
    border: 1px solid rgba(98,146,220,.28);
    font-weight: 1000;
    font-size: 14px;
}

.home-match-actions-premium a.primary {
    color: #06111f;
    background: linear-gradient(135deg, #ffdf82, #35e792);
    border: 0;
}

@media (min-width: 680px) {
    .home-match-actions-premium {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

/* AJUSTE FINAL: SIGLAS EMBAIXO E SEM LETRAS DENTRO DA BANDEIRA */
.home-match-team-premium {
    gap: 7px;
}

.home-match-flag span {
    font-size: 18px;
    line-height: 1;
}

.home-match-team-premium strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: center;
}

.home-match-teams-premium {
    align-items: start;
}

.home-match-vs-premium {
    margin-top: 10px;
}

/* FCBF - correção fina das bandeiras nos cards da home */
.home-match-teams-premium {
    align-items: center !important;
}

.home-match-team-premium {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 72px;
    gap: 7px;
}

.home-match-flag {
    width: 58px !important;
    height: 38px !important;
    flex: 0 0 38px;
    margin: 0 auto;
    line-height: 0;
}

.home-match-flag img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.home-match-team-premium strong {
    min-height: 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.home-match-vs-premium {
    align-self: center;
    margin-top: -14px !important;
}

@media (max-width: 640px) {
    .home-match-team-premium {
        min-height: 70px;
    }

    .home-match-flag {
        width: 56px !important;
        height: 37px !important;
        flex-basis: 37px;
    }

    .home-match-vs-premium {
        margin-top: -12px !important;
    }
}

/* FCBF - correção para bandeiras quadradas, ex: Suíça */
.home-match-flag {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 58px !important;
    height: 38px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.home-match-flag img {
    width: 100% !important;
    height: 100% !important;
    max-width: 58px !important;
    max-height: 38px !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
}

/* Suíça: mantém quadrada, centralizada e sem esmagar */
.home-match-flag img[src*="/ch."],
.home-match-flag img[src*="/ch/"],
.home-match-flag img[src*="flagcdn.com"][src*="/ch."] {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
}
