/* Mobile reference: a scrolling gift drawer with its wallet fixed at the right. */
.live-top{left:15px;right:13px;gap:8px}.host-pill{min-width:0;flex:none;padding-right:7px}.host-pill b{max-width:100px}.top-members{cursor:pointer}.top-members .avatar{width:28px!important;height:28px!important;margin-left:-7px}.viewer-pill{padding:7px 8px;font-size:12px}.room-exit{background:#292a3544;border-radius:50%;font-size:26px;width:29px;height:30px;line-height:28px;padding:0}.live-tags button{font-size:11px}
#sourceVideo.landscape-source{inset:auto 0 auto;top:var(--live-video-top,23%);width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#111}
.gift-sheet{height:48%;min-height:397px;max-height:68%;padding:0;background:#171722;border-radius:12px 12px 0 0;display:flex;flex-direction:column;box-shadow:none;backdrop-filter:none;overflow:visible}
.gift-sheet-heading{display:flex;align-items:center;min-height:54px;height:54px;flex:none;border-bottom:1px solid #ffffff04;padding:6px 7px 5px 9px;gap:8px}
.gift-category-scroll{min-width:0;flex:1;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}.gift-category-scroll::-webkit-scrollbar{display:none}
.gift-tabs{width:max-content;gap:18px;padding:8px 2px 7px}.gift-tabs button{font-size:14px;font-weight:600;margin:0!important;padding:0;color:#9b9ba5}.gift-tabs button.selected{color:#f7d31d}.gift-tabs button span{font-size:9px;margin-left:3px;color:#888993}
.gift-wallet{display:flex;align-items:center;flex:none;min-width:125px;background:#22232e;border-radius:8px;padding:5px 3px}
.gift-wallet button{background:none;padding:0;color:#fff}.gift-wallet #levelProgress{width:49px;flex:none;font-size:10px;position:relative;align-self:stretch;padding-bottom:8px}.gift-wallet #levelProgress span{background:#5265ab;border-radius:9px;padding:1px 6px}.gift-wallet #levelProgress > i{display:block;position:absolute;left:5px;bottom:2px;width:39px;height:3px;border-radius:5px;background:linear-gradient(90deg,#3a93e9 35%,#373844 35%)}
.gift-wallet #walletButton{display:flex;gap:3px;align-items:center;justify-content:center;font-size:14px;min-width:70px;max-width:110px;border-left:1px solid #ffffff05;padding:6px 3px}.diamond-symbol{color:#ffcb24;text-shadow:0 1px 3px #b56c0e;font-size:18px}.gift-wallet b{font-weight:600;overflow:hidden;text-overflow:ellipsis;max-width:76px;white-space:nowrap}.wallet-arrow{color:#a4a5ad;font-size:22px}
.gift-search{padding:0 10px;margin:4px 0}.gift-search select{background:#242431;border:0;border-radius:6px;padding:5px;font-size:10px;color:#bbb;max-width:83px}
.play-subtabs{display:flex;gap:8px;padding:8px 10px}.play-subtabs button{background:#22232e;border-radius:6px;color:#999aa4;font-size:12px;padding:7px 10px}.play-subtabs button.active{color:#e6e7ef;background:#2a2b39}
.gift-category-banner{display:flex;gap:11px;align-items:center;padding:9px 10px;margin:5px 7px 6px;background:#1d1d28;border-radius:4px;min-height:48px;flex:none}.category-banner-icon{font-size:24px;color:#e8d3ac;width:32px;text-align:center}.gift-category-banner>span:nth-child(2){flex:1;min-width:0}.gift-category-banner b{display:block;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gift-category-banner small{display:block;font-size:10px;color:#85858f;margin-top:3px}.gift-category-banner button{font-size:12px;color:#b4b4be;background:#22222c;padding:10px 12px;border-radius:4px;white-space:nowrap}
.gift-scroller{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-y;padding:0 7px max(15px,env(safe-area-inset-bottom));scroll-behavior:auto}.gift-scroller::-webkit-scrollbar{display:none}
.gift-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:119px;gap:7px 2px;max-height:none;overflow:visible;scrollbar-width:none}
.gift-tile{min-width:0;position:relative;border:1px solid transparent;border-radius:10px;overflow:hidden}.gift-tile.selected{border-color:#5e606b;background:#24242e}.gift-tile .gift-item{display:block;border:0;width:100%;height:100%;border-radius:0;padding:9px 1px 8px;background:none}.gift-item img,.gift-item .placeholder{width:63px;height:63px;margin:auto;display:block}.gift-item .placeholder{text-align:center;line-height:63px}.gift-item b{font-size:12px;line-height:20px;color:#b6b6c0}.gift-item small{font-size:10px;line-height:16px;color:#777783}.gift-item .gift-tag{position:absolute;top:3px;left:2px;max-width:95%;overflow:hidden;text-overflow:ellipsis;background:#575862aa;color:#aaaab3;font-size:9px;padding:1px 3px;border-radius:2px;white-space:nowrap}
.gift-tile.selected .gift-item{height:calc(100% - 26px);padding-top:4px}.gift-tile.selected .gift-item img{height:49px;width:55px}.gift-tile.selected .gift-item b{color:#fff;font-size:10px;line-height:15px}.gift-tile.selected .gift-item small{color:#ddd;font-size:9px;line-height:12px}.tile-buy{display:flex;position:absolute;left:0;right:0;bottom:0;height:26px;background:#ff0051}.tile-buy button{flex:1;font-size:11px;background:none;padding:0}.tile-buy select{width:27px;max-width:40px;border:0;border-right:1px solid #ffffff25;color:#fff;background:#ed0051;font-size:9px;padding:0}.tile-buy select option{background:#25242f}
.gift-scroll-status{font-size:10px;color:#6d6d79;text-align:center;padding:12px 0;margin:0}
.ranking-tabs{display:flex;gap:10px;margin:0 0 10px}.ranking-tabs button{background:#252431;color:#9997a6;border-radius:7px;padding:9px 14px;font-size:12px}.ranking-tabs button.active{color:#f3d393}.rank-number{font-size:18px;font-weight:600;width:25px;text-align:center;color:#9a96a4}.rank-number.top-1{color:#f8d471}.rank-number.top-2{color:#d0d7e5}.rank-number.top-3{color:#d9a584}.rank-contribution{color:#e7ca8d;text-align:right;font-size:12px}.rank-contribution small{display:block;font-size:9px;color:#8c8799;margin-top:4px}
.entry-notice{position:absolute;bottom:68px;left:16px;z-index:7;max-width:77%;padding:5px 11px;border-radius:12px;background:#29223b94;font-size:11px;color:#d5defa;pointer-events:none}.chat-list{bottom:93px}.gift-banner .gift-tray-icon{width:36px;height:36px}.gift-banner>span:nth-child(2){min-width:0}.gift-banner small{white-space:nowrap;max-width:160px;overflow:hidden;text-overflow:ellipsis}
#controlTabs{gap:12px;overflow-x:auto}#controlTabs button{white-space:nowrap}.activity-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.activity-status{border:1px solid #ffffff15;border-radius:10px;background:#24202e;padding:12px;line-height:1.7;color:#c3b5cf;margin:12px 0}.activity-status b{display:block;color:#e6d1ef}.activity-toggle{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #fff1;font-size:12px}.activity-toggle input{accent-color:#ff3066}.activity-toggle small{display:block;color:#8a8496;font-size:10px;margin-top:4px}.activity-toggle.disabled{opacity:.45}
.recharge-backdrop{position:absolute;inset:0;background:#0007;z-index:35}.recharge-dialog{position:absolute;inset:auto 0 0;margin:0;padding:0;border:0;border-radius:13px 13px 0 0;width:100%;max-width:none;max-height:90%;overflow-y:auto;background:#fff;color:#1d1d20;z-index:40;color-scheme:light;box-shadow:0 -15px 60px #0002}
.recharge-header{display:flex;align-items:center;justify-content:space-between;padding:15px 13px 9px;font-size:14px}.recharge-header button{background:none;color:#85858b;padding:0;font-size:23px;line-height:24px;width:25px}.recharge-platforms{display:flex;justify-content:center;gap:12px;margin:2px 0 13px}.recharge-platforms button{background:#f2f3f6;border-radius:7px;padding:7px 24px;color:#777;font-size:12px}.recharge-platforms button.active{color:#f02553;background:#fff0f3}.recharge-balance{font-size:12px;color:#929299;margin:10px 15px}.recharge-offer{display:flex;justify-content:space-between;align-items:center;margin:10px 14px 14px;padding:13px 10px;background:#fff0f4;border-radius:6px;font-size:12px}.recharge-offer span{color:#999;font-size:10px}
.recharge-packs{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:0 14px 20px}.recharge-packs button{border:1px solid #ebebee;background:#fafafa;color:#25252a;border-radius:7px;padding:15px 2px;position:relative}.recharge-packs button.selected{background:#fff9e9;border:1px solid #e7c55d}.recharge-packs strong{display:block;font-size:15px;font-weight:500}.recharge-packs small{display:block;margin-top:5px;font-size:10px;color:#999}
.recharge-submit{display:block;width:calc(100% - 28px);margin:0 14px;background:#ff004f;border-radius:7px;color:#fff;padding:14px 6px;font-size:14px}.recharge-footnote{text-align:center;color:#aaa;font-size:9px;margin:13px 0 22px}.payment-sheet{background:#f9f9fb;padding:12px 20px 24px}.payment-app-icon{width:50px;height:50px;border-radius:12px;background:#111;color:#fff;font-size:37px;line-height:50px;text-align:center;float:left;margin-right:12px;text-shadow:2px 1px #ff285e,-2px -1px #00e7e0}.payment-title{display:block;padding-top:4px;font-size:14px}.payment-subtitle{display:block;font-size:11px;color:#888;margin-top:6px}.payment-amount{display:block;clear:both;padding:26px 0 8px;font-size:28px;font-weight:500}.payment-account{font-size:10px;color:#999}.payment-method{display:flex;gap:10px;align-items:center;background:#fff;margin:10px 0;padding:12px 9px;font-size:13px;border-radius:8px}.payment-check{margin-left:auto;color:#07bc62}.wechat-mark{color:#05bb63;font-size:20px}.alipay-mark{color:#1686e8;font-weight:600;font-size:18px}.payment-alternate{margin-left:auto;background:none;color:#999;font-size:10px}.payment-method.inactive{opacity:.45}.payment-method.active{outline:1px solid #138deb}.payment-confirm{display:block;width:100%;border-radius:7px;padding:13px;font-size:14px;background:#08bc66;color:white;margin-top:18px}.ios .payment-confirm{background:#007aff;border-radius:20px;width:66%;margin:17px auto}.face-id-symbol{text-align:center;font-size:45px;color:#3687d2;margin:25px 0 5px}.ios .payment-subtitle{text-align:center}.ios .payment-title+.payment-subtitle{text-align:left}.payment-demo-label{font-size:9px;color:#bbb;text-align:center;margin:12px 0 0}.payment-success{padding:40px 20px 27px;text-align:center;background:#fafafa}.success-check{width:55px;height:55px;border:2px solid #479bde;border-radius:50%;line-height:50px;color:#479bde;font-size:35px;margin:0 auto 22px}.payment-success h2{font-size:20px;font-weight:500}.payment-success p{font-size:12px;color:#999}.payment-done{background:transparent;color:#1689df;font-size:15px;padding:15px;margin-top:10px}
@media(max-height:750px){.gift-sheet{min-height:340px}.gift-grid{grid-auto-rows:105px}.gift-item img{width:53px;height:53px}.gift-sheet-heading{height:48px;min-height:48px}.gift-category-banner{min-height:44px;padding:7px}.gift-tabs{gap:14px}.gift-tabs button{font-size:13px}.gift-item b{font-size:11px}}
@media(min-width:801px){.host-pill{flex:1;min-width:0}.host-pill>span:nth-child(2){min-width:0;flex:1}.host-pill b{max-width:77px;font-size:11px}.host-pill small{font-size:8px}.host-pill .follow{font-size:10px;padding:5px}.live-top{gap:4px;left:12px;right:10px}.top-members{margin-left:2px}.top-members .avatar{width:24px!important;height:24px!important}.viewer-pill{font-size:10px;padding:6px}.room-exit{width:23px;height:25px;font-size:23px;flex:none}}

.recharge-dialog[open]{animation:payment-sheet-in .2s ease-out}.success-check{animation:payment-success-in .25s ease-out}.face-id-symbol{animation:payment-face-pulse 1.8s ease-in-out infinite}@keyframes payment-sheet-in{from{transform:translateY(35px);opacity:.6}to{transform:none;opacity:1}}@keyframes payment-success-in{from{transform:scale(.7)}to{transform:scale(1)}}@keyframes payment-face-pulse{50%{opacity:.5;transform:scale(.95)}}

.payment-processing{padding:52px 20px 35px;text-align:center;background:#fafafa}.payment-processing h2{font-size:18px;font-weight:500;margin:21px 0 12px}.payment-spinner{width:38px;height:38px;margin:auto;border:3px solid #e2e7eb;border-top-color:#479bde;border-radius:50%;animation:payment-processing-spin .8s linear infinite}@keyframes payment-processing-spin{to{transform:rotate(360deg)}}

.gift-wallet{max-width:64%}.gift-wallet #walletButton{max-width:none;min-width:72px;flex:1;gap:4px}.doucoin-symbol{width:20px;height:20px;object-fit:contain;flex:none}.gift-wallet b{max-width:none;overflow:visible;text-overflow:clip;font-variant-numeric:tabular-nums;letter-spacing:-.25px}.wallet-arrow{flex:none}

.level-badge{display:inline-flex;align-items:center;flex:none;height:16px;vertical-align:middle;line-height:1;background:none!important;padding:0!important;border-radius:0!important}.level-badge-image{display:block;height:16px;width:auto;max-width:47px;object-fit:contain}.chat-line .level-badge{margin-right:1px;align-self:center}.gift-wallet #levelProgress #senderLevel{display:flex;align-items:center;justify-content:center;padding:0;background:none;border-radius:0}.gift-wallet #levelProgress .level-badge-image{height:17px}.member-text>.level-badge{margin-right:5px}.member-text>b{display:inline}.entry-notice{display:flex;align-items:center;gap:5px}.entry-notice-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gift-category-scroll{touch-action:pan-x;cursor:grab;user-select:none;scroll-behavior:auto;outline-offset:2px}.gift-category-scroll.dragging,.gift-category-scroll.dragging button{cursor:grabbing}.gift-category-scroll[data-before="1"][data-after="0"]{mask-image:linear-gradient(to right,transparent,#000 9px)}.gift-category-scroll[data-before="0"][data-after="1"]{mask-image:linear-gradient(to right,#000 calc(100% - 9px),transparent)}.gift-category-scroll[data-before="1"][data-after="1"]{mask-image:linear-gradient(to right,transparent,#000 9px,#000 calc(100% - 9px),transparent)}

.gift-return-backdrop{position:absolute;inset:0;z-index:14;display:none;width:100%;height:100%;border:0;border-radius:inherit;padding:0;background:transparent;touch-action:manipulation}
.gift-sheet:not([hidden])~.gift-return-backdrop{display:block}

.top-members{background:transparent;isolation:isolate}.top-members .avatar{border:0!important;box-shadow:none!important;background:transparent!important}.top-members .avatar:nth-child(1){z-index:3}.top-members .avatar:nth-child(2){z-index:2}.top-members .avatar:nth-child(3){z-index:1}.top-members .frame-image{display:none}#viewersButton,#roomExit{background:transparent}
