html:not([lang=zh-CN]) .reader-category-buttons a{white-space:normal;height:auto;min-height:28px}html:not([lang=zh-CN]) .desktop-site-header nav{gap:14px;font-size:14px;flex-wrap:wrap}
.site-language-switch.site-language-switch-inline{position:static;inset:auto;transform:none;box-shadow:none;border:0;border-radius:0;background:transparent;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:100%;z-index:auto}.site-language-switch-inline a{white-space:nowrap;padding:4px 6px}.item-inner:has(.site-language-switch-inline){flex-wrap:wrap;gap:8px}
.site-language-switch-inline button{appearance:none;border:0;background:none;color:#777;font:inherit;padding:4px 0;cursor:pointer}.member-language-select-row{cursor:pointer}.site-language-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid #3e3e51;border-radius:16px;background:#20202f;color:#f7f7fb;font:16px/1.5 system-ui;box-shadow:0 12px 50px #0006}.site-language-dialog::backdrop{background:#0009}.site-language-dialog h2{text-align:center;font-size:22px;margin:8px 0 24px;color:#fff}.site-language-options{display:flex;flex-direction:column;gap:4px;max-height:60vh;overflow:auto}.site-language-options label{display:flex;align-items:center;gap:14px;min-height:60px;padding:12px 0;cursor:pointer}.site-language-options input{appearance:none;box-sizing:border-box;width:26px;height:26px;margin:0;border:2px solid #fff;border-radius:50%;flex-shrink:0;background:transparent}.site-language-options input:checked{background:#fff;box-shadow:inset 0 0 0 4px #20202f}.site-language-options input:focus-visible{outline:3px solid #a5bcff;outline-offset:4px}.site-language-actions{display:flex;gap:12px;margin-top:24px}.site-language-actions button{appearance:none;border:0;border-radius:10px;padding:14px 20px;min-height:48px;background:#39394f;color:#fff;font:600 16px/1.4 system-ui;cursor:pointer}.site-language-actions [data-language-confirm]{flex:1;background:#fff;color:#20202f}
.site-language-switch.site-language-switch-inline{font:inherit;line-height:inherit;min-height:0;align-items:center;flex-wrap:nowrap}.site-language-switch-inline button{box-sizing:border-box;position:static;display:inline-flex;align-items:center;justify-content:flex-end;width:auto;height:auto;min-height:0;max-height:48px;margin:0;padding:0;border:0;border-radius:0;line-height:inherit;font:inherit;background:transparent;box-shadow:none}.member-language-select-row{flex-wrap:nowrap!important;min-height:0;gap:12px}.site-language-dialog .site-language-actions{box-sizing:border-box;display:flex;align-items:center;gap:12px;height:48px;min-height:48px;max-height:48px;padding:0;margin:24px 0 0}.site-language-dialog .site-language-actions button{box-sizing:border-box;position:static;display:flex;align-items:center;justify-content:center;flex:0 0 88px;width:88px;min-width:0;height:48px;min-height:48px;max-height:48px;line-height:20px;padding:0 16px;margin:0;font:600 16px/20px system-ui;white-space:nowrap}.site-language-dialog .site-language-actions [data-language-confirm]{flex:1 1 0;width:auto}.site-language-dialog .site-language-options input{padding:0}.site-language-dialog .site-language-options label,.site-language-dialog .site-language-options span{font:16px/24px system-ui}.site-language-dialog .site-language-options label{box-sizing:border-box;height:60px;min-height:60px;max-height:60px;margin:0;padding:12px 0}.site-language-dialog h2{font:600 22px/30px system-ui}
.site-language-switch-inline button{font-size:.14rem;line-height:1.4}.member-language-select-row .item-title{flex-shrink:0}.member-language-select-row .site-language-switch-inline{flex-shrink:0}
.site-language-switch-inline button{line-height:1.2}
.member-language-select-row .item-inner{flex-wrap:nowrap!important;gap:12px}.member-language-select-row .site-language-switch-inline{font:inherit;color:inherit}.member-language-select-row .site-language-switch-inline [data-language-current]{font:inherit;line-height:inherit;white-space:nowrap}
.site-language-dialog{width:min(640px,calc(100vw - 32px));padding:28px;font-size:20px}.site-language-dialog h2{font:600 28px/36px system-ui;margin:4px 0 24px}.site-language-dialog .site-language-options label,.site-language-dialog .site-language-options span{font:20px/28px system-ui}.site-language-dialog .site-language-options label{height:72px;min-height:72px;max-height:72px;padding:16px 0;gap:18px}.site-language-dialog .site-language-options input{width:30px;height:30px}.site-language-dialog .site-language-actions{height:56px;min-height:56px;max-height:56px;gap:16px}.site-language-dialog .site-language-actions button{flex-basis:104px;width:104px;height:56px;min-height:56px;max-height:56px;font:600 20px/28px system-ui;padding:0 18px}.site-language-dialog .site-language-actions [data-language-confirm]{flex:1 1 0;width:auto}@media(min-width:700px){.site-language-dialog{padding:36px}.site-language-dialog h2{font-size:32px;line-height:40px}.site-language-dialog .site-language-options label,.site-language-dialog .site-language-options span{font-size:24px;line-height:32px}.site-language-dialog .site-language-options label{height:80px;min-height:80px;max-height:80px}.site-language-dialog .site-language-options input{width:34px;height:34px}.site-language-dialog .site-language-actions{height:64px;min-height:64px;max-height:64px}.site-language-dialog .site-language-actions button{height:64px;min-height:64px;max-height:64px;font-size:24px;line-height:32px;flex-basis:120px;width:120px}.site-language-dialog .site-language-actions [data-language-confirm]{flex:1 1 0;width:auto}}@media(max-height:600px){.site-language-dialog{padding:20px}.site-language-dialog .site-language-options{max-height:calc(100dvh - 200px)}.site-language-dialog h2{margin-bottom:12px}.site-language-dialog .site-language-actions{margin-top:16px}}

/* Shared footer and top-menu language controls. Native labels stay untranslated. */
.site-language-footer{display:flex;justify-content:flex-end;align-items:center;gap:16px;width:100%;margin-top:24px;padding-top:20px;border-top:1px solid #ffffff12;text-align:right;position:relative}.site-language-footer-only{padding:24px max(20px,5vw) 36px;background:#111;color:#eee}.site-language-picker{position:relative;display:block;color:#eee;font:600 15px/1.5 system-ui,-apple-system,"PingFang SC",sans-serif;text-align:left;max-width:100%}.site-language-picker>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;border:1px solid #777;border-radius:10px;padding:11px 16px;min-height:46px;background:#171717;user-select:none}.site-language-picker>summary::-webkit-details-marker{display:none}.site-language-picker>summary::marker{content:""}.site-language-current{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.site-language-chevron{font-size:20px;line-height:1;margin-left:auto;transition:transform .15s}.site-language-picker[open]>summary .site-language-chevron{transform:rotate(180deg)}.site-language-picker>summary:focus-visible,.site-language-picker .site-language-choices a:focus-visible{outline:2px solid #ff607a;outline-offset:3px}.site-language-choices{box-sizing:border-box;display:flex;flex-direction:column;gap:2px;position:absolute;right:0;bottom:calc(100% + 10px);z-index:80;width:240px;max-width:calc(100vw - 40px);max-height:min(380px,65dvh);overflow-y:auto;padding:8px;border:1px solid #444;border-radius:10px;background:#232323;box-shadow:0 14px 36px #0007}.site-language-picker .site-language-choices a{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:46px;margin:0;padding:10px 14px;border:0;border-radius:6px;color:#c8c8ce;background:transparent;text-decoration:none;font:500 15px/1.5 system-ui,sans-serif}.site-language-picker .site-language-choices a:hover,.site-language-picker .site-language-choices a[aria-current]{background:#353538;color:#fff}.site-language-check{color:#ff607a}.shorts-page .site-language-footer{margin-top:0}.site-language-footer-only .site-language-footer{padding-top:0;border:0}@media(max-width:700px){.site-language-footer{margin-top:20px;padding-top:20px}.site-language-picker>summary{font-size:14px;min-height:44px;padding:10px 14px}.site-language-picker .site-language-choices a{font-size:15px;min-height:48px}.site-language-footer-only{padding:24px 20px calc(30px + env(safe-area-inset-bottom))}.shorts-page .shorts-header > nav{gap:16px}.shorts-page .shorts-header .shorts-brand{max-width:43%}}

/* Direct header language and sign-in actions. */
.site-header-language-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.site-language-picker-header>summary{box-sizing:border-box;width:44px;height:42px;min-height:42px;padding:6px;justify-content:center;border:1px solid #383d46;background:#202328;border-radius:9px}.site-language-picker-header>summary .site-language-current,.site-language-picker-header>summary .site-language-chevron{display:none}.site-language-flag{font:26px/1.2 system-ui,"Apple Color Emoji","Segoe UI Emoji";flex-shrink:0}.site-language-picker-header .site-language-choices{top:calc(100% + 12px);bottom:auto;right:0;background:#191c1f;border-color:#383d46;width:250px}.site-language-option-label{display:flex;align-items:center;gap:14px}.site-header-language-actions .site-header-login{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:42px;padding:6px 14px;border:1px solid #383d46;border-radius:9px;background:#202328;color:#f5f5f7;font:600 16px/1.4 system-ui,sans-serif;text-decoration:none;white-space:nowrap}.site-language-picker-header[open]>summary{outline:2px solid #9bcaff;outline-offset:2px}.site-header-login:focus-visible{outline:2px solid #9bcaff;outline-offset:2px}.shorts-header:has(.site-header-language-actions){overflow:visible}.night-header-actions:has(.site-header-language-actions){overflow:visible}@media(max-width:700px){.shorts-header:has(.site-header-language-actions){flex-wrap:wrap;gap:16px}.shorts-header:has(.site-header-language-actions) .shorts-brand{max-width:none;margin-right:auto}.shorts-header:has(.site-header-language-actions) > nav{order:3;width:100%;justify-content:center}.site-header-language-actions{gap:8px}.site-language-picker-header .site-language-choices{right:0;max-width:calc(100vw - 40px)}}

.site-language-flag svg{display:block;width:28px;height:20px;border-radius:3px;box-shadow:0 0 0 1px #ffffff25}
@media(max-width:700px){.shorts-header:has(.site-header-language-actions){height:auto;min-height:112px;padding-top:12px;padding-bottom:0;row-gap:8px}.shorts-header:has(.site-header-language-actions) > nav{height:44px;flex-shrink:0}.shorts-header:has(.site-header-language-actions) > nav a[aria-current]:after{bottom:-14px}}

.site-language-picker .site-language-choices{background:#191c1f;border-color:#383d46}.site-language-picker .site-language-choices a[aria-current]{background:#203b32;color:#29d3a0}.site-language-check{color:#29d3a0}
/* Keep the shorts channel navigation from styling the language dropdown. */
.shorts-header>.site-header-language-actions{margin-left:auto}
.shorts-header .site-language-choices{height:auto;align-items:stretch;gap:2px}
.shorts-header .site-language-choices a[aria-current]:after{content:none}
@media(max-width:700px){.shorts-header>.site-header-language-actions{margin-left:0}}

/* Preserve each language name while supporting Arabic page direction. */
.site-language-option-label{unicode-bidi:isolate}.site-language-choices a[lang="ar"] .site-language-option-label{direction:rtl}
html[dir="rtl"] .shorts-caption,html[dir="rtl"] .shorts-intro,html[dir="rtl"] .shorts-details{text-align:right}

/* The same wallet entry serves guest coins and the signed-in business wallet. */
.site-header-language-actions .site-coin-wallet,.site-coin-wallet{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:42px;padding:6px 8px;color:#efc653;text-decoration:none;font:700 17px/1.3 system-ui,sans-serif;white-space:nowrap;flex-shrink:0}
.site-coin-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:2px solid currentColor;border-radius:50%;font-size:20px;line-height:1}
.site-coin-wallet:focus-visible{outline:2px solid #9bcaff;outline-offset:2px;border-radius:8px}
@media(max-width:600px){.site-header-language-actions{gap:6px}.site-coin-wallet{gap:7px;padding-inline:4px;font-size:16px}}
@media(max-width:600px){.shorts-immersive .shorts-header:has(.site-header-language-actions){gap:8px}.shorts-immersive .shorts-header .shorts-brand{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1}.shorts-immersive .shorts-header .video-earn-button{padding:6px 9px;font-size:12px;gap:5px;flex-shrink:0}}
