MOSCOW - A Russian judge ruled Tuesday that American journalist Evan Gershkovich must remain behind bars on espionage charges in a case that is part of a crackdown the Kremlin has intensified on dissent and press freedom since invading Ukraine.

Appearing in public for the first time in weeks, the 31-year-old Wall Street Journal reporter stood in a defendant's glass cage in Moscow City Court, wearing blue jeans and a navy blue gingham checked shirt. He paced at times with his arms folded, talking through an opening with his lawyers and occasionally smiling as he acknowledged the other journalists crammed into the courtroom for photos before the hearing was closed because Russian authorities have declared the case secret.

Gershkovich is the first U.S. correspondent since the Cold War to be detained in Russia on spying charges, and his arrest and drew outrage in the West. Gershkovich, his employer and the U.S. government deny he was involved in spying and have demanded his release.

鈥淓van is a member of the free press who right up until he was arrested was engaged in newsgathering. Any suggestions otherwise are false,鈥 the Journal has said. Last week, the U.S. officially declared that Gershkovich was

Russia鈥檚 Federal Security Service arrested Gershkovich in the Ural Mountains city of Yekaterinburg on March 29 and accused him of trying to obtain classified information about a Russian arms factory.

In rejecting Gershkovich鈥檚 appeal to be released from pretrial detention, the judge ruled he must remain in jail until at least May 29. The journalist's lawyers said they petitioned for house arrest or for his release on bail of 50 million rubles (about $610,000), but were rejected. The lawyers said they plan to appeal the ruling, which the Journal and its publisher, Dow Jones, called 鈥渄isappointing.鈥

Russian journalist Vasily Polonsky posted a video in which he shouts, 鈥淓van, hang in there. Everyone says hello!鈥 Gershkovich then nods.

Gershkovich could face up to 20 years in prison if convicted. Russian lawyers have said past espionage investigations took a year to 18 months, during which time he could have little contact with the outside world.

He is held in , which dates from the czarist era and has been a terrifying symbol of repression since Soviet times, especially under Josef Stalin.

鈥淚t鈥檚 not a very nice place in general, but conditions are OK. He doesn鈥檛 complain,鈥 his lawyer, Tatyana Nozhkina, said after Tuesday's hearing.

Gershkovich had no medical complaints and was getting exercise by walking, she said, adding that he also was watching a cooking show on TV and reading, including Leo Tolstoy鈥檚 鈥淲ar and Peace.鈥

鈥淗e said that in the morning he eats porridge, and he wrote to his mother that it looks like his childhood," Nozhkina said, a reference to his Russian heritage. His parents moved to the United States from the Soviet Union.

鈥淗e鈥檚 in good fighting spirit. He鈥檚 ready to prove his innocence and defend media freedom,鈥 she said.

She added that Gershkovich has received letters from his parents and supporters, but hasn鈥檛 been allowed any phone calls. He also told his lawyers he was thinking about writing a book about the ordeal when he鈥檚 free.

The case has exacerbated tensions between Moscow and the West over the and is another sign of the Kremlin's crackdown on opposition activists, independent journalists and civil society groups. The sweeping campaign of repression is unprecedented since the Soviet era. Activists say it often means the very profession of journalism is criminalized, along with the activities of ordinary Russians who oppose the war.

On Monday, in the same courthouse where Gershkovich's hearing was held, top opposition figure Vladimir Kara-Murza Jr. was convicted of treason for publicly denouncing the war and sentenced to 25 years in prison. Last month, a court after his daughter drew antiwar sketches in school and sentenced him to two years in prison.

Russia's Foreign Ministry summoned the U.S., U.K. and 春色直播 ambassadors over 鈥渃rude interference in Russia's internal affairs鈥 after they attended the Kara-Murza hearing Monday.

After pressing authorities for days to grant consular access to Gershkovich, U.S. Ambassador Lynne Tracy, who attended the hearing, said Monday she had . She tweeted that 鈥渉e is in good health and remains strong,鈥 reiterating a U.S. call for his immediate release.

U.S. President Joe Biden spoke to Gershkovich's parents last week and again condemned his detention.

鈥淲e鈥檙e making it real clear that it鈥檚 totally illegal what鈥檚 happening, and we declared it so,鈥 he said.

The last American reporter to be arrested on espionage charges by Moscow was Nicholas Daniloff in 1986. A correspondent for U.S. News & World Report, Daniloff spent 20 days in custody before being swapped for an employee of the Soviet Union鈥檚 U.N. mission who was arrested by the FBI, also on spying charges.

A top Russian diplomat said last week that a potential prisoner swap with the U.S. involving Gershkovich 鈥 but after his trial. That means any exchange is unlikely soon.

In December, WNBA star Brittney Griner following her trial and conviction on drug possession charges. She had been sentenced to nine years in prison and ended up spending 10 months behind bars.

Another American, Michigan corporate security executive Paul Whelan, has been imprisoned in Russia since December 2018 on espionage charges, which his family and the U.S. government have called baseless.

___

Follow AP鈥檚 coverage of the war in Ukraine at

The 春色直播 Press. All rights reserved.