The math is only part of it. The party which can energize its base the most will prevail, even if in the minority. And Democrats have mastered how to energize their base - mostly with lies.
Dems are MUCH more likely to vote than Republicans, in my opinion. That's why in even conservative areas, Dems dominate big city politics. It's low hanging fruit for them.