Check the replay source
For a demo of your own match, open it in your match history and check whether a download is available. Access to a game mode does not guarantee that a particular match has a replay. Prime is required to play Premier, so check the history of the mode you actually played.
If you already have the file
Check the extension. If the replay came in an archive, extract it and open the .dem with playdemo in the CS2 console. This tests the local file separately from access to a replay on the server.
If there is no download button
Check another recent match and confirm where the replay should come from: Valve's match history or a third-party match page. If the source does not provide a recording, the local viewer cannot download it on its behalf.