= document.querySelector('.hourly-section .nav-btn.next');
            if (prevBtn) prevBtn.style.display = currentHourIndex > 0 ? 'flex' : 'none';
            if (nextBtn) nextBtn.style.display = currentHourIndex + visibleItems < 24 ? 'flex' : 'none';
            
            // Ë∞ÉÊï¥ÊØè‰∏™È°πÁõÆÁöÑÂÆΩÂ∫¶‰ª•ÂÖÖÊª°ÂÆπÂô®
            const containerWidth = container.offsetWidth;
            const totalGap = (visibleItems - 1) * 8;
            const itemWidth 