/* ==========================================================================
   iFutz Team Selector / Slider Carrossel de Times
   ========================================================================== */
.ifutz-team-selector {
    width: 100%;
    max-width: 1440px;
    margin: 30px auto;
    padding: clamp(18px, 2.5vw, 34px);
    box-sizing: border-box;
    background: #fff;
}
.ifutz-team-selector .ifutz-team-radio {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.ifutz-team-selector .ifutz-team-heading {
    text-align: center;
    margin: 0 0 22px;
}
.ifutz-team-selector .ifutz-team-eyebrow {
    display: none;
    margin: 0 0 7px;
    color: #FF345C;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.3;
    text-transform: uppercase;
}
.ifutz-team-selector .ifutz-team-heading h2 {
    margin: 0;
    color: #171717;
    font-size: clamp(22px, 2.7vw, 32px);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -0.7px;
}
.ifutz-team-selector .ifutz-team-heading-line {
    display: block;
    width: 46px;
    height: 3px;
    border-radius: 4px;
    background: #FF345C;
    margin: 13px auto 0;
}
.ifutz-team-selector .ifutz-team-tabs {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    border-bottom: none !important;
    margin: 0 auto 16px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.ifutz-team-selector .ifutz-team-tabs::-webkit-scrollbar {
    display: none;
}
.ifutz-team-selector .ifutz-team-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #858585;
    padding: 11px 20px 9px;
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.45px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}
.ifutz-team-selector .ifutz-team-tab:hover {
    color: #171717;
}
.ifutz-team-selector .ifutz-team-panel {
    display: none;
}

/* Radio switching */
.ifutz-team-selector .ifutz-team-radio[value="brasileiros"]:checked ~ .ifutz-team-heading .ifutz-eyebrow-brasileiros,
.ifutz-team-selector .ifutz-team-radio[value="internacionais"]:checked ~ .ifutz-team-heading .ifutz-eyebrow-internacionais,
.ifutz-team-selector .ifutz-team-radio[value="selecoes"]:checked ~ .ifutz-team-heading .ifutz-eyebrow-selecoes {
    display: block;
}

.ifutz-team-selector .ifutz-team-radio[value="brasileiros"]:checked ~ .ifutz-team-tabs label[data-tab="brasileiros"],
.ifutz-team-selector .ifutz-team-radio[value="internacionais"]:checked ~ .ifutz-team-tabs label[data-tab="internacionais"],
.ifutz-team-selector .ifutz-team-radio[value="selecoes"]:checked ~ .ifutz-team-tabs label[data-tab="selecoes"] {
    color: #171717;
    border-bottom-color: #FF345C;
}

.ifutz-team-selector .ifutz-team-radio[value="brasileiros"]:checked ~ .ifutz-team-panel.is-panel-brasileiros,
.ifutz-team-selector .ifutz-team-radio[value="internacionais"]:checked ~ .ifutz-team-panel.is-panel-internacionais,
.ifutz-team-selector .ifutz-team-radio[value="selecoes"]:checked ~ .ifutz-team-panel.is-panel-selecoes {
    display: block;
}

/* Carousel layout */
.ifutz-team-selector .ifutz-team-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ifutz-team-selector .ifutz-team-carousel {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 34px);
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 5px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.ifutz-team-selector .ifutz-team-carousel::-webkit-scrollbar {
    display: none;
}
.ifutz-team-selector .ifutz-team-card {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    border: 1px solid #ededed;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
    padding: 13px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ifutz-team-selector .ifutz-team-card:hover {
    transform: translateY(-3px);
    border-color: #FF345C;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}
.ifutz-team-selector .ifutz-team-crest {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ifutz-team-selector .ifutz-team-crest img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ifutz-team-selector .ifutz-team-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f4f4f4;
    color: #FF345C;
    font-size: 28px;
    font-weight: 800;
}
.ifutz-team-selector .ifutz-team-nav {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #dedede;
    border-radius: 50%;
    background: #fff;
    color: #171717;
    font-size: 23px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}
.ifutz-team-selector .ifutz-team-nav:hover:not(:disabled) {
    background: #FF345C;
    border-color: #FF345C;
    color: #fff;
}
.ifutz-team-selector .ifutz-team-nav:disabled {
    cursor: default;
    opacity: 0.35;
}
.ifutz-team-selector .ifutz-team-panel-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: none !important;
    padding-top: 12px;
}
.ifutz-team-selector .ifutz-team-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: #FF345C !important;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.55px;
    text-decoration: none !important;
    white-space: nowrap;
}
.ifutz-team-selector .ifutz-team-view-all:hover {
    gap: 11px;
    color: #d91f47 !important;
}

@media (max-width: 640px) {
    .ifutz-team-selector {
        margin: 20px auto;
        padding: 18px 10px;
    }
    .ifutz-team-selector .ifutz-team-heading {
        margin-bottom: 14px;
    }
    .ifutz-team-selector .ifutz-team-tabs {
        gap: 0;
        margin-bottom: 12px;
    }
    .ifutz-team-selector .ifutz-team-tab {
        padding: 10px 12px 8px;
        font-size: 12px;
    }
    .ifutz-team-selector .ifutz-team-carousel-wrap {
        gap: 4px;
    }
    .ifutz-team-selector .ifutz-team-carousel {
        gap: 14px;
        padding: 8px 3px 12px;
    }
    .ifutz-team-selector .ifutz-team-card {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
        padding: 10px;
    }
    .ifutz-team-selector .ifutz-team-nav {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
}
@media (hover: none) {
    .ifutz-team-selector .ifutz-team-carousel {
        padding-left: 2px;
        padding-right: 2px;
    }
}
