            temp: Math.floor(20 + Math.random() * 8)
                };
            });
        }

        let currentHourIndex = 0;
        let currentDayIndex = 0;

        function calculateVisibleItems() {
            const container = document.querySelector('.widget-container');
            const width = container.offsetWidth;
            const isDaily = container.querySelector('.widget').getAttribute('data-flipped') === 'true';
            
            // Á°Æ‰øùÊó•ËßÜÂõæËá≥Â∞ë