Hashim Amla (R) top-scored for South Africa with a brilliant 87 to put his team in command against England on Day 3 of the second Test at Trent Bridge, Nottingham.