Hedo Turkoglu scored 20 points, including five within an 18-second span of the final minute, for the Magic, who trailed by nine late in the first half and never shook the woebegone Heat, who lost for the 34th time in 37 games.
The Magic swept the four-game series with their Sunshine State neighbors for the second straight season.
Jason Williams scored 34 points - the second-highest total of his career
- for Miami, which was without coach Pat Riley, who is spending a few days on the road at college tournaments scouting potential draft picks, and the now-customary seven injured players, including Shawn Marion, who sat out with a sore back.
And for a while, it looked like interim coach Ron Rothstein and the Heat were going to pull off a stunner.
But in the end, it was just another close loss for Miami, which has dropped its last four games by an average of four points.
The Magic set a club record for 3-pointers in a season, when Nelson connected 60 seconds after tip-off on Orlando's first of the night and 623rd of the season. Orlando also matched a club record by winning its 23rd road game, with six still to play.
Speaking of records, the Heat fell to 11-53, and they still need five wins to avoid matching the franchise all-time low. But no one could argue that Williams didn't do all he could to will Miami to win No. 12.
It was "Noche Latina" in Miami, and the Heat were one of four teams selected by the NBA to wear Latin-themed jerseys in an effort to appeal to their large Hispanic fan base.
Williams hit a 3-pointer with 1:41 left in the half, giving Miami a 51-42 lead and giving himself 19 points, his best half of the season. But Orlando scored the final eight points before intermission and, considering that most of the Heat cushion was gone and Williams crumpled to the court in pain after rolling an ankle in the final seconds, it appeared Miami was in big trouble.
Not quite.
Even though Orlando's starters combined to shoot 67 percent in the third quarter, the Magic still couldn't pull away. They led 77-74 entering the fourth, and after Bobby Jones hit his third 3-pointer in three attempts with 10:52 left, the game was knotted again at 79.