Losses narrow year on year as media group wins court case against regulator Ofcom