Movie stars don’t shine as brightly as they did a decade ago.

In the 1990s and early aughts, the likes of Julia Roberts, Will Smith, Tom Hanks and Jim Carrey routinely commanded salaries of $20 million for every film they anchored, plus enjoyed substantial profit participation from the first ticket sold at the box office. Those glory days are essentially gone, and the number of actors who can demand pay packages on that order is ever dwindling. Part of the problem is that costumed superheroes and Jedi knights became the big attraction at movie theaters. The size of a film’s opening weekend no longer hinges on the popularity of the actors who grace its poster. Special effects are the stars these days and the place where studios are spending the bulk of their money.

But don’t weep for Hollywood’s A-listers — they’re doing just fine, thank you very much. A few actors, such as Dwayne Johnson, Vin Diesel and Robert Downey Jr., can even still receive north of $20 million for a big movie, though those checks are usually handed out for only major franchise installments and often are tied to reaching a significant number of box office milestones. In fact, Downey’s performance as Iron Man is so profitable that he makes a mint for glorified cameo appearances. The actor picked up $10 million for roughly 15 minutes of screen time in “Spider-Man: Homecoming.” Getting him to show up for an Iron Man-centric adventure will take more than twice that amount.

Other actors are willing to juggle art and commerce, even if it means taking a salary cut. Leo­nardo DiCaprio is worth $20 million in a crowd-pleaser like “Inception,” but he’s halving his salary for Quentin Tarantino’s “Once Upon a Time in Hollywood” in order to trigger a sprawling historical epic with dicey commercial prospects.

Often, stars are being asked to bet on themselves. Actors and directors who work for the low-budget horror film specialist Blumhouse receive only scale, which amounts to a few thousand dollars a week and helps the production keep its costs low. In exchange, they receive a taste of the film’s back end, which can lead to a rich payday, as Ethan Hawke found when he appeared in 2013’s “The Purge.” The film topped out at $89.3 million worldwide, giving Hawke a $2 million bonus.

Studios have gotten stingier about cutting stars in on a share of the profits from big-budget movies, preferring to keep much of the spoils of a box office blockbuster for themselves. But that’s not always possible. Diesel, for instance, made the first “Fast and Furious” back in 2000, at a time when no one envisioned a film about hot-rodding criminals being able to inspire an eight-part, multibillion-dollar franchise. That’s enabled Diesel to drive richer and richer deals as the film series has continued, including securing a producer credit as well. With performance bonuses taken into account, Diesel received in excess of $20 million for the most recent installment, 2017’s “The Fate of the Furious.” More recently, Bryce Dallas Howard and Chris Pratt were able to score big raises for the sequel to “Jurassic World” after the first film dominated the box office, and Patty Jenkins re-upped to direct a sequel to “Wonder Woman” for a massive $9 million payday, more than triple what she made on the first film.

Sometimes stars don’t even have to wait for films to cross box office milestones before they get their checks in the mail. Actors on the level of a Tom Cruise or a Brad Pitt can demand their bonuses paid up front, before shooting has wrapped or a film has been released. And there are other ways to goose a pay package. Want access to Johnson’s 104 million Instagram followers? It’s going to cost you. The “Rampage” star is asking for a $1 million social-media fee as part of his package for the upcoming “Red Notice”; that includes promoting the film on the likes of Twitter and Facebook.

STAR SALARIES A sampling of paydays for some of Hollywood’s best-paid actors Daniel Craig “Bond 25” (2019) $25M Dwayne Johnson “Red Notice” (2020) $22M Vin Diesel “The Fate of the Furious” (2017) $20M Anne Hathaway “Barbie” (2020) $15M Jennifer Lawrence “Red Sparrow” (2018) $15M Seth Rogen “Flarsky” (2019) $15M Tom Cruise “The Mummy” (2017) $11-$13M Harisson Ford “Indiana Jones 5” (2020) $10-$12M Sandra Bullock “Minions” (2015) $10M Leonardo Dicaprio “Once Upon a Time In Hollywood” (2019) $10M Robert Downey Jr. “Spider-Man: Homecoming” (2017) $10M Kevin Hart “Jumanji: Welcome to the Jungle” (2017) $10M Chris Pratt “Jurassic World: Fallen Kingdom” (2018) $10M Emily Blunt “Jungle Cruise” (2019) $8-$10M Bryce Dallas Howard “Jurassic World: Fallen Kingdom (2018) $8M Tom Hardy “Venom” (2018) $7M Ryan Gosling “First Man” (2018) $6.5M Jack Black “Jumanji: Welcome to the Jungle” (2017) $5M Michael B. Jordan “Creed 2” (2018) $3-$4M Ethan Hawke “The Purge” (2013) $2M

POPULAR ON VARIETY: