By Jan Lopatka and Robert Muller
PRAGUE (Reuters) - Russia-friendly Czech President Milos Zeman won the first round of voting to retain his job on Saturday, but pro-western runner-up Jiri Drahos will be a formidable opponent in the second round vote in two weeks, nearly complete results showed.
The vote is seen as a referendum on the 73-year-old Zeman, in office since 2013, who has criticised immigration flows from Muslim countries and Germany's decision to accept many migrants.
While most Czechs share his views on immigration, Zeman's inclination towards far-right groups and his warm relations with Russia and China have split public opinion, with a sizeable chunk of the electorate favouring pro-western candidates, including 68-year-old academic Drahos.
Czech presidents have limited executive powers, but Zeman and his predecessors have had a strong influence on public debate. They are also pivotal in forming governments -- which the European Union and NATO member country is now trying to do.
With votes from 98.9 percent of districts counted, Zeman led the race with 38.6 percent of votes, while Drahos had won 26.6 percent.
That means a run-off needs to be held, and the balance of power may be closer than the first round showed. Four other candidates who ended between the third and sixth place and among them won 32.5 percent, all endorsed Drahos for the second round due on Jan. 26-27.
"This looks hopeful," Drahos told supporters and reporters at a Prague theatre after most results had come in. "By far the toughest game now awaits against Milos Zeman and his advisers... Come to vote, come to vote, come to vote."
Zeman, who had shunned public debates ahead of the first round, accepted Drahos' challenge to a television duel and said he hoped voters could make up their own mind.
"I assume citizens have their own opinion and their own reason. They are not puppets that can be manipulated by endorsement from whoever," Zeman told reporters at his campaign headquarters.
A win for the soft-spoken, grey-haired chemical engineer Drahos could mean the tone of the Czech leadership shifts closer to the EU mainstream.
"I voted for professor Drahos because I want someone who will not push us to the East and who will not be a disgrace," said lawyer Matej Gredl, 30, after he voted in Prague.
The outcome may also influence Czech Prime Minister Andrej Babis's chances of forming a cabinet. His first attempt to rule in a minority administration is likely to be rejected by parliament next week.
Zeman has backed Babis and said he would give him another chance even though the billionaire businessman has struggled to get support from other parties while he battles police allegations that he illegally obtained EU subsidies a decade ago. Babis denies wrongdoing.
TOO SMALL WIN
A former centre-left prime minister and backer of a federal Europe, Zeman has gradually shifted to positions criticising the EU, echoing and reinforcing public sentiment.
He has won endorsements from some mainstream groups as well as the Communist Party and the main far-right anti-EU and anti-NATO SPD party.
"The first round result is a heavy blow for Milos Zeman, although he won it formally. It shows he doesn't have much more where to take the votes," said political scientist Josef Mlejnek jr.
"They will try to picture (Drahos) as a friend of migrants, an agent of the EU."
The Czech Republic has a tiny Muslim minority and has seen only a few of the hundreds of thousands of people coming to Europe in recent years to seek safety from war or better life.
Zeman has sought more trade and closer ties with China and has warm relations with Russian President Vladimir Putin, calling for the removal of EU sanctions on Russia over its annexation of Ukraine's Crimea to boost business.
He has strong support mainly in the countryside of the nation of 10.6 million people, and often snipes at Prague elites and the media. Drahos said he needed to boost his visibility outside the capital - the only region he won - and would focus on that ahead of the second round.
(Reporting by Jan Lopatka; Additional reporting by Jiri Skacel; Editing by Ros Russell and Hugh Lawson)