Or Blade Runner in 1983: it was set in the year 2017, with biological humanoid "replicants", flying cars, colonies on other worlds, etc.
Star Trek in the late 60s predicted the "Eugenics Wars" in the late 1990s, along with deep-space spacecraft (one of which carried Khan Noonien Singh so far away that it took centuries for his ship to be discovered by the Enterprise on its deep-space mission).
(edit) Overall, I'd say the most accurate sci-fi I've ever seen, as far as predicting things, is the 1986 Arnold Schwarzenegger movie "The Running Man".
Best I can think of was a surprisingly sophisticated 1970 young adult book by John Christopher, which had a mid 21st century Britain run by a Brave New World style low key authoritarian surveillance state divided between overcrowded cities that had very modest use of technology like electric cars and "holovision" and well to do rural areas that have an Amish style renunciation of technology like cars (but really the continued existence of their society depends on tech). Particularly because it lampshaded all the sci fi that was coming out at the time by having a teacher tell the kids "we stopped spending money on the space programme because it was a waste of money"...
(Oryx and Crake is very good too, though the sequels lose a bit because it turns out all the cliches about the world outside their gated community are actually true...)
The Running Man was based on a psuedonymous Stephen King novel, FWIW
Not really. "Inspired by", yes, but I wouldn't say it was "based on" it at all. The plot had almost no similarity. The future predictions were all made by the script writer AFAIK.
It wasn't crazy to think that in another 30 years, a full moon base could be built, if only some economic or military incentives had existed.
Then I think of my parents' generation. They grew up with literal Hitler dominating the news. For them, it was "will civilization last the year?".
These are better days. Better days are shining through.
The latter seems harder to get buy-in for.