Debutant Lungi Ngidi claimed two late wickets on a costly day for India captain Virat Kohli, as South Africa closed in on a series victory in the second Test at Centurion.
India were set 287 to win after bowling the Proteas out for 258 on day four, Mohammed Shami (4-49) the pick of the bowlers but a stand of 141 from AB de Villiers (80) and Dean Elgar (61) put the Proteas in command.
Captain Faf du Plessis also weighed in with a patient 48 on a surface offering variable bounce, before Ngidi (2-14) and Kasigo Rabada (1-9) reduced the tourists to 35-3 at stumps - 252 runs short of their target.
Ngidi claimed the huge wicket of Kohli, who was earlier fined 25 per cent of his match fee for poor on-field behaviour on day three and looks set to preside over the top-ranked side's first Test series loss for three years.
De Villiers and Elgar had rescued South Africa from 3-2 to 90-2 on Monday and continued to frustrate India in the morning session, the latter not looking comfortable but gaining his reward for digging in when he drove Ishant Sharma to the extra-cover boundary to reach 50.
The brilliant De Villiers deserved a hundred, but the partnership finally ended when the former skipper gloved a rising Shami delivery through to Parthiv Patel and Elgar soon followed, pulling the same bowler to KL Rahul at deep square-leg.
South Africa were 163-5 - leading by 191 - when a pumped-up Shami removed Quinton de Kock (12), but Du Plessis grafted it out after Rahul put down a difficult chance to remove him and Vernon Philander (26) provided support before Ishant (2-40) sent him on his way.
Rabada hung around following Keshav Maharaj's early dismissal but fell before Du Plessis, who struck only four boundaries, was caught and bowled by Jasprit Bumrah (3-70) soon after the paceman gave him another life.
India found themselves deep in the mire after a first wicket for Ravichandran Ashwin (1-78) ended South Africa's second innings, Murali Vijay the first to go, chopping on to a Rabada delivery which kept low.
Ngidi then took centre stage with a hostile spell of fast bowling, although Rahul gifted the 21-year-old his first wicket, tamely steering a short and wide delivery to Maharaj at point.
The Durban-born new boy then claimed the prized scalp of Kohli, the first-innings centurion falling for only five after playing across the line to a delivery which angled in and unsuccessfully reviewed an lbw decision.
Parthiv (five not out) took a nasty blow in the ribs from a hostile short ball from Ngidi, but the wicketkeeper and Cheteshwar Pujara (11no) were still there at the close.
|Ederson taking goalkeeping to another level, says City hero Weaver|
|Ceferin dismisses "super league" plans as fiction|
|Rams defeat Chiefs in one of the highest scoring games in NFL history|
|Kemba Walker leads Hornets to win over Celtics|
|Gomez praises ´top player´ Van Dijk, Stones|
|Cricket Australia to maintain Smith, Warner ball tampering bans|
|Brazil´s Tite encouraged by Neymar captaincy|
|Holmes set for NFL switch after Cronulla release|
|Dier encourages English youngsters to follow Sancho´s lead|
|Southgate promises further changes to England squad|
|Jones sceptical over Pocock injury|
|Sane encouraged despite Germany´s ´annoying´ Nations League draw|
|Character got Netherlands through, says Koeman|
|Netherlands´ focus still on Euros - Van Dijk|
|Ireland will be ready for qualifiers, insists O´Neill|
|Smith undergoes successful surgery, Redskins sign Sanchez|
|Germany 2 Netherlands 2: Dramatic five-minute fightback seals Oranje progression|
|Denmark 0 Republic of Ireland 0: Thrills at a premium again in Aarhus|
|O´Brien could return for start of Six Nations|
|Cavani: Neymar and I are ´friends, brothers, team-mates´|
|Pothas named Windies interim head coach|
|LA Galaxy planning for Ibrahimovic stay|
|NFL will return to Mexico City in 2019|
|Broner vows to end Pacquiao´s career in Las Vegas|
|UEFA should punish PSG and Man City, says LaLiga chief|
|Teenage driver Floersch has ´no fear of paralysis´ after operation|
|Mancini bemoans Italy´s misfortune in front of goal|
|Sprint legend Johnson ´pretty much back to normal´ after stroke|
|Bournemouth defender Adam Smith out for three months|
|World champions France out to end 2018 on a high|
|I told him there´s no future in football! A-Rod relieved to be ignored by Mahomes|
|Dembele must focus and be more responsible - Suarez|
|Neymar could return one day – Barca chief|
|Cole backs West Ham to keep Arnautovic|
|Injury rules Bernardo Silva out of Poland clash|
|Lamar Jackson debut start ´spectacular´ - Ravens coach Harbaugh|
|Babar run out the turning point, laments Sarfraz|
|West Ham boost London Stadium capacity to 60,000|
|A great advertisement for Test cricket - Williamson revels in stunning win|
|Van Dijk one of the world´s best - Klaassen|
|Floersch had ´angel on her shoulder´ in horror crash|
|Gascoigne charged with sexual assault|
|I am going to stay at Chelsea and fight, insists Giroud|
|Hansen to make announcement on All Blacks future|
|I have reached the top by joining Chelsea - Sarri|
|Bonucci tells Italy boo boys to ´live with less envy´|
|Dramatic Pakistan collapse gives Stead first New Zealand Test win|
|Button enjoying racing for first time in years|
|Dortmund chief not planning Pulisic sale|
|Theismann: Smith leg break ´heart-wrenching´ to watch|
|Wolves defender Jonny suffers knee injury|
|Holmes to meet with Sharks amid NFL switch talk|
|LeBron made 51 points ´look easy´, says Walton|
|McGuire signs four-year deal with Cowboys|
|Bears beat Vikings to extend NFC North lead|
|Peng overcomes Davis in Houston final|
|Kerr says this has been his toughest stretch as Warriors coach|
|LeBron scores 51 in Lakers´ win, Warriors fall to Spurs|
|Win more than Djokovic? Let´s chill out – Zverev|
|Steelers´ rally highlights wild day of close, last-minute finishes|
|Modric not worried about Ballon d´Or|
|Saints pull away for blowout victory over Eagles, extend winning streak to nine|
|Martinez laments loss of control by Belgium|
|Logano claims first NASCAR Cup championship|
|Luis Enrique delighted with attitude of Spain´s squad|
|Stevens tells Celtics to get ´tougher´|
|Griezmann: Being Messi´s lieutenant played a part in rejecting Barcelona|
|Curry proud of how Warriors handled Green-Durant incident|
|Courtois: Belgium thought Nations League job was done|
|Howell ends 11-year title drought to deny record-breaking Rodgers|