.ys-player{--ys-accent:#8057ff;--ys-bg:#101118;--ys-card:#1b1d27;--ys-text:#f5f5fa;--ys-muted:#a7a8b5;font-family:inherit;background:var(--ys-bg);color:var(--ys-text);border:1px solid #2a2c38;border-radius:18px;overflow:hidden;max-width:100%;box-shadow:0 18px 48px rgba(0,0,0,.24);direction:rtl}.ys-player *{box-sizing:border-box}.ys-player__screen{position:relative;width:100%;aspect-ratio:16/9;min-height:220px;background:#050506;overflow:hidden}.ys-player__stage,.ys-player__stage iframe,.ys-player__stage video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#050506}.ys-player__stage iframe{display:block}.ys-player__stage video{object-fit:contain}.ys-player__loading{position:absolute;left:12px;top:12px;padding:7px 11px;background:rgba(0,0,0,.68);border-radius:9px;font-size:12px;pointer-events:none}.ys-player__toolbar{padding:14px 16px 16px}.ys-player__server-label{font-size:13px;color:var(--ys-muted);margin:0 0 9px}.ys-player__servers{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:1px 1px 8px;scrollbar-width:thin}.ys-player__server{min-width:0;width:100%;padding:10px 8px;border:1px solid #333542;border-radius:10px;background:#20212b;color:#e9e9f2;white-space:nowrap;transition:.18s ease}.ys-player__server:hover{border-color:#8d6cff;transform:translateY(-1px)}.ys-player__server.is-active{background:var(--ys-accent);border-color:var(--ys-accent);color:white;box-shadow:0 6px 17px rgba(128,87,255,.23)}.ys-player:fullscreen .ys-player__screen{height:100vh;aspect-ratio:auto}.ys-player:fullscreen .ys-player__toolbar{background:var(--ys-bg)}@media(max-width:600px){.ys-player{border-radius:13px}.ys-player__screen{min-height:190px}.ys-player__toolbar{padding:12px}.ys-player__server{padding:9px 12px;min-width:82px;font-size:13px}}

/* Standalone single-player page: no theme article frame or surrounding margins. */
html:has(body.ys-player-page),body.ys-player-page{width:100%;height:100%;min-height:100%;margin:0!important;padding:0!important;background:#08090d!important;overflow:hidden!important}body.ys-player-page{display:block!important}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{width:100%;max-width:none;height:100%;min-height:0;margin:0;border:0;border-radius:0;display:flex;flex-direction:column}body.ys-player-page .ys-player__screen{flex:1 1 auto;min-height:0;aspect-ratio:auto}body.ys-player-page .ys-player__toolbar{flex:0 0 auto}body.ys-player-page body.ys-player-page #wpadminbar{position:fixed}

/* Requested player layout: server tabs above, controls over the frame. */
.ys-player__toolbar{order:3;padding:10px 14px 12px}.ys-player__server-label{margin-bottom:7px}.ys-player__screen{order:4}.ys-player__loading{z-index:6}
.ys-player__screen:fullscreen{width:100vw;height:100vh;height:100dvh;min-height:0;aspect-ratio:auto;border-radius:0}

/* Fixed-height embedded player matching the requested 500px iframe layout. */
.ys-player__screen{height:500px;min-height:500px;aspect-ratio:auto}

.ys-player__popup-bridge{position:absolute;inset:0;z-index:50;background:transparent;cursor:pointer;touch-action:manipulation}

/* Separate article toolbar; the player itself contains only server tabs and video. */
.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:14px;margin:0 0 14px;text-align:center}.ys-player-widget__heading{width:100%;min-height:58px;padding:11px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #292a38;border-radius:16px;background:linear-gradient(100deg,#1d1b29,#171923);color:#f5f5fa}.ys-player-widget__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:800}.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:#ff686e;font-size:15px;font-weight:800}.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;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:64px;padding:14px 20px;border:0;border-radius:17px;background:linear-gradient(105deg,#ff4b35 0%,#e21a82 100%);color:#fff;font-size:clamp(14px,2.1vw,20px);box-shadow:0 12px 26px rgba(223,28,110,.18)}.ys-player-widget__refresh{min-height:58px;padding:13px 27px;border:0;border-radius:14px;background:linear-gradient(110deg,#6129a4,#7839ed);color:#fff;font-size:clamp(15px,2vw,19px);box-shadow:0 10px 24px rgba(112,55,220,.24)}.ys-player-widget__status{min-height:0;color:#c4c4d0;font-size:13px}.ys-player-widget__status:empty{display:none}.ys-player-widget__top .is-refreshing{filter:brightness(.85)}.ys-player__server{font-family:inherit;font-size:inherit}body.ys-player-page .ys-player-widget{height:100%;display:flex;flex-direction:column}body.ys-player-page .ys-player{flex:1 1 auto;min-height:0}@keyframes ys-live-pulse{50%{box-shadow:0 0 0 7px rgba(255,80,88,.04);opacity:.72}}@media(max-width:600px){.ys-player__servers{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:9px}.ys-player__server{flex:0 0 102px;width:auto;min-width:82px;scroll-snap-align:start}.ys-player-widget__top{gap:11px;margin-bottom:11px}.ys-player-widget__heading{min-height:52px;padding:9px 12px}.ys-player-widget__name{font-size:14px}.ys-player-widget__live{font-size:13px;padding:6px 12px}.ys-player-widget__restart{min-height:56px;padding:12px 13px;border-radius:13px}.ys-player-widget__refresh{min-height:52px;width:min(100%,310px);padding:11px 18px}}
