CAIRO (AP) - Egypt's military moved to tighten its control on key institutions on Wednesday, even putting officers in the newsroom of state TV, in preparation for an almost certain push to remove the country's Islamist president when an afternoon ultimatum expires.
Mr Mohammed Mursi, sworn in a year ago as Egypt's first freely elected president, has vowed not to step down in the face of millions of protesters in the streets in the biggest anti-government rallies the country has seen.
His Islamist supporters have vowed to resist what they call a coup against democracy, and have also taken to the streets by the tens of thousands. At least 39 people have been killed in clashes since Sunday, raising fears the crisis could further explode into violence The clock was ticking on the military's deadline, expiring around 4pm to 5pm (1400-1500 GMT).
The military beefed up its presence inside the mammoth headquarters of state television on the banks of the Nile River in central Cairo. Crack troops were deployed in news-production areas. Officers from the army's media department moved inside the newsroom and were monitoring output, though not yet interfering, staffers said, speaking on condition of anonymity because they were not authorised to talk about the arrangements.
The state TV is run by the information minister, a Muslim Brotherhood member put in the post by Mursi, and its coverage had largely been in favor of the government. But already in the past two days, the coverage saw a marked shift, with more balanced reporting showing the anti-Mursi protests along with pro-Mursi ones. State radio has seen a similar shift.
The authoritative, state-run Al-Ahram newspaper - which also seemed to be following a military line - reported that the military had placed several leaders of Morsi's Muslim Brotherhood under surveillance and issued a foreign travel ban on the Islamist group's top leaders.
The head of the army, Defence Minister General Abdel-Fattah el-Sissi, held a group meeting with leading reform advocate Mohammed ElBaradei, Egypt's top Muslim cleric - Al-Azhar Sheik Ahmed el-Tayeb - and Coptic Pope Tawadros II to discuss its political road map, a spokesman for the senior opposition National Democratic Front, Khaled Daoud, said on state TV.
Also attending the meeting were a representative of the new youth movement behind this week's protests and some members of the ultraconservative Salafi movements, a defence ministry official told The Associated Press. The official spoke on condition of anonymity because he was not authorised to speak to the media.
Under a plan leaked to state media, the military would install a new interim leadership, the Islamist-backed constitution suspended and the Islamist-dominated parliament dissolved.
Even as the clock ticked down towards the military's deadline, Mr Mursi has remained defiant. In a speech late on Tuesday night, he vowed not to step down and pledged to defend his legitimacy with his life in the face of the massive street protests.
At least 39 people have died since the protests began on Sunday.
The looming showdown follows a night of deadly clashes in Cairo and elsewhere in the country that left at least 23 people dead, most in a single incident near the main Cairo University campus.
The bloodshed, coupled with Mursi's defiant speech, contributed the sense that both sides are ready to fight to the end.
With his political fate hanging in the balance, Mursi demanded in a posting on his official Twitter account late on Tuesday that the powerful armed forces withdraw their ultimatum, saying he rejected all "dictates" - from home or abroad. The army said if no agreement is reached between Morsi and the opposition it would intervene to implement a political road map of its own.
In his emotional, 46-minute address aired live to the nation late Tuesday, the Islamist leader accused loyalists of his ousted autocratic predecessor Hosni Mubarak of exploiting the wave of protests to topple his regime and thwart democracy.
"There is no substitute for legitimacy," said Mr Mursi, at times angrily raising his voice, thrusting his fist in the air and pounding the podium. He warned that electoral and constitutional legitimacy "is the only guarantee against violence".
The statement showed that Mr Mursi and his Muslim Brotherhood are prepared to run the risk of challenging the army. It also entrenches the lines of confrontation between his Islamist supporters and Egyptians angry over what they see as his efforts to impose control through the Brotherhood and his failures to deal with the country's multiple problems.
The Interior Ministry, in charge of the police, piled up the pressure on Morsi on Wednesday. It pledged in a statement to stand by and protect the protesters against violence.
As anti- and pro-Morsi supporters geared up for the fourth consecutive day of mass rallies Wednesday, it was clear that Egypt's crisis has become a struggle over whether a popular uprising can overturn the verdict of the ballot box.
Mr Mahmoud Badr, spokesman for Tamarod, or Rebel - the youth movement behind the latest wave of protests - called on anti-Mursi protesters to demonstrate outside three presidential palaces as well as the Cairo headquarters of the Republican Guard, an army branch tasked with protecting the president, his family and presidential palaces. Mr Mursi is thought to have been working at the Republican Guard headquarters since the start of the protests.
Mr Badr also called on the army to place Mr Mursi under arrest for his alleged incitement to civil war.
"Today is the day of decisiveness," Mr Badr said at a news conference on Wednesday.
Mr Mursi's opponents say he has lost his legitimacy through mistakes and power grabs and that their turnout on the streets over the past three days shows the nation has turned against him.
On Tuesday, millions of jubilant, chanting Mursi opponents again filled Cairo's historic Tahrir Square, as well as avenues adjacent to two presidential palaces in the capital, and main squares in cities nationwide. After Mr Mursi's speech, they erupted in indignation, banging metal fences to raise a din, some raising their shoes in the air in a show of contempt. "Leave, leave," they chanted.
The president's supporters also moved out in increased marches in Cairo and other cities, and stepped up warnings that it will take bloodshed to dislodge him. While Mr Mursi has stuck to a stance that he is defending democracy in Egypt, many of his Islamist backers have presented the fight as one to protect Islam.
On Monday, the military gave Mr Mursi an ultimatum to meet the protesters' demands within 48 hours. If not, the generals' plan would suspend the Islamist-backed constitution, dissolve the Islamist-dominated legislature and set up an interim administration headed by the country's chief justice, the state news agency reported.
The leaking of the military's so-called political "road map" appeared aimed at adding pressure on Mr Mursi by showing the public and the international community that the military has a plan that does not involve a coup.
Fearing that Washington's most important Arab ally would descend into chaos, U.S. officials said they are urging Mr Mursi to take immediate steps to address opposition grievances, telling the protesters to remain peaceful and reminding the army that a coup could have consequences for the massive American military aid package it receives. The officials spoke on condition of anonymity because they were not authorized to speak publicly.
Mr Mursi's adviser Ayman Ali denied that the US asked Egypt to call early presidential elections and said consultations were continuing to reach national conciliation and resolve the crisis. He did not elaborate.
The army has insisted it has no intention to take power. But the reported road map showed it was ready to replace Mr Mursi and make a sweeping change in the ramshackle political structure that has evolved since former president Mubarak's fall in February 2011.
The constitution and domination of the legislature after elections held in late 2011-early 2012 are two of the Islamists' and Brotherhood's most valued victories - along with Mr Mursi's election last year.