The grammar structure まま expresses that something remains in a certain state without changing. It conveys the idea of "as it is," "while still," or "left in the state of." It is used when an action occurs or a situation continues while a particular condition is maintained.
When attached to a verb in the た-form, まま indicates that the result of that action persists while something else happens or continues.
Here, the state created by the action (wearing shoes, turning on the TV) is maintained without being undone.
When attached to the negative form of a verb, まま indicates that something remains in the state of not having been done.
When used with a noun, まま describes remaining in the state associated with that noun.
い-adjectives attach directly to まま, while な-adjectives use な + まま.
まま often carries a nuance that the unchanged state is unintentional, negligent, or noteworthy. It frequently describes situations where something should have been changed but wasn't – like leaving a door open or going out without eating. However, it can also be neutral, simply describing an unchanged condition.
The particle で sometimes follows まま (making ままで) to emphasize the manner in which something is done, though まま alone is more common.