By all the relevant rules, Donald Trump won the election.
The Presidency is not a popularity contest, and this is not the school prom.
Trump won on the relative weighting of EACH of the states, based on their Congressional representation, and the indirect method of each state choosing a panel of electors, who are the actual determining factor in the selection of the President.