Last updated on .From the section Scottish Premiership

Highlights: Heart of Midlothian 2-1 Rangers

Rangers' title hopes suffered a blow as Liam Boyce's late debut goal gave battling bottom side Hearts a comeback victory in the Scottish Premiership.

Steven Gerrard's team, who remain five points behind Celtic with a game in hand, went ahead when Ryan Kent fired high into the net after the break.

But the home side replied as Boyce set up Steven Naismith to chip home.

The midweek signing from Burton Albion's deflected shot won it for the home side with seven minutes remaining.

It gave manager Daniel Stendel a first league victory, ending Hearts' run of 10 league games without a win, five of them at home, and taking them to within a point of Hamilton Academical.

Defeat in Gerrard's 100th game in charge ends Rangers' run of six consecutive victories and seven without a defeat.

Tale of two signings at Tynecastle

With Gerrard's side arriving in the capital seeking a fourth consecutive away win, unbeaten in 10 on the road, having won their two most recent meetings with Hearts by an 8-0 aggregate, unbeaten in four visits to Tynecastle and without a loss in 12 meetings between the sides since February 2017, nothing hinted at what was to follow.

Despite those statistics, Stendel promised to play on the front foot and being true to his word extended even to the bench - where there was not a defender in sight.

Not satisfied with the promise shown on Wednesday, Boyce and fellow new signing Toby Sibbick were among five changes made by the German from the 0-0 draw away to Ross County.

Only 20, natural right-back Sibbick had been a regular under Stendel at Barnsley but had not played since losing his place after the Championship side lost 22 goals in his past nine starts.

However, the loan signing was employed in a protective role in front of the back four as Hearts adopted the high press preferred by the German, and the Englishman's commanding presence played a part in preventing Rangers getting into their stride despite the system being fully anticipated by counterpart Gerrard.

Whether by design or not, Rangers were forced to play on the counter-attack and, although Kent lashed over in the opening moments and Joe Aribo stabbed another good chance wide, it was Hearts who came closest to scoring before the break.

Boyce, who scored 14 goals in 34 appearances for League One outfit Burton this season before his midweek transfer, flicked the ball into the net through goalkeeper Allan McGregor's legs only for the flag to cut short the Northern Ireland striker's celebrations.

Gerrard had seen enough by half-time and took off Ryan Jack and Jon Flanagan, who had both been booked, sending on Scott Arfield and Matt Polster, and seeing the deadlock broken immediately.

Stendel had taken off Aidy White at the break and, with Sibbick looking less comfortable filling in at left-back, the reorganised defence was exposed as Aribo played the ball cleverly into the stride of Kent from Borna Barisic's low cross and the winger powerfully dispatched into the far corner.

Rangers were suddenly on top, but Hearts were back in the game 10 minutes later when Glen Halkett prodded forward after Glen Kamara dallied on the ball and Boyce cut it back perfectly for former Rangers forward Naismith to chip neatly into the far corner.

With a new wave of optimism igniting Tynecastle, substitute Conor Washington had a shot cleared off the line while Jermain Defoe failed to celebrate news of his permanent move from Bournemouth with a winner as he skied over at the other end.

It was to be Hearts' new signing who had the last word, Boyce's low drive taking a nick off Barisic's heel to inflict Rangers' first domestic away defeat since the final game of last season and stretch Stendel's unbeaten run to four games.

Man of the match - Craig Halkett

BBC Scotland's Brian McLauchlin at Tynecastle

All the plaudits must go to the Hearts players who as a man put their bodies on the line for the 90 minutes.

Boyce led the line brilliantly on his debut and was ably assisted by the new club captain Naismith.

Andrew Irving never put a foot wrong in midfield, but the award of man of the match must go to centre-half Halkett.

The former Livingston defender was immense throughout and never gave the talents of Defoe a sniff of goal and looks as if he is finding the type of form he was showing before his injury earlier in the season.