/* HILFE AI Web v0.3 — app-like, mobile-first, full-screen guest viewer. */
#hilfe-ai-web{position:fixed;inset:0;z-index:100000;color:#fff;background:#070914;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.45;text-align:left;isolation:isolate;overscroll-behavior:contain}
body.admin-bar #hilfe-ai-web{top:32px}
#hilfe-ai-web *,#hilfe-ai-web *::before,#hilfe-ai-web *::after{box-sizing:border-box}
#hilfe-ai-web button{font:inherit;cursor:pointer;appearance:none;-webkit-appearance:none}
#hilfe-ai-web .hilfe-app__frame{position:relative;width:100%;max-width:560px;height:100%;margin:0 auto;overflow:hidden;background:#0b0c17}
#hilfe-ai-web .hilfe-app__header{position:absolute;z-index:10;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;height:90px;padding:calc(16px + env(safe-area-inset-top,0px)) 16px 9px;background:linear-gradient(180deg,#0009,transparent);pointer-events:none}
#hilfe-ai-web .hilfe-app__header button{pointer-events:auto}
#hilfe-ai-web .hilfe-app__top-icon{width:38px;height:38px;padding:6px;background:transparent;border:0;color:#fff;display:flex;align-items:center;justify-content:center}
#hilfe-ai-web .hilfe-app__top-icon svg{width:29px;height:29px}
#hilfe-ai-web .hilfe-app__top-tabs{display:flex;gap:12px;align-items:center}
#hilfe-ai-web .hilfe-app__top-tabs button{border:0;background:transparent;color:#ffffffb5;font-size:12px;font-weight:800;padding:9px 2px;letter-spacing:.03em;position:relative}
#hilfe-ai-web .hilfe-app__top-tabs button.is-active{color:#fff}
#hilfe-ai-web .hilfe-app__top-tabs button.is-active::after{content:"";position:absolute;left:2px;right:2px;bottom:1px;height:3px;border-radius:3px;background:#40cfff}
#hilfe-ai-web .hilfe-app__live-dot{display:inline-block;width:8px;height:8px;background:#f13c65;border-radius:50%;margin-right:5px;box-shadow:0 0 0 3px #f13c6530}
#hilfe-ai-web .hilfe-app__feed{width:100%;height:100%;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#0d101a}
#hilfe-ai-web .hilfe-app__feed::-webkit-scrollbar{display:none}
#hilfe-ai-web .hilfe-app__slide{position:relative;width:100%;height:100%;min-height:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;background:#11121b;touch-action:pan-y}
#hilfe-ai-web .hilfe-app__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#0b0d16}
#hilfe-ai-web .hilfe-app__shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#000c 0%,transparent 40%,transparent 68%,#0007 100%)}
#hilfe-ai-web .hilfe-app__post-meta{position:absolute;z-index:3;bottom:calc(103px + env(safe-area-inset-bottom,0px));left:16px;right:94px;text-shadow:0 2px 6px #000b;overflow-wrap:anywhere}
#hilfe-ai-web .hilfe-app__creator{font-size:18px;font-weight:800;margin-bottom:7px}
#hilfe-ai-web .hilfe-app__post-title{font-size:13px;line-height:1.5;max-height:4.5em;overflow:hidden}
#hilfe-ai-web .hilfe-app__category{display:inline-block;margin-top:8px;background:#ffffff35;padding:5px 10px;border-radius:20px;font-size:11px}
#hilfe-ai-web .hilfe-app__actions{position:absolute;z-index:4;right:12px;bottom:calc(118px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;gap:15px}
#hilfe-ai-web .hilfe-app__avatar{display:block;width:51px;height:51px;border-radius:50%;object-fit:cover;border:2px solid white;background:#252837}
#hilfe-ai-web .hilfe-app__metric,#hilfe-ai-web .hilfe-app__sound{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:56px;color:#fff;background:transparent;border:0;padding:3px 2px;text-shadow:0 2px 5px #0008;font-size:13px;line-height:1.35;gap:3px}
#hilfe-ai-web .hilfe-app__metric strong{font-size:34px;font-weight:700;line-height:1}
#hilfe-ai-web .hilfe-app__metric .hilfe-app__heart{color:#ef3565;text-shadow:0 2px 9px #0009}
#hilfe-ai-web .hilfe-app__metric .hilfe-app__comment{display:grid;place-items:center;background:#fff;color:#4b4b56;width:39px;height:34px;border-radius:50%;font-size:10px;letter-spacing:1px;position:relative;text-shadow:none}
#hilfe-ai-web .hilfe-app__metric .hilfe-app__comment::after{content:"";position:absolute;bottom:-5px;left:7px;border-top:9px solid #fff;border-right:10px solid transparent}
#hilfe-ai-web .hilfe-app__sound{font-size:22px;background:#0007;border-radius:50%;width:44px;height:44px;min-width:44px}
#hilfe-ai-web .hilfe-app__nav{position:absolute;z-index:11;left:0;right:0;bottom:0;min-height:75px;display:flex;align-items:center;justify-content:space-around;gap:4px;padding:9px 9px calc(12px + env(safe-area-inset-bottom,0px));background:#090b24f7;backdrop-filter:blur(12px)}
#hilfe-ai-web .hilfe-app__nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:85px;padding:2px 8px;color:#b3b5c6;border:0;background:transparent;font-size:11px;font-weight:600}
#hilfe-ai-web .hilfe-app__nav button span{font-size:26px;line-height:1.15}
#hilfe-ai-web .hilfe-app__nav button.is-active{color:#4bd4ff}
#hilfe-ai-web .hilfe-app__nav button.hilfe-app__nav-live span{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#23c6ed,#4a40da);display:grid;place-items:center;color:#fff;font-size:20px;box-shadow:0 4px 16px #0005}
#hilfe-ai-web .hilfe-app__message{min-height:100%;display:flex;align-items:center;justify-content:center;padding:90px 30px 110px;color:#dddfea;text-align:center;white-space:pre-line;line-height:1.8;font-size:14px}
#hilfe-ai-web .hilfe-app__directory{min-height:100%;padding:105px 16px 112px;scroll-snap-align:start}
#hilfe-ai-web .hilfe-app__directory h2{font-size:25px;color:#fff;margin:0 0 22px;font-weight:850}
#hilfe-ai-web .hilfe-app__live-card{border-radius:15px;overflow:hidden;background:#202333;border:1px solid #35394c;margin-bottom:16px}
#hilfe-ai-web .hilfe-app__live-image{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#292d3d}
#hilfe-ai-web .hilfe-app__live-body{padding:14px}
#hilfe-ai-web .hilfe-app__live-title{font-size:16px;font-weight:800;margin-bottom:7px}
#hilfe-ai-web .hilfe-app__live-sub{font-size:13px;color:#b9bfcc}
#hilfe-ai-web .hilfe-app__live-badge{display:inline-block;font-size:11px;margin-top:10px;padding:6px 10px;border-radius:10px;color:#fff;background:#44495c}
#hilfe-ai-web .hilfe-app__empty-live{white-space:pre-line;text-align:center;color:#c8ccd7;line-height:1.9;margin-top:90px}
#hilfe-ai-web .hilfe-app__load-more{display:block;margin:20px auto;padding:10px 18px;background:#283048;color:#fff;border:1px solid #53607b;border-radius:12px}
#hilfe-ai-web .hilfe-app__feed-error{padding:18px;text-align:center;color:#ffc7c7}
#hilfe-ai-web .hilfe-app__tap-hint{position:absolute;z-index:5;top:42%;left:15%;right:15%;padding:13px;text-align:center;color:#fff;background:#000b;border-radius:12px}
#hilfe-ai-web button:focus-visible{outline:2px solid #4bd4ff;outline-offset:3px}

