<style>
html, body { 
    height: 100%; 
}

body { 
    font-family: Arial, Helvetica, Microsoft Sans Serif; 
    margin: 0; 
    background-color: #dddddd; 
}

.MainNav { 
    background-color: #eeeeee; 
    padding: 6px; 
    font-weight: bold; 
    margin: 0; 
}

.Wrapper { 
    padding: 0px; 
    margin: 0 auto; 
    width: 850px; 
    background-color: white; 
    min-height: 100%; 
    border-left: 2px #cccccc solid; 
    border-right: 2px #cccccc solid; 
}

.LFList { 
    padding: 0; 
    margin: 2px; 
    text-align: right; 
}

.UMenu { 
    padding: 0; 
    margin: 2px; 
    text-align: right; 
}

.UMenu li, .LFList li { 
    display: inline; 
    list-style-type: none; 
    padding-right: 4px; 
}

.LoginOrMenu { 
    width: 100%; 
}

.Content { 
    padding: 0 40px 20px 40px; 
}

@media (max-width: 340px) {
    .Content { 
        padding: 0 5px 20px 5px; 
    }
    .Wrapper { 
        width: 100%; 
    }
    .UMenu li, .LFList li { 
        display: inherit; 
    }
    .LFList { 
        text-align: left; 
    }
    .UMenu { 
        text-align: left; 
    }
}

/* ============================= */
/* Hide all Standings links for specific league IDs (site-wide) */
/* Fixtures remain visible */
/* ============================= */
a[href*="Standings.aspx"][href*="LeagueId=2"],
a[href*="Standings.aspx"][href*="LeagueId=4"],
a[href*="Standings.aspx"][href*="LeagueId=5"],
a[href*="Standings.aspx"][href*="LeagueId=8"],
a[href*="Standings.aspx"][href*="LeagueId=16"],
a[href*="Standings.aspx"][href*="LeagueId=17"],
a[href*="Standings.aspx"][href*="LeagueId=18"],
a[href*="Standings.aspx"][href*="LeagueId=19"],
a[href*="Standings.aspx"][href*="LeagueId=21"],
a[href*="Standings.aspx"][href*="LeagueId=22"],
a[href*="Standings.aspx"][href*="LeagueId=25"] {
    display: none !important;
}
</style>

<script>
(function() {
    const blockedLeagueIds = [2,4,5,8,16,17,18,19,21,22,25];

    // Decode &amp; in hrefs
    function decodeHref(href) {
        const txt = document.createElement('textarea');
        txt.innerHTML = href;
        return txt.value;
    }

    // Function to hide all blocked Standings links/buttons
    function hideStandingsLinks() {
        document.querySelectorAll('a[href*="Standings"]').forEach(link => {
            const href = decodeHref(link.getAttribute('href'));
            blockedLeagueIds.forEach(id => {
                if (href.includes("LeagueId=" + id)) {
                    link.style.display = 'none';
                }
            });
        });
    }

    // Run repeatedly to catch dynamically injected links
    setInterval(hideStandingsLinks, 200); // every 200ms

    // Optional: redirect if user navigates directly to a blocked Standings page
    blockedLeagueIds.forEach(id => {
        if (window.location.href.includes("Standings") && window.location.href.includes("LeagueId=" + id)) {
            window.location.replace("/Leagues/LeagueList.aspx?VenueId=2");
        }
    });
})();
</script>
