Midfielder Ebenezer Ofori (12) battles for the ball with D.C. United midfielder Luciano Acosta (10) during the first half. (Amber Searls-USA TODAY Sports)

WASHINGTON, D.C. — New York City FC’s late-season blues have turned a certain dark blue.

The team continued its slide Sunday afternoon, losing to D.C. United at Audi Field, 3-1.

Playing its first game in three weeks due to the FIFa international break and the inability to play at home due to the Yankees’ schedule, struggling City (53 points) fell to 15-10-8, as it has won but once in its last eight games (1-4-3) since Aug. 20.

Surging D.C. (50) improved to 14-11-8.

Wayne Rooney scored on either side of halftime to power surging D.C., which booked a playoff spot. United’s winning streak reached five games while its unbeaten streak hit nine games. D.C.’s record at Audi, incidentally is 12-2-1.

The former England international lifted United into the lead in the eighth minute, off an assist by Luciano Acosta.

In the 24th minute, Acosta took matters into his own feet, by connected for a 2-0 lead by the hosts.

Rooney converted a penalty kick in the 74th minute as D.C. tripled its pleasure before David Villa pulled one back four minutes later.

But it was too little and too late as United prevailed.

NYCFC has one regular season match to get its act together as it hosts the Philadelphia Union next week at the Stadium.