A 17-year-old girl was shot dead in the street during a gang “ride-out” carried out in retaliation to a social media humiliation, a court has heard.