v3.25.1

Related party transactions - Schedule of Significant Related Party Transactions (Parenthetical) (Details) ¥ in Thousands, $ in Thousands | 1 Months Ended | 12 Months Ended
--- | --- | ---
Feb. 29, 2024 CNY (¥) | Dec. 31, 2023 CNY (¥) | Apr. 30, 2021 CNY (¥) | Dec. 31, 2024 CNY (¥) | Dec. 31, 2024 USD ($) | Dec. 31, 2023 CNY (¥) | Dec. 31, 2022 CNY (¥) | [1]
Related party transactions |  |  |  |  |  |  |
Aggregate cash consideration |  | ¥ 574,826 |  |  |  |  |
Consideration paid | ¥ 28,770 | ¥ 546,084 |  | ¥ 28,770 | $ 3,941 | ¥ 546,084 | ¥ 0
Tencent Holdings Limited |  |  |  |  |  |  |
Related party transactions |  |  |  |  |  |  |
Aggregate cash consideration |  |  |  |  |  | ¥ 574,826 |
Parent Company |  |  |  |  |  |  |
Related party transactions |  |  |  |  |  |  |
Related party transaction, purchases from related party |  |  | ¥ 2,013,000 |  |  |  |
[1] | HUYA Inc. consolidated 2022 statement of comprehensive income has been retrospectively adjusted due to the business combination under common control as discussed in Note 2(d).

X
- Definition The amount of acquisition under common control, classified as related party transaction. + References No definition available. + Details
Name: | huya_AcquisitionUnderCommonControl
Namespace Prefix: | huya_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479581/805-30-50-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-13 + Details
Name: | us-gaap_PaymentsToAcquireBusinessesGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 310 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 13 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481990/310-10-45-13 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07(2)(c)(2)(i)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07(2)(c)(2)(ii)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07(2)(g)(3)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-1 + Details
Name: | us-gaap_RelatedPartyTransactionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Purchases during the period (excluding transactions that are eliminated in consolidated or combined financial statements) with related party. + References No definition available. + Details
Name: | us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | srt_CounterpartyNameAxis=huya_TencentHoldingsLimitedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidatedEntitiesAxis=srt_ParentCompanyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |