Consolidated Statements of Stockholders' Equity - USD ($) shares in Thousands, $ in Thousands | Total | Additional Paid-in Capital | Accumulated Deficit | Accumulated DeficitCumulative Effect, Period of Adoption, Adjustment | 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 | Common Class B Stock Conversion from Class C Voting 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) | $ 308 | $ 3,147 | | $ 10 | | $ 1 | | $ 2 | |
Shares issued in connection with exercise of stock options under stock-based compensation plans, shares | | | | | | | 3,024 | | 1,162 | | | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 14,767 | | | | | | | | | | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, shares | | | | | | | 67,336 | | 300 | | | |
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 | | | | | | | 63,251 | | (63,251) | | | |
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 | | | | | | | | | | | 4,953 | |
Stock-based compensation expense | | 519,358 | | | | | | | | | | |
Equity component of convertible senior notes, net | | 377,432 | | | | | | | | | | |
Purchase of Capped Calls | | (102,086) | | | | | | | | | | |
Net loss | $ (792,956) | | (792,956) | | | $ (622,641) | | $ (28,223) | | $ (142,092) | | |
Other comprehensive income (loss), net of tax | $ (10,320) | | | | (10,320) | | | | | | | |
Balance, end of period, shares at Sep. 30, 2019 | 1,394,536 | | | | | | 1,132,915 | | 32,057 | | 229,564 | |
Balance, end of period at Sep. 30, 2019 | $ 2,324,415 | 9,036,801 | (6,705,226) | | (7,173) | | $ 11 | | | | $ 2 | |
Balance, beginning of period, shares at Jun. 30, 2019 | | | | | | | 1,096,653 | | 47,582 | | 227,914 | |
Balance, beginning of period at Jun. 30, 2019 | | 8,592,434 | (6,477,851) | | 2,102 | | $ 11 | | | | $ 2 | |
Shares issued in connection with exercise of stock options under stock-based compensation plans, shares | | | | | | | 1,300 | | 373 | | | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 7,793 | | | | | | | | | | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, shares | | | | | | | 19,055 | | 9 | | | |
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 | | | | | | | 15,907 | | (15,907) | | | |
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,650 | |
Stock-based compensation expense | | 161,228 | | | | | | | | | | |
Equity component of convertible senior notes, net | | 377,432 | | | | | | | | | | |
Purchase of Capped Calls | | (102,086) | | | | | | | | | | |
Net loss | (227,375) | | (227,375) | | | (181,409) | | (6,308) | | (39,658) | | |
Other comprehensive income (loss), net of tax | $ (9,275) | | | | (9,275) | | | | | | | |
Balance, end of period, shares at Sep. 30, 2019 | 1,394,536 | | | | | | 1,132,915 | | 32,057 | | 229,564 | |
Balance, end of period at Sep. 30, 2019 | $ 2,324,415 | 9,036,801 | (6,705,226) | | (7,173) | | $ 11 | | | | $ 2 | |
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) | $ (779) | 573 | | $ 12 | | | | $ 2 | |
Shares issued in connection with exercise of stock options under stock-based compensation plans, shares | | | | | | | 3,036 | | 521 | | | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 26,042 | | | | | | | | | | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, shares | | | | | | | 60,446 | | | | | |
Conversion of stock to voting/non-voting common stock, shares | | | | | | | 5,837 | | (5,837) | | (4,437) | 4,437 |
Issuance of Class C voting common stock for settlement of restricted stock awards net, Shares | | | | | | | | | | | 4,917 | |
Stock-based compensation expense | | 550,820 | | | | | | | | | | |
Equity component of convertible senior notes, net | | 286,589 | | | | | | | | | | |
Purchase of Capped Calls | | (100,000) | | | | | | | | | | |
Net loss | (831,740) | | (831,740) | | | (680,951) | | (13,867) | | (136,922) | | |
Other comprehensive income (loss), net of tax | $ 7,926 | | | | 7,926 | | | | | | | |
Balance, end of period, shares at Sep. 30, 2020 | 1,484,716 | | | | | | 1,229,446 | | 23,643 | | 231,627 | |
Balance, end of period at Sep. 30, 2020 | $ 2,198,771 | 9,968,707 | (7,778,449) | | 8,499 | | $ 12 | | | | $ 2 | |
Balance, beginning of period, shares at Jun. 30, 2020 | | | | | | | 1,204,957 | | 24,215 | | 234,448 | |
Balance, beginning of period at Jun. 30, 2020 | | 9,773,857 | (7,578,597) | | (609) | | $ 12 | | | | $ 2 | |
Shares issued in connection with exercise of stock options under stock-based compensation plans, shares | | | | | | | 292 | | 128 | | | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 2,434 | | | | | | | | | | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, shares | | | | | | | 19,060 | | | | | |
Conversion of stock to voting/non-voting common stock, shares | | | | | | | 5,137 | | (5,137) | | (4,437) | 4,437 |
Issuance of Class C voting common stock for settlement of restricted stock awards net, Shares | | | | | | | | | | | 1,616 | |
Stock-based compensation expense | | 192,416 | | | | | | | | | | |
Net loss | (199,853) | | (199,852) | | | $ (164,499) | | $ (3,234) | | $ (32,120) | | |
Other comprehensive income (loss), net of tax | $ 9,108 | | | | 9,108 | | | | | | | |
Balance, end of period, shares at Sep. 30, 2020 | 1,484,716 | | | | | | 1,229,446 | | 23,643 | | 231,627 | |
Balance, end of period at Sep. 30, 2020 | $ 2,198,771 | $ 9,968,707 | $ (7,778,449) | | $ 8,499 | | $ 12 | | | | $ 2 | |