 highlightStars(0);
            }

            function handleClick(event) {
                console.log('Click:', event.target); // Debugging
                const value = event.target.dataset.value;
                setRating(value);
            }

            function highlightStars(value) {
                stars.forEach(star => {
                    star.classList.toggle('hover', star.dataset.value <= value);
                });
            }

            function setRating(value) {
                stars