@font-face{font-family:Abunasser;src:url('/abbeedo.otf')}*{box-sizing:border-box}html{height:100%;--accent:#f33838;--bg:#0b1017;--panel:#101722;--border:#3a4251;--muted:#b6bbc6;--ink:#f5f6f8;--scale:1;--motion:32s;font-size:calc(16px * var(--scale));color-scheme:dark}body{margin:0;min-height:100%;color:var(--ink);font-family:Abunasser,system-ui,-apple-system,sans-serif;background:var(--bg);background-image:linear-gradient(#ffffff0b 1px,transparent 1px),linear-gradient(90deg,#ffffff0b 1px,transparent 1px),radial-gradient(ellipse at 85% 0%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 68%),radial-gradient(ellipse at 0% 100%,#10493155,transparent 68%);background-size:42px 42px,42px 42px,100% 100%,100% 100%;background-attachment:fixed}body[data-theme=light]{--bg:#e9edf1;--panel:#f6f8fc;--border:#b4bdca;--muted:#485467;--ink:#111d2c;color-scheme:light}body[data-theme=sport]{--accent:#49e0a7;--bg:#061b1b;--panel:#09292e}body[data-theme=cinema]{--accent:#f3bb5d;--bg:#170c1b;--panel:#211426}body[data-high-contrast=true]{--border:#c6d1e3;--muted:#f0f2f9}body[data-background=off]{background-attachment:scroll}body[data-background=fast]{--motion:10s}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{border:1px solid var(--border);border-radius:18px;background:var(--panel);color:var(--accent);cursor:pointer;min-height:44px;padding:9px 15px;display:inline-flex;align-items:center;justify-content:center;gap:9px;line-height:1.45;transition:background .15s,border-color .15s,transform .15s}button:hover{border-color:var(--accent);background:color-mix(in srgb,var(--panel) 90%,var(--accent))}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button:active{transform:scale(.98)}button:disabled{opacity:.6;cursor:wait}button svg{width:22px;height:22px;flex:none}button.primary{border-color:var(--accent);background:color-mix(in srgb,var(--panel) 87%,var(--accent));box-shadow:inset 0 0 0 1px var(--accent)}button.danger{color:#ff7b7b}button.selected,button[aria-pressed=true]{color:var(--ink);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 22%,var(--panel))}input,select,textarea{min-width:0;color:var(--ink);background:transparent;border:1px solid var(--border);border-radius:16px;min-height:42px;padding:9px 13px;line-height:1.45;outline:none}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.95}select option{background:var(--panel);color:var(--ink)}input[type=checkbox]{width:19px;min-height:19px;height:19px;accent-color:var(--accent);flex:none;margin:0}input[type=color]{padding:3px;width:64px}input[type=range]{accent-color:var(--accent);padding:0}a{color:var(--accent);text-decoration:none}p{margin:0;line-height:1.65}h1,h2,h3,h4{margin:0;line-height:1.5;font-weight:700}.muted{color:var(--muted)}.app-shell{height:100dvh;min-height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) max(14px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(14px,env(safe-area-inset-left));max-width:1700px;margin:auto}.app-header{height:68px;flex:none;display:flex;align-items:center;gap:12px;position:relative;z-index:2}.app-header>.pill{margin-inline-end:auto;min-width:90px}.app-header>.pill svg{display:none}.page-heading{font-size:calc(22px * var(--scale));white-space:nowrap}.icon-button{width:44px;min-height:44px;height:44px;padding:10px;flex:none}.pill{border-radius:20px}.panel{background:color-mix(in srgb,var(--panel) 97%,transparent);border:1px solid var(--border);border-radius:20px;padding:12px}.page{height:100%;min-height:0}#main-content{flex:1;min-height:0}.brand-block{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;flex:none}.brand-logo{width:112px;height:112px;object-fit:contain;filter:drop-shadow(0 2px 4px #0003)}.brand-block h2{font-size:calc(30px * var(--scale));font-weight:700;line-height:1.45;margin-top:9px}.brand-block h2 bdi{font-family:Georgia,serif}.tagline{font-size:calc(20px * var(--scale));color:var(--muted);line-height:1.45;margin-top:2px}.login-hint{font-size:calc(13px * var(--scale));color:var(--muted);margin-top:2px;margin-bottom:4px}.login-page{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:10px 0 28px;overflow:auto}.login-bottom{width:min(100%,620px);display:flex;flex-direction:column;gap:12px}.login-card{display:flex;flex-direction:column;gap:8px}.mode-row{display:grid;grid-template-columns:1fr;gap:6px}.source-label{font-size:calc(12px * var(--scale));color:var(--muted);display:none}.mode-row select{font-weight:700;border:none;padding-block:2px;min-height:32px;width:100%}.remember{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:calc(12px * var(--scale));order:3}.credentials-row{display:flex;gap:7px}.credentials-row>input,.password-wrap{width:50%}.credentials-row input{text-align:right;width:100%;font-size:calc(14px * var(--scale))}.password-wrap{position:relative}.password-wrap input{padding-inline-end:35px}.field-icon{position:absolute;inset-inline-end:4px;top:4px;min-height:34px;height:34px;width:32px;border:0;padding:6px;background:none;color:var(--muted)}.field-icon svg{width:18px;height:18px}.source-extra{text-align:right;width:100%;font-size:calc(13px * var(--scale));direction:ltr}.import-row{display:flex;gap:8px}.import-row button{flex:1;min-height:36px;padding:5px 10px;font-size:calc(13px * var(--scale))}.import-row button svg{width:18px;height:18px}.login-actions{display:flex;flex-direction:column;gap:7px}.login-actions button{width:100%;min-height:44px;font-size:calc(15px * var(--scale))}.subscribe-button{width:100%;min-height:46px}.inline-error{padding:8px 10px;border:1px solid #a54148;background:#511e2833;border-radius:10px;color:#ffb3b8;font-size:calc(13px * var(--scale))}.home-page{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;padding:5px 0 18px;overflow:auto}.home-cards{display:flex;direction:ltr;gap:9px;width:min(100%,840px)}.home-card{flex:1;min-width:0;min-height:125px;padding:18px 5px 13px;display:flex;flex-direction:column;gap:12px;border-radius:22px;color:var(--ink);background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel) 95%,var(--accent)))}.home-card svg{width:60px;height:60px;color:var(--accent);filter:drop-shadow(0 0 12px color-mix(in srgb,var(--accent) 40%,transparent))}.home-card span{font-size:calc(16px * var(--scale));line-height:1.4}.home-tools{display:flex;flex:none;overflow-x:auto;gap:7px;width:100%;scrollbar-width:thin;padding:2px 2px 6px}.home-tools button{white-space:nowrap;min-width:92px;min-height:44px;padding:8px 12px;font-size:calc(13px * var(--scale))}.home-tools svg{display:none}.developer-button{width:min(100%,840px);min-height:44px;flex:none}.home-subscription{text-align:center;color:var(--muted);font-size:calc(11px * var(--scale));max-width:100%;display:flex;flex-direction:column;gap:6px}.home-subscription p{line-height:1.6}.catalog-page{display:flex;flex-direction:column}.catalog-top{flex:none}.catalog-tabs{display:flex;gap:7px;margin-bottom:10px}.catalog-tabs button{flex:1;min-height:40px;font-size:calc(14px * var(--scale))}.search-bar{display:flex;align-items:center;gap:6px;margin-bottom:10px}.search-input{display:flex;align-items:center;gap:7px;flex:1;min-width:0;border-bottom:1px solid var(--muted)}.search-input>span svg{width:20px;height:20px;color:var(--muted)}.search-input input{border:0;padding:7px 0;min-width:0;width:100%;font-size:calc(14px * var(--scale))}.search-bar .icon-button{width:38px;height:38px;min-height:38px;border-radius:14px;padding:8px}.catalog-body{display:flex;gap:12px;flex:1;min-height:0}.category-list{display:flex;flex-direction:column;overflow:auto;gap:7px;width:145px;flex:none;padding-bottom:16px}.category-list button{font-size:calc(12px * var(--scale));line-height:1.5;min-height:45px;text-align:start;padding:8px}.catalog-results{flex:1;min-width:0;overflow:auto;padding:0 3px 30px}.catalog-count{display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:calc(12px * var(--scale));color:var(--muted);margin-bottom:10px}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px}.content-card{position:relative;min-width:0;border:1px solid var(--border);border-radius:17px;overflow:hidden;background:var(--panel)}.poster-button{display:block;min-height:0;width:100%;padding:0;border:0;border-radius:0;color:var(--accent);height:215px;background:linear-gradient(140deg,var(--panel),color-mix(in srgb,var(--accent) 13%,var(--panel)));overflow:hidden}.poster-button img{display:block;width:100%;height:100%;object-fit:cover}.poster-button .fallback-poster{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.fallback-poster svg{width:65px;height:65px}.card-info{padding:10px}.card-info h3{font-size:calc(13px * var(--scale));line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.card-info small{display:block;font-size:calc(10px * var(--scale));color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}.card-actions{display:flex;gap:5px;padding:0 8px 8px}.card-actions button{flex:1;padding:4px;min-height:32px;height:32px;border-radius:10px}.card-actions button svg{width:17px;height:17px}.live-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.live-grid .poster-button{height:80px}.live-grid .poster-button img{object-fit:contain;padding:10px}.live-grid .fallback-poster svg{width:43px;height:43px}.live-grid .card-info{padding-top:5px}.more-button{margin-top:18px;width:100%}.empty-message{padding:55px 15px;text-align:center;color:var(--muted)}#catalog-status{font-size:calc(12px * var(--scale));margin-bottom:8px}.details-page{overflow:auto;padding-bottom:30px}.details-layout{display:grid;grid-template-columns:210px 1fr;gap:25px;align-items:start;max-width:1100px;margin:15px auto}.details-poster{width:100%;aspect-ratio:2/3;object-fit:cover;border:1px solid var(--border);border-radius:22px;background:var(--panel)}.details-meta h2{font-size:calc(28px * var(--scale));margin-bottom:10px}.detail-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.detail-badges span{padding:5px 9px;background:var(--panel);border:1px solid var(--border);border-radius:9px;font-size:calc(12px * var(--scale))}.details-plot{color:var(--muted);font-size:calc(15px * var(--scale));line-height:1.9;margin-bottom:20px}.details-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;font-size:calc(13px * var(--scale));color:var(--muted)}.details-facts strong{display:block;color:var(--ink);font-weight:500;margin-bottom:4px}.detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.detail-actions button{flex:1;min-width:110px;font-size:calc(13px * var(--scale))}.episode-list{grid-column:1/-1}.episode-list details{border:1px solid var(--border);border-radius:16px;margin-bottom:12px;overflow:hidden;background:var(--panel)}.episode-list summary{padding:13px 15px;cursor:pointer;color:var(--accent)}.episode-list button{margin:4px 8px 8px;max-width:calc(100% - 16px);font-size:calc(13px * var(--scale));text-align:start;justify-content:start}.settings-page,.collection-page{overflow:auto;padding:0 4px 25px}.settings-intro{margin:5px 0 23px}.settings-intro p{font-size:calc(21px * var(--scale))}.settings-intro span{font-size:calc(12px * var(--scale))}.settings-group{margin-bottom:25px}.settings-group h2{font-size:calc(18px * var(--scale));color:var(--accent);margin:0 3px 12px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.setting-tile{min-height:115px;padding:15px 9px;color:var(--ink);display:flex;flex-direction:column;gap:8px;text-align:center}.setting-tile svg{width:27px;height:27px;color:var(--accent)}.setting-tile strong{font-size:calc(13px * var(--scale));line-height:1.55;font-weight:500}.setting-tile small{font-size:calc(11px * var(--scale));line-height:1.4;color:var(--muted)}.settings-footer{text-align:center;font-size:calc(12px * var(--scale));color:var(--muted);line-height:1.8;margin:30px 0}.collection-heading{font-size:calc(24px * var(--scale));margin:10px 0 18px}.list-row{display:flex;gap:12px;align-items:center;border:1px solid var(--border);border-radius:16px;padding:12px;background:var(--panel);margin-bottom:9px}.list-row>div{flex:1;min-width:0}.list-row h3{font-size:calc(14px * var(--scale));overflow-wrap:anywhere}.list-row p{font-size:calc(12px * var(--scale));color:var(--muted)}.list-row button{padding:7px 11px;font-size:calc(12px * var(--scale));min-height:36px;flex:none}.sheet{width:min(94vw,600px);max-height:min(88dvh,800px);overflow:auto;color:var(--ink);background:var(--panel);border:1px solid var(--border);border-radius:23px;padding:19px;box-shadow:0 20px 80px #0007}.sheet::backdrop{background:#03070dba;backdrop-filter:blur(5px)}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.sheet-heading h2{font-size:calc(21px * var(--scale))}.sheet-heading .icon-button{border-radius:14px;width:38px;height:38px;min-height:38px}.sheet p{margin-bottom:12px;font-size:calc(14px * var(--scale));color:var(--muted)}.sheet .phone-number{font-family:system-ui,sans-serif;font-size:calc(31px * var(--scale));color:var(--ink);letter-spacing:2px;text-align:center;direction:ltr;margin:24px 0}.sheet-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.sheet-actions>*{flex:1;min-height:42px}.sheet input:not([type=checkbox]),.sheet textarea,.sheet select{width:100%;margin:5px 0 11px}.sheet label{font-size:calc(13px * var(--scale));display:block;margin-top:10px;color:var(--muted)}.sheet .choice-list{display:flex;flex-direction:column;gap:7px}.choice-list button{justify-content:start;text-align:start;color:var(--ink);font-size:calc(14px * var(--scale))}.choice-list button .choice-value{margin-inline-start:auto;color:var(--muted);font-size:calc(11px * var(--scale))}.toast{position:fixed;bottom:max(26px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;background:#edf3fd;color:#101721;padding:13px 20px;border-radius:14px;box-shadow:0 10px 30px #0004;z-index:40;text-align:center;font-size:calc(13px * var(--scale))}.player-page{position:fixed;inset:0;background:#000;z-index:10;overflow:hidden;isolation:isolate}.player-page video{width:100%;height:100%;object-fit:contain}.player-top{position:absolute;top:0;left:0;right:0;display:flex;gap:12px;align-items:start;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 35px max(14px,env(safe-area-inset-left));background:linear-gradient(#000b,transparent);pointer-events:none}.player-top>*{pointer-events:auto}.player-top>div{flex:1;text-align:start}.player-top h2{font-size:calc(17px * var(--scale));text-shadow:0 1px 4px #000}.player-top p{font-size:calc(11px * var(--scale));color:#d4d9e1;text-shadow:0 1px 3px #000}.player-top button{background:#101722b5;color:#fff}.player-bottom{position:absolute;bottom:0;left:0;right:0;padding:38px max(13px,env(safe-area-inset-right)) max(13px,env(safe-area-inset-bottom)) max(13px,env(safe-area-inset-left));background:linear-gradient(transparent,#000c);pointer-events:none}.player-tools{display:flex;overflow:auto;gap:7px;padding:4px 0;scrollbar-width:thin;pointer-events:auto}.player-tools button{flex:none;min-height:37px;border-radius:13px;background:#101722c9;color:#e1e5ee;font-size:calc(11px * var(--scale));padding:7px 10px;white-space:nowrap}.player-tools svg{width:18px;height:18px}.secondary-tools button{border-color:#6a748273}.receiver-panel{position:absolute;top:max(12px,env(safe-area-inset-top));bottom:max(12px,env(safe-area-inset-bottom));inset-inline-start:max(12px,env(safe-area-inset-right));width:min(850px,calc(100% - 24px));border:1px solid #6c7785aa;border-radius:20px;background:#0d1521dc;backdrop-filter:blur(12px);padding:12px;color:#fff;display:flex;flex-direction:column;z-index:15}.receiver-header{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:7px;flex:none}.receiver-header h3{text-align:center;font-size:calc(17px * var(--scale))}.receiver-header input{grid-column:1/-1;width:100%;border-radius:10px;border-color:#77829888;padding:8px;min-height:40px;font-size:calc(13px * var(--scale))}.receiver-header button{background:#101722a0}.receiver-columns{display:grid;grid-template-columns:40% 60%;direction:ltr;min-height:0;flex:1;margin:10px 0;gap:6px}.receiver-categories,.receiver-channels{overflow:auto;display:flex;flex-direction:column;gap:4px;direction:rtl;padding:2px}.receiver-categories button,.receiver-channels button{border-radius:10px;min-height:49px;flex:none;font-size:calc(12px * var(--scale));color:#fff;border-color:#65708666;background:#10172266;justify-content:start;text-align:start;padding:8px}.receiver-categories button.selected,.receiver-channels button.selected{border-color:#eac26d;background:#50678d70}.receiver-channels button{direction:ltr;gap:8px}.receiver-channels button img{width:31px;height:31px;object-fit:contain;border-radius:5px}.receiver-channels button small{color:#ced8e6;font-family:system-ui;font-size:calc(10px * var(--scale))}.receiver-channels button span{direction:auto;line-height:1.45}.receiver-panel footer{font-size:calc(11px * var(--scale));color:#d2d9e5;flex:none;padding:4px 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.screen-lock,.screensaver{position:fixed;inset:0;z-index:35;background:#090f1b;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:20px}.screen-lock form{width:min(100%,350px);display:flex;flex-direction:column;gap:14px;text-align:center;padding:25px}.screen-lock img{width:100px;height:100px;object-fit:contain;align-self:center}.screen-lock h2{font-size:calc(22px * var(--scale))}.screen-lock input{text-align:center}.screen-lock p{color:#ffacac;font-size:calc(12px * var(--scale))}.screensaver{background:#000;cursor:pointer;color:#aaa}.screensaver time{font-family:system-ui;font-size:calc(60px * var(--scale))}.screensaver p{font-size:calc(14px * var(--scale));margin-top:20px}.capture-preview{max-width:100%;max-height:50vh;border-radius:10px}.progress-track{height:5px;background:#ffffff20;border-radius:5px;margin:8px 0;overflow:hidden}.progress-track>div{height:100%;background:var(--accent)}.visually-hidden{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.badge{display:inline-flex;padding:3px 8px;border:1px solid var(--border);border-radius:8px;color:var(--muted);font-size:calc(11px * var(--scale))}.media-metadata{font-size:calc(12px * var(--scale));color:var(--muted)}
@media(min-width:650px){.app-shell{padding-inline:max(28px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-left))}.settings-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.setting-tile{min-height:130px}.catalog-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.live-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.poster-button{height:240px}.home-tools{justify-content:flex-start;max-width:1150px}.home-tools button{min-width:110px}.home-cards{max-width:1150px}.home-card{min-height:155px}.home-card svg{width:74px;height:74px}.developer-button{max-width:1150px}}
@media(orientation:portrait) and (max-width:649px){.category-list{width:96px;gap:6px}.category-list button{font-size:calc(10px * var(--scale));padding:7px 5px}.catalog-body{gap:8px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.poster-button{height:168px}.live-grid{grid-template-columns:1fr}.live-grid .poster-button{height:65px}.catalog-tabs button{font-size:calc(12px * var(--scale));padding-inline:5px}.search-bar{gap:4px}.search-bar .icon-button{width:33px;height:35px;min-height:35px;padding:7px}.search-input input{font-size:calc(12px * var(--scale))}.details-layout{grid-template-columns:105px 1fr;gap:15px;margin-top:8px}.details-meta h2{font-size:calc(19px * var(--scale))}.detail-badges{gap:5px;margin-bottom:10px}.detail-badges span{font-size:calc(10px * var(--scale));padding:4px 6px}.details-plot,.details-facts,.detail-actions{grid-column:1/-1}.details-facts{grid-template-columns:1fr 1fr}.details-layout>.details-meta{display:contents}.details-meta h2,.detail-badges{grid-column:2}.details-meta h2{align-self:end}.details-poster{grid-column:1;grid-row:1/3}.detail-badges{align-self:start}.episode-list{grid-column:1/-1}.receiver-columns{grid-template-columns:43% 57%}.receiver-categories button,.receiver-channels button{font-size:calc(11px * var(--scale))}.receiver-channels button img{width:26px;height:26px}.receiver-header h3{font-size:calc(14px * var(--scale))}.receiver-header button{min-height:36px;height:36px}.receiver-header .pill{padding-inline:10px}.player-top h2{font-size:calc(15px * var(--scale))}.player-top{gap:9px}.player-top .icon-button{width:37px;height:37px;min-height:37px}.settings-intro p{font-size:calc(18px * var(--scale))}.setting-tile{min-height:105px}.sheet{padding:15px}.sheet-heading h2{font-size:calc(19px * var(--scale))}.sheet-actions button{font-size:calc(12px * var(--scale))}}
@media(orientation:landscape) and (max-height:600px){.app-header{height:37px;gap:8px}.app-header>.pill{min-height:31px;height:31px;min-width:85px;font-size:calc(11px * var(--scale));padding:4px 10px;border-radius:13px}.app-header .icon-button{height:31px;min-height:31px;width:36px;padding:7px;border-radius:12px}.page-heading{font-size:calc(17px * var(--scale))}.app-shell{padding-inline:max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-left))}.brand-block{gap:2px}.brand-logo{width:112px;height:112px}.brand-block h2{font-size:calc(20px * var(--scale));line-height:1.25;margin-top:3px}.tagline{font-size:calc(14px * var(--scale));line-height:1.3;margin-top:4px}.login-hint{font-size:calc(11px * var(--scale));line-height:1.4;margin-top:4px;margin-bottom:0}.login-page{justify-content:center;gap:7px;padding:0 0 4px;overflow:auto}.login-bottom{max-width:1120px;gap:6px}.login-card{padding:7px;gap:5px;display:grid;grid-template-columns:1fr 1fr 1fr}.mode-row{grid-column:1/3;grid-row:1;display:flex;gap:10px;align-items:center;min-width:0}.mode-row select{flex:1;min-width:100px;font-size:calc(12px * var(--scale));height:27px;min-height:27px;padding:2px 4px}.remember{font-size:calc(9px * var(--scale));flex:none}.remember input{width:15px;height:15px;min-height:15px}.credentials-row{grid-column:1/3;grid-row:2;gap:6px}.credentials-row input{min-height:31px;height:31px;font-size:calc(12px * var(--scale));padding-block:4px;border-radius:12px}.password-wrap .field-icon{top:1px;min-height:28px;height:28px;padding:6px}.import-row{grid-column:1/3;grid-row:3;gap:5px}.import-row button{min-height:27px;height:27px;padding:2px 8px;font-size:calc(11px * var(--scale));border-radius:11px}.import-row button svg{height:16px;width:16px}.login-actions{grid-column:3;grid-row:1/4;gap:5px;justify-content:center}.login-actions button{min-height:40px;height:40px;padding:5px 8px;font-size:calc(12px * var(--scale));border-radius:13px}.subscribe-button{min-height:31px;height:31px;padding:4px;font-size:calc(12px * var(--scale));border-radius:13px}.source-extra{grid-column:1/3;grid-row:3;min-height:28px;height:28px;padding:4px 8px;font-size:calc(11px * var(--scale))}.login-card:has(.source-extra:not([hidden])) .import-row{grid-row:4}.login-card:has(.source-extra:not([hidden])) .login-actions{grid-row:1/5}.login-card:has(#mac:not([hidden])) #mac{grid-column:2;grid-row:3}.login-card:has(#mac:not([hidden])) #server{grid-column:1;grid-row:3}.login-card:has(#playlist-url:not([hidden])) #playlist-url{grid-row:2}.login-card:has(#credentials-row[hidden]) .import-row{grid-row:3}.inline-error{grid-column:1/-1;font-size:calc(10px * var(--scale));padding:3px 7px;margin:0}.home-page{justify-content:center;gap:5px;padding:0 0 3px}.home-page .brand-block{gap:1px}.home-cards{gap:8px;max-width:none}.home-card{min-height:71px;height:71px;border-radius:16px;flex-direction:row;padding:7px 16px;gap:18px}.home-card svg{width:55px;height:55px}.home-card span{font-size:calc(16px * var(--scale))}.home-tools{padding:0 1px 3px;gap:6px;max-width:none}.home-tools button{min-height:31px;height:31px;min-width:89px;padding:3px 9px;font-size:calc(11px * var(--scale));border-radius:13px}.developer-button{min-height:30px;height:30px;padding:3px 8px;border-radius:13px;max-width:none;font-size:calc(12px * var(--scale))}.home-subscription{flex-direction:row;gap:18px;justify-content:space-between;width:100%;font-size:calc(9px * var(--scale))}.home-subscription p{line-height:1.4}.catalog-tabs{gap:5px;margin-bottom:5px}.catalog-tabs button{min-height:30px;height:30px;padding:4px;font-size:calc(12px * var(--scale));border-radius:12px}.search-bar{margin-bottom:5px;gap:5px}.search-bar .icon-button{width:32px;height:30px;min-height:30px;padding:6px;border-radius:11px}.search-input input{min-height:30px;height:30px;padding:4px 0;font-size:calc(12px * var(--scale))}.catalog-body{gap:10px}.category-list{width:145px;gap:5px}.category-list button{min-height:35px;font-size:calc(10px * var(--scale));padding:6px;border-radius:12px}.catalog-count{font-size:calc(10px * var(--scale));margin-bottom:6px}.catalog-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:9px}.poster-button{height:140px}.card-info{padding:7px}.card-info h3{font-size:calc(11px * var(--scale))}.card-info small{font-size:calc(9px * var(--scale))}.live-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.live-grid .poster-button{height:55px}.settings-intro{margin:3px 0 13px}.settings-intro p{font-size:calc(17px * var(--scale))}.settings-intro span{font-size:calc(10px * var(--scale))}.settings-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.setting-tile{min-height:104px;padding:10px 7px;gap:6px}.setting-tile svg{width:23px;height:23px}.setting-tile strong{font-size:calc(11px * var(--scale))}.setting-tile small{font-size:calc(10px * var(--scale))}.settings-group{margin-bottom:18px}.settings-group h2{font-size:calc(15px * var(--scale));margin-bottom:8px}.sheet{max-height:92dvh}.receiver-panel{top:8px;bottom:8px;padding:8px}.receiver-header{grid-template-columns:35px 1fr auto}.receiver-header h3{font-size:calc(14px * var(--scale))}.receiver-header .icon-button{width:32px;height:32px;min-height:32px;padding:6px}.receiver-header .pill{min-height:30px;height:30px;font-size:calc(11px * var(--scale));padding:4px 9px}.receiver-header input{min-height:31px;height:31px;font-size:calc(11px * var(--scale))}.receiver-columns{margin:6px 0}.receiver-categories button,.receiver-channels button{min-height:40px;font-size:calc(11px * var(--scale));padding:6px}.receiver-channels button img{width:25px;height:25px}.receiver-panel footer{font-size:calc(10px * var(--scale))}.player-top{padding-top:max(8px,env(safe-area-inset-top))}.player-top .icon-button{height:33px;min-height:33px;width:36px;padding:7px}.player-top h2{font-size:calc(14px * var(--scale))}.player-top p{font-size:calc(10px * var(--scale))}.player-bottom{padding-top:20px;padding-bottom:max(7px,env(safe-area-inset-bottom))}.player-tools{gap:5px;padding:2px 0}.player-tools button{min-height:29px;height:29px;padding:4px 8px;font-size:calc(10px * var(--scale));border-radius:10px}.player-tools svg{width:16px;height:16px}.secondary-tools button{font-size:calc(9px * var(--scale))}.details-layout{margin:8px auto;grid-template-columns:150px 1fr;gap:18px}.details-meta h2{font-size:calc(23px * var(--scale))}.details-plot{font-size:calc(13px * var(--scale))}.details-facts{font-size:calc(11px * var(--scale))}.detail-actions{margin:12px 0}.detail-actions button{min-height:35px;font-size:calc(11px * var(--scale))}.detail-badges{margin-bottom:10px}.detail-badges span{font-size:calc(10px * var(--scale))}.episode-list{grid-column:2}.toast{bottom:12px;padding:9px 15px;font-size:calc(11px * var(--scale))}}
@media(orientation:landscape) and (max-height:360px){.brand-block h2{font-size:calc(18px * var(--scale))}.brand-logo{width:92px;height:92px}.tagline{font-size:calc(12px * var(--scale))}.home-card{height:61px;min-height:61px}.home-card svg{width:45px;height:45px}.home-card span{font-size:calc(14px * var(--scale))}.login-hint{font-size:calc(10px * var(--scale))}.home-subscription{font-size:calc(8px * var(--scale))}.app-header{height:33px}.login-actions button{min-height:35px;height:35px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}body[data-reduced-motion=true] *,body[data-reduced-motion=true] *:before,body[data-reduced-motion=true] *:after{animation:none!important;transition:none!important}

.qr-picture{width:min(100%,290px);margin:16px auto;padding:9px;background:#fff;border-radius:16px;color:#000}.qr-picture svg{display:block;width:100%;height:auto}.qr-camera{width:100%;max-height:46dvh;border-radius:15px;background:#000;object-fit:cover}.list-row .download-actions{display:flex;flex-wrap:wrap;gap:5px;flex:none}.download-actions button{font-size:calc(11px * var(--scale))}
@media(orientation:portrait) and (max-height:740px){.app-header{height:56px}.login-page{gap:12px;padding:4px 0 8px}.login-card{gap:6px}.home-page{gap:11px;padding-bottom:8px}.home-card{min-height:110px}.home-card svg{width:60px;height:60px}.home-subscription{font-size:calc(10px * var(--scale))}}
@keyframes backgroundDrift{from{background-position:0 0,0 0,0 0,0 0}to{background-position:42px 42px,42px 42px,20px 0,-20px 0}}body[data-background=standard],body[data-background=fast]{animation:backgroundDrift var(--motion) linear infinite}body[data-background=off]{animation:none}

/* Keep the full subscription form visible on smaller iPhones without shrinking its logo. */
@media(orientation:portrait) and (max-height:740px){
 #login-brand h2{font-size:calc(26px * var(--scale));margin-top:0}
 #login-brand .tagline{font-size:calc(18px * var(--scale))}
 .login-page{gap:10px}
 .login-card{padding:10px;gap:4px}
 .login-bottom{gap:8px}
 .login-card .remember{font-size:calc(11px * var(--scale));line-height:1.45}
 .login-actions{gap:5px}
 .login-actions button,.subscribe-button{min-height:42px;padding-block:7px}
}
/* Compact landscape keeps complete source forms visible, with separate cells for every control. */
@media(orientation:landscape) and (max-height:420px){
 .login-page{gap:5px;padding-bottom:0}
 .login-bottom{gap:4px}
 .login-card{padding:6px;gap:4px}
 .login-card:has(.source-extra:not([hidden])) .login-actions{grid-row:1/4}
 .login-card:has(#credentials-row:not([hidden])):has(#server:not([hidden])) #server{grid-column:1;grid-row:3}
 .login-card:has(#credentials-row:not([hidden])):has(#server:not([hidden])) .import-row{grid-column:2;grid-row:3}
 .login-card:has(#mac:not([hidden])) #server{grid-column:1;grid-row:2}
 .login-card:has(#mac:not([hidden])) #mac{grid-column:2;grid-row:2}
 .login-card:has(#mac:not([hidden])) .import-row{grid-column:1/3;grid-row:3}
 .home-page{gap:3px;padding-bottom:1px}
}
@media(orientation:landscape) and (max-height:420px){
 .login-page .brand-logo,.home-page .brand-logo{margin-top:calc(0px - min(10px,env(safe-area-inset-bottom)));margin-bottom:calc(0px - min(10px,env(safe-area-inset-bottom)))}
}
/* Match the Arabic app header: settings on the left and back on the right. */
.app-header{direction:ltr}.app-header .page-heading{direction:rtl;flex:1}
html[dir=ltr] .app-header{direction:rtl}html[dir=ltr] .app-header .page-heading{direction:ltr}

/* Larger text deliberately keeps a scroll fallback instead of clipping controls. */
body.large-text .app-shell{height:auto;min-height:100dvh}
body.large-text .page:not([hidden]){height:auto;min-height:0;overflow:visible}
body.large-text .login-page,body.large-text .home-page{padding-block:14px;gap:14px}
body.large-text .login-actions button,body.large-text .subscribe-button{height:auto;min-height:44px}
body.large-text .home-card{height:auto;min-height:100px}

/* Keep the poster hit target stable while artwork loads or falls back. */
.poster-button *{pointer-events:none}
