Consolidated Statements of Stockholders' Equity - USD ($) shares in Thousands, $ in Thousands | Total | Additional Paid-in Capital | Accumulated Deficit | Accumulated Other Comprehensive Income (Loss) | Class A Non-voting Common StockCommon Stock | Class B Voting Common StockCommon Stock | Class C Voting Common StockCommon Stock |
Balance, beginning of period, shares at Dec. 31, 2017 | | | | | 883,022 | 122,564 | 216,616 |
Balance, beginning of period at Dec. 31, 2017 | | $ 7,634,825 | $ (4,656,667) | $ 14,157 | $ 9 | $ 1 | $ 2 |
Shares issued in connection with exercise of stock options under stock-based compensation plans, shares | | | | | 15,249 | 2,977 | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 47,706 | | | | | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, shares | | | | | 27,286 | 2,174 | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, net | | | | | $ 1 | | |
Conversion of stock to voting/non-voting common stock, shares | | | | | 33,244 | (33,244) | |
Issuance of Class C voting common stock for settlement of restricted stock awards net, Shares | | | | | | | 3,275 |
Stock-based compensation expense | | 289,630 | | | | | |
Stock repurchases from employees for tax withholdings | | (551) | | | | | |
Net loss | $ (739,095) | | (739,095) | | | | |
Other comprehensive income (loss), net of tax | $ (5,950) | | | | | | |
Balance, end of period, shares at Jun. 30, 2018 | 1,273,163 | | | | 958,801 | 94,471 | 219,891 |
Balance, end of period at Jun. 30, 2018 | $ 2,584,068 | 7,971,610 | (5,395,762) | 8,207 | $ 10 | $ 1 | $ 2 |
Balance, beginning of period, shares at Mar. 31, 2018 | | | | | 939,247 | 96,957 | 218,235 |
Balance, beginning of period at Mar. 31, 2018 | | 7,813,325 | (5,042,452) | 20,963 | $ 9 | $ 1 | $ 2 |
Shares issued in connection with exercise of stock options under stock-based compensation plans, shares | | | | | 802 | 95 | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 1,913 | | | | | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, shares | | | | | 15,176 | 995 | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, net | | | | | $ 1 | | |
Conversion of stock to voting/non-voting common stock, shares | | | | | 3,576 | (3,576) | |
Issuance of Class C voting common stock for settlement of restricted stock awards net, Shares | | | | | | | 1,656 |
Stock-based compensation expense | | 156,372 | | | | | |
Net loss | (353,310) | | (353,310) | | | | |
Other comprehensive income (loss), net of tax | $ (12,756) | | | | | | |
Balance, end of period, shares at Jun. 30, 2018 | 1,273,163 | | | | 958,801 | 94,471 | 219,891 |
Balance, end of period at Jun. 30, 2018 | $ 2,584,068 | 7,971,610 | (5,395,762) | 8,207 | $ 10 | $ 1 | $ 2 |
Balance, beginning of period, shares at Dec. 31, 2018 | | | | | 999,304 | 93,846 | 224,611 |
Balance, beginning of period at Dec. 31, 2018 | 2,310,999 | 8,220,417 | (5,912,578) | 3,147 | $ 10 | $ 1 | $ 2 |
Shares issued in connection with exercise of stock options under stock-based compensation plans, shares | | | | | 1,724 | 789 | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 6,974 | | | | | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, shares | | | | | 48,281 | 291 | |
Issuance of Class A non-voting common stock in connection with acquisitions and divestitures | | 6,913 | | | | | |
Conversion of stock to voting/non-voting common stock, shares | | | | | 47,344 | (47,344) | |
Conversion of stock to voting/non-voting common stock | | | | | $ 1 | $ (1) | |
Issuance of Class C voting common stock for settlement of restricted stock awards net, Shares | | | | | | | 3,303 |
Stock-based compensation expense | | 358,130 | | | | | |
Net loss | (565,581) | | (565,581) | | | | |
Other comprehensive income (loss), net of tax | $ (1,045) | | | | | | |
Balance, end of period, shares at Jun. 30, 2019 | 1,372,149 | | | | 1,096,653 | 47,582 | 227,914 |
Balance, end of period at Jun. 30, 2019 | $ 2,116,698 | 8,592,434 | (6,477,851) | 2,102 | $ 11 | | $ 2 |
Balance, beginning of period, shares at Mar. 31, 2019 | | | | | 1,057,135 | 51,510 | 226,287 |
Balance, beginning of period at Mar. 31, 2019 | | 8,388,608 | (6,222,677) | (68) | $ 11 | $ 1 | $ 2 |
Shares issued in connection with exercise of stock options under stock-based compensation plans, shares | | | | | 464 | 139 | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 1,339 | | | | | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, shares | | | | | 34,899 | 88 | |
Issuance of Class A non-voting common stock in connection with acquisitions and divestitures | | 6,913 | | | | | |
Conversion of stock to voting/non-voting common stock, shares | | | | | 4,155 | (4,155) | |
Conversion of stock to voting/non-voting common stock | | | | | | $ (1) | |
Issuance of Class C voting common stock for settlement of restricted stock awards net, Shares | | | | | | | 1,627 |
Stock-based compensation expense | | 195,574 | | | | | |
Net loss | (255,174) | | (255,174) | | | | |
Other comprehensive income (loss), net of tax | $ 2,170 | | | | | | |
Balance, end of period, shares at Jun. 30, 2019 | 1,372,149 | | | | 1,096,653 | 47,582 | 227,914 |
Balance, end of period at Jun. 30, 2019 | $ 2,116,698 | $ 8,592,434 | (6,477,851) | $ 2,102 | $ 11 | | $ 2 |
Cumulative-effect adjustment from accounting changes | | | $ 308 | | | | |