Why doesn’t the stuff just falls in towards the center? It just floats there??
Only once you get to 10+ solar masses does radiation (light) pressure begin to become significant, and at 50+ solar masses is when it dominates and the atmosphere is held up by the momentum of light.