Price increases and cost discipline helped the audio-streaming giant pivot from heavy spending on growth to sustained profits ...