Consolidated Statements of Comprehensive Income (Loss) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2016 |
Dec. 31, 2015 |
Dec. 31, 2014 |
|
| Statement of Comprehensive Income [Abstract] | |||
| Net income (loss) | $ 44,713 | $ (151,710) | $ 82,538 |
| Unrealized losses on marketable securities, net of taxes of $0, $0 and $0, respectively | 0 | 0 | (11) |
| Foreign currency translation adjustments | (1,848) | (5,022) | 0 |
| Other comprehensive loss | (1,848) | (5,022) | (11) |
| Comprehensive income (loss) | 42,865 | (156,732) | 82,527 |
| Less—Comprehensive loss attributable to noncontrolling interest | (106) | (1,013) | 0 |
| Comprehensive income (loss) attributable to the Company | $ 42,971 | $ (155,719) | $ 82,527 |