GLENDALE, Ariz. (AP) — C.J. Beathard lined up in the shotgun with 7 seconds left, hoping to get one more completion to set up a potential tying field goal.
He and the 49ers never got the chance.
The snap sailed over Beathard’s head and San Francisco’s chances went with it, punctuating a disheartening 18-15 loss to the Arizona Cardinals on Sunday.
“Guys are really hurting in there and they should be,” 49ers coach Kyle Shanahan said. “If they’re not, something’s wrong with them. But it’s our job, it’s what we do. We’re not happy at all with where the season’s gone. We need to step it up and we’re going to do something about it.”
Arizona won the NFC West rivals’ first meeting on Oct. 7 by forcing five turnovers.
The Cardinals completed the season sweep behind rookie quarterback Josh Rosen’s late-game poise.
Rosen spent the first three quarters frustrated by San Francisco’s near-constant pressure. He was sacked three times, including once for a safety in the first quarter, and often had to throw before he could go through his progressions with hands and bodies all around.
Once the fourth quarter started, the 49ers couldn’t get the same kind of pressure and Rosen flourished with the extra time.
San Francisco (1-7) has lost six straight, including three games by three points or less.
“We didn’t expect to start this way, obviously,” said Beathard, who threw for 190 yards and a touchdown on 14-of-28 passing. “But we have and this is where we’re at right now, and we’ve got to move forward.”
The 49ers put themselves in good position to end the losing streak by dominating Arizona on defense and doing just enough on offense through three quarters.
The Cardinals labored against San Francisco’s defense in their first game under new offensive coordinator Byron Leftwich, held to 135 yards and one field goal by Phil Dawson.
The 49ers had their own offensive problems in the first half, leading 5-3 despite gaining 61 total yards.
San Francisco finally revved up its offense in the second half, going up 15-3 after Beathard threw a 55-yard touchdown pass to Marquise Goodwin and Robbie Gould kicked his second field goal, from 20 yards.
Nothing worked in the fourth quarter.
The offense sputtered when it could have helped run out the clock, managing a meager 59 yards. The defense scooped up a fumble after Rosen’s TD pass to Fitzgerald, but allowed the Cardinals to march for the winning score after getting the ball back at their own 27-yard line with 2:16 left.
The 49ers still had a chance for a tying field goal, reaching Arizona’s 45-yard line with 10 seconds left, but Beathard threw a completion and had to scramble for the ball after Erik Magnuson’s snap sailed over his head.
“Last time we played them, we dominated them,” said San Francisco receiver Kendrick Bourne, who had seven catches for 71 yards. “It’s just not finishing when we need to. We’ve got to figure out how to fix that.”