Virat Kohli struck a sparkling unbeaten 77 to help India take a 2-1 lead in the five-match one-day series.