Hi,
What does closet modify, fan or science fiction? A closet fan of science fiction or a fan of closet science fiction? It modifies 'fan'. It means the person is secretly a fan of science-fiction.
Best wishes, Clive