Transverse momentum of massive muon pairs in QCD