US actor Kevin Spacey has to pay the production company of the Netflix series "House of Cards" high compensation after allegations of sexual assault.

A Los Angeles court ordered the payment of almost $31 million.

The US media reported on Thursday, citing court documents.

Judge Mel Red Recana's ruling upheld a previous 2020 arbitration decision, Variety reported.

Spacey's lawyers appealed the verdict in court.

The case involved breach of contract.

The arbitral tribunal found that Spacey had violated a code of conduct contractually agreed with production company MRC, including a company policy on non-harassment.

Spacey had played the lead role of Frank Underwood in five seasons of the Netflix hit "House of Cards" until the fall of 2017, when allegations of sexual assault and harassment against Spacey were made during the #MeToo debate.

Spacey has also been accused of sexual harassment by crew members.

MRC then canceled Spacey's collaboration and completely rewrote House of Cards Season 6.

The arbitral tribunal agreed with MRC that Spacey was responsible for millions of dollars in lost revenue.

Spacey is currently being tried in a London court for alleged sexual assault.

In mid-July, the Oscar winner had rejected the allegations.

It's about five alleged acts in England between 2005 and 2013. Spacey was temporarily artistic director of the London theater The Old Vic.