LOS ANGELES — Daft Punk’s electronic-funk grooves have won big at the Grammys.

The French electronic duo’s “Random Access Memories” won Album of the Year and their infectious hit, “Get Lucky,” won Record of the Year at the awards show. The song features Pharrell Williams and Nile Rodgers.

Daft Punk, who wear helmets in public, won four awards, as did Pharrell Williams and Macklemore & Ryan Lewis.

Daft Punk also picked up honors for Best Dance/Electronica Album for “Random Access Memories” and pop duo/group performance for “Get Lucky,” which earned Williams a trophy. Williams had seven nods, but competed with himself and could only take home four awards, which he did.

While the men dominated, Lorde was the princess of the Grammys: Her hit “Royals” won Song of the Year and Best Pop Solo Performance.

“Thank you everyone who has let this song explode, because it’s been mental,” she said.

Macklemore & Ryan Lewis won Best New Artist and Rap Album for “The Heist,” beating efforts from Kendrick Lamar, Jay Z, Kanye West and Drake.

Macklemore said, “I want to say we made this album without a record label, we made it independently and we appreciate all the support.”

The duo performed the gay-acceptance hit “Same Love,” and 33 couples – some same-sex – got married in the middle in the performance as Queen Latifah officiated. Madonna joined in, wearing an all-white suit and hat, and sang “Open Your Heart” and some of “Same Love” with Mary Lambert. Keith Urban cried and Katy Perry caught a bouquet during the performance.

Beyonce kicked off the Grammys with a steamy and smoky performance of “Drunk In Love.” She started on a chair and grinded in a revealing black outfit. Jay Z emerged in a fitted suit to rap his verse, and the couple held hands and danced together.

Imagine Dragons and Kendrick Lamar collaborated onstage to create an electrifying performance, as the acts sported all-white and went from rap song to rock song.

Robin Thicke performed with Chicago, singing the group’s hit songs before going into “Blurred Lines,” which energized the crowd.

Perry sang “Dark Horse” in an eerie forest with fire that mirrored the song’s vibe, and John Legend and Taylor Swift – who whipped her head and hair back and forth – played pianos during their slow songs.

Pink twirled in the air in her signature Cirque du Soleil form.

Swift, who was nominated for Album of the Year, lost Best Country Album in a surprise upset to rising singer-songwriter Kacey Musgraves.

“Oh my goodness. Oh my God. I can’t even. I can’t even,” said a teary-eyed but happy Musgraves, whose “Same Trailer Different Park” won the honor. “I got to make a record that I poured myself into and I’m so proud of.”

The singer also beat Swift for Best Country Song and was nominated for New Artist.

Justin Timberlake, who wasn’t up for any of the major awards, won three trophies, including Best R&B Song for “Pusher Love Girl” and Best Music Video for “Suit & Tie,” which also earned Jay Z a Grammy.

Jay Z and Timberlake also won best rap/sung collaboration for “Holy Grail.”

Bruno Mars won Best Pop Vocal Album with his sophomore release, “Unorthodox Jukebox.”

“Ma, I know you’re watching. I hope you’re smiling. I love you very much,” said Mars, remembering his mother, who passed away last year.