Add media queries processing and other fix

Add media queries processing and fix processing keyframes with nested comments