v3.25.1

Short-term deposits and long-term deposits (Details) ¥ in Thousands, $ in Thousands | Dec. 31, 2024 CNY (¥) | Dec. 31, 2024 USD ($) | Dec. 31, 2023 CNY (¥) | Dec. 31, 2023 USD ($)
--- | --- | --- | --- | ---
Short-term deposits and long-term deposits |  |  |  |
Short-term deposits | ¥ 4,075,048 | $ 558,279 | ¥ 6,851,160 |
Long-term deposits | 1,470,000 | 201,389 | 2,553,293 |
RMB |  |  |  |
Short-term deposits and long-term deposits |  |  |  |
Short-term deposits | 1,135,000 |  | 1,185,000 |
Long-term deposits | 1,470,000 | 1,470,000 | 2,100,000 | $ 2,100,000
US$ |  |  |  |
Short-term deposits and long-term deposits |  |  |  |
Short-term deposits | ¥ 2,940,048 | $ 408,999 | 5,666,160 | 800,000
Long-term deposits |  |  | ¥ 453,293 | $ 64,000

X
- Definition This element represents the line items of short-term deposits. + References No definition available. + Details
Name: | huya_ShortTermDepositsLineItems
Namespace Prefix: | huya_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Carrying value of amounts transferred to third parties for security purposes that are expected to be returned or applied towards payment within one year or during the operating cycle, if shorter. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(8)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DepositsAssetsCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Carrying value of amounts transferred to third parties for security purposes that are expected to be returned or applied towards payment after one year or beyond the operating cycle, if longer. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(17)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DepositsAssetsNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | srt_CurrencyAxis=currency_CNY
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CurrencyAxis=currency_USD
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |