With Lewandowski replaced in the final stages, Raphinha took responsibility and hammered into the top-right corner to earn his team a dramatic and potentially vital victory.