Just for the record the movie was definitely not the same as the book- Heinlein himself was libertarian, though I wouldn’t say it comes across in the book.
(The book setting is definitely fascist, or at the least authoritarian;)
I'm sorry, I like most of what you said, but I can't in good conscience upvote someone who thinks the movie was better than the book. It's a fun movie, but, come on...
It's Starship Troopers. A sci-fi novel that was later adapted into a movie series. Notably the first movie is a parody of the hyper-militaristic, borderline fascist undertones of American style democracy. The book, on the other hand, was popular in the 1960s.