Carbs and carbs.
Carbs to avoid. Refined sugar.
Nothing wrong with Bread, pasta, rice, potato.(starches, ie complex carbs)
The problem with the weight issue is really how complex carbs hold water. 1 gram of complex carb (stored in the form of glycogen) is stored with 2 grams of water.
Water is what you want. And as a trained runner my own weight will vary the best part of 6 pounds simply down to the way my muscles can store water.
Protein for repair. Important to shift injuries.
As for eating late. I'm just off to scoff my 7th bagel of the day. 229 kcals each but low fat and 49 grms of starch carbohydrate.