Quarterly report pursuant to Section 13 or 15(d)

Condensed Consolidated Statements of Cash Flows

v3.5.0.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2016
Sep. 30, 2015
Operating activities    
Net loss $ (252,969) $ (150,252)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities    
Depreciation and amortization 43,480 15,194
Stock-based compensation 103,841 79,473
Amortization of premium on investments, net 339 1,712
Other operating activities 2,884 1,610
Amortization of debt discount 13,587 0
Changes in operating assets and liabilities    
Accounts receivable (8,338) (45,796)
Prepaid content acquisition costs (100,524) (167)
Prepaid expenses and other assets (12,655) (6,397)
Accounts payable, accrued and other current liabilities (4,990) 29,601
Accrued content acquisition costs 8,875 89,423
Accrued compensation 10,370 4,333
Other long-term liabilities 598 1,500
Deferred revenue 12,032 7,689
Reimbursement of cost of leasehold improvements 4,397 1,014
Net cash provided by (used in) operating activities (179,073) 28,937
Investing activities    
Purchases of property and equipment (46,400) (21,336)
Internal-use software costs (22,339) (5,997)
Changes in restricted cash (250) 0
Purchases of investments (12,413) (138,721)
Proceeds from maturities of investments 34,816 179,799
Proceeds from sale of investments 3,507 41,317
Payments related to acquisitions, net of cash acquired (676) (23,028)
Net cash provided by (used in) investing activities (43,755) 32,034
Financing activities    
Borrowings under debt arrangements 90,000 0
Proceeds from employee stock purchase plan 6,395 5,089
Proceeds from exercise of stock options 3,011 3,718
Payment of debt issuance costs (32) 0
Tax payments from net share settlements of restricted stock units (3,126) (2,295)
Net cash provided by financing activities 96,248 6,512
Effect of exchange rate changes on cash and cash equivalents (392) (459)
Net increase (decrease) in cash and cash equivalents (126,972) 67,024
Cash and cash equivalents at beginning of period 334,667 175,957
Cash and cash equivalents at end of period 207,695 242,981
Supplemental disclosures of cash flow information    
Cash paid during the period for interest 3,336 343
Purchases of property and equipment recorded in accounts payable and accrued liabilities $ 8,321 $ 1,328