For ICEs we used Ferguson and Kirkpatrick when I took a graduate level ICE class. It's concise but good. I'm not sure it's exactly what you're looking for as a hobbyist though, it's a lot of thermodynamics and associated math, not a lot on practical implementation of engines.
If you're looking to rebuild engines and such "mechanical engineering" is probably the wrong road to go down. I don't have specific recommendations, but maintenance manuals or trainings for mechanics, millwrights a d metal workers might be closer to what you want.