A teenager accused of raping a girl at a sleepover claims he was suffering from 'sexsomnia' during the alleged attack.
The 16-year-old girl claims she woke up on a friend's sofa to find the 18-year-old on top of her.
In a filmed police statement, played at Leicester Crown Court, she said: "I remember just waking up and realising what he was doing. He was raping me.
"It was without my consent or knowledge beforehand because I was asleep and he woke me up. It was the middle of the night.
"I pushed his shoulders and chest. I was confused and afraid and managed to scramble away from him.
"I fell off the end of the sofa. He moved away and said, 'I haven't done anything'.
"He kept trying to grab me, saying I'd imagined it."
The defendant, who can't be named for legal reasons, denies the offence, claiming he was suffering from a sleepwalking condition, which has been termed 'sexsomnia'.
The court heard that before the alleged rape the teenagers had been watching the 2008 film Taken.
The victim claimed the defendant later told a friend sleeping upstairs he had not done anything and suggested swapping rooms - and that if he left the room she would later wake up and think it was 'all a dream'.
Felicity Gerry, prosecuting, said: "The defendant denies rape on the basis he was asleep and doesn't accept he penetrated her.
"The Crown says you can be sure he was not asleep, but she was. He raped her and got caught. He claims he was sleepwalking."
She said it was linked to a recognised condition known as 'sexsomnia.'
Miss Gerry said: "It wasn't a particularly rowdy evening, although there was some evidence cannabis had been smoked."
The trial continues.