LOS ANGELES (AP) — Just as Oscar host Seth MacFarlane set his sights on a variety of targets with a mixture of hits and misses, the motion picture academy spread the gold around to a varied slate of films.

"Argo" won best picture as expected, along with two other prizes. But "Life of Pi" won the most awards with four, including a surprise win for director Ang Lee. "Les Miserables" also won three Academy Awards, while "Django Unchained" and "Skyfall" each took two.

Among the winners were the front-runners throughout this lengthy awards season: best actor Daniel Day-Lewis for his deeply immersed portrayal of Abraham Lincoln in Steven Spielberg's epic "Lincoln," best actress Jennifer Lawrence as a troubled young widow in "Silver Linings Playbook" and supporting actress Anne Hathaway as the doomed prostitute Fantine in the musical "Les Miserables." Christoph Waltz was a bit of a surprise for supporting actor as a charismatic bounty hunter in Quentin Tarantino's "Django Unchained," an award he'd won just three years ago for Tarantino's "Inglorious Basterds."

The 22-year-old Lawrence, who got to show her lighter side in the oddball romance "Silver Linings Playbook" following serious roles in "Winter's Bone" and "The Hunger Games," gamely laughed at herself as she tripped on the stairs en route to the stage in her poufy, pale pink Dior Haute Couture gown. Backstage in the press room, when a reporter asked what she was thinking, she responded: "A bad word that I can't say that starts with 'F.'" Keeping journalists in hysterics, she explained, "I'm sorry. I did a shot before I ... sorry."

That's the kind of raunchiness MacFarlane himself seemed to be aiming for as host while also balancing the more traditional demands of the job. There was a ton of singing and dancing during the three-and-half-hour broadcast — no surprise from the musically minded creator of the animated series "Family Guy" — including a poignant performance from Barbra Streisand of "The Way We Were," written by the late Marvin Hamlisch, during the memorial montage. But MacFarlane also tried to keep the humor edgy with shots at Mel Gibson, George Clooney, Chris Brown and Rihanna.

An extended bit in which William Shatner came back from the future as his "Star Trek" character, Capt. James T. Kirk, had its moments while a joke about the drama "Flight" being restaged entirely with sock puppets was a scream. A John Wilkes Booth gag in reference to "Lincoln" was a bit of a groaner, perhaps intentionally, while MacFarlane relied on his alter ego, the cuddly teddy bear from his directorial debut "Ted," to make a crack about a post-Oscar orgy at Jack Nicholson's house. (MacFarlane already has indicated he's one-and-done with Academy Awards hosting.)

But it was Day-Lewis who came up with the kind of pop-culture riffing that's MacFarlane's specialty. In accepting his record third best-actor award from presenter Meryl Streep, he deadpanned that before they'd swapped roles, he originally was set to play Margaret Thatcher "and Meryl was Steven's first choice for 'Lincoln,' and I'd like to see that version."

Besides best picture, "Argo" won for Chris Terrio's adapted screenplay and for William Goldenberg's film editing. Affleck famously (and strangely) wasn't included in the best-director category for his thrilling and surprisingly funny depiction of a daring rescue during the 1979 Iranian hostage crisis. But as a producer on the film alongside George Clooney and Grant Heslov, he got to take home the top prize of the night.

"I never thought I'd be back here, and I am because of so many of you in this academy," said Affleck, who shared a screenplay Oscar with pal Matt Damon 15 years earlier for their breakout film "Good Will Hunting."

