Income Taxes - Components of Income and Provision for (Benefit from) Income Taxes (Details) - USD ($) $ in Thousands |
3 Months Ended | 12 Months Ended | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Dec. 31, 2019 |
Sep. 30, 2019 |
Jun. 30, 2019 |
Mar. 31, 2019 |
Dec. 31, 2018 |
Sep. 30, 2018 |
Jun. 30, 2018 |
Mar. 31, 2018 |
Dec. 31, 2019 |
Dec. 31, 2018 |
Dec. 31, 2017 |
|
| Components of income (loss) before provision for (benefit from) income taxes | |||||||||||
| United States | $ 1,263,379 | $ 812,086 | $ 330,340 | ||||||||
| Foreign | 131,540 | (211,845) | (346,029) | ||||||||
| Income (loss) before provision for (benefit from) income taxes | $ 676,950 | $ 70,666 | $ 327,138 | $ 320,165 | $ 32,497 | $ 136,511 | $ 216,591 | $ 214,642 | 1,394,919 | 600,241 | (15,689) |
| Current taxes: | |||||||||||
| Federal | 0 | 772 | 11,559 | ||||||||
| Foreign | 37,194 | 15,600 | 3,576 | ||||||||
| State | 13,528 | 9,018 | 5,025 | ||||||||
| Total current taxes | 50,722 | 25,390 | 20,160 | ||||||||
| Deferred taxes: | |||||||||||
| Federal | 184,312 | (1,105,053) | (113,805) | ||||||||
| Foreign | (24,797) | (364,919) | (3,222) | ||||||||
| State | 7,872 | (42,280) | (10,457) | ||||||||
| Total deferred taxes | 167,387 | (1,512,252) | (127,484) | ||||||||
| Provision for (benefit from) income taxes | $ 93,716 | $ 13,148 | $ 59,711 | $ 51,534 | $ (1,492,599) | $ 8,055 | $ 10,341 | $ (12,659) | $ 218,109 | $ (1,486,862) | $ (107,324) |