
    `;
      }

      async function fetchStargazers() {
        const res = await fetch(STARGAZERS_API, {
          headers: {
            "Accept": "application/vnd.github+json"
          }
        });
        if (!res.ok) {
          throw new Error(`GitHub API error: ${res.status}`);
        }
        const data = await res.json();
        // Defensive: ensure array
        return Array.isArray(data) ? data : [];
      }

      function duplicateForSeamlessLoop(track) {
        // Duplicate all childre