Netflix’s ‘secret sauce’ tailors summaries, trailers to fit different tastes and even tries to divine viewers’ moods at any given time