ON.stringify(content));
                localStorage.setItem(CONFIG.CACHE_TIMESTAMP_KEY, Date.now().toString());
            } catch (error) {
                console.warn('Cache write error:', error);
            }
        }

        // --- API Functions ---
        async function fetchWithRetry(url, options = {}) {
            for (let i = 0; i < CONFIG.RETRY_ATTEMPTS; i++) {
                try {
                    const response = await fetch(url, {
                        ...options,
                 