Media playback is unsupported on your device Media caption Donald Trump: "Hillary is so corrupt she got kicked off the Watergate commission"

White House rivals Hillary Clinton and Donald Trump have poked fun at each other at a charity dinner, a day after their bitter duel on the debate stage.

She laughed as Mr Trump joked about her well-paid speeches and the FBI investigation into her private email.

But the Republican was booed when he joked that his Democratic opponent hated Roman Catholics.

Opinion polls suggest Mrs Clinton's lead over Mr Trump has narrowed, less than three weeks before the election.

Just four percentage points now separate the candidates, according to the BBC's poll tracker.

Americans vote on 8 November to elect a successor to President Barack Obama, a Democrat, as well as members of Congress, currently dominated by the Republicans.

The annual Alfred E Smith Memorial Foundation Dinner in New York is a white-tie gala that every four years features the presidential candidates.

There is a tradition that the rivals stand up and make jokes about each other but this year it comes after one of the most rancorous campaigns in memory.

On Wednesday night in Las Vegas at their final debate, Mr Trump called his Democratic rival a "nasty woman" and they both interrupted each other throughout. They refused to shake hands before or after.

But at the New York event, they briefly put their differences aside and sat just one seat apart, with Cardinal Timothy Dolan between them.

Media playback is unsupported on your device Media caption Hillary Clinton was in self-deprecating mood

They did not shake hands or make eye contact but when Mr Trump stood up to speak, he gave her a friendly double-pat on her shoulder.

He joked that this crowd - of about 1,500 people - was her biggest audience yet and, in a dig at her Wall St connections, he said it would be unusual for her to be with so many corporate leaders and not get paid.

But when he said she was so corrupt she got booted off the Watergate commission, boos rang out.

And they resurfaced when, in a reference to emails hacked within her campaign team, he said she was "pretending not to hate Catholics". It was one of the few occasions when the smile left Mrs Clinton's face.

Perhaps his best line was when he referred in jest to his wife Melania's plagiarised speech in July, which borrowed from First Lady Michelle Obama.

Some of her jokes...

"I've had to listen to Donald Trump for three full debates… I have now stood next to Donald Trump longer than any of his campaign managers."

"After listening to your speech, I will enjoy hearing [his running mate] Mike Pence deny that you ever gave it."

"I'm so flattered Donald thought I used some kind of performance enhancer [before the debate]. I did. It's called preparation."

"He [Mr Trump] actually sent a car for me tonight. Actually, it was a hearse."

And his...

"Last night, I called Hillary a nasty woman, but this stuff is all relative. After listening to Hillary rattle on and on and on, I don't think so badly of Rosie O'Donnell anymore."

"Now I'm told Hillary went to confession before tonight's event, but the priest was having a hard time when he asked her about her sins, and she said she couldn't remember 39 times."

Then Mrs Clinton stood up and had her chance. "We'll either have the first female president or the first president who started a Twitter war with Cher," she said.

Instead of seeing the Statue of Liberty being a beacon of hope, Mr Trump rates her looks as a "four" or "maybe a five" if she loses the torch and tablet, and changes her hair, Mrs Clinton joked.

Image copyright AP Image caption The event raises millions of dollars for poor and needy children

Image copyright AFP Image caption They called a truce although some of the jokes were close to the bone

She drew fewer laughs when, in an attempt to mock Mr Trump's calls for a ban on Muslim immigration, she referred to the current president as a Muslim. Mr Obama is a Christian but conspiracy theorists have sought to portray him as a secret follower of Islam because of his father's religion at birth.

Conjuring up a Trump White House, Mrs Clinton imagined a reunion of former presidents involving Mr Obama and asked, "How is Barack going to get past the Muslim ban?"

Both candidates were reading from notes but Mrs Clinton poked fun at a recent incident when Mr Trump's teleprompter broke down at a rally in North Carolina.

Having described Mr Trump as the puppet of Russian President Vladimir Putin during Wednesday's presidential debate, she suggested he had had trouble using his teleprompter because he was "translating from the original Russian".

Guess who came to dinner: US media reaction

New York Times: "Breaking with decades of tradition at the gathering once he took the microphone, Mr. Trump set off on a blistering, grievance-filled performance that translated poorly to the staid setting, stunning many of the well-heeled guests..."

Fox News: "Some of Trump's attack lines showed a sense of humor. Clinton was the first one to laugh when Trump joked that she had bumped into him earlier in the night "and she very simply said `Pardon me"' -- an unsubtle reference to the Republican nominee's frequent declarations that his opponent should go to jail..."

LA Times: At times, the crowd was outright booing and hissing at Trump as the Republican presidential nominee delivered lines that sounded more like angry campaign rants than humor... Not all of Clinton's jokes landed either, but she did not get as rough of a time from the crowd or use quite as sharp a knife as Trump wielded."

The Daily Beast: "The night progressed as Trump himself strove to be humorous, remaining enough of a truly nasty man to inspire more boos... Clinton had her turn and was tough enough and good enough that you were almost glad Trump had been invited."

Who is ahead in the polls? See full poll tracker

More on the US election