STILLWATER, Okla. (AP) -- Oklahoma State coach Travis Ford can't remember ever being more down on his team than after a loss in the Bedlam rivalry game last month.
He's got every reason to feel great about the 17th-ranked Cowboys now.
Marcus Smart scored 28 points, Le'Bryan Nash added a season-high 26 and Oklahoma State beat Oklahoma 84-79 in overtime Saturday to win its seventh straight game.
''We don't do it pretty all the time and we've won in a lot of different ways,'' Ford said. ''We've won close ones where we've played good offense, we've won games when we've played good defense, we've won when we played great on both ends. Today falls in the category of just playing with a lot of heart.''
It was the third straight down-to-the-wire win at home for the Cowboys (19-5, 9-3 Big 12), who won by two points in each of their previous two games at Gallagher-Iba Arena. It was the second consecutive home game to go to overtime.
''They're making me grayer and grayer by the day,'' Ford said, ''but very proud of them.''
Smart fed Nash for a right-handed slam with 53 seconds left in overtime to put the Cowboys up 80-79, and Oklahoma couldn't come up with an answer. Markel Brown's steal led to a fast-break layup by Michael Cobbins, and Smart blocked Steven Pledger's attempt at a tying 3-pointer to give Oklahoma State the ball back with 18 seconds to go.
Smart sealed it with two free throws, and Cowboys fans stormed the court in celebration.
''This rivalry is very big and it's been going for years. It definitely felt like a classic game, and we're just glad that we could come out with the victory,'' Smart said.
Romero Osby had 18 points and 15 rebounds, Sam Grooms chipped in a career-best 18 points while handling Oklahoma State's full-court pressure and Pledger also scored 18 for the Sooners (16-8, 7-5).
The Cowboys came into the game in a three-way tie for first place in the Big 12 with No. 10 Kansas State and No. 14 Kansas. Oklahoma had been just a game back, and the anticipation of the game attracted the first Bedlam sellout in Stillwater in five years.
It was Oklahoma State's second sellout of the season, and the first one involved a few thousand tickets being given away after a donation from booster T. Boone Pickens. The last capacity crowd of 13,611 to come to Gallagher-Iba Arena without a free ticket promotion was in January 2011, when the school marked the 10th anniversary of a plane crash that killed 10 men associated with the basketball team.
Oklahoma overcame an early 11-point deficit and then led by 11 just after halftime, but couldn't close it out despite shooting 60 percent in the second half.
''It just shows that we can play with the better teams,'' Osby said. ''But we've still got to go to the drawing board and correct some things. It hurts to not get a win, but it also helps to see that we can take some positives from it.''
The Cowboys rallied back from the 11-point deficit to tie it at 56, then fell behind by six before Phil Forte came up with a steal at halfcourt and a runout layup to even the score at 69 with 2:18 remaining in regulation.
Osby and Smart each banked in a running jumper - and each missed a free throw - and Smart was able to answer another Osby jumper by hitting two free throws to tie it at 73 with 42 seconds left in regulation.
Osby missed a jumper on Oklahoma's last second-half possession, and Smart missed a 3-pointer at the buzzer to send it into overtime.
Nash also had a right-handed slam and a three-point play off a layup in the extra period to lead the Cowboys. All but three of his 26 points came in the second half, after he'd been saddled with foul trouble in the first half.
''When he's locked in, he's not bad,'' Ford said.
Freshman Je'lon Hornbeak, who had come off the bench the past three games, moved back into the starting lineup to replace injured starter Buddy Hield and had 10 points. Hield had been leading the Sooners in minutes played before breaking a bone in his right foot. He'll be out four to six weeks.
''Everyone is disappointed that Buddy wasn't able to play, but that's the unfortunate nature of the game sometimes, and I thought guys responded and played their minutes really well,'' Sooners coach Lon Kruger said.
Brown had 14 points for Oklahoma State, which defended its home court against the Sooners for the fourth straight time.
Forte put Oklahoma State up 19-8 just over 8 minutes in when he hit a 3-pointer from the left wing, but the Sooners responded quickly with a 9-0 run to tie it at 21.
Another run of nine straight points to finish the first half put Oklahoma up 35-27, and Hornbeak's 3-pointer made it 45-34 early in the second half.
''It's difficult walking out of here because we wanted to get this win,'' Grooms said.