/* 0.3.5: first view can minimize to the permanent site launcher. */
body.hilfe-web-enabled #hilfe-sl-intro,body.hilfe-web-enabled .hilfe-sl-launch{display:none!important}
body.hilfe-web-expanded{overflow:hidden!important}
#hilfe-ai-web[hidden],#hilfe-ai-web [hidden],#hilfe-web-launch[hidden]{display:none!important}
#hilfe-ai-web .hilfe-app__frame{transform-origin:top left}
#hilfe-ai-web.hilfe-web-shrinking{background:transparent;pointer-events:none}
#hilfe-web-launch{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:100020;width:64px;height:64px;border:2px solid #d2eaff;border-radius:20px;background:linear-gradient(135deg,#19bfe7,#5947df);color:white;box-shadow:0 5px 22px #0005;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;font-family:system-ui,sans-serif}
#hilfe-web-launch strong{font-size:12px;line-height:1.3}#hilfe-web-launch span{font-size:22px;font-weight:800;line-height:1.2}
#hilfe-ai-web .hilfe-web-minimize{position:absolute;z-index:13;top:5px;right:10px;border:0;border-radius:16px;padding:4px 10px;background:#0e163ddd;color:white;font-size:11px}
#hilfe-ai-web .hilfe-app__header{padding-top:30px}
#hilfe-ai-web .hilfe-web-demo-overlay{position:absolute;inset:90px 0 calc(82px + env(safe-area-inset-bottom,0px));z-index:9;overflow:hidden;background:#0b0915}
#hilfe-ai-web .hilfe-web-demo-content,#hilfe-ai-web .hilfe-sl,#hilfe-ai-web .hilfe-sl__shell,#hilfe-ai-web .hilfe-sl__layout,#hilfe-ai-web .hilfe-sl__stage-panel{height:100%;padding:0;margin:0;width:100%;max-width:none}
#hilfe-ai-web .hilfe-sl__layout{display:block}
#hilfe-ai-web .hilfe-sl__heading,#hilfe-ai-web .hilfe-sl__footerline,#hilfe-ai-web .hilfe-sl__player-note{display:none}
#hilfe-ai-web .hilfe-sl__stage-panel{position:relative}
#hilfe-ai-web .hilfe-sl__phone-frame{width:100%;height:100%;max-width:none;margin:0;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none;padding:0}
#hilfe-ai-web .hilfe-sl__video-wrap{width:100%;height:100%;aspect-ratio:auto;border-radius:0}
#hilfe-ai-web .hilfe-sl__main-video{width:100%;height:100%;object-fit:cover}
#hilfe-ai-web .hilfe-sl__switcher{position:absolute;left:8px;right:8px;bottom:48px;z-index:4;margin:0}
#hilfe-ai-web .hilfe-sl__player-actions{position:absolute;bottom:8px;left:8px;right:80px;z-index:4;margin:0}
#hilfe-ai-web .hilfe-sl__player-actions button{padding:6px;font-size:11px}
#hilfe-ai-web .hilfe-web-gift-toggle{position:absolute;right:12px;bottom:10px;z-index:6;border:1px solid #fff8;background:#241653e8;border-radius:16px;padding:9px;color:white;display:flex;flex-direction:column;align-items:center;font-size:26px;line-height:1.1}
#hilfe-ai-web .hilfe-web-gift-toggle span{font-size:10px;margin-top:3px}
#hilfe-ai-web .hilfe-sl__gifts-panel{position:absolute;inset:auto 0 0;max-height:70%;overflow:auto;overscroll-behavior:contain;z-index:7;background:#181429f5;border:1px solid #807298;border-radius:20px 20px 0 0;padding:12px;box-shadow:0 -8px 35px #0008}
#hilfe-ai-web .hilfe-web-gift-close{display:block;margin:0 0 8px auto;background:#32294c;border:0;color:white;border-radius:12px;padding:6px 12px}
#hilfe-ai-web .hilfe-sl__gift-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
#hilfe-ai-web .hilfe-sl__gift{min-width:0;min-height:64px;padding:7px 3px}
#hilfe-ai-web .hilfe-sl__gift-label{font-size:10px}
@media(max-width:782px){body.admin-bar #hilfe-ai-web{top:46px}}
@media(min-width:700px){#hilfe-ai-web .hilfe-app__frame{box-shadow:0 0 55px #0009;border-left:1px solid #282d40;border-right:1px solid #282d40}}
@media(prefers-reduced-motion:reduce){#hilfe-ai-web *{scroll-behavior:auto!important}}

/* 0.3.6: fit the complete video; reserve separate space for controls. */
#hilfe-ai-web .hilfe-sl__phone-frame{position:absolute;inset:0 0 110px;height:auto;width:100%;background:#080913}
#hilfe-ai-web .hilfe-sl__main-video{object-fit:contain!important}
#hilfe-ai-web .hilfe-sl__switcher{bottom:53px}
#hilfe-ai-web .hilfe-sl__player-actions{bottom:15px}
#hilfe-ai-web .hilfe-web-demo-status{position:absolute;top:4px;left:8px;right:8px;z-index:5;text-align:center;pointer-events:none;background:#080913b3;border-radius:12px;color:white;font-size:10px;padding:3px}
#hilfe-ai-web .hilfe-app__nav button span[data-web-text]{font-size:11px;line-height:1.15}
#hilfe-ai-web .hilfe-web-demo-overlay{touch-action:pan-y}
#hilfe-ai-web .hilfe-sl__gifts-panel{touch-action:pan-y}
@media(max-height:500px){#hilfe-ai-web .hilfe-web-demo-overlay{top:72px;bottom:66px}#hilfe-ai-web .hilfe-sl__phone-frame{bottom:85px}#hilfe-ai-web .hilfe-sl__switcher{bottom:38px}#hilfe-ai-web .hilfe-sl__player-actions{bottom:2px}}

/* 0.3.7: one LIVE control; supplied launcher image; bounded gift effects. */
#hilfe-web-launch{padding:0;overflow:hidden;background:#080913;border:0}
#hilfe-web-launch img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
#hilfe-ai-web .hilfe-app__nav button.hilfe-app__nav-live .hilfe-web-live-icon{width:48px;height:48px;font-size:11px!important;line-height:1.1}
#hilfe-ai-web .hilfe-sl__unblock{display:none!important}
#hilfe-ai-web .hilfe-sl__overlay{inset:0;overflow:hidden!important;contain:paint}
#hilfe-ai-web .hilfe-sl__effect-lottie,#hilfe-ai-web .hilfe-sl__effect-video{inset:8%!important;width:84%!important;height:84%!important;max-width:84%;max-height:84%;overflow:hidden!important}
#hilfe-ai-web .hilfe-sl__effect-lottie svg{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;overflow:hidden!important}
#hilfe-ai-web .hilfe-sl__effect-video{object-fit:contain}

/* 0.3.8: transparent chrome, icons only. */
#hilfe-ai-web .hilfe-app__shade{background:transparent!important}
#hilfe-ai-web .hilfe-sl__video-dim,#hilfe-ai-web .hilfe-sl__switcher{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
#hilfe-ai-web .hilfe-sl__phone-top,#hilfe-ai-web .hilfe-sl__phone-bottom{display:none}
#hilfe-ai-web .hilfe-sl__player-actions [data-mute-label],#hilfe-ai-web .hilfe-sl__player-actions [data-play-label]{display:none}
#hilfe-ai-web .hilfe-app__header,#hilfe-ai-web .hilfe-app__nav{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;border:0!important;pointer-events:none}
#hilfe-ai-web .hilfe-app__header{justify-content:center;padding:12px 56px}
#hilfe-ai-web .hilfe-app__nav button,#hilfe-ai-web .hilfe-app__header button{pointer-events:auto;background:transparent!important;border:0!important;box-shadow:none!important;color:white;filter:drop-shadow(0 1px 3px #000b)}
#hilfe-ai-web .hilfe-app__top-tabs{gap:12px}
#hilfe-ai-web .hilfe-app__top-tabs button{padding:8px;min-width:44px;min-height:44px}
#hilfe-ai-web .hilfe-app__top-tabs button.is-active::after{display:none}
#hilfe-ai-web .hilfe-app__nav button{min-height:48px}
#hilfe-ai-web .hilfe-app__nav button.is-active,#hilfe-ai-web .hilfe-app__top-tabs button.is-active{color:#4bd4ff}
#hilfe-ai-web svg.hilfe-web-icon{display:block;width:28px;height:28px;flex-shrink:0}
#hilfe-ai-web .hilfe-web-minimize{background:transparent!important;border:0!important;box-shadow:none!important;top:8px;right:8px;min-width:44px;min-height:44px;display:grid;place-items:center;filter:drop-shadow(0 1px 3px #000b)}
#hilfe-ai-web .hilfe-web-gift-toggle{background:transparent!important;border:0!important;box-shadow:none!important;padding:8px;min-width:44px;min-height:44px;bottom:calc(90px + env(safe-area-inset-bottom,0px));filter:drop-shadow(0 1px 3px #000b)}
#hilfe-ai-web .hilfe-web-demo-overlay{inset:0!important}
#hilfe-ai-web .hilfe-sl__phone-frame{inset:0!important;height:100%!important}
#hilfe-ai-web .hilfe-sl__player-actions{bottom:calc(90px + env(safe-area-inset-bottom,0px))!important}
#hilfe-ai-web .hilfe-sl__switcher{bottom:calc(140px + env(safe-area-inset-bottom,0px))!important}
#hilfe-ai-web .hilfe-sl__player-actions button,#hilfe-ai-web .hilfe-sl__performer{background:transparent!important;border-color:transparent!important;box-shadow:none!important;filter:drop-shadow(0 1px 3px #000b)}
#hilfe-ai-web .hilfe-web-demo-status{top:86px;background:transparent}
#hilfe-ai-web .hilfe-sl__gifts-panel{bottom:calc(82px + env(safe-area-inset-bottom,0px));max-height:60%}
#hilfe-ai-web video::-webkit-media-controls,#hilfe-ai-web video::-webkit-media-controls-enclosure,#hilfe-ai-web video::-webkit-media-controls-panel,#hilfe-ai-web video::-webkit-media-controls-picture-in-picture-button,#hilfe-ai-web video::-webkit-media-controls-fullscreen-button,#hilfe-ai-web video::-internal-media-controls-overlay-cast-button{display:none!important}

/* 0.3.9: visible DemoLive sound control, sharing the main sound preference. */
#hilfe-ai-web .hilfe-sl__player-actions [data-action="mute"]{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:23px!important;padding:8px!important;color:white!important}
#hilfe-ai-web .hilfe-sl__player-actions [data-action="mute"][aria-pressed="true"]{color:#4bd4ff!important}

/* 0.3.10: explicit sound overlay, independent of native player-action layout. */
#hilfe-ai-web .hilfe-web-demo-sound{position:absolute!important;right:12px!important;bottom:calc(150px + env(safe-area-inset-bottom,0px))!important;z-index:8!important;display:flex!important;visibility:visible!important;opacity:1!important;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:0;border:0;background:transparent!important;color:white;font-size:25px;line-height:1;pointer-events:auto!important;filter:drop-shadow(0 1px 3px #000b)}
#hilfe-ai-web .hilfe-web-demo-sound[aria-pressed="true"]{color:#4bd4ff}
#hilfe-ai-web .hilfe-sl__player-actions [data-action="mute"]{display:none!important}
#hilfe-ai-web .hilfe-web-gifts-open > .hilfe-web-demo-sound{visibility:hidden!important;pointer-events:none!important}

/* 0.3.11: separate site widgets from in-player navigation. */
#hilfe-web-launch{bottom:calc(180px + env(safe-area-inset-bottom,0px))!important;width:60px;height:60px;right:max(16px,env(safe-area-inset-right))}
#hilfe-ai-web .hilfe-app__sound svg,#hilfe-ai-web .hilfe-web-demo-sound svg{display:block;width:26px;height:26px;flex-shrink:0}
#hilfe-ai-web .hilfe-web-demo-sound{bottom:calc(166px + env(safe-area-inset-bottom,0px))!important;right:12px!important}
#hilfe-ai-web .hilfe-web-gift-toggle{bottom:calc(108px + env(safe-area-inset-bottom,0px))!important}
@media(max-width:600px){#hilfe-web-launch{width:56px;height:56px;right:max(14px,env(safe-area-inset-right))}}

/* 0.3.13: keep the collapse chevron above mobile theme headers. */
#hilfe-ai-web{z-index:2147483000!important}
#hilfe-ai-web .hilfe-web-minimize{position:absolute!important;display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;z-index:30!important;top:max(8px,env(safe-area-inset-top,0px))!important;right:max(8px,env(safe-area-inset-right,0px))!important;left:auto!important;bottom:auto!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:none!important;max-height:none!important;padding:10px!important;margin:0!important;place-items:center!important;color:#fff!important;background:transparent!important;border:0!important;transform:none!important;filter:drop-shadow(0 1px 2px #000) drop-shadow(0 0 2px #000)!important}
#hilfe-ai-web .hilfe-web-minimize svg{display:block!important;visibility:visible!important;opacity:1!important;width:28px!important;height:28px!important;overflow:visible!important;stroke:#fff!important;fill:none!important}
#hilfe-ai-web .hilfe-web-minimize:focus-visible{outline:2px solid #4bd4ff!important;outline-offset:-4px}

/* 0.5.4: repeated icon taps must activate controls without double-tap zoom. */
#hilfe-ai-web button,#hilfe-ai-web button *,#hilfe-ai-web [role="button"],#hilfe-ai-web [role="button"] *,#hilfe-web-launch,#hilfe-web-launch *{touch-action:manipulation!important}
