/* RANGO LIVE PLAYER 2.1 – zoom, reactions over the picture, fullscreen of the player (player-plus.js). Transforms only. */
.stream-picture { touch-action: pan-y; }
.stream-picture.pz-zoomed { touch-action: none; cursor: grab; }
.stream-picture.pz-zoomed:active { cursor: grabbing; }
.stream-picture > video, .stream-picture > img { transform-origin: 0 0; }
.stream-picture.pz-zoomed > video, .stream-picture.pz-zoomed > img { transform: var(--pz) !important; will-change: transform; animation: none !important; }
.stream-picture.pz-smooth > video, .stream-picture.pz-smooth > img { transition: transform .28s cubic-bezier(.2, .8, .2, 1); }

/* Zoom buttons: bottom left inside the picture, with the player controls, always while zoomed */
.pz-ui { position: absolute; left: 10px; bottom: 10px; z-index: 5; display: flex; gap: 6px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.stream-picture:hover .pz-ui, .stream-picture.pz-zoomed .pz-ui, #livestream:not(.controls-hidden) .pz-ui, .rwx-screen:not(.controls-hidden) .pz-ui, .pfs-on:not(.pfs-idle) .pz-ui { opacity: 1; pointer-events: auto; }
.pz-btn { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(14, 18, 17, .66); color: #F6F1E7; font: 700 17px/1 system-ui, sans-serif; box-shadow: inset 0 0 0 1px rgba(246, 241, 231, .16); -webkit-tap-highlight-color: transparent; }
.pz-btn:disabled { opacity: .4; cursor: default; }
.pz-btn:focus-visible, .pfs-btn:focus-visible, .pfs-pill:focus-visible { outline: 2px solid #F3DFA0; outline-offset: 2px; }
.pz-reset { font-size: 13px; }

/* Overlay: reactions in every view, fullscreen controls only in fullscreen */
.pfs-ui { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.pfs-lane { position: absolute; inset: 0; overflow: hidden; }
.pfs-float { position: absolute; width: 36px; height: 36px; font-size: 30px; line-height: 1; text-align: center; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .45)); will-change: transform, opacity; pointer-events: none; }
.pfs-float svg { width: 100%; height: 100%; }
/* Reaction buttons: right edge, above the fullscreen button; small and translucent so the picture stays in front */
.pfs-react { position: absolute; right: 10px; bottom: 56px; display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
#stream-picture > .pfs-ui .pfs-react { bottom: 12px; }
.rwx-screen #stream-picture > .pfs-ui .pfs-react { bottom: 54px; }
.pfs-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(14, 18, 17, .42); -webkit-backdrop-filter: none; box-shadow: inset 0 0 0 1px rgba(246, 241, 231, .2), 0 6px 16px rgba(0, 0, 0, .3); color: #F6F1E7; font-size: 22px; line-height: 1; opacity: .9; transition: transform .45s cubic-bezier(.3, 1.45, .45, 1), background .2s, opacity .3s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pfs-btn span { display: grid; place-items: center; width: 26px; height: 26px; }
.pfs-btn span svg { width: 100%; height: 100%; }
.pfs-btn:active { transform: scale(.86); transition-duration: .08s; background: rgba(14, 18, 17, .6); }
.pfs-btn.pfs-pop { animation: pfs-pop .45s ease-out; }
@keyframes pfs-pop { 35% { transform: scale(1.2); } }
.pfs-bar { display: none; }
.pfs-pill { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(14, 18, 17, .5); color: #F6F1E7; font: 700 13px/1 system-ui, sans-serif; box-shadow: inset 0 0 0 1px rgba(246, 241, 231, .18); -webkit-tap-highlight-color: transparent; }
.pfs-pill svg { width: 18px !important; height: 18px !important; fill: none !important; stroke: currentColor !important; stroke-width: 2 !important; stroke-linecap: round; }
.pfs-pill b { font-weight: 700; }

/* Fullscreen: native (element) or CSS (iPhone). Portrait and landscape, picture never distorted (object-fit contain + zoom). */
.rwx-screen:fullscreen, #stream-picture:fullscreen { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; background: #000; }
.rwx-screen:-webkit-full-screen, #stream-picture:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: #000; }
.pfs-css { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 2147483000 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; max-width: none !important; max-height: none !important; aspect-ratio: auto !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; background: #000 !important; }
#stream-picture.pfs-css, .pfs-css .stream-picture { height: 100% !important; border-radius: 0 !important; }
.pfs-css .stream-picture > video, .pfs-css .stream-picture > img, #stream-picture.pfs-css > video, #stream-picture.pfs-css > img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
.pfs-on .pfs-bar { display: flex; position: absolute; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); translate: -50% 0; gap: 10px; pointer-events: auto; transition: opacity .4s; }
.pfs-on #stream-picture > .pfs-ui .pfs-react, #stream-picture.pfs-on > .pfs-ui .pfs-react { right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
.pfs-on .pfs-btn { width: 54px; height: 54px; font-size: 26px; }
.pfs-on .pfs-btn span { width: 30px; height: 30px; }
.pfs-on .pz-ui { left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.pfs-on .rwx-chip.rwx-live { top: calc(12px + env(safe-area-inset-top, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); }
.pfs-on .rwx-chip.rwx-viewers, .pfs-on .rwx-full { display: none !important; }
/* Anything around the player that could trap position:fixed is neutralised while the CSS fullscreen is open */
html.pfs-lock .pfs-anc { transform: none !important; filter: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; perspective: none !important; contain: none !important; will-change: auto !important; isolation: auto !important; overflow: visible !important; clip-path: none !important; -webkit-mask: none !important; mask: none !important; }
html.pfs-lock, html.pfs-lock body { overflow: hidden !important; overscroll-behavior: none; }
html.pfs-lock .header, html.pfs-lock .radio-dock, html.pfs-lock .rwx-mini, html.pfs-lock .ai-shortcut, html.pfs-lock .toast, html.pfs-lock .rwx-toast { visibility: hidden !important; }
/* Idle in fullscreen: controls fade, a touch brings them back; the reaction buttons stay faintly visible */
.pfs-idle .pfs-bar, .pfs-idle .pz-ui { opacity: 0 !important; pointer-events: none !important; }
.pfs-idle .pfs-btn { opacity: .45; }
.pfs-idle { cursor: none; }
@media (prefers-reduced-motion: reduce) { .stream-picture.pz-smooth > video, .stream-picture.pz-smooth > img { transition: none; } .pfs-btn.pfs-pop { animation: none; } }

/* QA 09.11.2026: in fullscreen the status chips (LIVE, "schauen zu", hearts) sat under the centred "Ganzes Bild" /
   "Schließen" pills (top 12–52 px) and covered them. They move below the bar while fullscreen is on. */
.pfs-on .stage-overlay > .stage-live, .pfs-on .stage-overlay > .stage-viewers, .pfs-on .stage-overlay > .stage-hearts,
.pfs-on .rwx-chip.rwx-live, .pfs-on .rwx-chip.rwx-viewers { top: calc(62px + env(safe-area-inset-top, 0px)); }
.pfs-on .rwx-chip.rwx-hearts { top: calc(96px + env(safe-area-inset-top, 0px)); }
