Here's some reading material.
https://en.wikipedia.org/wiki/Copyright_protection_for_ficti...
Wow, that's very informative, actually. It's surprisingly complex and leaves a lot up to the judgment and tastes of the legal system.