/* Bloqueia o scroll do fundo quando o popup principal estiver aberto */
body.modal-open {
    overflow: hidden !important;
}

/* =========================================
   POPUP TELA CHEIA (OVERLAY)
   ========================================= */
.fut-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 20, 0.95);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', 'Roboto', sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    backdrop-filter: blur(8px);
}

.fut-overlay.active {
    opacity: 1;
    visibility: visible;
}

@keyframes netflixPop {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fut-logo {
    max-width: 250px;
    margin-bottom: 2rem;
    animation: netflixPop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fut-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    opacity: 0;
    animation: netflixPop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}

.fut-teams-container {
    display: flex;
    gap: 2.5rem;
    opacity: 0;
    animation: netflixPop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.fut-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fut-team:hover {
    transform: scale(1.1);
}

.fut-team-img-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 3px solid transparent;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.fut-team:hover .fut-team-img-wrapper {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.fut-team-img-wrapper img {
    width: 90px;
    max-height: 90px;
    object-fit: contain;
}

.fut-team-name {
    color: #ffffff;
    margin-top: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.fut-close-btn {
    color: #ffffff;
    margin-top: 4rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    opacity: 0;
    transition: color 0.3s;
    animation: netflixPop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

.fut-close-btn span {
    border-bottom: 1px solid #ffffff;
    padding-bottom: 2px;
}

.fut-close-btn:hover {
    color: #cccccc;
}

.fut-close-btn:hover span {
    border-color: #cccccc;
}


/* =========================================
   WIDGET FLUTUANTE (CANTO INFERIOR ESQUERDO)
   ========================================= */
.fut-floating-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(20, 20, 20, 0.95);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 999998;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    text-decoration: none;
    font-family: 'Open Sans', 'Roboto', sans-serif;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(5px);
}

.fut-floating-widget:hover {
    transform: scale(1.05);
    background: #000000;
    border-color: #ffffff;
}

/* Novo: Wrapper branco e arredondado para o escudo no widget flutuante */
.fut-floating-img-wrapper {
    width: 34px;
    height: 34px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fut-floating-img-wrapper img {
    width: 22px;
    max-height: 22px;
    object-fit: contain;
}

.fut-floating-widget span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   RESPONSIVO (MOBILE)
   ========================================= */
@media (max-width: 768px) {

    /* Main Popup */
    .fut-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .fut-teams-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        row-gap: 2rem;
    }

    .fut-team-img-wrapper {
        width: 110px;
        height: 110px;
    }

    .fut-team-img-wrapper img {
        width: 70px;
        max-height: 70px;
    }

    .fut-logo {
        max-width: 180px;
    }

    .fut-close-btn {
        margin-top: 3rem;
    }

    /* Floating Widget - Ajustes para não atrapalhar navegação */
    .fut-floating-widget {
        bottom: 15px;
        left: 15px;
        padding: 8px 14px;
        gap: 8px;
    }

    .fut-floating-img-wrapper {
        width: 26px;
        height: 26px;
    }

    .fut-floating-img-wrapper img {
        width: 16px;
        max-height: 16px;
    }

    .fut-floating-widget span {
        font-size: 11px;
    }
}