Spectroscopic evidence for broken-symmetry transitions in dense lithium up to megabar pressures