Lee, who previously won best director in 2006 for "Brokeback Mountain" (which also didn't win best picture), was typically low-key and self-deprecating in victory. His "Life of Pi" is a fable set in glorious 3-D, but Spielberg looked like the favorite for "Lincoln." The film also won for its cinematography, original score and visual effects.

"Thank you, movie god," the Taiwanese director said on stage. Later, he thanked his agents and said: "I have to do that," with a little shrug and a smile.

"Les Miserables" also won for sound mixing and makeup and hairstyling. The other Oscar for "Django Unchained" came for Tarantino's original screenplay. Asked about his international appeal backstage, Tarantino was enthusiastic as usual in saying: "I'm an American, and a filmmaker, but I make movies for the planet Earth."

Speaking of global hits, the James Bond action thriller "Skyfall" won for its original song by the unstoppable Adele (with Paul Epworth). It also tied for sound editing with "Zero Dark Thirty," the only win of the night for Kathryn Bigelow's detailed saga about the hunt for Osama bin Laden.

Among the other winners, "Searching for Sugar Man," about a forgotten musician's rediscovery, took the prize for best documentary feature. Pixar's fairy tale "Brave" won best animated feature.

One of the biggest moments of the night came at the end, as First Lady Michelle Obama announced the winner of the best picture prize. Backstage, Affleck described how surreal it was when he heard her say the word: "Argo."

"I was sort of hallucinating when that was happening," he explained. "In the course of a hallucination it doesn't seem that odd: 'Oh look, a purple elephant. Oh look, Michelle Obama.'"

With a monumental performance as Abraham Lincoln, Day-Lewis became the only performer to win three best-actor Oscars, adding to the honors he earned for "My Left Foot" and "There Will Be Blood." He's just the sixth actor to earn three or more Oscars, tied with Meryl Streep, Jack Nicholson, Ingrid Bergman and Walter Brennan with three each, and just behind Katharine Hepburn, who won four.

Hathaway, whose perkiness helped carry her and the listless Franco through an ill-starred stint as Oscar hosts two years ago, is the third performer in a musical to win supporting actress during the genre's resurgence in the last decade.

"It came true," said Hathaway, who joins 2002 supporting-actress winner Catherine Zeta-Jones for "Chicago" and 2006 recipient Jennifer Hudson for "Dreamgirls." Hathaway had warm thanks for "Les Miz" co-star Hugh Jackman, with whom she once sang a duet at the Oscars when he was the show's host.

Hathaway's Oscar came for her role as noble but fallen Fantine in the big-screen adaptation of the Broadway smash that was based on Victor Hugo's epic novel of revolution, romance and redemption in 19th century France.

"Life of Pi" also won for Mychael Danna's multicultural musical score that blends Indian and Western instruments and influences, plus cinematography and visual effects.

"I really want to thank you for believing this story and sharing this incredible journey with me," Lee said to all who worked on the film, a surprise blockbuster about a youth trapped on a lifeboat with a Bengal tiger.

A veteran performer in Germany and his native Austria, Waltz had been a virtual unknown in Hollywood when Tarantino cast him as a gleefully evil Nazi in 2009's "Inglourious Basterds," which won him his first Oscar.

"I have to cast the right people to make those characters come alive," said Tarantino, who won previously for "Pulp Fiction. "And boy, this time, did I do it. Thank you so much, guys."

Waltz has since done a handful of other Hollywood movies, but it's Tarantino who has given him his two choicest roles. Backstage, Waltz had a simple explanation for why the collaboration works.

"Quentin writes poetry, and I like poetry," Waltz said.

Click image to enlarge

Christoph Waltz accepts the award for best actor in a supporting role for "Django Unchained" during the Oscars at the Dolby Theatre on Sunday Feb. 24, 2013, in Los Angeles. (Photo by Chris Pizzello/Invision/AP)

Oscar host Seth MacFarlane opened with a mildly edgy monologue that offered the usual polite jabs at the academy, the stars and the industry. He took a poke at academy voters over the snub of Ben Affleck, who missed out on a directing nomination for best-picture favorite "Argo," a thriller about the CIA's plot to rescue six Americans during the Iranian hostage crisis.

"The story was so top secret that the film's director is unknown to the academy," MacFarlane said. "They know they screwed up. Ben, it's not your fault."

"Argo" also claimed the Oscar for adapted screenplay for Chris Terrio, who worked with Affleck to create a liberally embellished story based on an article about the rescue and part of CIA operative Tony Mendez's memoir.

Terrio dedicated the award to Mendez, saying "33 years ago, Tony, using nothing but his creativity and his intelligence, Tony got six people out of a bad situation."

The foreign-language prize went to Austrian filmmaker Michael Haneke's old-age love story "Amour," which had been a major surprise with five nominations, including picture, director and original screenplay for Haneke and best actress for Emmanuelle Riva, who turned 86 on Sunday and would be the oldest acting winner ever.

The top prize winner at last year's Cannes Film Festival, "Amour" follows the agonizing story of an elderly man (Jean-Louis Trintignant) tending his wife (Riva) as she declines from age and illness.

Haneke thanked his own wife for supporting him in his work for 30 years.

"You are the center of my life," Haneke said.

Click image to enlarge

Anne Hathaway accepts the award for best actress in a supporting role for

The Scottish adventure "Brave," from Disney's Pixar Animation unit, was named best animated feature. Pixar films have won seven of the 12 Oscars since the category was added.

"I just happen to be wearing the kilt," said "Brave" co-director Mark Andrews, who took the stage in his trademark Scottish garment.

The upbeat musical portrait "Searching for Sugar Man" took the documentary feature prize. The film follows the quest of two South African fans to discover the fate of acclaimed but obscure singer-songwriter Sixto Rodriguez, who dropped out of sight after two albums in the 1970s and was rumored to have died a bitter death.

"Thanks to one of the greatest singers ever, Rodriguez," said "Sugar Man" director Malik Bendjelloul.

There was a rare tie in one category, with the Osama bin Laden thriller "Zero Dark Thirty" and the James Bond tale "Skyfall" each winning for sound editing.

William Shatner made a guest appearance as his "Star Trek" character Capt. James Kirk, appearing on a giant screen above the stage during MacFarlane's monologue, saying he came back in time to stop the host from ruining the Oscars.

"Your jokes are tasteless and inappropriate, and everyone ends up hating you," said Shatner, who revealed a headline supposedly from the next day's newspaper that read, "Seth MacFarlane worst Oscar host ever."

The performance-heavy Oscars also included an opening number featuring Charlize Theron and Channing Tatum, who did a classy dance while MacFarlane crooned "The Way You Look Tonight." Daniel Radcliffe and Joseph Gordon-Levitt then joined MacFarlane for an elegant musical rendition of "High Hopes."

Halle Berry introduced a tribute to the Bond franchise, in which she has co-starred, as the British super-spy celebrated his 50th anniversary on the big-screen last year with the latest adventure "Skyfall." Shirley Bassey sang her theme song to the 1960s Bond tale "Goldfinger." Later, pop star Adele performed her theme tune from "Skyfall," which won the best-song Oscar.

Barbra Streisand injected some musical sentiment into the show's segment memorializing Hollywood figures who died in the past year as she sang "The Way We Were," the Oscar-winning song she did in the film of the same name.

A salute to the resurgence of movie musicals in the last decade included Oscar winners Zeta-Jones singing "All That Jazz" from "Chicago" and Hudson doing "And I Am Telling You I'm Not Going" from "Dreamgirls." Hathaway and Jackman joined cast mates of best-picture contender "Les Miserables" to sing songs from their musical.

Academy officials said all performances were sung live.

Fans had pondered how far MacFarlane the impudent creator of "Family Guy," might push the normally prim and proper Oscars. MacFarlane was generally polite and respectful, showcasing his charm, wit and vocal gifts.

MacFarlane did press his luck a bit on an Abraham Lincoln joke, noting that Raymond Massey preceded "Lincoln" star Daniel Day-Lewis as an Oscar nominee for 1940's "Abe Lincoln in Illinois."

"I would argue that the actor who really got inside Lincoln's head was John Wilkes Booth," MacFarlane wisecracked, earning some groans from the crowd. "A hundred and 50 years later, and it's still too soon?"

Director/producer Ben Affleck accepts the award for best picture for "Argo" during the Oscars at the Dolby Theatre on Sunday Feb. 24, 2013, in Los Angeles. (Photo by Chris Pizzello/Invision/AP)

A salute to the resurgence of movie musicals in the last decade included Oscar winners Zeta-Jones singing "All That Jazz" from "Chicago" and Hudson doing "And I Am Telling You I'm Not Going" from "Dreamgirls." Hathaway and Jackman joined cast mates of best-picture contender "Les Miserables" to sing songs from their musical.

Academy officials said all performances were sung live.

Fans had pondered how far MacFarlane the impudent creator of "Family Guy," might push the normally prim and proper Oscars. MacFarlane was generally polite and respectful, showcasing his charm, wit and vocal gifts.

MacFarlane did press his luck a bit on an Abraham Lincoln joke, noting that Raymond Massey preceded "Lincoln" star Daniel Day-Lewis as an Oscar nominee for 1940's "Abe Lincoln in Illinois."

"I would argue that the actor who really got inside Lincoln's head was John Wilkes Booth," MacFarlane wisecracked, earning some groans from the crowd. "A hundred and 50 years later, and it's still too soon?"