With what you've said so far, it sounds like the working definition of fanfic is "a work that uses at least one recognizable element from a work by another author/creator." Possibly even "a work that uses at least one recognizable element, whose removal would severely impact the story, from a work by another creator."
no subject