What happened in the 2016 elections and to a lesser extent in the 2000 election is that the loser in both cases Democrats won California and New York by very large margins. In New York her margin was 58.5% to 37.5% and in California it was even larger 61.6% to 33.1% . In those two states alone Clinton received almost 5 million more votes than Trump. On the other while the two states gave Clinton 84 electoral votes, Florida, North Carolina, Pennsylvania, Ohio, Wisconsin,North Carolina , gaveTrump 92 electoral votes and if you count his victory in all of those states combined they gave him only 930,000 more votes than Clinton. In other words if 1,000,000 people from California or New York had lived in different states the outcome of the election would have been very different.