PASADENA, Calif. (AP) With UCLA's season seemingly teetering on the brink of collapse, Josh Rosen calmly propped it back up with a passing performance that put the freshman's name in the Bruins' record book.
Rosen completed a school-record 34 passes and threw two of his three touchdown passes to Devin Fuller, and UCLA got back on track with a 40-24 victory over No. 20 California on Thursday night.
Rosen passed for 399 yards in another splendid game for the standout rookie, and Thomas Duarte had career highs of 10 catches for 141 yards for the Bruins (5-2, 2-2 Pac-12). UCLA rebounded from consecutive losses to Arizona State and Stanford, along with a drop from the national rankings, with a 573-yard offensive performance and a stellar effort by its patchwork defense, which sacked Cal star Jared Goff five times.
''Every time you win, it's a step forward,'' said Rosen, who broke the completions record set by Richard Brehaut and Brett Hundley. ''Especially with our bye week, that was three weeks without a win, so it felt great to come out here and put it to them.''
Rosen was smooth and confident in another big Pac-12 game, going 34 for 47 without a turnover. The frosh got plenty of help, too: Soso Jamabo rushed for a score after star UCLA tailback Paul Perkins left with an injury, and the Bruins' injury-plagued defense limited Jared Goff and Cal's potent offense to 170 yards in the first half.
Debuting their black-and-shiny-gold ''City'' uniforms, UCLA appeared revitalized. Ka'imi Fairbairn made four field goals, including a school-record 60-yarder at the halftime gun, and the UCLA defense caused trouble for Goff throughout.
''The key was getting that quarterback on the ground,'' UCLA coach Jim Mora said. ''We struggle with that, and we got it done against a really good player.''
But even in victory, UCLA added two more significant injuries to its alarming season total. Perkins, last season's Pac-12 rushing champion, ran for 73 yards before limping off in the second quarter. Linebacker Isaako Savaiinaea, the Bruins' leading tackler, then left on a cart in the second half.
Mora didn't disclose specifics about the injuries, only saying: ''They're not good.''
Goff passed for 295 yards in a second straight disappointing game for the Bears (5-2, 2-2), who have lost two straight after a sizzling start.
''We got punched in the mouth two weeks in a row now, and are going to have to respond one way or the other,'' Goff said. ''I think we're going to respond the correct way, though. It's the type of group we have in there.''
Kenny Lawler, Darius Powe and Khalfani Muhammad caught TD passes for Cal, which entered the Rose Bowl with its highest ranking in six years and a chance to clinch to clinch bowl eligibility for the first time since 2011. Instead, the Bears still have just one win in Pasadena since 1999.
''Things that we haven't done all year, we did tonight,'' Cal coach Sonny Dykes said. ''That's not indicative of this football team, and we didn't play well tonight.''
UCLA stumbled back to the Rose Bowl with consecutive losses in conference play for the third straight season, including a 56-35 thrashing at Stanford last Thursday that dropped the Bruins out of the Top 25. Mora's teams have always bounced back from those skids, and the Bruins still haven't lost three straight regular-season games in the coach's tenure.
''We got on the road back,'' Duarte said. ''The morale of the team is how it used to be again, so I'm happy. It was definitely a turning point for this team, but we're fighters for sure.''
The Bruins took their first lead in three weeks when Duarte caught a 7-yard TD pass in the first quarter. Fuller capped a 90-yard drive early in the second with a 19-yard scoring grab, and UCLA scored on its first seven possessions.
Cal finally reached the end zone on Lawler's acrobatic grab 51 seconds before halftime, but Rosen moved the Bruins into position for that 60-yard kick by Fairbairn, who was mobbed by teammates when he broke Chris Sailer's UCLA record of 56 yards, set in 1997.
Cal offensive lineman Jordan Rigsbee hit UCLA defensive lineman well after the whistle on the final play, setting off a minor skirmish when both teams ran onto the field for the postgame handshakes.
AP College Football site: www.collegefootball.ap.org