A 16-year-old girl who admitted murdering a man after he made sexual advances towards her at a party has been detained without limit of time.
The teenager, who cannot be named for legal reasons, attacked 20-year-old Derek Gray at a house in the Mount Vernon area of Glasgow in March.
The High Court in Glasgow heard Mr Gray died after being stabbed in the chest.
Temporary judge Sean Murphy QC ordered the girl to be detained for at least 10 years before being eligible for parole.
The court heard the attack took place while the girl and Mr Gray were in a bedroom of the house on 27 March.
Other partygoers heard Mr Gray shouting: "Help, help."
One 13-year-old girl who went into the room saw Mr Gray covered in blood and the knife which had been used lying on the bed.
The accused then ran out of the room screaming: "I've stabbed Derek."
The court was told the accused was then attacked by her mother and brother.
When she managed to escape she ran to a neighbours' house for help.
The court was told that the accused had had a chaotic childhood which included moving home 17 times.
Her mother also had five children by three different men and "had offered nothing in the way of parental guidance".
It was also claimed that she had reacted "inappropriately" because she had experienced "unwanted sexual advances" from another person when she was 13.
Ordering her detention, temporary judge Murphy told the 16-year-old: "You have pleaded guilty to murder. You struck Mr Gray twice with a knife in an exaggerated response to a sexual advance on his part.
"You delivered two blows with a lethal weapon and you ended the life of a very young man who had everything to live for. What you did has cast a shadow over his family."
Judge Murphy said he took into account that this was not a premeditated act and told her: "You reacted to what you perceived to be a threat. On impulse in the heat of the moment. Your expressions of remorse are genuine."
He added: "You are 16 and under supervision. One of the saddest aspects of this case is that the care you are receiving at the Good Shepherd Centre in Bishopton seems to be the most positive you have received in recent years."