LOS ANGELES -- In Stanford's pregame meeting, coach David Shaw asked every player who has played in two Pac-12 championship games to stand. Nearly half the room arose.

"Our guys are used to playing in big games," Shaw said. "We need to act like it."

That big-game experience shined through repeatedly while the Cardinal revitalized their season with yet another major win at the Coliseum.

Kevin Hogan passed for 279 yards and two touchdowns, Remound Wright rushed for three more scores and Stanford opened Pac-12 play with a 41-31 victory over No. 6 Southern California on Saturday night.

Austin Hooper and Devon Cajuste caught touchdown passes as Hogan beat USC for the first time in his career, snapping the Trojans' two-game winning streak in the lively in-state rivalry.

Christian McCaffrey rushed for 115 yards for the Cardinal (2-1, 1-0), who scored just six points in their stunning season-opening loss at Northwestern. They looked more like their usual powerhouse selves Saturday during a 474-yard offensive performance at the Coliseum, where they've won four times in their last five trips.

"I think a lot of people underestimated us as a team," Hogan said. "We gave them that ability after our loss in Week 1, but we're going to get better every week. We're already talking about next week."

Hogan didn't appear to be injured during his postgame interview session, yet he walked to the team bus on crutches with his left foot in a walking boot.

Cody Kessler was 25 of 32 for 272 yards and three touchdowns, but USC (2-1, 0-1) couldn't match the steady production of Hogan, who went 18 for 23, and his dominant offensive line.

Steven Mitchell Jr. caught two touchdown passes and JuJu Smith-Schuster caught another, but preseason Pac-12 favourite USC failed its first test of the season after beating two Sun Belt opponents by a combined 99 points earlier this month.

"Whenever you play Stanford, you're going to play big-boy ball, and that's what we've got to do," said linebacker Su'a Cravens, who graded his defence's performance as "a D-minus."

"We've got to grow up," Cravens added. "We've got to establish ourselves and execute."

After USC's impressive start, Stanford took a 24-21 halftime lead with two touchdowns in the final 3:53. Wright's third TD run put the Cardinal up 38-28 with 11:21 to play, and Conrad Ukropina hit a 46-yard field goal with 2:27 left, essentially sealing Stanford's sixth win over USC in their last nine meetings.

Stanford and USC began their football meetings in 1905, but the past several years of the rivalry have been particularly memorable.

The Cardinal stunned then-No. 2 USC as a 41-point underdog at the Coliseum in 2007, and Andrew Luck's team won a triple-overtime thriller here four years ago. The Trojans won the past two meetings on last-minute field goals by Andre Heidari, including an eventful 13-10 victory at Stanford last season.

"Every game we play against these guys is going to be like this," Shaw said.

Hogan didn't excel in either of his first two clashes with Kessler and USC, which largely relied on its defence to beat Stanford twice. Hogan and Kessler both were in elite form for this meeting, but Stanford's offensive line largely made the difference against USC's defence.

"We were in position to win, but we were doing things that we weren't doing in practice," USC safety Chris Hawkins said.

USC won the opening coin toss and ran the ball right at the Cardinal, going 76 yards on a methodical opening drive capped by Tre Madden's 5-yard TD run.

Stanford played without two key contributors on its injury-plagued defensive line, leaving the Cardinal with no tested depth behind its three starters. USC rarely had trouble moving the ball, but hurt itself with eight penalties and didn't get many drives, thanks to Stanford's clock-chewing offence.

Hogan and his teammates quickly found the groove they missed in their first two games. The senior quarterback had plenty of time to pick apart USC's secondary for 221 yards passing in the first half, including Hooper's 16-yard TD catch late in the first half.

Smith-Schuster put the Trojans up 21-10 with a 54-yard catch-and-run TD in the second quarter, but Stanford scored twice in the final 3:53 of the first half. Cajuste put the Cardinal up 24-21 with 3 seconds left with a 17-yard TD catch when Adoree Jackson slipped and fell.

Jackson also had an early 97-yard kickoff return for a touchdown erased by a penalty.