Provides global search functionality across films and series.
This module defines logic to capture and process search queries,
match them against various fields in the dataset (titles, descriptions, genres, people),
and display the results dynamically in the search section of the interface.
Methods
(inner) handleSearch()
Handles global search functionality for films and series.
Retrieves the user's search query from the input field, normalizes it,
and performs a case-insensitive search across titles, descriptions, genres,
directors/creators, and actors. Displays matching results in the search section.
Automatically navigates to the search section if results are found and it’s not already visible.
Clears the result area if the query is empty.