Fox’s biographical comedy-drama “Hidden Figures” landed the top prize Sunday at the Screen Actors Guild Awards, seen as a major bellwether for the Oscars.

Starring Taraji P. Henson, Octavia Spencer and Janelle Monae, it took the trophy for outstanding performance by a cast in a motion picture, the SAG equivalent of a best film Academy Award.

Theodore Melfi’s movie, which recounts the story of African-American mathematicians who helped NASA put the first men in space, was a shock winner, with Kenneth Lonergan’s “Manchester by the Sea” widely tipped for the top prize.

It also beat coming-of-age drama “Moonlight,” comedy “Captain Fantastic” and race relations story “Fences.”