Fourth-ranked Alabama stunned South Carolina in the final seconds, leaving thousands of students just beyond hedges in the end zone during an improbable 29-22 road win over the Gamecocks on Saturday.