India have recovered from a precarious 4-86 to beat Sri Lanka by four wickets and take the series in the second one-day international, with KL Rahul ending up as their hero.
Rahul led India with an unbeaten 64 off 103 balls, with Kuldeep Yadav hitting the winning boundary in the 44th over of Thursday's contest to take India to their target on 6-219 in reply to Sri Lanka's 215 all out with a couple of overs remaining.
"We thought it was a 280-300 wicket but our bowlers did well to keep them to under 220," Rahul, who batted at five rather than as an opener, said.
"They put up a good fight and got breakthroughs. It wasn't a wicket impossible to bat on, and we always try to find a way to win. Batting at number five has helped me understand my game better."
India now have an unassailable 2-0 lead with the last ODI scheduled for Sunday at Thiruvananthapuram.
Earlier, Yadav had picked up 3-51 to help bowl out Sri Lanka, who'd been thriving at 1-102, with 10.2 overs to spare.
Sri Lanka debutant Nuwanidu Fernando opened with a sedate maiden half-century before being caught up in a careless run-out. He scored 50 off 63 balls.
Fernando put on 73 for the second wicket with Kusal Mendis (34) but when the latter was trapped by Yadav in the 17th over, Sri Lanka collapsed.
Yadav also dismissed Charitha Asalanka (15) and bowled Dasun Shanaka (2) as Sri Lanka slipped from 1-102 to 6-126 in 7.2 overs.
Sri Lanka managed to cross 200 only thanks to Dunith Wellalage's late cameo of 32 off 34 balls.
India made a horrible start to the chase when Sri Lanka's pacers exploited the dewy conditions.
Rohit Sharma was caught behind for 17, and Shubman Gill was out for 21 to Lahiru Kumara, who also bowled Virat Kohli for four.
India were ailing at 3-62, which soon became 4-86 when Shreyas Iyer (28) was out lbw to Kasun Rajitha.
But Rahul then built a partnership with Hardik Pandya (36) worth 75 for the fifth wicket.
Despite Pandya's dismissal, Rahul continued to hold the innings together, reaching his 11th half-century off 93 balls, including six fours.
Axar Patel added 21 off 21 balls to accelerate India's successful chase.