"宫" is short for "皇宫," which means "imperial palace," "斗" means "power struggle," and "剧" means "drama series." This term is used to describe a popular genre of Chinese media where the power struggles among the imperial harem happens in the imperial palace. There's no historical accuracy as this genre focuses on love triangles and romantic affairs and sex, mostly imagined with no truth in the stories.