PALO ALTO, Calif. - Josh Nunes passed for 360 yards with three touchdowns on the ground and two more through the air and No. 18 Stanford (4-1, 2-1 Pac-12) erased a 14-point deficit to defeat Arizona (3-3, 0-3 Pac-12) in overtime, 54-48, Saturday afternoon at Stanford Stadium.

Nunes tied the game up with a 3-yard touchdown run with just 45 seconds left in the game to send it to overtime.

In the extra period, the Stanford defense came up big after Arizona came up empty on the first possession. Matt Scott's 3rd down pass was intercepted by Chase Thomas. The Cardinal ran just two plays on their possession as Stepfan Taylor clinched the victory with a 21-yard touchdown run on the second play.

Taylor rushed for a game-high 142 on 31 carries with two touchdowns as the two teams each pounded out an incredible 617 yards of total offense.

For the Wildcats, Scott passed for a career-high 491 yards with three touchdowns, while running back Ka'Deem Carey carried the ball 29 times for 132 yards and three touchdowns. Carey also hauled in seven catches for another 68 yards. Austin Hill finished with 11 catches and 165 yards with two touchdowns.

Stanford received the ball to start the game and the Cardinal put together an impressive 11-play 65 yard drive, capped off by an 11-yard touchdown toss by Nunes to Zach Ertz, giving Stanford the early 7-0 lead.

After a couple of stalled drives by each team, Arizona started the second quarter with a beautiful drive that ended with a 13-yard touchdown run by Carey to tie the score. The Wildcats went 81 yards on 12 plays, which covered nearly three minutes.

Following a defensive stop, the Wildcats got a 33-yard field goal by John Bonano to take their first lead of the game, 10-7.

The lead lasted just a short time as Stanford drove 75 yards on its next possession and cashed in on a 13-yard touchdown pass from Nunes to Levine Toilolo, giving the Cardinal a 14-10 lead.

Arizona marched down the field on its next possession and Bonano converted on another 33-yard field goal just before the half to pull the Wildcats within one, 14-13.

The Wildcats wasted little time after returning from halftime as they needed less than two minutes to put together a 7-play 75-yard drive, capped off by Carey's second touchdown of the afternoon to put the Cats back in front, 20-14.

Stanford answered once again as Nunes converted scored on a quarterback keeper from 2 yards out to give the Cardinal a one-point lead, 21-20.

The scoring flurry continued with Scott finding Hill for a 12-yard touchdown pass on Arizona's ensuing drive. The Cats went 75 yards on 9-plays to regain the lead, 27-21.

After a 90-yard drive by Stanford and a touchdown by Taylor, Scott hit Hill again on the next Arizona possession for a 17-yard touchdown to put the Cats up 33-28 after a failed two-point conversion.

The Cardinal responded once again as Nunes hit Kelsey Young with a 55-yard touchdown pass on the very next drive to take the 34-33 lead after a missed two-point conversion.

The Wildcats answered to start the fourth quarter with a Carey 9-yard touchdown run and a converted two-point conversion from Scott to Hill, giving the Cats a 41-34 lead. After the Arizona defense came up with a clutch turnover, Scott hit Terrence Miller for a 10-yard touchdown strike to put the Wildcats in front by two full scores.

The Wildcats were just not able to come away with a defensive stop down the stretch as Stanford put together two straight drives with touchdown runs by Nunes to send the game to overtime.

The Wildcats have a bye week next Saturday before returning home to face nationally ranked Washington on Saturday, October 20.

For continued coverage of Arizona Wildcat football, visit ArizonaWildcats.com.