Passing sentence, Mr Justice Griffith Williams told Sharp: "This is a horrific, cold hearted murder, carried out to gratify your perverted sexual desires."
Sharp, dressed in grey jogging bottoms and a grey jumper, made no reaction but the victim's sister, Emma, sat in the public gallery just yards from the dock, did not take her eyes off the defendant throughout the 50 minute hearing.
More top news
Carson Price was found unconscious on Friday evening in a park in Ystrad Mynach, near Caerphilly.
British Transport Police confirmed the trio have been charged with obstructing trains or carriages on the railway by an unlawful act.
Journalists who received the phones to review said the Galaxy Fold screen started flickering and turning black before fizzling out.