/* Volume and rewind bars: green fills from the start of the bar up to the handle (bars run left to right). */
.player-vol-slider{background:linear-gradient(to right,#b4ff63 0 var(--vol-fill,100%),rgba(255,255,255,.2) var(--vol-fill,100%) 100%)!important}
.live-dvr-scrubber input[type=range]{background:linear-gradient(to right,#b4ff63 0 var(--dvr-fill,100%),#ffffff55 var(--dvr-fill,100%) 100%)!important}
/* Replay progress bar: same rule, green from the start up to where you are. */
.replay-seekbar{background:linear-gradient(to right,#b4ff63 0 var(--seek-fill,0%),#ffffff55 var(--seek-fill,0%) 100%)!important}
/* Transparent controls: no black strip under play, volume, live, quality and full screen. A soft shadow keeps icons readable on bright video. */
.custom-player-wrap .player-controls-bar,.replay-player .player-controls-bar{background:transparent!important;border:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
.custom-player-wrap:not(.replay-custom-player) .player-overlay,.replay-player-overlay{background:linear-gradient(to top,rgba(0,0,0,.45) 0%,rgba(0,0,0,.12) 22%,transparent 40%)!important}
.custom-player-wrap .player-controls-bar :is(button,span,strong,small,svg),.replay-player .player-controls-bar :is(button,span,strong,small,svg){filter:drop-shadow(0 1px 2px rgba(0,0,0,.7))}
/* Big play button: exactly in the middle of the video, the triangle optically centred. */
.player-big-play{left:50%!important;right:auto!important;top:50%!important;transform:translate(-50%,-50%)!important}
.player-big-play:hover{transform:translate(-50%,-50%) scale(1.08)!important}
.player-big-play.hidden{transform:translate(-50%,-50%) scale(.8)!important}
.player-big-play svg{margin:0 0 0 4px!important}
@media (max-width:760px){
 .player-big-play{width:60px!important;height:60px!important}
 .player-big-play svg{width:26px!important;height:26px!important}
 /* Keep every control inside the player: quality shows as its icon only, theater mode is desktop-only. */
 #playerQualityLabel,#playerTheaterBtn{display:none!important}
 .custom-player-wrap .player-controls,.custom-player-wrap .player-controls-row{gap:4px!important}
 #playerQualityMenu{width:min(220px,calc(100vw - 24px))!important}
}
/* ---------- Phone full screen inside the platform (landscape layout) ----------
   Upright phone: the player turns sideways (towards the side the phone leans); a phone the system turned just fills. */
html.pf-full,html.pf-full body{overflow:hidden!important;overscroll-behavior:none}
html.pf-full .mnav,html.pf-full .mw-back{display:none!important}
.custom-player-wrap.pf-target{--pf-chat-w:0px;--pf-l:0px;--pf-r:0px;position:fixed!important;top:0!important;left:0!important;right:auto!important;bottom:auto!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;border:0!important;border-radius:0!important;background:#000!important;transform:none;box-shadow:none!important;overflow:hidden!important}
.custom-player-wrap.pf-target video{position:absolute!important;top:0!important;left:var(--pf-l)!important;right:auto!important;margin:0!important;width:calc(100% - var(--pf-chat-w) - var(--pf-l) - var(--pf-r))!important;height:100%!important;max-height:none!important;object-fit:contain!important;border-radius:0!important}
/* Our layout replaces the desktop controls in full screen. */
.custom-player-wrap.pf-target>.player-overlay,.custom-player-wrap.pf-target>.player-big-play{display:none!important}
/* Real landscape: keep everything clear of the camera notch and the home bar. */
@media (orientation:landscape){.custom-player-wrap.pf-target{--pf-l:env(safe-area-inset-left,0px);--pf-r:env(safe-area-inset-right,0px)}}
.pf-ui{position:absolute;top:0;bottom:0;left:var(--pf-l);right:calc(var(--pf-chat-w) + var(--pf-r));z-index:30;display:flex;flex-direction:column;justify-content:space-between;direction:ltr;color:#fff;font-family:inherit;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.pf-ui>*{transition:opacity .22s ease,visibility .22s;opacity:0;visibility:hidden}
.pf-ui.on>*{opacity:1;visibility:visible}
.pf-ui::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to bottom,rgba(0,0,0,.55) 0,rgba(0,0,0,0) 22%,rgba(0,0,0,0) 38%,rgba(0,0,0,.78) 100%);opacity:0;transition:opacity .22s ease;pointer-events:none}
.pf-ui.on::before{opacity:1}
.pf-ui button{-webkit-appearance:none;appearance:none;font-family:inherit;filter:none!important;box-shadow:none!important;min-height:0!important;margin:0!important}
.pf-ic{display:grid;place-items:center;width:42px;height:42px;padding:0!important;border:0!important;border-radius:21px!important;background:transparent!important;color:#fff!important;cursor:pointer}
.pf-ic svg{width:25px;height:25px;filter:drop-shadow(0 1px 3px rgba(0,0,0,.6))}
.pf-ic:active{background:rgba(255,255,255,.12)!important}
.pf-ic.on{color:#b4ff63!important}
.pf-ic:disabled{opacity:.35}
.pf-sp{flex:1}
.pf-top{display:flex;align-items:center;gap:6px;padding:8px 14px 0}
.pf-top .pf-ic svg{width:27px;height:27px}
.pf-mid{position:absolute;top:50%;left:50%;transform:translate(-50%,-62%);display:flex;align-items:center;gap:clamp(24px,7vw,64px)}
.pf-ui .pf-big{width:64px;height:64px;border-radius:32px!important}
.pf-ui .pf-big svg{width:42px;height:42px}
.pf-ui .pf-skip svg{width:36px;height:36px}
.pf-bottom{display:flex;flex-direction:column;gap:6px;padding:0 14px max(10px,env(safe-area-inset-bottom,0px))}
.pf-row{display:flex;align-items:center;gap:12px;min-height:40px}
.pf-viewers{display:inline-flex;align-items:center;gap:6px;color:#b4ff63;font-weight:800;font-size:15px;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.pf-viewers svg{width:19px;height:19px}
.pf-time{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 4px!important;border:0!important;background:transparent!important;color:#fff!important;font-weight:800;font-size:15px;font-variant-numeric:tabular-nums;text-shadow:0 1px 3px rgba(0,0,0,.6);cursor:pointer}
.pf-time i{width:9px;height:9px;border-radius:50%;background:#b4ff63;box-shadow:0 0 0 3px rgba(180,255,99,.18)}
.pf-time.behind i{background:#8b8b96;box-shadow:none}
/* The real rewind bar, full width. */
.pf-dvr .live-dvr-scrubber{position:static!important;display:flex!important;align-items:center;gap:8px;width:100%!important;margin:0!important;padding:0!important;background:transparent!important}
.pf-dvr .live-dvr-scrubber input[type=range]{flex:1;width:100%!important;height:5px!important;margin:6px 0!important}
.pf-dvr .live-dvr-scrubber #liveDvrTime,.pf-dvr .live-dvr-scrubber>span{display:none!important}
.pf-channel{display:flex;align-items:center;gap:12px;margin-top:4px}
.pf-avatar{flex:none;width:50px;height:50px;border-radius:50%;border:2px solid #b4ff63;overflow:hidden;background:#1c1c23}
.pf-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.pf-ident{min-width:0;display:flex;flex-direction:column;gap:3px}
.pf-name{display:flex;align-items:center;gap:2px;font-size:18px;font-weight:800;line-height:1.2;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.pf-name b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pf-title{font-size:14px;line-height:1.35;color:#ececf2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;unicode-bidi:plaintext;text-align:left;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.pf-tags{display:flex;gap:6px;flex-wrap:nowrap;overflow:hidden}
.pf-tags:empty{display:none}
.pf-tags span{flex:none;padding:3px 11px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12.5px;font-weight:600;white-space:nowrap;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.pf-actions{display:flex;align-items:center;gap:9px;margin-top:6px}
.pf-round{flex:none;display:grid;place-items:center;width:42px;height:42px;padding:0!important;border:0!important;border-radius:21px!important;background:rgba(255,255,255,.16)!important;color:#fff!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:pointer}
.pf-round svg{width:21px;height:21px}
.pf-round.on{color:#b4ff63!important}
.pf-round[hidden],.pf-sub[hidden]{display:none!important}
.pf-sub{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 16px!important;border:0!important;border-radius:21px!important;background:#b4ff63!important;color:#14180f!important;font-size:15px!important;font-weight:800!important;cursor:pointer}
.pf-sub svg{width:17px;height:17px}
.pf-sub span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Quality menu inside the landscape layout. */
.pf-ui .player-quality-menu{position:absolute!important;top:54px!important;right:14px!important;left:auto!important;bottom:auto!important;width:min(240px,calc(100% - 28px))!important;max-height:calc(100% - 70px)!important;opacity:1!important;visibility:visible!important;direction:rtl}
html[lang="en"] .pf-ui .player-quality-menu{direction:ltr}
/* Short screens (small phones): a tighter layout. */
@media (max-height:360px),(orientation:portrait) and (max-width:360px){.pf-tags{display:none}.pf-avatar{width:42px;height:42px}.pf-name{font-size:16px}}
/* Chat beside the video: the video and controls move over and get smaller, the chat takes the right side. */
.custom-player-wrap.pf-chat-on{--pf-chat-w:min(320px,36%)}
.custom-player-wrap.pf-chat-on>.wc-chat{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;z-index:40;width:var(--pf-chat-w)!important;height:auto!important;max-height:none!important;margin:0!important;padding-right:var(--pf-r)!important;box-sizing:border-box;display:flex!important;flex-direction:column!important;background:#0e0e12!important;border:0!important;border-left:1px solid rgba(255,255,255,.08)!important;border-radius:0!important;box-shadow:none!important;direction:rtl}
html[lang="en"] .custom-player-wrap.pf-chat-on>.wc-chat{direction:ltr}
.custom-player-wrap.pf-chat-on>.wc-chat .wc-chat-header,.custom-player-wrap.pf-chat-on>.wc-chat .wc-chat-welcome,.custom-player-wrap.pf-chat-on>.wc-chat .mw-reactions,.custom-player-wrap.pf-chat-on>.wc-chat #chatTipBtn,.custom-player-wrap.pf-chat-on>.wc-chat .wc-chat-tools{display:none!important}
.custom-player-wrap.pf-chat-on>.wc-chat #chatlog{flex:1;min-height:0;overflow-y:auto!important;height:auto!important;max-height:none!important;padding:10px 12px!important}
.custom-player-wrap.pf-chat-on>.wc-chat #chatlog .message{font-size:13px!important;line-height:1.55!important;padding:3px 0!important}
.custom-player-wrap.pf-chat-on>.wc-chat .wc-chat-composer{padding:6px 8px max(6px,env(safe-area-inset-bottom,0px))!important;background:transparent!important;border-top:1px solid rgba(255,255,255,.08)!important}
.custom-player-wrap.pf-chat-on>.wc-chat #chatInput{height:38px!important;min-height:38px!important;font-size:16px!important}
.custom-player-wrap.pf-chat-on>.wc-chat #chatForm .actions button{width:38px!important;height:38px!important;min-width:38px;min-height:38px}
.custom-player-wrap.pf-chat-on .pf-channel,.custom-player-wrap.pf-chat-on .pf-tags{max-width:100%}
/* Upright phone: turn the player sideways and keep clear of the notch, which is now on one side. */
@media (orientation:portrait){
 .custom-player-wrap.pf-target{top:50%!important;left:50%!important;width:100vh!important;width:100dvh!important;height:100vw!important;transform:translate(-50%,-50%) rotate(var(--pf-rot,90deg))!important}
 html.pf-rot-l .custom-player-wrap.pf-target{--pf-l:env(safe-area-inset-top,0px);--pf-r:env(safe-area-inset-bottom,0px)}
 html.pf-rot-r .custom-player-wrap.pf-target{--pf-r:env(safe-area-inset-top,0px);--pf-l:env(safe-area-inset-bottom,0px)}
 .custom-player-wrap.pf-target .pf-bottom{padding-bottom:10px}
}
/* Live uptime next to "Live": how long the stream has been on. */
.live-uptime{display:inline-flex;align-items:center;margin-inline-start:6px;padding:2px 7px;border-radius:6px;background:rgba(0,0,0,.45);color:#fff;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.02em;direction:ltr;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.pf-uptime{font-variant-numeric:tabular-nums;direction:ltr}
.pf-time:not(.behind):has(.pf-uptime) [data-f="time"]{display:none}