// 1) Insert the YouTube API script// 2) Create a player variable to be accessible globally
const videoId = "MFX3fgAhJ8o"; // example video id — replace with your own// 3) This function is called by the YouTube API once it's ready
// important: allow JS API control and optional privacy-enhanced mode// 4) When the player is ready, enable the button and set initial state
updateButton(); // set correct label depending on initial mute state
// Toggle mute state// Utility to update button text & aria-pressed