@font-face{font-family:IRANYekanX;src:url('../fonts/iranyekanwebregular.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:IRANYekanX;src:url('../fonts/iranyekanwebmedium.woff') format('woff');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:IRANYekanX;src:url('../fonts/iranyekanwebbold.woff') format('woff');font-weight:700;font-style:normal;font-display:swap}
:root{--green:var(--accent);--sofiya-player-font:"IRANYekanX",Tahoma,Arial,sans-serif;--sofiya-player-accent:#ffffff;--sofiya-player-accent-soft:rgba(255,255,255,.12);--sofiya-player-panel:rgba(12,15,21,.82);--sofiya-player-panel-strong:rgba(8,10,15,.95);--sofiya-player-line:rgba(255,255,255,.1);--sofiya-player-shadow:0 24px 64px rgba(0,0,0,.4)}
body.sofiya-stream-body{margin:0;background:#000;color:#fff;font-family:var(--sofiya-player-font)}
.sofiya-stream-standalone{position:relative;min-height:100vh;min-height:calc(var(--vh,1vh)*100);overflow:hidden;background:#000;font-family:var(--sofiya-player-font);--sofiya-sub-size:100%;--sofiya-sub-color:#fff;--sofiya-sub-bg:rgba(0,0,0,.65)}
.sofiya-stream-standalone,.sofiya-stream-standalone *{box-sizing:border-box}
.sofiya-stream-standalone__inner,.sofiya-stream-player-shell,.sofiya-stream-player-shell__video{position:relative;min-height:100vh;height:100vh}
.sofiya-stream-player-shell__video .video-js{width:100%;height:100%;background:#000;font-family:var(--sofiya-player-font)}
.sofiya-stream-player-shell__video .video-js video{object-fit:contain}
.sofiya-stream-player-shell__video .video-js .vjs-tech{object-fit:contain}
.sofiya-stream-player-shell__video .vjs-poster{background-position:center center;background-repeat:no-repeat;background-size:cover}
.sofiya-stream-player-shell__video .vjs-poster img{display:none!important}
.sofiya-stream-player-shell__video:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at center,rgba(0,0,0,0) 35%,rgba(0,0,0,.2) 68%,rgba(0,0,0,.45) 100%),linear-gradient(180deg,rgba(0,0,0,.68),rgba(0,0,0,0) 20%,rgba(0,0,0,0) 72%,rgba(0,0,0,.85));z-index:1}
.sofiya-stream-player-ui{position:absolute;inset:0;z-index:4;pointer-events:none}
.sofiya-stream-header{position:absolute;top:0;left:0;right:0;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 0;pointer-events:none}
.sofiya-stream-header__titles{display:grid;gap:6px;text-align:right;pointer-events:auto;max-width:min(66vw,820px)}
.sofiya-stream-header__titles strong{font-size:1.26rem;font-weight:700;line-height:1.45;text-shadow:0 10px 34px rgba(0,0,0,.6)}
.sofiya-stream-header__titles span{font-size:.94rem;color:rgba(255,255,255,.76);line-height:1.7}
.sofiya-stream-header__back{pointer-events:auto;display: flex;align-items:center;flex-direction: row-reverse;gap:10px;padding:12px 16px;border-radius:999px;color:#fff;text-decoration:none;background: rgb(254 254 254 / 11%);border: 0;box-shadow:var(--sofiya-player-shadow);font-size:.95rem;transition:transform .2s ease,background .2s ease,border-color .2s ease}
.sofiya-stream-header__back:hover{background:rgba(18,21,30,.72);border-color:rgba(255,255,255,.22)}
.sofiya-stream-header__back svg{width:18px;height:18px;}
.sofiya-stream-standalone.is-ui-hidden .sofiya-stream-header{opacity:0;transform:translateY(-14px);transition:opacity .2s ease,transform .2s ease}
.sofiya-stream-popovers{position:absolute;right:24px;bottom:110px;z-index:7;display:grid;gap:10px}
.sofiya-stream-menu{position:absolute;right:0;bottom:0;z-index:30}
.sofiya-stream-menu__list{position:absolute;right:0;bottom:0;min-width:260px;max-width:min(86vw,320px);max-height:min(50vh,380px);overflow:auto;padding:10px;border-radius:22px;background:var(--sofiya-player-panel);border:1px solid var(--sofiya-player-line);box-shadow:var(--sofiya-player-shadow);display:grid;gap:8px}
.sofiya-stream-menu__item{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:13px 15px;border-radius:16px;text-align:right;color:#fff;text-decoration:none;background:rgba(255,255,255,.03);border:1px solid transparent;cursor:pointer;font-family:var(--sofiya-player-font);font-size:.95rem;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.sofiya-stream-menu__item:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.1);}
.sofiya-stream-menu__item.is-active{background:#fff;color:#0b1018;border-color:#fff;font-weight:700}
.sofiya-stream-settings{position:fixed;inset:0;z-index:999999;font-family:var(--sofiya-player-font)}
.sofiya-stream-settings__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);}
.sofiya-stream-settings__panel{position:absolute;top:0;right:0;height:100%;width:min(420px,92vw);padding:18px;background:var(--sofiya-player-panel-strong);border-left:1px solid var(--sofiya-player-line);display:grid;align-content:start;gap:18px;overflow:auto;box-shadow:-20px 0 60px rgba(0,0,0,.45)}
.sofiya-stream-settings__close{width:44px;height:44px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .18s ease,border-color .18s ease}
.sofiya-stream-settings__close:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.24)}
.sofiya-stream-settings__head{display:grid;gap:6px}
.sofiya-stream-settings__head strong{font-size:1.08rem}
.sofiya-stream-settings__head span,.sofiya-stream-settings__hint{font-size:.9rem;line-height:1.8;color:rgba(255,255,255,.7)}
.sofiya-stream-settings__grid,.sofiya-stream-settings__tracks,[data-sub-track-list]{display:grid;gap:12px}
.sofiya-stream-settings__grid label,.sofiya-stream-settings__tracks strong{font-size:.92rem}
.sofiya-stream-settings__grid select{width:100%;appearance:none;background:#171c25;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:14px 16px;font-family:var(--sofiya-player-font);outline:none}
.sofiya-stream-settings__grid select:focus{border-color:rgba(255,255,255,.3)}
.sofiya-stream-standalone .video-js .vjs-control-bar{height:5.2em;padding:0 18px 12px;display:flex;align-items:center;gap:2px;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.9) 44%,rgba(0,0,0,.97));z-index:5}
.sofiya-stream-standalone .video-js .vjs-big-play-button{width:98px;height:98px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius: 999px;border:1px solid rgba(255,255,255,.18);background:rgba(10,13,18,.42);transition:transform .2s ease,background .2s ease,border-color .2s ease;box-shadow:0 20px 50px rgba(0,0,0,.3);margin-top: 0;}
.sofiya-stream-standalone .video-js:hover .vjs-big-play-button{transform:translate(-50%,-50%) scale(1.03);background:rgba(18,22,30,.62);border-color:rgba(255,255,255,.28)}
.sofiya-stream-standalone .video-js .vjs-big-play-button .vjs-icon-placeholder:before{font-size:2.15em;line-height:1.75}
.sofiya-stream-standalone .video-js .vjs-control{color:#fff}
.sofiya-stream-standalone .video-js .vjs-button>.vjs-icon-placeholder:before{font-size:1.72em;line-height:1.92}
.sofiya-stream-standalone .video-js .vjs-progress-control{flex:1 1 auto;margin-inline:10px}
.sofiya-stream-standalone .video-js .vjs-progress-holder,.sofiya-stream-standalone .video-js .vjs-volume-bar{height:.46em;border-radius:999px;background:rgba(255,255,255,.2)}
.sofiya-stream-standalone .video-js .vjs-load-progress,.sofiya-stream-standalone .video-js .vjs-load-progress div{background:rgba(255,255,255,.1);border-radius:999px}
.sofiya-stream-standalone .video-js .vjs-play-progress,.sofiya-stream-standalone .video-js .vjs-volume-level{background:#fff;border-radius:999px}
.sofiya-stream-standalone .video-js .vjs-slider{background:transparent}
.sofiya-stream-standalone .video-js .vjs-play-progress:before,.sofiya-stream-standalone .video-js .vjs-volume-level:before{font-size:.95rem;top:50%;transform:translateY(-50%);text-shadow:0 0 14px rgba(0,0,0,.5)}
.sofiya-stream-standalone .video-js .vjs-time-control{font-size:1.08em;line-height:3.4em;width:auto;min-width:auto;color:rgba(255,255,255,.84)}
.sofiya-stream-standalone .video-js .vjs-current-time,.sofiya-stream-standalone .video-js .vjs-time-divider,.sofiya-stream-standalone .video-js .vjs-duration{display:flex;align-items:center}
.sofiya-stream-standalone .video-js .vjs-volume-panel{display:flex;align-items:center;border-radius:999px;background:rgba(255,255,255,.06);padding-inline:4px}
.sofiya-stream-standalone .video-js .vjs-volume-panel.vjs-hover,.sofiya-stream-standalone .video-js .vjs-volume-panel.vjs-slider-active,.sofiya-stream-standalone .video-js .vjs-volume-panel:focus-within{width:10.2em}
.sofiya-vjs-custom{display:inline-flex!important;align-items:center;justify-content:center;border-radius:999px;background:rgba(255,255,255,.06);margin-inline:2px;transition:background .18s ease,transform .18s ease}
.sofiya-vjs-custom:hover{background:rgba(255,255,255,.14);}
.sofiya-vjs-custom .vjs-icon-placeholder{display:inline-flex!important;align-items:center;justify-content:center}
.sofiya-vjs-custom svg{width:19px;height:19px}
.sofiya-stream-standalone .video-js .vjs-menu,.sofiya-stream-standalone .video-js .vjs-volume-horizontal .vjs-menu{left:auto;right:0;background:transparent}
.sofiya-stream-standalone .vjs-text-track-display,.sofiya-stream-standalone .vjs-text-track-display div,.sofiya-stream-standalone .vjs-text-track-display span{font-family:var(--sofiya-player-font)!important;z-index:99;}
.sofiya-stream-standalone .vjs-text-track-display div{font-size:var(--sofiya-sub-size)!important;color:var(--sofiya-sub-color)!important;text-shadow:0 3px 14px rgba(0,0,0,.8)!important}
.sofiya-stream-standalone .vjs-text-track-display span{background:var(--sofiya-sub-bg)!important;border-radius:10px!important;padding:.16em .38em!important;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.sofiya-stream-error{position:absolute;left:50%;bottom:122px;transform:translateX(-50%);z-index:8;max-width:min(92vw,760px);padding:14px 18px;border-radius:18px;background:rgba(18,20,27,.92);border:1px solid rgba(255,255,255,.12);color:#fff;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.sofiya-stream-standalone.is-ui-hidden .video-js .vjs-control-bar{opacity:0;transform:translateY(20px);transition:opacity .2s ease,transform .2s ease}
@media (max-width:991px){.sofiya-stream-header{padding:18px 16px 0}.sofiya-stream-header__titles{max-width:72vw}.sofiya-stream-header__titles strong{font-size:1.08rem}.sofiya-stream-popovers{right:14px;left:14px;bottom:96px}.sofiya-stream-menu__list{left:0;right:auto;min-width:unset;width:min(320px,88vw)}.sofiya-stream-standalone .video-js .vjs-control-bar{padding:0 10px 10px;height:4.9em}.sofiya-stream-standalone .video-js .vjs-big-play-button{width:82px;height:82px}}
@media (max-width:768px){.sofiya-stream-header{align-items:center}.sofiya-stream-header__back{padding:11px 14px;font-size:.88rem}.sofiya-stream-header__titles span{font-size:.86rem}.sofiya-stream-settings__panel{width:min(100vw,400px)}.sofiya-stream-error{bottom:100px;font-size:.92rem}}


.sofiya-stream-standalone .video-js .vjs-control-bar{height:auto;min-height:8.1em;padding:0 18px 14px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:10px;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.58) 18%,rgba(0,0,0,.94) 100%);z-index:6}
.sofiya-stream-standalone .video-js .sofiya-vjs-row{display:flex;align-items:center;width:100%}
.sofiya-stream-standalone .video-js .sofiya-vjs-row--progress .vjs-progress-control{margin:0;width:100%;flex:1 1 auto;min-width:0}
.sofiya-stream-standalone .video-js .sofiya-vjs-row--controls{gap:14px}
.sofiya-stream-standalone .video-js .sofiya-vjs-group{display:flex;align-items:center;gap:6px;min-width:0}
.sofiya-stream-standalone .video-js .sofiya-vjs-group--main{justify-content:flex-start;flex:0 1 auto}
.sofiya-stream-standalone .video-js .sofiya-vjs-group--extras{justify-content:flex-end;flex:0 1 auto;margin-inline-start:auto}
.sofiya-stream-standalone .video-js .sofiya-vjs-spacer{flex:1 1 auto;min-width:32px}
.sofiya-stream-standalone .video-js .vjs-progress-control{order:0;flex:1 1 auto;margin:0}
.sofiya-stream-standalone .video-js .vjs-progress-holder{height:.42em;transition:height .16s ease}
.sofiya-stream-standalone .video-js .vjs-mouse-display,.sofiya-stream-standalone .video-js .vjs-time-tooltip{font-family:var(--sofiya-player-font);}
.sofiya-stream-standalone .video-js .vjs-volume-panel{display:flex;align-items:center;border-radius:999px;background:rgba(255,255,255,.06);padding-inline:4px;width:auto;min-width:3.6em}
.sofiya-stream-standalone .video-js .vjs-volume-panel.vjs-volume-panel-horizontal{gap:2px}
.sofiya-stream-standalone .video-js .vjs-volume-panel.vjs-hover,.sofiya-stream-standalone .video-js .vjs-volume-panel.vjs-slider-active,.sofiya-stream-standalone .video-js .vjs-volume-panel:focus-within{width:10.4em;}
.sofiya-stream-standalone .video-js .vjs-volume-bar{margin:0 .5em 0 .15em}
.sofiya-stream-standalone .video-js .vjs-current-time,.sofiya-stream-standalone .video-js .vjs-duration,.sofiya-stream-standalone .video-js .vjs-time-divider{padding:0 .12em;font-size:1em;opacity:.92}
.sofiya-stream-standalone .video-js .vjs-time-divider div{min-width:auto}
.sofiya-stream-standalone .video-js .vjs-remaining-time,.sofiya-stream-standalone .video-js .vjs-live-control,.sofiya-stream-standalone .video-js .vjs-chapters-button,.sofiya-stream-standalone .video-js .vjs-descriptions-button{display:none!important}
.sofiya-vjs-custom,.sofiya-stream-standalone .video-js .vjs-play-control,.sofiya-stream-standalone .video-js .vjs-mute-control,.sofiya-stream-standalone .video-js .vjs-fullscreen-control,.sofiya-stream-standalone .video-js .vjs-picture-in-picture-control{display:inline-flex!important;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;background:rgba(255,255,255,.06);color:#fff;transition:background .18s ease,transform .18s ease,border-color .18s ease;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.sofiya-vjs-custom:hover,.sofiya-stream-standalone .video-js .vjs-play-control:hover,.sofiya-stream-standalone .video-js .vjs-mute-control:hover,.sofiya-stream-standalone .video-js .vjs-fullscreen-control:hover,.sofiya-stream-standalone .video-js .vjs-picture-in-picture-control:hover{background:rgba(255,255,255,.14);}
.sofiya-stream-standalone .video-js .vjs-button>.vjs-icon-placeholder:before,.sofiya-stream-standalone .video-js .vjs-play-control .vjs-icon-placeholder:before,.sofiya-stream-standalone .video-js .vjs-mute-control .vjs-icon-placeholder:before,.sofiya-stream-standalone .video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.sofiya-stream-standalone .video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before{content:none!important;display:none!important}
.sofiya-vjs-custom .vjs-icon-placeholder,.sofiya-stream-standalone .video-js .vjs-play-control .vjs-icon-placeholder,.sofiya-stream-standalone .video-js .vjs-mute-control .vjs-icon-placeholder,.sofiya-stream-standalone .video-js .vjs-fullscreen-control .vjs-icon-placeholder,.sofiya-stream-standalone .video-js .vjs-picture-in-picture-control .vjs-icon-placeholder{display:inline-flex!important;align-items:center;justify-content:center;width:100%;height:100%}
.sofiya-vjs-custom svg,.sofiya-stream-standalone .video-js .vjs-play-control svg,.sofiya-stream-standalone .video-js .vjs-mute-control svg,.sofiya-stream-standalone .video-js .vjs-fullscreen-control svg,.sofiya-stream-standalone .video-js .vjs-picture-in-picture-control svg{width:21px;height:21px}
.sofiya-stream-standalone .video-js .vjs-play-control{width:52px;height:52px;background:rgba(255,255,255,.12)}
.sofiya-stream-standalone .video-js .sofiya-vjs-rewind,.sofiya-stream-standalone .video-js .sofiya-vjs-forward{width:42px;height:42px;}
.sofiya-stream-standalone .video-js .sofiya-vjs-quality,.sofiya-stream-standalone .video-js .sofiya-vjs-settings,.sofiya-stream-standalone .video-js .sofiya-vjs-speed,.sofiya-stream-standalone .video-js .sofiya-vjs-subtitle,.sofiya-stream-standalone .video-js .sofiya-vjs-audio,.sofiya-stream-standalone .video-js .sofiya-vjs-episodes{width:40px;height:40px}
.sofiya-stream-settings__grid select,.sofiya-stream-settings__tracks .sofiya-stream-menu__item{font-family:var(--sofiya-player-font)}
.sofiya-stream-settings__tracks .sofiya-stream-menu__item.is-disabled{opacity:.58;cursor:not-allowed}
@media (max-width:991px){.sofiya-stream-standalone .video-js .vjs-control-bar{padding:0 10px 12px;min-height:8.7em}.sofiya-stream-standalone .video-js .sofiya-vjs-row--controls{gap:10px;flex-wrap:wrap}.sofiya-stream-standalone .video-js .sofiya-vjs-group--extras{flex-wrap:wrap;justify-content:flex-end}.sofiya-stream-standalone .video-js .sofiya-vjs-spacer{display:none}.sofiya-stream-standalone .video-js .vjs-current-time,.sofiya-stream-standalone .video-js .vjs-duration,.sofiya-stream-standalone .video-js .vjs-time-divider{font-size:.95em}}
@media (max-width:640px){.sofiya-stream-standalone .video-js .vjs-control-bar{min-height:9.5em}.sofiya-stream-standalone .video-js .vjs-volume-panel{max-width:8.9em}.sofiya-stream-standalone .video-js .sofiya-vjs-group--main{flex-wrap:wrap}.sofiya-stream-standalone .video-js .sofiya-vjs-group--extras{gap:4px}.sofiya-vjs-custom,.sofiya-stream-standalone .video-js .vjs-play-control,.sofiya-stream-standalone .video-js .vjs-mute-control,.sofiya-stream-standalone .video-js .vjs-fullscreen-control,.sofiya-stream-standalone .video-js .vjs-picture-in-picture-control{width:40px;height:40px}.sofiya-stream-standalone .video-js .vjs-play-control{width:46px;height:46px}}

/* --- Player refresh inspired by uploaded reference CSS --- */
:root{
  --sofiya-player-accent-1: var(--accent);
  --sofiya-player-accent-2: #ff6685;
  --sofiya-player-dark-glass:rgba(0,0,0,.46);
  --sofiya-player-menu-glass:rgba(0,0,0,.46);
}
.sofiya-stream-player-shell__video:before{
  background:
    radial-gradient(circle at center,rgba(0,0,0,0) 34%,rgba(0,0,0,.18) 64%,rgba(0,0,0,.5) 100%),
    linear-gradient(180deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,0) 19%,rgba(0,0,0,0) 72%,rgba(0,0,0,.88) 100%);
}
.sofiya-stream-header{
  z-index:8;
  padding:18px 22px 0;
}
.sofiya-stream-header__titles strong{
  font-size:1.18rem;
  font-weight:700;
}
.sofiya-stream-header__titles span{
  color:rgba(255,255,255,.82);
}
.sofiya-stream-header__back{
}

.sofiya-stream-popovers{bottom:118px;right:18px}
.sofiya-stream-menu__list,
.sofiya-stream-standalone .video-js .vjs-menu .vjs-menu-content,
.sofiya-stream-standalone .video-js .vjs-control-bar .vjs-menu-button-popup .vjs-menu .vjs-menu-content{
  background:var(--sofiya-player-menu-glass);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 14px 34px rgba(0,0,0,.34);
}
.sofiya-stream-menu__list{padding:10px;gap:6px;min-width:240px}
.sofiya-stream-menu__item{
  min-height:42px;
  padding:11px 14px;
  background:transparent;
  border-radius:14px;
}
.sofiya-stream-menu__item:hover{background:rgba(120,120,120,.25);}
.sofiya-stream-menu__item.is-active{
  background:rgba(255,255,255,.45);
  color:#fff;
  border-color:transparent;
}

.sofiya-stream-standalone .video-js{
  overflow:hidden;
}
.sofiya-stream-standalone .video-js .vjs-control-bar{
  transition:transform .16s ease,opacity .16s ease;
  background:transparent;
  color:#fff;
  font-size:18px;
  padding:0 8px 10px;
  min-height:auto;
  gap:8px;
}
.sofiya-stream-standalone .video-js .sofiya-vjs-row--progress{
  position:relative;
  min-height:12px;
}
.sofiya-stream-standalone .video-js .sofiya-vjs-row--controls{
  gap:12px;
  align-items:center;
}
.sofiya-stream-standalone .video-js .vjs-progress-control{
  position:relative;
  inset:auto;
  width:100%;
  padding:0 12px;
  height:10px;
}
.sofiya-stream-standalone .video-js .vjs-progress-holder{
  margin:0;
  border-radius:999px;
  background:rgba(255,255,255,.22);
}
.sofiya-stream-standalone .video-js .vjs-load-progress,
.sofiya-stream-standalone .video-js .vjs-load-progress div{height:100%}
.sofiya-stream-standalone .video-js .vjs-load-progress div{display:none!important}
.sofiya-stream-standalone .video-js .vjs-play-progress{
  height:100%;
  border-radius:999px;
  background: linear-gradient(to right,var(--sofiya-player-accent-1) 70%,var(--sofiya-player-accent-2) 100%);
}
.sofiya-stream-standalone .video-js .vjs-play-progress:before{display:none!important}

.sofiya-stream-standalone .video-js .vjs-time-control{
  display:flex;
  width:auto;
  min-width:auto;
  position:relative;
  padding-inline:.16em;
  font-size:14px;
  line-height:2.8em;
}
.sofiya-stream-standalone .video-js .vjs-current-time-display,
.sofiya-stream-standalone .video-js .vjs-duration-display,
.sofiya-stream-standalone .video-js .vjs-current-time,
.sofiya-stream-standalone .video-js .vjs-duration{
  text-shadow:1px 1px 5px rgba(0,0,0,.9);

}
.sofiya-stream-standalone .video-js .vjs-duration-display,.sofiya-stream-standalone .video-js .vjs-current-time,.sofiya-stream-standalone .video-js .vjs-time-divider div{ font-size: 10px;}
.sofiya-stream-standalone .video-js .vjs-time-divider{display:flex!important;align-items:center;opacity:.9}
.sofiya-stream-standalone .video-js .vjs-time-divider div{min-width:auto}
.sofiya-stream-standalone .video-js .vjs-control,
.sofiya-stream-standalone .video-js .sofiya-vjs-custom{
  height:2.7rem;
  margin: 0;
}
.sofiya-stream-standalone .video-js .vjs-volume-panel{
    background: transparent;
}
.sofiya-stream-standalone .video-js .vjs-play-control{
  width:3.25rem;
  height:3.25rem;
  background:rgba(255,255,255,.14);
}
.sofiya-stream-standalone .video-js .sofiya-vjs-rewind,
.sofiya-stream-standalone .video-js .sofiya-vjs-forward{
  /* width:2.8rem; */
  /* height:2.8rem; */ */
}
.sofiya-vjs-custom, .sofiya-stream-standalone .video-js .vjs-play-control, .sofiya-stream-standalone .video-js .vjs-mute-control, .sofiya-stream-standalone .video-js .vjs-fullscreen-control, .sofiya-stream-standalone .video-js .vjs-picture-in-picture-control, .sofiya-stream-standalone .video-js div.vjs-menu-button{
  background-color: rgb(0 0 0 / 33%) !important;
  border-radius: 20px;
  box-shadow:none;
  border: 1px solid #ffffff2b !important;
  width: 48px !important;
  height: 42px !important;
  cursor: pointer;
}
.sofiya-stream-standalone .video-js .vjs-picture-in-picture-control{
    display: none !important;
}
.sofiya-vjs-custom:hover,
.sofiya-stream-standalone .video-js .vjs-play-control:hover,
.sofiya-stream-standalone .video-js .vjs-mute-control:hover,
.sofiya-stream-standalone .video-js .vjs-fullscreen-control:hover,
.sofiya-stream-standalone .video-js .vjs-picture-in-picture-control:hover,
.sofiya-stream-standalone .video-js .vjs-volume-panel:hover,
.sofiya-stream-standalone .video-js div.vjs-menu-button:hover{
  background-color:rgba(255,255,255,.22) !important;
  
}
.sofiya-vjs-custom svg,
.sofiya-stream-standalone .video-js .vjs-play-control svg,
.sofiya-stream-standalone .video-js .vjs-mute-control svg,
.sofiya-stream-standalone .video-js .vjs-fullscreen-control svg,
.sofiya-stream-standalone .video-js .vjs-picture-in-picture-control svg{
  width:22px;
  height:22px;
  filter:drop-shadow(0 0 1px rgba(0,0,0,.8));
}
.sofiya-stream-standalone .video-js .vjs-volume-panel{
  width:auto;
  min-width:3em;
  padding-inline:2px;
}
.sofiya-stream-standalone .video-js .vjs-volume-panel.vjs-hover,
.sofiya-stream-standalone .video-js .vjs-volume-panel.vjs-slider-active,
.sofiya-stream-standalone .video-js .vjs-volume-panel:active,
.sofiya-stream-standalone .video-js .vjs-volume-panel:focus-within{width:8.5em;}
.sofiya-stream-standalone .video-js .vjs-volume-bar{height:.3em;margin: 1.3em .45em;width:5em}
.sofiya-stream-standalone .video-js .vjs-volume-level{background:#fff;border-radius:999px}
.sofiya-stream-standalone .video-js .vjs-mouse-display,
.sofiya-stream-standalone .video-js .vjs-time-tooltip,
.sofiya-stream-standalone .video-js .vjs-volume-tooltip{
  background:rgba(0,0,0,.9);
  border:0;
  color:#fff;
  border-radius:8px;
}
.sofiya-stream-standalone .video-js .vjs-mouse-display{
    width: 12px;
    height: 100%;
    background: var(--green);
}
.sofiya-stream-standalone .video-js .vjs-volume-bar .vjs-mouse-display{
    width: 4px;
}
.sofiya-stream-standalone.is-ui-hidden .video-js .vjs-control-bar{
  visibility:visible;
  opacity:1;
  transform:translateY(4em);
}
.sofiya-stream-standalone.is-ui-hidden .video-js .vjs-progress-control{
  height:.25em;
  top:-.25em;
  pointer-events:none;
  transition:height .3s ease,top .3s ease;
}
.sofiya-stream-standalone.is-ui-hidden .video-js.vjs-fullscreen .vjs-progress-control{opacity:0}

.sofiya-stream-standalone .video-js .vjs-big-play-button{
  font-size:3em;
  background:transparent!important;
  border:0!important;
  box-shadow:none;
  width:80px;
  height:80px;
  margin-left: 0;
}
.sofiya-stream-standalone .video-js.vjs-paused .vjs-big-play-button::after{
  content:"";
  position:absolute;
  z-index:1;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:80px;
  height:80px;
  background: var(--green);
  border-radius:50%;
  box-shadow:0 0 20px rgba(0,0,0,.7);
;color:#fff;}
.sofiya-stream-standalone .video-js.vjs-paused .vjs-big-play-button::before{
  content:"";
  position:absolute;
  z-index:0;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:80px;
  height:80px;
  border-radius:50%;
  background: var(--green);
  opacity:.6;
  animation:sofiya-heart-pulse 1.5s ease-out infinite;
;color:#fff;}
.sofiya-stream-standalone .video-js .vjs-big-play-button .vjs-icon-placeholder{position:relative;z-index:2}
@keyframes sofiya-heart-pulse{
  0%{transform:translate(-50%,-50%) scale(1);opacity:.7}
  50%{transform:translate(-50%,-50%) scale(1.25);opacity:.25}
  100%{transform:translate(-50%,-50%) scale(1.5);opacity:0}
}
.sofiya-stream-standalone .video-js .vjs-big-play-button .vjs-icon-placeholder:before{font-size:1.25em;line-height:1.95}

.sofiya-stream-settings__panel{
  width:min(640px,100vw);
  right:0;
  left:auto;
  padding:60px 16px 16px;
  background:#202020;
  border-left:0;
  box-shadow:-12px 0 34px rgba(0,0,0,.35);
}
.sofiya-stream-settings__head{gap:8px;padding-inline:10px 54px;border-bottom:1px solid #333;padding-bottom:12px}
.sofiya-stream-settings__close{
  position:absolute;
  left:12px;
  top:12px;
  width:42px;
  height:42px;
  border-radius:14px;
  background:transparent;
  border:0;
}
.sofiya-stream-settings__grid{grid-template-columns:1fr;gap:14px;padding:0 10px}
.sofiya-stream-settings__grid label,.sofiya-stream-settings__tracks{display:grid;gap:8px}
.sofiya-stream-settings__grid select{
  border:0;
  box-shadow:none;
  color:#fff;
  background:#2c3e50;
  border-radius:.35em;
  padding:0 1em;
  height:3em;
  font-size:13px;
}
.sofiya-stream-settings__tracks{padding:0 10px}
.sofiya-stream-settings__hint{padding:0 10px}

.sofiya-stream-standalone .vjs-text-track-display,
.sofiya-stream-standalone .vjs-text-track-display div,
.sofiya-stream-standalone .vjs-text-track-display span,
.sofiya-stream-standalone .video-js .vjs-text-track-cue{
  font-family:var(--sofiya-player-font)!important;
}
.sofiya-stream-standalone .video-js .vjs-text-track-cue{
  width:100%!important;
  inset:auto 0 4.5% 0!important;
  font-size:24px!important;
}
.sofiya-stream-standalone .vjs-text-track-display div{
  font-size:var(--sofiya-sub-size)!important;
  color:var(--sofiya-sub-color)!important;
  text-shadow:0 3px 14px rgba(0,0,0,.85)!important;
}
.sofiya-stream-standalone .vjs-text-track-display span{
  background:var(--sofiya-sub-bg)!important;
  border-radius:10px!important;
  padding:.14em .38em!important;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}

@media (max-width:991px){
  .sofiya-stream-header{padding:16px 14px 0}
  .sofiya-stream-popovers{right:12px;left:12px;bottom:104px}
  .sofiya-stream-menu__list{width:min(320px,86vw)}
  .sofiya-stream-standalone .video-js .vjs-control-bar{font-size:15px;padding:0 8px 8px}
  .sofiya-stream-standalone .video-js .sofiya-vjs-row--controls{gap:8px;flex-wrap:wrap}
  .sofiya-stream-standalone .video-js .sofiya-vjs-group--extras{gap:4px;flex-wrap:wrap}
  .sofiya-stream-standalone .video-js .vjs-control,.sofiya-stream-standalone .video-js .sofiya-vjs-custom{width:2.8em;height:2.55rem}
}
@media (max-width:767px){
  .sofiya-stream-standalone .video-js .vjs-text-track-cue{font-size:20px!important;inset:auto 0 6% 0!important}
}
@media (max-width:575px){
  .sofiya-stream-header__titles strong{font-size:1rem}
  .sofiya-stream-header__titles span{font-size:.82rem}
  .sofiya-stream-standalone .video-js .vjs-control-bar{font-size:13px;margin-bottom:6px;padding:0 6px 8px}
  .sofiya-stream-standalone .video-js .vjs-time-control{line-height:3em}
  .sofiya-stream-standalone .video-js .vjs-volume-control{display:none}
  .sofiya-stream-standalone .video-js .vjs-volume-panel.vjs-hover,.sofiya-stream-standalone .video-js .vjs-volume-panel.vjs-slider-active,.sofiya-stream-standalone .video-js .vjs-volume-panel:active,.sofiya-stream-standalone .video-js .vjs-volume-panel:focus-within{width:3em!important}
  .sofiya-stream-standalone .video-js .sofiya-vjs-rewind,.sofiya-stream-standalone .video-js .sofiya-vjs-forward{display:none!important}
  .sofiya-stream-standalone .video-js .vjs-big-play-button,
  .sofiya-stream-standalone .video-js.vjs-paused .vjs-big-play-button::after,
  .sofiya-stream-standalone .video-js.vjs-paused .vjs-big-play-button::before{width:66px;height: 66px;}
  .sofiya-stream-standalone .video-js .vjs-text-track-cue{font-size:17px!important;inset:auto 0 7% 0!important}
  .sofiya-stream-settings__panel{width:100%}
}

/* === 2026 player stability + UX fixes === */
body.sofiya-stream-body,
body.sofiya-stream-body .sofiya-stream-standalone{
  overscroll-behavior:none;
}
.sofiya-stream-standalone{
  --sofiya-sub-bg:rgba(0,0,0,0);
}
.sofiya-stream-standalone .video-js:not(.vjs-has-started):not(.vjs-paused) .vjs-big-play-button, .sofiya-stream-standalone:not(.is-player-ready) .video-js .vjs-control-bar, .sofiya-stream-standalone:not(.is-player-ready) .video-js .vjs-loading-spinner{
  opacity:0!important;
  visibility:hidden!important;
}
.sofiya-stream-standalone.is-player-ui-ready .video-js .vjs-control-bar,
.sofiya-stream-standalone.is-player-ui-ready .video-js .vjs-big-play-button{
  opacity: 0.7;
  visibility:visible;
}
.sofiya-stream-standalone .video-js .vjs-big-play-button{
  display:grid!important;
  place-items:center;
}
.sofiya-stream-standalone .video-js.vjs-playing .vjs-big-play-button,
.sofiya-stream-standalone .video-js.vjs-has-started:not(.vjs-paused):not(.vjs-ended) .vjs-big-play-button{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.sofiya-stream-standalone .video-js .vjs-big-play-button .vjs-icon-placeholder:before{
  content:none!important;
}
.sofiya-big-play-icon,
.sofiya-big-play-icon svg{
  display:block;
  width: 38px;
  height: 38px;
  color: #000000;
}
.sofiya-stream-standalone .video-js .sofiya-vjs-quality{
  width:auto!important;
  min-width:48px;
  padding-inline:10px 8px;
  gap:6px;
}
.sofiya-vjs-quality-badge{
  display:inline-block;
  min-width:28px;
  font-size:10px;
  line-height:1;
  color:rgba(255,255,255,.86);
  text-align:center;
}
.sofiya-stream-standalone .video-js .sofiya-vjs-quality .vjs-icon-placeholder,
.sofiya-stream-standalone .video-js .sofiya-vjs-subtitle .vjs-icon-placeholder,
.sofiya-stream-standalone .video-js .sofiya-vjs-settings .vjs-icon-placeholder,
.sofiya-stream-standalone .video-js .sofiya-vjs-episodes .vjs-icon-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
}
.sofiya-stream-menu--subtitle .sofiya-stream-menu__list,
.sofiya-stream-menu--quality .sofiya-stream-menu__list,
.sofiya-stream-menu--episodes .sofiya-stream-menu__list{
  bottom:0;
  right:0;
}
.sofiya-stream-settings__panel{
  background:#0f0f0f;
}
.sofiya-stream-settings__head strong{
  font-size:1.18rem;
  display: flex;
  gap: 8px;
}
.sofiya-stream-settings__grid label strong,
.sofiya-stream-settings__tracks strong{
  display:flex;
  align-items:center;
  gap:8px;
}
.sofiya-stream-settings__grid select{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px;
}
.sofiya-stream-settings__grid select:focus{
  border-color:rgba(255,255,255,.28);
}
.sofiya-stream-standalone .vjs-text-track-display,
.sofiya-stream-standalone .video-js .vjs-text-track-cue,
.sofiya-stream-standalone .video-js .vjs-text-track-cue div{
  background:transparent!important;
  background-color:transparent!important;
}
.sofiya-stream-standalone .vjs-text-track-display div{
  color:var(--sofiya-sub-color)!important;
}
.sofiya-stream-standalone .vjs-text-track-display span,
.sofiya-stream-standalone .video-js .vjs-text-track-cue span{
  background:var(--sofiya-sub-bg)!important;
  background-color:var(--sofiya-sub-bg)!important;
}
.sofiya-stream-standalone.is-ui-hidden .video-js .vjs-control-bar{
  opacity:0!important;
  transform:translateY(20px)!important;
  pointer-events:none!important;
}
@media (max-width:575px){
  .sofiya-stream-standalone .video-js .sofiya-vjs-quality{
    min-width:44px;
    padding-inline:8px 6px;
  }
  .sofiya-vjs-quality-badge{
    font-size:9px;
  }
}

/* === 2026-04 Android / touch control-bar rebuild === */
.sofiya-stream-standalone.is-touch-device .video-js,
.sofiya-stream-standalone.is-touch-device .video-js video{
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
.sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar,
.sofiya-stream-standalone.is-touch-device .video-js.vjs-using-native-controls .vjs-control-bar{
  display:flex !important;
}
.sofiya-stream-standalone.is-touch-device .video-js.vjs-using-native-controls,
.sofiya-stream-standalone.is-touch-device .video-js.vjs-using-native-controls .vjs-poster{
  display:block;
}
.sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-custom, .sofiya-stream-standalone.is-touch-device .video-js .vjs-fullscreen-control, .sofiya-stream-standalone.is-touch-device .video-js .vjs-mute-control, .sofiya-stream-standalone.is-touch-device .video-js .vjs-play-control{
  flex:0 0 auto;
  min-width:42px;
}
.sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar{
  padding-bottom:calc(env(safe-area-inset-bottom, 0px) + 8px);
}
.sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-row--controls,
.sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group,
.sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group--main,
.sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group--extras{
  flex-wrap:nowrap;
  min-width:0;
}
.sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group--main{flex:1 1 auto}
.sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group--extras{flex:0 0 auto;margin-inline-start:auto}
.sofiya-stream-standalone.is-touch-device .video-js .vjs-time-control{
  flex:0 0 auto;
  white-space:nowrap;
}
.sofiya-stream-standalone.is-touch-device .video-js .vjs-time-divider,
.sofiya-stream-standalone.is-touch-device .video-js .vjs-current-time,
.sofiya-stream-standalone.is-touch-device .video-js .vjs-duration{
  opacity:1 !important;
}
.sofiya-stream-standalone.is-touch-device .video-js .vjs-volume-panel{display:none !important}
.sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-quality-badge{display:none}
.sofiya-stream-standalone.is-touch-device .video-js .vjs-progress-control{pointer-events:auto}
.sofiya-stream-standalone.is-touch-device.is-ui-hidden .video-js .vjs-control-bar{
  opacity:0 !important;
  transform:translateY(16px) !important;
  pointer-events:none !important;
}
.sofiya-stream-standalone.is-touch-device:not(.is-ui-hidden) .video-js .vjs-control-bar{
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  pointer-events:auto !important;
}

@media (orientation:landscape) and (max-width: 991px), (max-height: 520px){
  .sofiya-stream-standalone.is-touch-device .sofiya-stream-header{
    padding:12px 12px 0;
  }
  .sofiya-stream-standalone.is-touch-device .sofiya-stream-header__titles strong{
    font-size:.96rem;
  }
  .sofiya-stream-standalone.is-touch-device .sofiya-stream-header__titles span{
    font-size:.76rem;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar{
    min-height:auto;
    gap:6px;
    padding:0 6px calc(env(safe-area-inset-bottom, 0px) + 6px);
    font-size:12px;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-row--progress{
    min-height:8px;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-row--controls{
    gap:6px;
    align-items:center;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group{
    gap:4px;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-time-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-time-divider div{
    font-size:9px;
    line-height:2.2em;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control,
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-custom,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-fullscreen-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-mute-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-play-control,
  .sofiya-stream-standalone.is-touch-device .video-js div.vjs-menu-button{
    width:38px !important;
    min-width:38px !important;
    height:36px !important;
    border-radius:16px;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-play-control{
    width:42px !important;
    min-width:42px !important;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-play-control svg,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-mute-control svg,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-fullscreen-control svg,
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-custom svg{
    width:18px;
    height:18px;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-rewind,
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-forward{
    display:inline-flex !important;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-current-time,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-time-divider,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-duration{
    display:flex !important;
  }
}

@media (max-width: 575px){
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group--extras .sofiya-vjs-settings,
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group--extras .sofiya-vjs-episodes,
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group--extras .sofiya-vjs-subtitle,
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group--extras .sofiya-vjs-quality,
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group--extras .vjs-fullscreen-control{
    display:inline-flex !important;
  }
}


/* === 2026-04 final Android Chrome control-bar fix === */
body.sofiya-stream-body,
body.sofiya-stream-body html{
  height:100%;
  overflow:hidden;
}
.sofiya-stream-standalone,
.sofiya-stream-standalone__inner,
.sofiya-stream-player-shell,
.sofiya-stream-player-shell__video,
.sofiya-stream-player-shell__video .video-js{
  height:100dvh;
  height:calc(var(--vh, 1vh) * 100);
  min-height:100dvh;
  min-height:calc(var(--vh, 1vh) * 100);
}
.sofiya-stream-standalone .video-js .vjs-control-bar{
  bottom:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box;
}
.sofiya-stream-standalone .video-js .sofiya-vjs-row--controls{
  min-height:48px;
  padding-bottom:0;
}
.sofiya-stream-standalone .video-js .sofiya-vjs-row--progress{
  margin-bottom:8px;
}
.sofiya-stream-standalone.is-ui-hidden .video-js .vjs-control-bar{
  opacity:0 !important;
  visibility:hidden !important;
  transform:translateY(100%) !important;
  pointer-events:none !important;
}
.sofiya-stream-standalone:not(.is-ui-hidden) .video-js .vjs-control-bar{
  opacity:1 !important;
  visibility:visible !important;
  transform:translateY(0) !important;
  pointer-events:auto !important;
}
.sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar{
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease !important;
  will-change:transform, opacity;
}
.sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .sofiya-vjs-custom, .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-play-control, .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-mute-control, .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-fullscreen-control, .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar div.vjs-menu-button{
  width:36px !important;
  min-width:36px !important;
  height:34px !important;
  border-radius:14px !important;
}
.sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-play-control{
  width:40px !important;
  min-width:40px !important;
  height:36px !important;
}
.sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-play-control svg,
.sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-mute-control svg,
.sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-fullscreen-control svg,
.sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .sofiya-vjs-custom svg{
  width:16px !important;
  height:16px !important;
}
.sofiya-stream-standalone.is-touch-device .video-js .vjs-time-control,
.sofiya-stream-standalone.is-touch-device .video-js .vjs-time-divider div{
  font-size:9px !important;
}
@media (orientation:landscape) and (max-width: 991px), (max-height: 520px){
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar{
    padding:0 6px calc(env(safe-area-inset-bottom, 0px) + 4px) !important;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-row--progress{
    margin-bottom:5px;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-row--controls{
    min-height:40px;
    gap:4px !important;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group{gap:3px !important;}
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .sofiya-vjs-custom,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-play-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-mute-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-fullscreen-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar div.vjs-menu-button{
    width:32px !important;
    min-width:32px !important;
    height:30px !important;
    border-radius:12px !important;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-play-control{
    width:36px !important;
    min-width:36px !important;
    height:32px !important;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-play-control svg,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-mute-control svg,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-fullscreen-control svg,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .sofiya-vjs-custom svg{
    width:14px !important;
    height:14px !important;
  }
}


/* === 2026-04-21 mobile polish fixes === */
.sofiya-stream-menu__list{
  box-sizing:border-box;
}
@media (max-width: 640px){
  .sofiya-stream-popovers{
    right:12px;
    left:12px;
    bottom:92px;
  }
  .sofiya-stream-menu{
    right:0;
    left:0;
  }
  .sofiya-stream-menu__list{
    width:min(calc(100vw - 24px), 340px) !important;
    max-width:calc(100vw - 24px) !important;
    min-width:0 !important;
    max-height:min(52vh, 320px);
    padding:8px;
    border-radius:18px;
  }
  .sofiya-stream-menu__item{
    min-height:40px;
    padding:10px 12px;
    font-size:.88rem;
    gap:8px;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .sofiya-vjs-custom,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-play-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-mute-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-fullscreen-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar div.vjs-menu-button{
    width:34px !important;
    min-width:34px !important;
    height:32px !important;
    border-radius:12px !important;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-play-control{
    width:38px !important;
    min-width:38px !important;
    height:34px !important;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-play-control svg,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-mute-control svg,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-fullscreen-control svg,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .sofiya-vjs-custom svg{
    width:15px !important;
    height:15px !important;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-row--controls{
    min-height:36px;
    gap:3px !important;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .sofiya-vjs-group{
    gap:2px !important;
  }
}
@media (orientation:landscape) and (max-width: 991px), (max-height: 520px){
  .sofiya-stream-menu__list{
    max-height:min(58vh, 280px);
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .sofiya-vjs-custom,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-play-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-mute-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-fullscreen-control,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar div.vjs-menu-button{
    width:32px !important;
    min-width:32px !important;
    height:30px !important;
    border-radius:11px !important;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-play-control{
    width:36px !important;
    min-width:36px !important;
    height:32px !important;
  }
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-play-control svg,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-mute-control svg,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .vjs-fullscreen-control svg,
  .sofiya-stream-standalone.is-touch-device .video-js .vjs-control-bar .sofiya-vjs-custom svg{
    width:14px !important;
    height:14px !important;
  }
}


/* Android/WebView codec compatibility notices */
.sofiya-stream-menu__item.is-unsafe-android{opacity:.72;border-color:rgba(255,193,7,.24)}
.sofiya-stream-menu__item.is-unsafe-android em{display:block;font-size:10px;font-style:normal;color:#ffd166;margin-top:2px;line-height:1.5}
.sofiya-stream-menu__item small{display:block;font-size:10px;line-height:1.5;color:rgba(255,255,255,.54);margin-top:2px;direction:ltr;text-align:left;white-space:normal}
.sofiya-stream-error--notice{background:var(--accent-soft);border-color:var(--accent-line);color:#f1f1f1}
.sofiya-stream-error--warning{background:rgba(255,193,7,.13);border-color:rgba(255,193,7,.32);color:#fff5d6}


/* Sofiya 2.9.65.14 - player select cleanup + remove Android compatibility badges/notices */
.sofiya-stream-settings__grid select{
  -webkit-appearance:none!important;
  appearance:none!important;
  color:#fff!important;
  background-color:rgba(255,255,255,.08)!important;
  background-image:linear-gradient(45deg,transparent 50%,rgba(255,255,255,.9) 50%),linear-gradient(135deg,rgba(255,255,255,.9) 50%,transparent 50%)!important;
  background-position:left 18px center,left 12px center!important;
  background-size:6px 6px,6px 6px!important;
  background-repeat:no-repeat!important;
  padding-left:42px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:14px!important;
}
.sofiya-stream-settings__grid select option{
  background:#071a13!important;
  color:#fff!important;
}
.sofiya-stream-settings__grid select option:checked{
  background:var(--accent)!important;
  color:#fff!important;
}
.sofiya-stream-menu__item.is-unsafe-android{opacity:1!important;border-color:rgba(255,255,255,.1)!important}
.sofiya-stream-menu__item.is-unsafe-android em{display:none!important}
.sofiya-stream-error--warning[data-stream-error]{display:none!important}
