v3.25.1

Share-based compensation - Additional Information (Details) ¥ in Thousands |  | 12 Months Ended |  |  |  |
--- | --- | --- | --- | --- | --- | ---
Dec. 17, 2024 shares | Dec. 31, 2024 CNY (¥) installment shares | Dec. 31, 2023 CNY (¥) shares | Dec. 31, 2022 CNY (¥) shares | Aug. 11, 2022 shares | Jun. 10, 2021 shares | Mar. 31, 2018 shares | Jul. 10, 2017 shares
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Capitalized share-based compensation expense | ¥ |  | ¥ 0 | ¥ 0 | ¥ 0 |  |  |  |
Share-based compensation arrangement by share-based payment award, options granted |  | 0 | 0 | 0 |  |  |  |
Share based compensation arrangement by share based payment award option Forfeitures |  | 0 | 0 | 0 |  |  |  |
Tencent |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Allocated share-based compensation expense | ¥ |  | ¥ 9,898 | ¥ 3,740 | ¥ 0 |  |  |  |
Huya Limited |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Allocated share-based compensation expense | ¥ |  | 54,622 | 74,525 | 156,478 |  |  |  |
Restricted Stock Units (RSUs) |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Allocated share-based compensation expense | ¥ |  | 64,520 | ¥ 78,265 | ¥ 156,478 |  |  |  |
Unrecognized compensation expense | ¥ |  | ¥ 71,109 |  |  |  |  |  |
Weighted average period over which unrecognized compensation expense is expected to be recognized |  | 1 year 18 days |  |  |  |  |  |
Restricted Stock Units One | Vested after 24 months of the grant date |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting period |  | 24 months |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting rate |  | 50.00% |  |  |  |  |  |
Restricted Stock Units One | Vested in two equal installments over the following 24 months |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting period |  | 24 months |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting rate |  | 50.00% |  |  |  |  |  |
Number of equal vesting installments | installment |  | 2 |  |  |  |  |  |
Restricted Stock Units Two |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting period |  | 48 months |  |  |  |  |  |
Number of equal vesting installments | installment |  | 4 |  |  |  |  |  |
Restricted Stock Units Three |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting period |  | 24 months |  |  |  |  |  |
Number of equal vesting installments | installment |  | 2 |  |  |  |  |  |
Restricted Stock Units Four | Vested after 24 months of the grant date |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting period |  | 9 months |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting rate |  | 25.00% |  |  |  |  |  |
Restricted Stock Units Four | Vested in two equal installments over the following 24 months |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting period |  | 36 months |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting rate |  | 75.00% |  |  |  |  |  |
Number of equal vesting installments | installment |  | 3 |  |  |  |  |  |
Employee Stock Option [Member] | Restricted Stock Units (RSUs) |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, other than options granted |  | 2,732,585 | 2,787,407 | 5,084,817 |  |  |  |
Huya 2017 Share Incentive Plan |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Unrecognized compensation expense | ¥ |  | ¥ 0 |  |  |  |  |  |
Huya 2017 Share Incentive Plan | Restricted Stock Units (RSUs) |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, number of shares authorized |  |  |  |  |  |  | 28,394,117 |
Huya 2017 Share Incentive Plan | Incentive Share Options |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, number of shares authorized |  |  |  |  |  |  | 17,647,058 | 17,647,058
Share-based compensation arrangement by share-based payment award, expiration period |  | 10 years |  |  |  |  |  |
Huya 2017 Share Incentive Plan | Option One [Member] | Vested after 24 months of the grant date |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting period |  | 24 months |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting rate |  | 50.00% |  |  |  |  |  |
Huya 2017 Share Incentive Plan | Option One [Member] | Vested in two equal installments over the following 24 months |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting period |  | 24 months |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting rate |  | 50.00% |  |  |  |  |  |
Number of equal vesting installments | installment |  | 2 |  |  |  |  |  |
Huya 2017 Share Incentive Plan | Option Two [Member] |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting period |  | 48 months |  |  |  |  |  |
Number of equal vesting installments | installment |  | 4 |  |  |  |  |  |
Huya 2017 Share Incentive Plan | Option Three [Member] |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, vesting period |  | 24 months |  |  |  |  |  |
Number of equal vesting installments | installment |  | 4 |  |  |  |  |  |
Huya 2021 Share Incentive Plan | Common Class A [Member] |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, number of shares authorized |  |  |  |  | 3,530,111 |  |  |
Huya 2021 Share Incentive Plan | Restricted Stock Units (RSUs) |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, number of shares authorized |  |  |  |  |  | 3,530,111 |  |
Huya 2021 Share Incentive Plan | Incentive Share Options |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, expiration period |  | 10 years |  |  |  |  |  |
Amended and Restated 2021 Share Incentive Plan | Common Class A [Member] |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, number of shares authorized |  |  |  |  | 8,018,111 |  |  |
Huya 2024 Share Incentive Plan |  |  |  |  |  |  |  |
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] |  |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, number of shares authorized | 15,846,000 |  |  |  |  |  |  |
Share-based compensation arrangement by share-based payment award, expiration period | 10 years |  |  |  |  |  |  |

