Spicy layered biryani

It is indeed. I think you have used plain basmati rice. I use easy cook basmati rice - there is no risk of them becoming “halwa”!