I saw this movie on TV in early 2000s, so I’d assume it’s mid-late 90’s, color, English.
All I can remember is the main hero forced to beat a high score by himself on a basketball court in a limited amount of time. I believe it was a matter of lire or death to him. On the last second he scores three points by throwing the ball from one basket all the way to another and ends up with 60 (?) points total and he’s free to go. Can’t remember what happened later, but at the end of the movie there is an electricity outage and the whole Earth turns black.
Grateful if anyone gives any clues!