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 Stock | Class A Non-voting Common StockCommon Stock | Class B Common Stock | Class B Common StockCommon Stock | Class C Common Stock | Class C Common StockCommon Stock |
Balance, beginning of period, shares at Dec. 31, 2018 | | | | | | 999,304 | | 93,846 | | 224,611 |
Balance, beginning of period at Dec. 31, 2018 | | $ 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) | | $ (440,465) | | $ (22,440) | | $ (102,676) | |
Other comprehensive income (loss), net of tax | $ (1,045) | | | (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) | | (200,295) | | (9,089) | | (45,790) | |
Other comprehensive income (loss), net of tax | $ 2,170 | | | 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 | | | | | | | |
Balance, beginning of period, shares at Dec. 31, 2019 | | | | | | 1,160,127 | | 24,522 | | 231,147 |
Balance, beginning of period at Dec. 31, 2019 | 2,259,913 | 9,205,256 | (6,945,930) | 573 | | $ 12 | | | | $ 2 |
Shares issued in connection with exercise of stock options under stock-based compensation plans, shares | | | | | | 2,744 | | 393 | | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 23,608 | | | | | | | | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, shares | | | | | | 41,386 | | | | |
Conversion of stock to voting/non-voting common stock, shares | | | | | | 700 | | (700) | | |
Issuance of Class C voting common stock for settlement of restricted stock awards net, Shares | | | | | | | | | | 3,301 |
Stock-based compensation expense | | 358,404 | | | | | | | | |
Equity component of convertible senior notes, net | | 286,589 | | | | | | | | |
Purchase of Capped Calls | | (100,000) | | | | | | | | |
Net loss | (631,887) | | (631,887) | | (515,923) | | (10,692) | | (105,271) | |
Other comprehensive income (loss), net of tax | $ (1,182) | | | (1,182) | | | | | | |
Balance, end of period, shares at Jun. 30, 2020 | 1,463,620 | | | | | 1,204,957 | | 24,215 | | 234,448 |
Balance, end of period at Jun. 30, 2020 | $ 2,194,665 | 9,773,857 | (7,578,597) | (609) | | $ 12 | | | | $ 2 |
Balance, beginning of period, shares at Mar. 31, 2020 | | | | | | 1,182,527 | | 24,279 | | 232,783 |
Balance, beginning of period at Mar. 31, 2020 | | 9,380,435 | (7,252,646) | (2,896) | | $ 12 | | | | $ 2 |
Shares issued in connection with exercise of stock options under stock-based compensation plans, shares | | | | | | 2,348 | | 391 | | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 20,478 | | | | | | | | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, shares | | | | | | 19,627 | | | | |
Conversion of stock to voting/non-voting common stock, shares | | | | | | 455 | | (455) | | |
Issuance of Class C voting common stock for settlement of restricted stock awards net, Shares | | | | | | | | | | 1,665 |
Stock-based compensation expense | | 186,355 | | | | | | | | |
Equity component of convertible senior notes, net | | 286,589 | | | | | | | | |
Purchase of Capped Calls | | (100,000) | | | | | | | | |
Net loss | (325,951) | | (325,951) | | $ (266,759) | | $ (5,462) | | $ (53,730) | |
Other comprehensive income (loss), net of tax | $ 2,287 | | | 2,287 | | | | | | |
Balance, end of period, shares at Jun. 30, 2020 | 1,463,620 | | | | | 1,204,957 | | 24,215 | | 234,448 |
Balance, end of period at Jun. 30, 2020 | $ 2,194,665 | $ 9,773,857 | (7,578,597) | $ (609) | | $ 12 | | | | $ 2 |
Cumulative-effect adjustment from accounting changes | | | $ (780) | | | | | | | |