It's a ghost pressing the bed, but you also said that you stayed up late, so it's nothing serious.
Let's just say that you don't sleep well and don't have enough rest. You think you have had enough rest, but your body instinct says you should have a rest. This leads to the situation that the body overcomes the consciousness, and then the spirit will appear some situations similar to the ghost pressing the bed.
Scientifically speaking, it's simple. You broke your biological clock and your body didn't feel well. Of course, you can't get up.