South Africa surged ahead with a 157‑run lead while Bangladesh wrestle with a 99‑run deficit and seven wickets in hand.