Seamy side

The seamy side of something is the unpleasant or sordid aspect it has.