       document.getElementById("loader").classList.add("active");
        }

        function hideLoader() {
            document.getElementById("loaderOverlay").classList.remove("active");
            document.getElementById("loader").classList.remove("active");
        }

        function playChannel(streamUrl, channelName, channelIcon) { 
        console.log('Playing Channel:', channelName, 'Stream URL:', streamUrl);
        const playerContainer = document.getElementById("player-container");
        pla