Suppose there are 540 electoral votes. Divide the states into two groups, one having 271 votes, the other 269. Suppose in the "271" states, only 1 person in each state votes Democrat, 0 Republican. Suppose in the "269" states, 0 vote Democrat, millions Republican. Then by the electoral college majority, the democrats win but the Republicans have a million times more votes than the Democrats.