.league-instance {
    margin-top: 10px;
    padding: 20px;
    /* background-color: rgba(0, 0, 0, 0.5); */
    /* Dark semi-transparent background */
    border-radius: 12px;
    box-sizing: border-box;
}

/* League title */
.league-instance h2 {
    margin-top: 10px;
    color: white;
    padding: 0 20px 20px;
    font-size: 30px;
    text-align: center;
}

/* Centered inner wrapper */
.groups-center-wrapper {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Group boxes container (desktop) */
.groups-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    /* increased spacing */
    padding: 30px 40px;
}

.group-block {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    margin-bottom: 10px;
    margin-right: 10px;
    padding: 20px 25px;
    min-width: 250px;
    max-width: 280px;
    box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    color: white;
    flex: 0 1 auto;
    cursor: pointer;
}

.group-block:hover {
    transform: scale(1.03);
}

/* Club list inside group */
.group-block ul {
    padding-left: 20px;
    margin-top: 8px;
}

.group-block h3 {
    font-size: 20px;
    margin-top: 5px;
    margin-bottom: 20px;
    box-shadow: 0 3px rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;
}

.club-list {
    padding-left: 16px;
}

.club-list li {
    list-style-type: none;
    margin: 10px 0;
    color: #eee;
    font-size: 16px;
}

.tab-switcher {
    display: flex;
    gap: 10px;
    margin: 130px 0;
    margin-bottom: 10px;
}

.tab-switcher button {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    margin: 3px;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s, transform 0.1s;
    white-space: nowrap;
    width: auto;
    text-align: center;
    box-sizing: content-box;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.tab-switcher button:hover {
    /* background: rgba(255, 255, 255, 0.12); */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.tab-switcher .active-tab {
    background: rgb(255, 255, 255);
    color: black;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}



@media (max-width: 480px) {

    .tab-switcher {
        display: flex;
        gap: 10px;
        margin: 60px 0;
        margin-bottom: 10px;
        position: fixed;
    }

    .league-instance {
        margin-top: 130px;
        padding: 10px 10px;
    }

    .league-instance h2 {
        font-size: 20px;
        margin-bottom: 0px;
        padding: 0 10px 10px;
    }

    .groups-row {
        /* flex-direction: column; */
        align-items: center;
        padding: 10px;
    }

    .group-block {
        width: 100%;
        max-width: 100%;
        margin-bottom: 5px;
        text-align: left;
        margin-right: 0px;
    }

    .group-block h3 {
        font-size: 16px;
    }

    .club-list li {
        font-size: 14px;
    }
}