Rapper Lil Nas X has pleaded not guilty to injuring a police officer and resisting arrest after he was detained last week while wandering the streets of Los Angeles in his underwear.

The rapper, whose legal name is Montero Lamar Hill, is facing three felony counts of battery with injury to a police officer and one felony count of resisting arrest.

Police said when they responded to a call about a man wandering the streets partially naked, the Grammy-winning artist charged at them. He was taken to the hospital for a possible overdose following the incident in the early hours of Thursday.

The 26-year-old artist was arraigned in a Los Angeles courthouse on Monday. His bail was set at $75,000 (£55,456), according to CBS, the BBC's US news partner.

The BBC has reached out to his representatives for comment.

Unverified videos and images published by TMZ appear to show the rapper dancing along a Los Angeles street, wearing just white underwear and white cowboy boots.

The rapper is expected to release his much-anticipated second studio album Dreamboy later this year, and has recently teased new music on Instagram.

Lil Nas X became the first openly gay man to receive a Country Music Association award, after he won with Old Town Road in 2019. The song also won two Grammys and set the record for the longest-running number one song on the Billboard Hot 100, following 17 weeks at the top of the charts.