Oof...that is a good question. I'm not the best with book recommendations (and I can't thing of docs off the top of my head) but hopefully these might be what you are looking for and helpful:
One Party Country: The Republican Plan for Dominance in the 21st Century
What You Should Know about Politics ... but Don't : A Nonpartisan Guide to the Issues That Matter
Just How Stupid Are We? : Facing the Truth about the American Voter
I think the first one would be best to understand how the Republican party took social and religious issues and turned them in to political issues.
If you gerrymander the vote first, then whatever the state has voted is already skewed falsley, then the electoral college does the rest. Outlined in more detail in this One Party Country: The Republican Plan for Dominance in the 21st Century https://www.amazon.com/dp/0471776726/ref=cm_sw_r_cp_apa_i_KTacDbZNTVMYQ