Improved CSS parsing.
Handles nested @media rules.