{# =================================================================== MediaForge — shared TMDB detail modal (reusable component) ------------------------------------------------------------------- A lightweight, self-contained "what is this title" modal: poster, headline, air/release date, TMDB overview and metadata chips, plus a "search streams" action. Deliberately independent of app.js and shared_modals.html: the big series modal in shared_modals.html starts from a *provider URL* and pulls in all of app.js. This one starts from a TMDB id, so pages and third-party modules that only know a TMDB id (the Calendar, module dashboards, …) can offer a detail view without that dependency. Usage from a template: include the partial mf_detail_modal.html in your content block Usage from JS: MFDetailModal.open({ tmdbId: 1396, mediaType: "tv", title: "Breaking Bad", subtitle: "S01E01", caption: "Pilot", date: "2008-01-20", image: "/static/poster.jpg", searchTitle: "Breaking Bad", // optional, defaults to title }); Requires GET /api/tmdb/details (routes/search.py) and a configured TMDB API key; without one the modal still shows whatever the caller passed in and simply reports that no further details are available. =================================================================== #}