/**
 * Anime Search & Releases (Legacy - Partially modernized to HTMX)
 */

async function loadAnimeReleases() {
    // Keep this for now as it's not yet fully HTMX
    console.log('Loading anime releases...');
    try {
        const response = await fetch('/api/anime/mal/search?q=2024&limit=12');
        const data = await response.json();
        // Logic to render cards would go here, but for now we expect HTMX to handle core search
    } catch (e) { console.error(e); }
}

async function handleAnimeSearch() {
    console.log('Legacy handleAnimeSearch - using HTMX form instead');
}

window.loadAnimeReleases = loadAnimeReleases;
window.handleAnimeSearch = handleAnimeSearch;
