00 * (retryCount + 1));
                  }
              }
          }, 250);

          // Initialize vote counts
          fetchVoteCounts();

          // Smooth scroll with performance optimization
          document.querySelectorAll('a[href^="#"]').forEach(anchor => {
              anchor.addEventListener('click', function(e) {
                  e.preventDefault();
                  const target = document.querySelector(this.getAttribute('href'));
                  if (target) {
                      