X
- Definition Number of equal vesting installments. + References No definition available. + Details
Name: | huya_NumberOfEqualVestingInstallments
Namespace Prefix: | huya_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of expense for award under share-based payment arrangement. Excludes amount capitalized. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 14.F) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479830/718-10-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (h)(1)(i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_AllocatedShareBasedCompensationExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of cost capitalized for award under share-based payment arrangement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (h)(1)(ii) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost to be recognized for nonvested award under share-based payment arrangement. Excludes share and unit options. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(2)(iii)(01) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
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 718 -SubTopic 10 -Name Accounting Standards Codification -Section 35 -Paragraph 1D -Publisher FASB -URI https://asc.fasb.org/1943274/2147480483/718-10-35-1D Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 35 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480483/718-10-35-3 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a)(3) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1)(i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1)(ii) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1)(iii) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1)(iv) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1)(iv)(01) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1)(iv)(02) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1)(iv)(03) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1)(iv)(04) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(2)(i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(2)(ii) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(2)(iii) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(2)(iii)(01) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(2)(iii)(02) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(2)(iii)(03) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (d)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (d)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 22: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (e)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (e)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 24: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (f)(2)(i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 25: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (f)(2)(ii) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 26: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (f)(2)(iii) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 27: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (f)(2)(iv) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 28: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (f)(2)(v) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares authorized for issuance under share-based payment arrangement. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a)(3) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The number of shares under options that were cancelled during the reporting period as a result of occurrence of a terminating event specified in contractual agreements pertaining to the stock option plan. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1)(iv)(03) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Gross number of share options (or share units) granted during the period. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1)(iv)(01) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of vesting of award under share-based payment arrangement. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period from grant date that an equity-based award expires, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

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

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

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_RestrictedStockUnitsRSUMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=huya_RestrictedStockUnitsOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VestingAxis=us-gaap_ShareBasedCompensationAwardTrancheOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VestingAxis=us-gaap_ShareBasedCompensationAwardTrancheTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=huya_RestrictedStockUnitsTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=huya_RestrictedStockUnitsThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=huya_RestrictedStockUnitsFourMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_OptionIndexedToIssuersEquityTypeAxis=us-gaap_EmployeeStockOptionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=huya_Huya2017ShareIncentivePlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=huya_IncentiveShareOptionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | huya_VestingDescriptionAxis=huya_OptionOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | huya_VestingDescriptionAxis=huya_OptionTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | huya_VestingDescriptionAxis=huya_OptionThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=huya_Huya2021ShareIncentivePlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonClassAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=huya_AmendedAndRestated2021ShareIncentivePlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=huya_Huya2024ShareIncentivePlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |