HARTFORD, Conn. (AP) -- Connecticut went down to the wire with another opponent. This time there was no clutch shot by Shabazz Napier.
UConn's star guard, known for heroics such as a last-second shot that beat Florida earlier this month, missed three times in the final 40 seconds and the 10th-ranked Huskies lost for the first time this season, 53-51 to Stanford.
"With Shabazz, you live with that, because he's put this team on his back a lot of times," UConn coach Kevin Ollie said. "But he could have taken it to the basket a couple of times, but he settled for the long 3-ball."
Chasson Randle scored 22 points and the Cardinal (8-2) beat a Top 25 team away from Palo Alto for the first time since the 2008 NCAA tournament. The Cardinal's previous seven wins this season came over teams that were a combined 32-41.
"I think it's an important win for our conference," Stanford coach Johnny Dawkins said, referring to the Pac-12. "A number of teams have had some real signature wins, and I'm just happy that we were able to have one as well."
Josh Huestis added 13 points and 10 rebounds and Dwight Powell had 10 points and 15 rebounds for Stanford which overcame a 10-point halftime deficit.
DeAndre Daniels had 15 points for UConn (9-1), which was 6 of 10 from behind the arc in the first half and 0 for 12 in the second.
Connecticut this season already had beaten Maryland, Indiana and Florida by a point and won by two against Boston College. But the Huskies could not get a clutch basket down the stretch against Stanford.
Randle's jump shot with 3½ minutes left gave the Cardinal a 52-49 lead. The Huskies pulled within a point when Daniels tipped in a missed 3-point attempt by Niels Giffey.
Napier, who finished with 12 points and eight assists, missed two 3-pointers on a key possession with the Huskies trailing 52-51. Stanford got the ball back with 28 seconds left after a scrum underneath the basket.
Napier fouled Huestis on the inbounds play and he hit one of two free throws.
Napier missed another shot with 8 seconds left, forcing UConn to foul again.
He got the ball back on a rebound after Huestis missed another free throw; dribbled down the court, but instead of trying a contested shot, he passed to Omar Calhoun. His long jumber from the right wing bounced off the rim.
"I felt like Omar was the most open guy at the time," Napier said. "I felt like it was going to go in, and I bet he did too."
UConn led by 10 points at halftime and pushed the lead to 43-30, before consecutive 3-pointers by Anthony Brown and Randle. That started a 14-0 run by the Cardinal, who used a stifling zone defense to hold the Huskies without a field goal for more than 6 minutes. The Huskies were just 5 of 31 from the field in the second half.
"It was just a matter of us being aggressive on the defensive end," Randle said. "Just being active, getting our hands moving, getting our feet moving and getting our feet moving and just hustling."
A driving basket and free throw by Randle gave Stanford its first lead of the second half at 44-43.
The Huskies closed the first half on a 14-3 run that ended when Napier stole the ball from Randle and found Lasan Kromah ahead of the field for an easy layup just before buzzer.
UConn came in shooting better than 46 percent from beyond the arc, with five players having made 10 or more 3-pointers.
The loss snapped a 54-game home winning streak against nonconference opponents that dated to 2007.
Connecticut was coming off its annual hiatus for final exams. The Huskies had not played in 12 days, since a 95-68 win over Maine, a game in which UConn hit 14 3-pointers.
Stanford ended a 13-day break last Saturday with a 27-point win over UC Davis.
UConn plays at Washington, another Pac-12 team, on Saturday. The Huskies had dominated that conference, coming into Wednesday they were 17-2 and had won 13 straight since falling to UCLA in the 1995 NCAA West Regional championship.
"We'll learn from this," Daniels said. "We're not going to have all the time when (Napier's) going to be the hero of the game and knock down a shot."