/*! Yalla Sport Player 1.17.0 — Yalla Sport app colors */
.ys-player{--ys-accent:#2ee8b5;--ys-bg:#0b2219;--ys-text:#f2fbf7;--ys-muted:#9cc5b3;position:relative;display:flex;flex-direction:column;max-width:100%;overflow:hidden;font-family:inherit;direction:rtl;background:var(--ys-bg);color:var(--ys-text);border:1px solid rgba(46,232,181,.28);border-radius:18px;box-shadow:0 18px 48px rgba(0,0,0,.3)}
.ys-player *{box-sizing:border-box}

/* Server tabs: full player width, the screen starts right under them */
.ys-player__toolbar{padding:0;background:#1e4a37}
.ys-player__server-tools{display:flex;padding:8px;background:var(--ys-bg)}
.ys-player__server-search{width:100%;min-height:36px;padding:7px 12px;border:1px solid #245a43;border-radius:10px;background:#071a12;color:#f2fbf7;font:inherit;font-size:13px;outline:none}
.ys-player__server-search:focus{border-color:#2ee8b5;box-shadow:0 0 0 3px rgba(46,232,181,.2)}
.ys-player__servers{display:flex;flex-wrap:wrap;gap:1px;margin:0;padding:0 0 1px}
.ys-player__server{position:relative;display:flex;flex:1 1 120px;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:50px;margin:0;padding:7px 10px;border:0;border-radius:0;background:linear-gradient(180deg,#123426,#0c271c);color:#dff5ec;font:inherit;text-align:center;text-decoration:none!important;white-space:normal;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background .18s ease,color .18s ease}
.ys-player__server:hover{background:#17402f;color:#fff}
.ys-player__server:focus-visible{outline:3px solid #2ee8b5;outline-offset:-3px}
.ys-player__server.is-active{background:linear-gradient(115deg,#17694a,#1f8a5b 55%,#17694a);color:#fff;box-shadow:inset 0 -3px 0 #2ee8b5}
.ys-player__server.is-loading{opacity:.75}
.ys-player__server.is-loading .ys-player__server-number{animation:ys-spin .8s linear infinite}
.ys-player__server-number{display:inline-flex;flex:0 0 26px;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(255,255,255,.08);font-size:12px;font-weight:900;line-height:1}
.ys-player__server.is-active .ys-player__server-number{border-color:#2ee8b5;background:#2ee8b5;color:#06120d}
.ys-player__server-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:750;line-height:1.35}
.ys-player__server[hidden],.ys-player__server-search[hidden]{display:none}

/* Screen */
.ys-player__screen{position:relative;width:100%;height:500px;background:#03100b;overflow:hidden}
.ys-player__screen:fullscreen{width:100vw;height:100vh;height:100dvh}
.ys-player__stage,.ys-player__stage iframe,.ys-player__stage video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#03100b}
.ys-player__stage iframe{display:block}
.ys-player__stage video{object-fit:contain}
.ys-player__stage .ys-player__clappr{position:absolute;inset:0;width:100%;height:100%;background:#03100b}
.ys-player__stage .ys-player__clappr .container,.ys-player__stage .ys-player__clappr video{width:100%;height:100%}

.ys-player__notice{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;background:rgba(3,16,11,.9);color:#fff;text-align:center;font-size:15px;font-weight:700;line-height:1.8}
.ys-player__notice p{margin:0;max-width:440px}
.ys-player__notice-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.ys-player__notice-btn{min-height:44px;padding:9px 18px;border:0;border-radius:11px;background:linear-gradient(180deg,#5cf5c9,#2ee8b5);color:#04140d;font:inherit;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 6px 18px rgba(46,232,181,.3)}
.ys-player__notice-btn--alt{background:#123426;border:1px solid #245a43;color:#fff;box-shadow:none}
.ys-player__notice-btn--ghost{background:transparent;border:1px solid #2f6b52;color:#fff;box-shadow:none}
.ys-player__notice-count{margin:0;font-size:13px;font-weight:700;color:#9fe9cf}
.ys-player__quality{position:absolute;top:10px;left:10px;z-index:5;min-height:32px;padding:4px 8px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(6,18,13,.75);color:#fff;font:inherit;font-size:12px;font-weight:700;direction:ltr;cursor:pointer;opacity:.8;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.ys-player__quality:hover,.ys-player__quality:focus{opacity:1;outline:none;border-color:#2ee8b5}
.ys-player__quality option{background:#0b2219;color:#fff}
.ys-player__unmute{position:absolute;left:50%;bottom:64px;z-index:6;transform:translateX(-50%);min-height:44px;padding:9px 18px;border:0;border-radius:999px;background:linear-gradient(180deg,#5cf5c9,#2ee8b5);color:#04140d;font:inherit;font-size:14px;font-weight:800;box-shadow:0 8px 22px rgba(0,0,0,.4),0 0 18px rgba(46,232,181,.35);cursor:pointer;animation:ys-pop .3s ease}
@keyframes ys-pop{from{opacity:0;transform:translate(-50%,8px)}}
.ys-player__ad-frame{position:absolute;inset:0;z-index:50;display:block;width:100%;height:100%;border:0;margin:0;padding:0;background:transparent;color-scheme:normal}
.ys-player__popup-bridge{position:absolute;inset:0;z-index:50;background:transparent;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ys-player__app-note{display:flex;align-items:center;justify-content:center;min-height:46px;padding:9px 12px;border-top:1px solid #1e4a37;background:linear-gradient(90deg,#0b2219,#123426,#0b2219);color:#e2f3eb;text-align:center;font-size:14px;font-weight:800}
.ys-player__toolbar[hidden]{display:none}
.ys-player__app-note--link{position:relative;z-index:60;overflow:hidden;gap:9px;color:#04140d!important;text-decoration:none!important;background:linear-gradient(180deg,#5cf5c9,#2ee8b5);border-top:0;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:filter .16s ease}
.ys-player__app-note--link:hover,.ys-player__app-note--link:focus-visible{filter:brightness(1.1);outline:none}
.ys-player__app-note--link::after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-60%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);transform:skewX(-20deg);animation:ys-shine 3s infinite;pointer-events:none}
@keyframes ys-shine{60%,100%{left:130%}}
.ys-player__app-icon{font-size:18px;line-height:1;animation:ys-nudge 2.4s ease-in-out infinite}
@keyframes ys-nudge{0%,80%,100%{transform:none}86%{transform:translateY(-3px)}92%{transform:translateY(1px)}}
.ys-player__noscript{margin:0;padding:10px;text-align:center;color:#ffb4b4}

/* Article widget toolbar */
.ys-player-widget{position:relative;isolation:isolate;width:100%;font-family:inherit;direction:rtl}
.ys-player-widget button{font:inherit}
.ys-player-widget__top{display:flex;flex-direction:column;align-items:center;gap:10px;margin:0 0 12px;text-align:center}
.ys-player-widget__live{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:7px 16px;border:1px solid rgba(255,73,82,.55);border-radius:999px;background:rgba(255,66,76,.09);color:#ff7a7f;font-size:14px;font-weight:800;line-height:1.4}
.ys-player-widget__live i{width:10px;height:10px;border-radius:50%;background:#ff5058;box-shadow:0 0 0 4px rgba(255,80,88,.14);animation:ys-live-pulse 1.5s infinite}
.ys-player-widget__top button{font-weight:800;line-height:1.45;cursor:pointer;border:0;color:#fff;transition:transform .16s ease,filter .16s ease,opacity .16s ease}
.ys-player-widget__top button:hover{transform:translateY(-1px);filter:brightness(1.08)}
.ys-player-widget__top button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.ys-player-widget__top button:disabled{opacity:.7;cursor:wait;transform:none}
.ys-player-widget__restart{width:min(100%,1125px);min-height:56px;padding:12px 18px;border-radius:16px;background:linear-gradient(110deg,#0f2a1f,#14392a)!important;border:1px solid rgba(46,232,181,.45)!important;color:#e2f3eb!important;font-size:clamp(14px,2vw,18px);box-shadow:0 10px 24px rgba(0,0,0,.25)}
.ys-player-widget__restart:hover{border-color:#2ee8b5!important;color:#fff!important}
.ys-player-widget__status{color:#9cc5b3;font-size:13px}
.ys-player-widget__status:empty{display:none}
.ys-player-widget__top .is-refreshing{filter:brightness(.85)}

/* Standalone player page (each server page) */
html:has(body.ys-player-page),body.ys-player-page{width:100%;height:100%;margin:0!important;padding:0!important;background:#06120d!important;overflow:hidden!important}
body.ys-player-page{font-family:system-ui,-apple-system,"Segoe UI",Tahoma,"Noto Sans Arabic",sans-serif}
body.ys-player-page .ys-player-page__main{width:100%;height:100vh;height:100dvh;margin:0;padding:0;max-width:none}
body.ys-player-page .ys-player-widget{height:100%;display:flex;flex-direction:column}
body.ys-player-page .ys-player{flex:1 1 auto;width:100%;height:100%;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none}
body.ys-player-page .ys-player__toolbar,body.ys-player-page .ys-player__app-note{flex:0 0 auto}
body.ys-player-page .ys-player__screen{flex:1 1 auto;height:auto;min-height:0}
body.ys-player-page #wpadminbar{position:fixed}

/* Player page shown inside an article iframe: natural height, 500px screen */
html.ys-framed.ys-framed,html.ys-framed body.ys-player-page{height:auto!important;min-height:0!important;overflow:hidden!important}
html.ys-framed body.ys-player-page .ys-player-page__main,html.ys-framed body.ys-player-page .ys-player-widget,html.ys-framed body.ys-player-page .ys-player{height:auto!important;min-height:0!important}
html.ys-framed body.ys-player-page .ys-player__screen{flex:0 0 500px;height:500px}

/* Full screen (phone turned sideways): the whole player incl. the ad layer, tabs and app button hidden */
.ys-player__fs-exit{display:none}
.ys-player.is-fs,.ys-player:fullscreen{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#000!important}
.ys-player:-webkit-full-screen{width:100%;height:100%;border-radius:0;background:#000}
.ys-player.is-fs .ys-player__toolbar,.ys-player.is-fs .ys-player__app-note,.ys-player:fullscreen .ys-player__toolbar,.ys-player:fullscreen .ys-player__app-note{display:none!important}
.ys-player.is-fs .ys-player__screen,.ys-player:fullscreen .ys-player__screen{flex:1 1 auto!important;height:auto!important;min-height:0}
.ys-player.is-fs .ys-player__fs-exit:not([hidden]){display:flex;position:absolute;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));z-index:70;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:16px;line-height:1;cursor:pointer;opacity:.7}
html.ys-fs-lock,html.ys-fs-lock body{overflow:hidden!important}
html.ys-fs-lock .ys-player-widget{isolation:auto}

/* Article side of the iframe embed */
.ys-embed-frame{display:block;width:100%;height:600px;border:0;border-radius:18px;background:#0b2219;overflow:hidden;color-scheme:dark}
@media(max-width:600px){.ys-embed-frame{height:640px;border-radius:13px}}
.ys-embed-frame.ys-embed-frame--fs{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;margin:0!important;border-radius:0!important}
html.ys-embed-lock,html.ys-embed-lock body{overflow:hidden!important}
html.ys-embed-lock .ys-player-widget{isolation:auto}

@keyframes ys-live-pulse{50%{box-shadow:0 0 0 7px rgba(255,80,88,.04);opacity:.72}}
@keyframes ys-spin{to{transform:rotate(360deg)}}

@media(max-width:600px){
  .ys-player{border-radius:13px}
  .ys-player__server{flex-basis:96px;min-height:46px;padding:6px 7px;gap:6px}
  .ys-player__server-number{width:24px;height:24px;flex-basis:24px;font-size:11px}
  .ys-player__server-name{font-size:12px}
  .ys-player__screen{height:500px}
  html:has(body.ys-player-page),body.ys-player-page{height:auto;min-height:100%;overflow:auto!important}
  body.ys-player-page .ys-player-page__main,body.ys-player-page .ys-player-widget,body.ys-player-page .ys-player{height:auto;min-height:100%}
  body.ys-player-page .ys-player__screen{flex:0 0 500px;height:500px}
  .ys-player__app-note{min-height:40px;font-size:13px}
  .ys-player__app-note--link{min-height:48px;font-size:14px}
  .ys-player-widget__top{gap:11px;margin-bottom:11px}
  .ys-player-widget__live{font-size:13px;padding:6px 12px}
  .ys-player-widget__restart{min-height:50px;padding:10px 12px;border-radius:13px;font-size:14px}
}
/* the app button sits above the ad layer so it opens the store on the first tap */
@media(prefers-reduced-motion:reduce){.ys-player *{transition:none!important;animation:none!important}}
