setPersonalRating method
Sets the user's personal rating for a movie and saves to POD.
Implementation
Future<void> setPersonalRating(Movie movie, double rating) async {
try {
// IMMEDIATELY update cache and mark as having file to prevent any reads.
_cachedRatings ??= {};
_cachedRatings![movie.id.toString()] = rating;
_moviesWithFiles.add(movie.id);
// Create/update the single movie file with the new rating - this is the primary storage now.
await _createOrUpdateMovieFile(movie, rating: rating);
// Skip backward compatibility saves to avoid encryption warnings.
// The movie files are now the primary storage.
} catch (e) {
// Let the UI handle error feedback.
}
}