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,511 | 3,201 | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 47,806 | | | | | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, shares | | | | | 42,538 | 2,891 | |
Conversion of stock to voting/non-voting common stock, shares | | | | | 34,995 | (34,995) | |
Issuance of Class C voting common stock for settlement of restricted stock awards net, Shares | | | | | | | 4,875 |
Stock-based compensation expense | | 416,439 | | | | | |
Stock repurchases from employees for tax withholdings | | (551) | | | | | |
Net loss | $ (1,064,243) | | (1,064,243) | | | | |
Other comprehensive income (loss), net of tax | $ (7,687) | | | (7,687) | | | |
Balance, end of period, shares at Sep. 30, 2018 | 1,291,218 | | | | 976,066 | 93,661 | 221,491 |
Balance, end of period at Sep. 30, 2018 | $ 2,384,092 | 8,098,519 | (5,720,910) | 6,470 | $ 9 | $ 1 | $ 2 |
Balance, beginning of period, shares at Jun. 30, 2018 | | | | | 958,801 | 94,471 | 219,891 |
Balance, beginning of period at Jun. 30, 2018 | | 7,971,610 | (5,395,762) | 8,207 | $ 10 | $ 1 | $ 2 |
Shares issued in connection with exercise of stock options under stock-based compensation plans, shares | | | | | 262 | 224 | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 100 | | | | | |
Issuance of voting/non-voting common stock for vesting of restricted stock units and restricted stock awards, shares | | | | | 15,252 | 717 | |
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 | | | | | 1,751 | (1,751) | |
Issuance of Class C voting common stock for settlement of restricted stock awards net, Shares | | | | | | | 1,600 |
Stock-based compensation expense | | 126,809 | | | | | |
Net loss | (325,148) | | (325,148) | | | | |
Other comprehensive income (loss), net of tax | $ (1,737) | | | (1,737) | | | |
Balance, end of period, shares at Sep. 30, 2018 | 1,291,218 | | | | 976,066 | 93,661 | 221,491 |
Balance, end of period at Sep. 30, 2018 | $ 2,384,092 | 8,098,519 | (5,720,910) | 6,470 | $ 9 | $ 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 | | | | | 3,024 | 1,162 | |
Shares issued in connection with exercise of stock options under stock-based compensation plans | | 14,768 | | | | | |
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 | $ (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) | | | | |
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,794 | | | | | |
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) | | | $ 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) | | | | |
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 |
Cumulative-effect adjustment from accounting changes | | | $ 308 | | | | |