Consolidated Statements of Comprehensive Loss - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2016
Sep. 30, 2015
Sep. 30, 2016
Sep. 30, 2015
Statement Of Income And Comprehensive Income [Abstract]        
Net loss $ (65,695) $ (98,645) $ (278,409) $ (233,320)
Other comprehensive income (loss)        
Foreign currency translation adjustments, net of tax 58 416 2,190 (17,186)
Net unrealized gain (loss) on available-for-sale securities, net of tax (18) 7 260 148
Other comprehensive income (loss) 40 423 2,450 (17,038)
Comprehensive loss $ (65,655) $ (98,222) $ (275,959) $ (250,358)