
        window.addEventListener('DOMContentLoaded', loadCategories);

        function toggleChannels(category) {
            const channelsList = document.getElementById(`channels-${category}`);
            const isVisible = channelsList.style.display === "block";
            channelsList.style.display = isVisible ? "none" : "block";
        }

        document.getElementById("searchInput").addEventListener("input", function() {
            const searchValue = this.value.toLowerCase();
            const c