:root{--aloytv-gold:#d5aa57;--aloytv-gold-light:#f0cf83;--aloytv-watch-line:rgba(255,255,255,.13)}
body.aloytv-watch-mode{margin:0!important;overflow:hidden!important;background:#000!important}
.aloytv-watch-screen,.aloytv-watch-screen *{box-sizing:border-box}
.aloytv-watch-screen{position:fixed;z-index:999990;inset:0;width:100%;height:100vh;height:100svh;height:100dvh;min-height:0;overflow:hidden;background:#000;color:#fff;font-family:Tahoma,Arial,Helvetica,sans-serif;direction:rtl}
.aloytv-player-wrap{position:absolute;inset:0;display:flex;align-items:stretch;justify-content:center;overflow:hidden;background:radial-gradient(ellipse at center,#111722 0%,#050609 72%)}
.aloytv-player-host{position:relative;display:block;flex:1 1 auto;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;overflow:hidden;background:#000}
.aloytv-player-host video,.aloytv-player-host iframe,.aloytv-player-host object,.aloytv-player-host embed{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;border:0;background:#000}
.aloytv-player-host video{object-fit:contain}
.aloytv-player-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#c6cbd3;text-align:center;background:#050609}
.aloytv-player-empty>span{display:grid;place-items:center;width:72px;height:72px;border:1px solid rgba(213,170,87,.45);border-radius:50%;color:var(--aloytv-gold);font-size:27px}
.aloytv-player-empty p{margin:0;font-size:15px}
.aloytv-watch-toolbar{position:fixed;z-index:30;top:max(14px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));left:max(16px,env(safe-area-inset-left));display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:12px;min-height:62px;padding:10px 13px;border:1px solid var(--aloytv-watch-line);border-radius:15px;background:linear-gradient(110deg,rgba(9,11,16,.92),rgba(25,28,36,.82));box-shadow:0 10px 35px rgba(0,0,0,.3);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .25s ease,transform .25s ease,visibility .25s ease}
.aloytv-watch-toolbar.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.aloytv-watch-brand{display:inline-flex;align-items:center;gap:9px;color:#fff;text-decoration:none;font-size:17px;font-weight:900;white-space:nowrap;letter-spacing:.3px}
.aloytv-brand-mark{display:inline-grid;width:34px;height:34px;place-items:center;border-radius:10px;background:var(--aloytv-gold);color:#111;font-size:14px}
.aloytv-watch-title-wrap{min-width:0;text-align:right}
.aloytv-watch-kicker{display:block;margin-bottom:1px;color:var(--aloytv-gold-light);font-size:10px;font-weight:800;letter-spacing:1.4px}
.aloytv-watch-title{display:block;overflow:hidden;color:#fff;font-size:clamp(12px,1.7vw,15px);font-weight:700;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.aloytv-toolbar-btn{display:inline-flex;min-width:42px;min-height:42px;align-items:center;justify-content:center;gap:8px;padding:0 14px;border:1px solid rgba(213,170,87,.52);border-radius:11px;background:var(--aloytv-gold);color:#111;font:800 13px Tahoma,Arial,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background .2s ease,transform .2s ease,box-shadow .2s ease;box-shadow:0 5px 18px rgba(213,170,87,.15)}
.aloytv-toolbar-btn:hover,.aloytv-toolbar-btn:focus-visible{background:var(--aloytv-gold-light);transform:translateY(-1px);box-shadow:0 8px 24px rgba(213,170,87,.22);outline:none}
.aloytv-toolbar-btn.secondary{border-color:rgba(255,255,255,.17);background:rgba(255,255,255,.09);color:#fff;box-shadow:none}
.aloytv-toolbar-btn svg{width:17px;height:17px;flex:0 0 auto}
.aloytv-toolbar-btn small{display:inline-grid;min-width:19px;height:19px;place-items:center;border-radius:99px;background:rgba(0,0,0,.17);font-size:10px}
.aloytv-server-panel{position:fixed;z-index:40;top:calc(max(14px,env(safe-area-inset-top)) + 76px);right:max(16px,env(safe-area-inset-right));width:min(380px,calc(100vw - 32px));max-height:min(76vh,640px);overflow:auto;padding:14px;border:1px solid var(--aloytv-watch-line);border-radius:14px;background:rgba(13,16,23,.97);box-shadow:0 18px 50px rgba(0,0,0,.5);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);overscroll-behavior:contain}
.aloytv-server-panel[hidden]{display:none!important}
.aloytv-server-section+.aloytv-server-section{margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.1)}
.aloytv-server-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;color:var(--aloytv-gold-light);font-size:13px;font-weight:800}
.aloytv-server-heading span{display:inline-grid;min-width:23px;height:23px;place-items:center;border-radius:99px;background:rgba(213,170,87,.14);color:var(--aloytv-gold-light);font-size:11px}
.aloytv-server-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.aloytv-server-choice,.aloytv-server-download{display:flex;width:100%;min-width:0;max-width:100%;min-height:42px;align-items:center;justify-content:center;gap:7px;padding:8px 10px;overflow:hidden;border:1px solid #343b48;border-radius:9px;background:#1b202a;color:#eee;font:700 12px Tahoma,Arial,sans-serif;text-align:center;text-overflow:ellipsis;text-decoration:none;white-space:nowrap;cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease}
.aloytv-server-choice:hover,.aloytv-server-download:hover{border-color:var(--aloytv-gold);color:var(--aloytv-gold-light)}
.aloytv-server-choice.active{border-color:var(--aloytv-gold);background:var(--aloytv-gold);color:#111;box-shadow:0 0 0 1px rgba(213,170,87,.16)}
.aloytv-server-download b{color:var(--aloytv-gold);font-size:17px}
.aloytv-server-empty,.aloytv-server-feedback{margin:8px 0 0;color:#bbc3cf;font-size:12px;line-height:1.8}
.aloytv-episode-nav{display:flex;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.1)}
.aloytv-episode-nav a,.aloytv-back-details{display:inline-flex;align-items:center;justify-content:center;min-height:35px;padding:7px 10px;border:1px solid rgba(255,255,255,.14);border-radius:8px;color:#eee;font-size:11px;font-weight:700;text-decoration:none}
.aloytv-episode-nav a{flex:1}
.aloytv-back-details{width:100%;margin-top:9px;color:var(--aloytv-gold-light)}
.aloytv-loading{position:fixed;z-index:999999;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:auto;padding:max(22px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:radial-gradient(circle at 50% 38%,#1a2230 0%,#10141d 55%,#080a0f 100%);text-align:center;-webkit-overflow-scrolling:touch}
.aloytv-loading-brand{display:inline-flex;align-items:center;gap:9px;margin-bottom:23px;padding:9px 17px;border:1px solid rgba(213,170,87,.55);border-radius:999px;color:var(--aloytv-gold-light);font-size:15px;font-weight:900;letter-spacing:.4px}
.aloytv-loading-brand span{color:var(--aloytv-gold)}
.aloytv-loading h1{max-width:min(780px,94vw);margin:0 0 10px;color:#fff;font-size:clamp(23px,4.4vw,36px);font-weight:800;line-height:1.35}
.aloytv-loading p{margin:0;color:#c4c9d2;font-size:clamp(14px,2.3vw,17px);line-height:1.7}
.aloytv-loading-progress{width:min(430px,88vw);height:7px;margin:26px auto 22px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.12)}
.aloytv-loading-progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#a77b2b,var(--aloytv-gold-light));transition:width .15s linear}
#aloytv-start-watch{display:inline-flex;width:min(230px,86vw);min-height:52px;align-items:center;justify-content:center;padding:12px 22px;border:0;border-radius:999px;background:var(--aloytv-gold);color:#111;font:800 16px Tahoma,Arial,sans-serif;cursor:pointer;opacity:.5;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:opacity .2s ease,background .2s ease,transform .2s ease}
#aloytv-start-watch:not(:disabled){opacity:1}
#aloytv-start-watch:not(:disabled):hover{background:var(--aloytv-gold-light);transform:translateY(-1px)}
#aloytv-start-watch:disabled{cursor:not-allowed}
.aloytv-player-host .aloytv-controls{position:absolute;z-index:80;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:10px;width:100%;min-width:0;padding:64px clamp(14px,3.2vw,46px) calc(20px + env(safe-area-inset-bottom));direction:ltr;color:#fff;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.28) 22%,rgba(0,0,0,.88) 100%);opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;transition:opacity .28s ease,transform .28s ease,visibility .28s ease}
body.aloytv-controls-hidden .aloytv-player-host .aloytv-controls,body.aloytv-controls-hidden .aloytv-player-host .aloytv-center-actions{opacity:0;visibility:hidden;transform:translateY(20px);pointer-events:none}
body.aloytv-controls-hidden .aloytv-player-host{cursor:none}
.aloytv-player-host .aloytv-seek-wrap{position:relative;width:100%;height:18px;display:flex;align-items:center;min-width:0;touch-action:pan-y}
.aloytv-player-host .aloytv-seek-track{position:absolute;left:0;right:0;top:50%;height:4px;transform:translateY(-50%);overflow:hidden;border-radius:99px;background:rgba(255,255,255,.3);transition:height .16s ease}
.aloytv-player-host .aloytv-seek-buffered{position:absolute;left:0;top:0;height:100%;width:0;background:rgba(255,255,255,.42)}
.aloytv-player-host .aloytv-seek-progress{position:absolute;left:0;top:0;height:100%;width:0;background:var(--aloytv-gold)}
.aloytv-player-host .aloytv-seek{position:relative;z-index:2;appearance:none;-webkit-appearance:none;display:block;width:100%;height:18px;margin:0;padding:0;border:0;outline:none;background:transparent;cursor:pointer}
.aloytv-player-host .aloytv-seek::-webkit-slider-runnable-track{height:4px;background:transparent}
.aloytv-player-host .aloytv-seek::-moz-range-track{height:4px;background:transparent}
.aloytv-player-host .aloytv-seek::-webkit-slider-thumb{-webkit-appearance:none;width:13px;height:13px;margin-top:-4.5px;border:2px solid #fff;border-radius:50%;background:var(--aloytv-gold);box-shadow:0 1px 6px rgba(0,0,0,.65);opacity:0;transform:scale(.8);transition:opacity .16s ease,transform .16s ease}
.aloytv-player-host .aloytv-seek::-moz-range-thumb{width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:var(--aloytv-gold);box-shadow:0 1px 6px rgba(0,0,0,.65);opacity:0;transform:scale(.8);transition:opacity .16s ease,transform .16s ease}
.aloytv-player-host .aloytv-controls:hover .aloytv-seek::-webkit-slider-thumb,.aloytv-player-host .aloytv-seek:focus-visible::-webkit-slider-thumb,.aloytv-player-host .aloytv-controls:hover .aloytv-seek::-moz-range-thumb,.aloytv-player-host .aloytv-seek:focus-visible::-moz-range-thumb{opacity:1;transform:scale(1)}
.aloytv-player-host .aloytv-controls-row{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-width:0;min-height:42px}
.aloytv-player-host .aloytv-control-group{display:flex;align-items:center;gap:clamp(5px,1vw,13px);min-width:0}
.aloytv-player-host .aloytv-control-btn{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:7px;min-width:40px;min-height:40px;padding:7px;border:0;border-radius:50%;background:transparent;color:#fff;font:700 15px Tahoma,Arial,sans-serif;cursor:pointer;touch-action:manipulation;text-shadow:0 1px 5px rgba(0,0,0,.9);transition:background .16s ease,transform .16s ease,color .16s ease}
.aloytv-player-host .aloytv-control-btn:hover,.aloytv-player-host .aloytv-control-btn:focus-visible{background:rgba(255,255,255,.16);color:var(--aloytv-gold-light);outline:none;transform:scale(1.06)}
.aloytv-player-host .aloytv-control-btn svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.aloytv-player-host .aloytv-control-btn.primary{width:48px;height:48px;min-width:48px;min-height:48px;background:rgba(255,255,255,.12)}
.aloytv-player-host .aloytv-control-btn.primary svg{width:25px;height:25px}
.aloytv-player-host .aloytv-time{flex:0 0 auto;min-width:48px;color:#fff;font:600 12px Tahoma,Arial,sans-serif;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums;text-shadow:0 1px 5px #000}
.aloytv-player-host .aloytv-volume{display:block;flex:0 1 88px;width:88px;min-width:50px;height:4px;margin:0;accent-color:var(--aloytv-gold);cursor:pointer}
.aloytv-player-host .aloytv-speed{height:34px;max-width:76px;padding:0 7px;border:1px solid rgba(255,255,255,.18);border-radius:7px;background:rgba(20,20,20,.55);color:#fff;font:700 11px Tahoma,Arial,sans-serif;outline:none;cursor:pointer}
.aloytv-player-host .aloytv-speed option{background:#17191e;color:#fff}
.aloytv-player-host .aloytv-center-actions{position:absolute;z-index:65;left:50%;top:50%;display:flex;align-items:center;justify-content:center;gap:clamp(18px,4vw,42px);transform:translate(-50%,-50%);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility .18s ease}
.aloytv-player-host.is-paused .aloytv-center-actions{opacity:1;visibility:visible;pointer-events:auto}
.aloytv-player-host .aloytv-center-btn{display:flex;align-items:center;justify-content:center;width:clamp(48px,6vw,68px);height:clamp(48px,6vw,68px);border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(12,14,18,.66);color:#fff;box-shadow:0 8px 30px rgba(0,0,0,.35);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);cursor:pointer;transition:transform .16s ease,background .16s ease}
.aloytv-player-host .aloytv-center-btn.main{width:clamp(66px,8vw,88px);height:clamp(66px,8vw,88px);background:rgba(213,170,87,.94);color:#111}
.aloytv-player-host .aloytv-center-btn:hover{transform:scale(1.08);background:rgba(213,170,87,.94);color:#111}
.aloytv-player-host .aloytv-center-btn svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.aloytv-player-host .aloytv-center-btn.main svg{width:34px;height:34px;fill:currentColor;stroke:none}
.aloytv-player-host .aloytv-control-btn:focus-visible,.aloytv-player-host .aloytv-controls input:focus-visible,.aloytv-player-host .aloytv-speed:focus-visible{outline:2px solid var(--aloytv-gold);outline-offset:3px}
.aloytv-watch-screen:fullscreen,.aloytv-watch-screen:-webkit-full-screen{width:100%;height:100%;background:#000}
.aloytv-watch-screen:fullscreen .aloytv-player-wrap,.aloytv-watch-screen:-webkit-full-screen .aloytv-player-wrap{position:absolute;inset:0;width:100%;height:100%}
@media(max-width:640px){
 .aloytv-player-host .aloytv-controls{gap:7px;padding:42px 12px calc(12px + env(safe-area-inset-bottom))}
 .aloytv-player-host .aloytv-controls-row{gap:7px;min-height:36px}
 .aloytv-player-host .aloytv-control-btn{min-width:34px;min-height:34px;padding:4px}
 .aloytv-player-host .aloytv-control-btn svg{width:19px;height:19px}
 .aloytv-player-host .aloytv-control-btn.primary{width:40px;height:40px;min-width:40px;min-height:40px}
 .aloytv-player-host .aloytv-time{min-width:39px;font-size:10px}
 .aloytv-player-host .aloytv-volume{flex-basis:56px;width:56px;min-width:32px}
 .aloytv-player-host .aloytv-speed{height:31px;max-width:65px;font-size:10px}
 .aloytv-player-host .aloytv-center-btn{width:48px;height:48px}
 .aloytv-player-host .aloytv-center-btn.main{width:64px;height:64px}
 .aloytv-watch-toolbar{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));left:max(8px,env(safe-area-inset-left));grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:7px;min-height:54px;padding:7px 8px;border-radius:12px}
 .aloytv-watch-brand{gap:6px;font-size:14px}.aloytv-brand-mark{width:30px;height:30px;border-radius:8px}.aloytv-watch-kicker{font-size:8px;letter-spacing:1px}.aloytv-watch-title{font-size:11px}
 .aloytv-toolbar-btn{min-height:38px;gap:5px;padding:0 9px;border-radius:9px;font-size:11px}.aloytv-toolbar-btn svg{width:15px;height:15px}
 .aloytv-server-choice,.aloytv-server-download{min-height:38px;padding:7px 8px;font-size:11px}
 .aloytv-server-panel{top:calc(max(8px,env(safe-area-inset-top)) + 64px);right:8px;width:min(360px,calc(100vw - 16px));max-height:calc(100dvh - 84px)}
 .aloytv-loading{padding:calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom))}
 .aloytv-loading-brand{margin-bottom:18px;padding:8px 15px;font-size:13px}.aloytv-loading h1{font-size:clamp(21px,6vw,28px)}.aloytv-loading-progress{width:88vw;margin:21px auto 18px}#aloytv-start-watch{min-height:50px}
}
@media(max-width:480px){.aloytv-player-host .aloytv-controls{padding-left:9px;padding-right:9px;gap:5px}.aloytv-player-host .aloytv-controls-row{gap:4px}.aloytv-player-host .aloytv-control-group{gap:3px}.aloytv-player-host .aloytv-control-btn{width:32px;min-width:32px;min-height:32px;padding:3px}.aloytv-player-host .aloytv-control-btn.primary{width:36px;height:36px;min-width:36px;min-height:36px}.aloytv-player-host .aloytv-volume,.aloytv-player-host .aloytv-speed,.aloytv-player-host .aloytv-control-btn[aria-label="نافذة داخل نافذة"]{display:none!important}.aloytv-player-host .aloytv-time{min-width:32px;font-size:9px}}
@media(max-width:440px){.aloytv-toolbar-btn .aloytv-btn-text{display:none}.aloytv-toolbar-btn{width:38px;padding:0}.aloytv-watch-toolbar{grid-template-columns:auto minmax(0,1fr) auto auto auto}}
@media(max-width:390px){.aloytv-watch-brand{font-size:12px}.aloytv-brand-mark{width:27px;height:27px}.aloytv-toolbar-btn{width:35px;padding:0;font-size:10px}.aloytv-watch-toolbar{gap:5px}}
@media(max-height:520px) and (orientation:landscape){.aloytv-player-host .aloytv-controls{gap:4px;padding-top:26px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}.aloytv-player-host .aloytv-controls-row{min-height:29px;gap:4px}.aloytv-player-host .aloytv-control-btn{min-height:28px;min-width:28px;padding:2px}.aloytv-player-host .aloytv-control-btn svg{width:17px;height:17px}.aloytv-player-host .aloytv-control-btn.primary{width:32px;height:32px;min-width:32px;min-height:32px}.aloytv-player-host .aloytv-time{font-size:9px;min-width:33px}.aloytv-player-host .aloytv-volume{flex-basis:40px;width:40px}.aloytv-player-host .aloytv-speed{height:26px;max-width:54px;font-size:9px}.aloytv-player-host .aloytv-center-btn{width:42px;height:42px}.aloytv-player-host .aloytv-center-btn.main{width:56px;height:56px}.aloytv-loading{justify-content:flex-start;padding-top:14px;padding-bottom:12px}.aloytv-loading-brand{margin-bottom:8px;padding:6px 13px}.aloytv-loading h1{margin-bottom:3px;font-size:19px}.aloytv-loading p{font-size:13px}.aloytv-loading-progress{width:min(300px,55vw);margin:10px auto}.aloytv-loading #aloytv-start-watch{min-height:42px;width:min(190px,55vw);font-size:14px}.aloytv-watch-toolbar{min-height:48px}.aloytv-toolbar-btn{min-height:34px}}
@media(prefers-reduced-motion:reduce){.aloytv-watch-screen *{scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* Keep the compact toolbar aligned when this item has no download servers. */
.aloytv-watch-toolbar.no-downloads{grid-template-columns:auto minmax(0,1fr) auto auto}
@media(max-width:640px){.aloytv-watch-toolbar.no-downloads{grid-template-columns:auto minmax(0,1fr) auto auto}}
@media(max-width:440px){.aloytv-watch-toolbar.no-downloads{grid-template-columns:auto minmax(0,1fr) auto auto}}


/* 1.0.22: show the normal AlooyTV site header and footer on the dedicated watch page. */
body.aloytv-watch-mode{
  margin:0!important;
  min-height:100%;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  background:#0e0e0e!important;
}
body.aloytv-watch-mode .ay-main{
  min-height:0;
  overflow:visible!important;
  padding:clamp(18px,3vw,34px) 0 clamp(24px,4vw,46px);
  background:#0e0e0e;
}
body.aloytv-watch-mode .ay-header{position:sticky;top:0;z-index:1000}
body.aloytv-watch-mode .ay-footer{position:relative;z-index:1;margin-top:0}
.aloytv-watch-screen{
  position:relative;
  z-index:2;
  inset:auto;
  width:min(1200px,calc(100% - 32px));
  height:auto;
  min-height:0;
  margin:0 auto;
  overflow:visible;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:#080a0f;
  box-shadow:0 18px 55px rgba(0,0,0,.38);
}
.aloytv-player-wrap{
  position:relative;
  inset:auto;
  width:100%;
  height:auto;
  min-height:200px;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:17px;
  background:radial-gradient(ellipse at center,#111722 0%,#050609 72%);
}
.aloytv-player-host{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-height:0;
  flex:1 1 auto;
  border-radius:inherit;
}
.aloytv-watch-toolbar{
  position:absolute;
  top:14px;
  right:14px;
  left:14px;
}
.aloytv-server-panel{
  position:absolute;
  top:86px;
  right:14px;
  max-height:min(72vh,620px);
}
.aloytv-loading{
  position:absolute;
  inset:0;
  z-index:100;
  border-radius:17px;
}
.aloytv-watch-screen.is-expanded,
.aloytv-watch-screen:fullscreen,
.aloytv-watch-screen:-webkit-full-screen{
  position:fixed!important;
  z-index:2147483000!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  max-width:none!important;
  margin:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  background:#000!important;
  box-shadow:none!important;
}
.aloytv-watch-screen.is-expanded .aloytv-player-wrap,
.aloytv-watch-screen:fullscreen .aloytv-player-wrap,
.aloytv-watch-screen:-webkit-full-screen .aloytv-player-wrap{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-height:0;
  aspect-ratio:auto;
  border-radius:0;
}
.aloytv-watch-screen.is-expanded .aloytv-watch-toolbar,
.aloytv-watch-screen:fullscreen .aloytv-watch-toolbar,
.aloytv-watch-screen:-webkit-full-screen .aloytv-watch-toolbar{
  position:absolute;
}
.aloytv-watch-screen.is-expanded .aloytv-server-panel,
.aloytv-watch-screen:fullscreen .aloytv-server-panel,
.aloytv-watch-screen:-webkit-full-screen .aloytv-server-panel{
  position:absolute;
}
.aloytv-watch-screen.is-expanded .aloytv-loading,
.aloytv-watch-screen:fullscreen .aloytv-loading,
.aloytv-watch-screen:-webkit-full-screen .aloytv-loading{
  position:absolute;
  border-radius:0;
}
@media(max-width:700px){
  body.aloytv-watch-mode .ay-main{padding:14px 0 28px}
  .aloytv-watch-screen{width:calc(100% - 20px);border-radius:12px}
  .aloytv-player-wrap{min-height:190px;border-radius:11px}
  .aloytv-watch-toolbar{top:8px;right:8px;left:8px;gap:6px;min-height:48px;padding:6px 7px;border-radius:10px}
  .aloytv-server-panel{top:64px;right:8px;width:min(360px,calc(100% - 16px));max-height:calc(100% - 76px);padding:11px}
  .aloytv-loading{border-radius:11px}
}
@media(max-width:380px){
  .aloytv-watch-screen{width:calc(100% - 14px)}
  .aloytv-player-wrap{min-height:180px}
  .aloytv-watch-toolbar{grid-template-columns:auto minmax(0,1fr) auto auto;gap:4px}
}
body.aloytv-fallback-fullscreen{overflow:hidden!important}
body.aloytv-fallback-fullscreen .ay-header,
body.aloytv-fallback-fullscreen .ay-footer{visibility:hidden}
