*{box-sizing:border-box}body{margin:0;padding:3vh 3vw;background:radial-gradient(ellipse at top left,#34414e,#141920 55%,#29333e);color:#eef1f5;font:18px Arial,sans-serif;height:100vh;overflow:hidden}header{display:flex;align-items:center;gap:16px;height:9vh}header img{width:48px;height:48px;object-fit:contain}header strong{font-size:30px}header small,footer,#count,#status{color:#bac2cc}#modeLabel{margin-inline-start:auto}main{display:grid;grid-template-columns:20% 30% 1fr;gap:14px;height:78vh}.glass{background:linear-gradient(135deg,#404954b4,#283039d1,#39414ba1);border:1px solid #ffffff26;border-radius:18px;padding:14px;min-width:0;overflow:hidden;box-shadow:0 5px 14px #0004}nav{display:flex;flex-direction:column;gap:10px}button,input,select,textarea{font:inherit;color:inherit;background:#222a33;border:1px solid #ffffff29;border-radius:9px;padding:12px;min-width:0}button{text-align:start;cursor:pointer}body:not(.remoteFocus) button:hover{outline:3px solid #f2b233;outline-offset:1px}button.active{background:#f2b233;color:#141920}#library{display:flex;flex-direction:column;gap:10px}#filters{display:flex;gap:6px}#search{width:55%}#sort{width:45%}#list{overflow:auto;flex:1;padding:4px;display:flex;flex-direction:column;gap:8px}#list button{flex-shrink:0;display:flex;align-items:center;gap:10px;overflow-wrap:anywhere}#list img{width:42px;height:32px;object-fit:contain}#list input,#list textarea,#list select{width:100%;flex-shrink:0}.player{display:flex;flex-direction:column}#screen{position:relative;background:#090b0f;aspect-ratio:16/9;max-height:55%;display:flex;align-items:center;justify-content:center;border-radius:12px;overflow:hidden}video{width:100%;height:100%;object-fit:contain}#empty{position:absolute;color:#7f8997;font-size:30px;pointer-events:none}h2{font-size:24px;margin:18px 0 0}.actions{display:flex;gap:12px;margin-top:auto}.actions button{flex:1;text-align:center;font-size:24px}footer{padding-top:2vh;font-size:14px}#cursor{position:fixed;z-index:99999;width:24px;height:30px;background:#fff;clip-path:polygon(0 0,0 85%,30% 65%,52% 100%,68% 90%,48% 55%,87% 55%);filter:drop-shadow(1px 1px 2px black);pointer-events:none}body.virtual{cursor:none}
body.full main{display:block;height:100vh}body.full{padding:0}body.full header,body.full nav,body.full #library,body.full footer,body.full h2,body.full #status{display:none}body.full .player{height:100vh;padding:0;border:0;border-radius:0}body.full #screen{height:100vh;max-height:none;aspect-ratio:auto}body.full .actions{position:absolute;bottom:16px;right:20px;left:20px}body.full .actions:not(:focus-within):not(:hover){opacity:.35}

#group{width:100%;flex-shrink:0} .actions{gap:8px}.actions button{min-width:0;padding:10px 4px} body{background:radial-gradient(ellipse at top left,#292d35,#101216 65%,#1e2229)} .glass{background:linear-gradient(145deg,#292d35,#1b2027);border-color:#ffffff19} button.active{color:#111;background:#f2b233} #screen{width:100%;max-height:65%;} #screen video{position:absolute;inset:0} #empty[hidden]{display:none}
 #list button{min-height:48px} @media(max-width:1000px){body{font-size:15px}header strong{font-size:23px}header small{font-size:11px}.glass{padding:10px}main{gap:8px;grid-template-columns:20% 32% 1fr}.actions button{font-size:17px}header img{width:38px;height:38px}}
/* Windows source style.dart / Library desktop layout */
body{padding:12px;background:linear-gradient(135deg,#333e4a 0%,#141920 45%,#29333e 100%);font-size:clamp(15px,1.25vw,22px)}header{position:absolute;top:18px;right:25px;height:44px;z-index:2}header img,header strong,header small{display:none}main{display:flex;gap:14px;height:calc(100vh - 24px)}.glass{background:linear-gradient(135deg,#4a535eb4,#283039d1,#39414ba1);border:1px solid #ffffff2b;box-shadow:0 5px 14px #0004}.sidebar{width:clamp(190px,19vw,300px);flex-shrink:0;border-radius:40px;display:flex;flex-direction:column;align-items:center;padding:24px 8px}.sidebar>img{width:64px;height:64px;object-fit:contain}.sidebar>strong{font-size:24px;margin:8px 0 26px}nav{width:100%;gap:5px}nav button{background:transparent;border:0;border-radius:24px;display:flex;align-items:center;gap:14px;padding:14px;min-height:54px}nav button.active{background:#ffffff14;color:#d5dbe3}nav button .glyph{font-size:26px;width:30px;text-align:center;color:#f2b233}nav button:nth-child(2) .glyph{color:#f76b80}nav button:nth-child(5) .glyph{color:#58b9ef}#library{flex:1;background:none;border:0;box-shadow:none;padding:8px 12px;gap:12px}.heading{display:flex;align-items:center;justify-content:space-between;padding-right:150px;min-height:60px}.heading h1{font-size:32px;margin:0;letter-spacing:-.7px}.tools{display:flex;gap:4px;background:#ffffff0c;border:1px solid #ffffff20;border-radius:40px;padding:4px}.tools button{border:0;background:transparent;color:#d5dbe3;font-size:24px;padding:8px 14px;border-radius:28px}#filters{width:100%}#search{width:100%;border-radius:30px;padding:14px 20px;background:#2f2f2f80}#sort{width:155px;border-radius:20px}#facets{padding:10px;gap:8px;background:linear-gradient(135deg,#4a535eb4,#283039d1,#39414ba1);border:1px solid #ffffff2b;border-radius:22px}#facets label{flex:1;min-width:0;font-size:13px;color:#bac2cc;padding:2px 8px}#facets select{display:block;width:100%;border:0;background:#ffffff0a;border-radius:12px;margin-top:5px}#count{padding:0 10px;font-weight:600}#notice:empty{display:none}#notice{color:#f2b233;font-size:14px}#list{padding:8px;gap:12px}#list.channelGrid,#list.collectionGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));align-content:start;align-items:start;gap:14px}#list.channelRows{display:flex}.channelCard{position:relative;min-width:0}.channelCard>button:first-child{display:flex!important;flex-direction:column;align-items:stretch!important;background:transparent;border:0;padding:0;width:100%;gap:6px!important}.thumb{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;border-radius:14px;background:linear-gradient(135deg,#4a535eb4,#283039d1,#39414ba1);border:1px solid #ffffff2b;overflow:hidden}.thumb img{width:54%!important;height:58%!important;object-fit:contain}.channelNumber,.category{position:absolute;bottom:6px}.channelNumber{left:8px;display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:28px;padding:0 10px;border-radius:9px;background:linear-gradient(180deg,#17202bd9,#0d141ddf);border:1px solid #ffffff14;box-shadow:0 8px 18px #0005;color:#f4f7fc;font-size:18px;font-weight:700;line-height:1;letter-spacing:.02em;font-variant-numeric:tabular-nums}.category{right:6px;background:#0006;padding:4px 7px;border-radius:6px;font-size:12px;max-width:70%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.channelName{padding:5px 38px 5px 4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;font-weight:600;font-size:16px}.addCollection{position:absolute;bottom:0;right:0;min-height:30px!important;padding:4px 10px;background:transparent;border:0;color:#e1b969}.channelRows .channelCard>button:first-child{flex-direction:row;align-items:center!important}.channelRows .thumb{width:95px;flex-shrink:0}.channelRows .category,.channelRows .channelNumber{display:none}.sourceCard{background:linear-gradient(135deg,#4a535eb4,#283039d1,#39414ba1);border:1px solid #ffffff2b;border-radius:24px;padding:16px;display:flex;flex-direction:column;gap:10px}.sourceCard h2{margin:0;font-size:22px}.metrics{display:flex;gap:10px}.metrics span{flex:1;border:1px solid #ffffff20;background:#ffffff0e;border-radius:15px;padding:16px;color:#d5dbe3}.sourceCard button{border-radius:30px;background:#ffffff12}.player{display:none}body.full .player,body.mini .player{display:flex}body.full{padding:0}body.full .sidebar{display:none}body.full main{height:100vh}body.full header{display:none}body.full #closePlayer{position:absolute;top:16px;left:16px;z-index:3}body.mini .player{position:fixed;bottom:22px;right:22px;width:32vw;min-width:280px;z-index:5;background:#283039;padding:10px}body.mini .player h2{font-size:16px;margin:6px 0}body.mini .actions button{font-size:16px}body.mini #list{padding-bottom:32vh}footer{display:none}body.full .actions{z-index:2}#list>button{border-radius:20px}#list>input,#list>textarea,#list>select{border-radius:20px}body:not(.remoteFocus) button:hover{outline:3px solid #f2b233;outline-offset:2px} @media(max-width:850px){.heading{padding-right:115px}.heading h1{font-size:24px}.sidebar{width:175px}.tools button{padding:6px}.sidebar>strong{font-size:20px}#list.channelGrid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}}

.cardStar,.cardRemove{position:absolute;top:5px;right:5px;min-height:30px!important;padding:5px 9px!important;background:#141920c9;color:#f2b233;z-index:1}.cardRemove{right:45px}.playerOptions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.playerOptions select,.playerOptions button{padding:6px;font-size:14px}body.full .playerOptions{position:absolute;bottom:84px;left:20px;right:20px;z-index:3;background:#111b;border-radius:12px;padding:8px}body.full #guide{position:absolute;top:65px;left:20px;right:20px;color:white;text-shadow:0 1px 5px black;pointer-events:none}body.full #status{display:block;position:absolute;top:110px;left:20px;background:#111b;padding:8px;border-radius:8px;z-index:2}#status:empty{display:none!important}.light{color:#202632;background:linear-gradient(135deg,#eef3fa,#c5d2df)}.light .glass,.light .thumb,.light .sourceCard,.light #facets{background:linear-gradient(135deg,#f8fafc,#d8e2eb);border-color:#a6b4c4}.light button,.light input,.light select,.light textarea{color:#202632;background:#e8edf4;border-color:#b5c3d3}.light nav button.active,.light #count,.light #facets label,.light .metrics span{color:#24344a}.light .player{background:#1b222c;color:white}.light #search{background:#fff9}.light .category,.light .channelNumber{color:white}#list>label{display:block;padding:8px}body.full .playerOptions:not(:focus-within):not(:hover){opacity:.5}/* TV-first layout, 10-foot interface */
:root{color-scheme:dark}body{padding:3vh 2.7vw;font-size:clamp(14px,1.12vw,22px);background:radial-gradient(ellipse at 8% 0%,#35414d 0%,#161b22 55%,#252e39 100%)}header{position:static;height:9vh;display:flex;gap:14px;align-items:center}header img,header strong,header small{display:block}header strong{font-size:clamp(23px,2vw,36px)}header small{font-size:clamp(10px,.85vw,16px)}header #modeLabel{font-size:14px}main{display:grid;grid-template-columns:minmax(0,19fr) minmax(0,30fr) minmax(0,51fr);gap:14px;height:80vh}.glass,.sidebar,#library,.player{background:linear-gradient(145deg,#414a556b,#283039d9);border:1px solid #ffffff22;border-radius:18px;box-shadow:0 6px 20px #0003;padding:12px;min-width:0;min-height:0}.sidebar{width:auto;display:flex;align-items:stretch}.sidebar>img,.sidebar>strong{display:none}nav{gap:8px}nav button{border:1px solid #ffffff16;border-radius:10px;min-height:48px;padding:12px;gap:10px;background:#202831;white-space:normal}nav button.active{background:#f2b233;color:#171b20}nav button.active .glyph{color:inherit}nav button .glyph{font-size:21px;width:24px;flex-shrink:0}#library{gap:8px;display:flex;flex-direction:column}.heading{padding:0;min-height:34px;gap:6px}.heading h1{font-size:clamp(17px,1.45vw,26px)}.tools{display:none}#filters{gap:6px}#search,#sort{width:50%;border-radius:9px;padding:10px;background:#222a33}#facets{padding:6px;gap:4px;border:0;background:transparent;flex-wrap:wrap}#facets label{padding:0;flex:1 1 42%;font-size:12px}#facets select{padding:8px;font-size:14px;background:#222a33;border:1px solid #ffffff15;margin-top:3px}#list{padding:4px;gap:8px}#list.channelRows .channelCard{display:flex;align-items:center;background:#202831;border:1px solid #ffffff12;border-radius:10px;min-height:58px;overflow:visible}#list.channelRows .channelCard>button:first-child{padding:7px;gap:8px!important;flex:1;min-width:0} .channelRows .thumb{width:44px;aspect-ratio:1;border:0;background:#ffffff09;border-radius:6px}.channelRows .thumb img{width:85%!important;height:85%!important}.channelRows .channelName{font-size:inherit;padding:0 55px 0 0;min-width:0}.channelRows .cardStar,.channelRows .addCollection,.channelRows .cardRemove{top:50%;bottom:auto;transform:translateY(-50%);padding:6px!important;min-height:32px!important;background:#ffffff08;border:0}.channelRows .cardStar{right:8px}.channelRows .addCollection{right:37px}.channelRows .cardRemove{right:64px}.player{display:flex;position:relative;gap:10px}.playerHeading{display:flex;justify-content:space-between;font-size:12px;letter-spacing:1px;color:#b5bfca}#liveState{color:#f2b233}#closePlayer{display:none}#screen{width:100%;max-height:none;flex-shrink:0;aspect-ratio:16/9}#current{font-size:clamp(18px,1.6vw,28px);margin:4px 0;overflow-wrap:anywhere}#guide,#status{font-size:14px;margin:0;overflow-wrap:anywhere}.playerOptions{margin-top:auto;gap:6px}.playerOptions select,.playerOptions button{max-width:100%;font-size:14px}.actions{margin-top:0;gap:6px}.actions button{font-size:20px;padding:12px 4px}.emptyList{padding:22px 8px;color:#b5bfca;text-align:center}footer{display:block;padding-top:1.4vh;font-size:12px}body:not(.playing) .playerOptions{visibility:hidden}body:not(.playing) .actions{opacity:.5}body[data-page=add] main,body[data-page=settings] main,body[data-page=sources] main,body[data-page=collections] main{grid-template-columns:minmax(0,19fr) minmax(0,81fr)}body[data-page=add] .player,body[data-page=settings] .player,body[data-page=sources] .player,body[data-page=collections]:not(.playing) .player{display:none}body[data-page=collections] .player{display:none}body[data-page=add] #library,body[data-page=settings] #library{padding:20px 24px}#list.formPage{max-width:850px;width:100%;align-self:center;gap:14px}.methodTabs{display:flex;gap:10px}.methodTabs button{flex:1;text-align:center}.methodPanel{display:flex;flex-direction:column;gap:10px;background:#11182055;border:1px solid #ffffff18;border-radius:14px;padding:16px}.methodPanel[hidden]{display:none!important}.methodPanel label{display:flex;flex-direction:column;gap:6px;color:#c1c9d2;font-size:14px}.methodPanel textarea{min-height:66px;resize:vertical}.primary{background:#f2b233!important;color:#171b20!important;text-align:center!important;font-weight:bold}.sourceCard{border-radius:14px;max-width:850px;width:100%;align-self:center}.sourceCard button{border-radius:9px}.light{color-scheme:light}.light .player{background:#e1e7ef;color:#202632}body.full main{display:block;height:100vh}body.full .player{display:flex!important;height:100vh;background:#090b0f}body.full .playerHeading{display:none}body.full #closePlayer{display:block}body.full #screen{height:100vh;aspect-ratio:auto}body.full footer{display:none}body.full .actions{margin:0}body.full #guide{z-index:2}

body:not(.remoteFocus) button:hover{outline:1px solid #ffd052} @media(max-height:650px){nav button{min-height:38px;padding:8px}header{height:8vh}.player{gap:5px}.actions button{padding:6px}.playerOptions select,.playerOptions button{padding:4px}.heading h1{font-size:18px}}
body[data-page=collections].full .player{display:flex!important}body.full .player{padding:0;border:0;border-radius:0;gap:0}body.full .actions{bottom:16px}body.full #screen{border-radius:0}body.full #closePlayer{background:#151a22bb;color:white}body[data-page=collections] #list.collectionGrid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}#list.formPage>button{align-self:flex-start}
body.full #status{max-width:85vw}body:not(.full) .player{overflow:auto}body[data-page=add] #notice{max-width:850px;width:100%;align-self:center}
#list.channelRows .cardRemove{right:64px}.channelRows .channelCard:has(.cardRemove) .channelName{padding-inline-end:90px}


/* Unified vector control system */
.rojIcon{display:block;width:24px;height:24px;flex:none;color:inherit;pointer-events:none}.actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:8px;border:1px solid #ffffff0d;border-radius:16px;background:#10151c55}.actions button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:clamp(38px,3.5vw,64px);padding:8px;border-radius:10px;border:1px solid #ffffff12;background:linear-gradient(155deg,#323b46,#20262e);color:#eff3f8;box-shadow:inset 0 1px 0 #ffffff09}.actions .rojIcon{width:clamp(20px,1.65vw,30px);height:clamp(20px,1.65vw,30px)}.actions #play{background:#efb33e;color:#171c23;border-color:#f4c45b}
body:not(.remoteFocus) .actions button:hover{border-color:#e7b74c}.iconSelected{color:#f5bf48!important}.iconSelected .rojIcon{fill:#f5bf48}.playerOptions button,header #switch,.tools button,#closePlayer,.cardStar{display:inline-flex;align-items:center;justify-content:center}.playerOptions .rojIcon,.cardStar .rojIcon{width:20px;height:20px}nav .glyph{display:inline-flex;align-items:center;justify-content:center}nav .glyph .rojIcon{width:22px;height:22px}body.full .actions{background:#151b24e8;max-width:560px}
.light .actions button{color:#26313e;background:#e4e9f0;border-color:#b6c2d0}.light .actions #play{background:#efb33e;color:#171c23}
/* V2.1.0 – Cinema / premium television design system */
:root{--gold:#e9b94f;--ink:#090b0f;--panel:#12161d;--line:#ffffff12;--muted:#929caa;--white:#f4f5f7;--field:#191e27;color-scheme:dark}
body{height:100vh;padding:2.5vh 2.6vw 0;display:flex;flex-direction:column;background:radial-gradient(ellipse at 77% 0%,#252431 0%,#10141b 38%,#090b0f 78%);color:var(--white);font-family:'Segoe UI',Arial,sans-serif;font-size:clamp(13px,1.03vw,20px);letter-spacing:.02em}
header{flex:none;height:8.5vh;gap:12px;margin-bottom:2vh;padding:0 4px}header img{width:clamp(34px,3.25vw,62px);height:clamp(34px,3.25vw,62px)}header strong{font-size:clamp(22px,2.1vw,40px);letter-spacing:-.055em;font-weight:650}header small{border-inline-start:1px solid #ffffff24;padding-inline-start:14px;color:var(--muted);font-size:clamp(10px,.75vw,14px);letter-spacing:.13em}#modeLabel{border:1px solid #ffffff18;background:#ffffff08;color:var(--gold);font-size:12px!important;letter-spacing:.12em;padding:9px 14px;border-radius:30px}header #switch{width:44px;height:44px;padding:8px;border-radius:50%;background:#ffffff09}
main{flex:1;min-height:0;height:auto;grid-template-columns:minmax(0,17fr) minmax(0,34fr) minmax(0,49fr);gap:clamp(10px,1.1vw,22px)}.glass,.sidebar,#library,.player{background:linear-gradient(150deg,#1b2029,#11151c 80%);border:1px solid var(--line);border-radius:clamp(15px,1.4vw,26px);box-shadow:0 14px 40px #0004;min-width:0;min-height:0;padding:clamp(12px,1.15vw,24px)}.sidebar{background:linear-gradient(160deg,#181c24,#11141a);padding:14px 10px}nav{gap:7px}nav button{position:relative;min-height:clamp(40px,3.6vw,68px);border:1px solid transparent;background:transparent;color:#b5bdc9;border-radius:12px;padding:11px 12px;font-weight:500;gap:12px;font-size:clamp(13px,1.02vw,20px)}nav button.active{color:#f3cf79;background:linear-gradient(90deg,#e9b94f20,#e9b94f08);border-color:#e9b94f26}nav button.active:before{content:'';position:absolute;inset-block:12px;inset-inline-start:0;width:3px;border-radius:3px;background:var(--gold)}nav button .glyph,nav button:nth-child(2) .glyph,nav button:nth-child(5) .glyph{color:inherit}.sidebar nav .rojIcon{width:clamp(18px,1.35vw,26px);height:clamp(18px,1.35vw,26px)}
.heading{min-height:35px;margin-bottom:4px}.heading h1{font-size:clamp(20px,1.7vw,32px);font-weight:600;letter-spacing:-.04em}#library{gap:12px}button,input,select,textarea{background:var(--field);border:1px solid #ffffff13;border-radius:10px;color:var(--white);padding:11px 12px;line-height:1.35}input::placeholder,textarea::placeholder{color:#788493}#search,#sort,#facets select{background:var(--field);border-color:#ffffff13}#filters{gap:8px}#search{flex:1;width:0}#sort{width:38%}#facets{display:flex;padding:0;gap:8px;flex-wrap:nowrap}#facets label{flex:1;min-width:0;color:var(--muted);font-size:clamp(10px,.72vw,14px)}#facets select{width:100%;margin-top:6px;font-size:clamp(11px,.85vw,16px);padding:9px 7px}#count{font-size:12px;color:var(--muted);font-weight:500;padding:2px 0;letter-spacing:.06em}#list{padding:4px;gap:8px;scrollbar-width:thin;scrollbar-color:#434956 transparent}#list.channelRows .channelCard{background:#ffffff05;border:1px solid #ffffff09;border-radius:12px;min-height:64px}#list.channelRows .channelCard>button:first-child{flex-direction:row;align-items:center!important;padding:8px;gap:12px!important}.channelRows .thumb{width:46px;flex:none;background:#ffffff08;border-radius:9px}.channelRows .channelNumber,.channelRows .category{display:none}.channelRows .channelName{font-size:clamp(13px,1vw,19px);font-weight:500;padding-inline-end:70px}.channelRows .cardStar,.channelRows .addCollection,.channelRows .cardRemove{background:transparent;color:#9ea9b7}.channelRows .cardStar{right:7px}.channelRows .addCollection{right:38px}.emptyList{display:flex;flex-direction:column;align-items:center;gap:15px;padding:clamp(20px,5vh,60px) 8px 12px;color:#a5afbf}.emptyList strong{font-weight:500}.emptyMark{display:grid;place-items:center;width:66px;height:66px;border-radius:22px;background:#ffffff06;border:1px solid #ffffff0e;color:var(--gold)}.emptyMark .rojIcon{width:30px;height:30px}#list.channelRows>.emptyList+button{justify-content:center;align-self:center;padding:12px 18px;background:#e9b94f15;color:#f3cf79;border:1px solid #e9b94f38;border-radius:12px}
.player{gap:12px;background:linear-gradient(150deg,#1a1f29,#10141b 80%)}.playerHeading{font-size:11px;letter-spacing:.18em;color:#a6afbf;padding:1px 2px 4px}#screen{background:radial-gradient(ellipse at 50% 50%,#171b24,#080a0e 72%);border:1px solid #ffffff0c;border-radius:16px;max-height:58%;aspect-ratio:16/9}#empty{display:flex;flex-direction:column;align-items:center;gap:9px;color:#b7bfcb;letter-spacing:.04em}#empty img{width:clamp(42px,5vw,90px);height:clamp(42px,5vw,90px);object-fit:contain;opacity:.85}#empty strong{font-size:clamp(17px,1.9vw,34px);font-weight:550;letter-spacing:-.04em}#empty span{font-size:10px;letter-spacing:.28em;color:#778292}#empty[hidden]{display:none}#current{font-size:clamp(19px,1.7vw,32px);font-weight:600;letter-spacing:-.03em;margin:5px 0 0}#guide,#status{color:#a9b3c2;font-size:clamp(11px,.85vw,16px)}.playerOptions{margin-top:auto;gap:7px;justify-content:flex-start}.playerOptions select,.playerOptions button{background:#ffffff05;border-color:#ffffff0e;min-height:34px;font-size:12px;border-radius:8px}.actions{margin-top:0;padding:10px 4px 0;border:0;border-top:1px solid #ffffff13;border-radius:0;background:none;grid-template-columns:1fr 1.28fr 1fr 1fr 1fr 1fr;gap:clamp(4px,.55vw,10px)}.actions button{background:#ffffff06;box-shadow:none;border:1px solid #ffffff10;border-radius:14px;min-height:clamp(40px,4vw,74px);color:#d9e0eb}.actions #play{background:linear-gradient(145deg,#f4d384,#d9a43c);color:#17120a;border-color:#f7d98b}.actions .rojIcon{width:clamp(20px,1.65vw,30px);height:clamp(20px,1.65vw,30px)}body:not(.playing) .actions{opacity:.84}body:not(.playing) .playerOptions{visibility:hidden}body:not(.remoteFocus) button:hover{outline:none;border-color:#e9b94f65;background-color:#ffffff0c}

footer{height:6.5vh;flex:none;display:flex;align-items:center;gap:18px;padding:0 3px;color:#939eae;font-size:clamp(10px,.75vw,14px)}footer kbd{font:inherit;border:1px solid #ffffff18;padding:3px 6px;border-radius:5px;background:#ffffff06;color:#c9d0da}footer small{margin-inline-start:auto;letter-spacing:.15em;font-size:10px}
body[data-page=add] main,body[data-page=settings] main,body[data-page=sources] main,body[data-page=collections] main{grid-template-columns:minmax(0,17fr) minmax(0,83fr)}body[data-page=add] #library,body[data-page=settings] #library{padding:22px 28px}#list.formPage{max-width:840px;gap:16px;align-self:center}.methodTabs{background:#0c1017;padding:5px;border-radius:13px;border:1px solid #ffffff0e}.methodTabs button{justify-content:center;background:transparent;border-color:transparent;font-weight:600}.methodTabs button.active{background:#e9b94f19;border-color:#e9b94f38;color:#f3cf79}.methodPanel{background:#ffffff03;border:1px solid #ffffff10;padding:22px;gap:13px;border-radius:17px}.methodPanel label{color:#aab4c3;font-size:13px;gap:7px}.methodPanel input,.methodPanel textarea{background:#0d1118;border-color:#ffffff14;min-height:44px}.methodPanel .primary{background:linear-gradient(145deg,#f4d384,#d9a43c)!important;justify-content:center;border:0;color:#17120a!important}.methodPanel button{justify-content:center}.methodPanel input[type=file]::file-selector-button{background:#292f3a;color:#e7ebf2;border:0;border-radius:7px;padding:8px 12px;margin-inline-end:10px}.sourceCard{background:#ffffff05;border-color:#ffffff10;padding:18px;border-radius:15px}.sourceCard h2{margin:0 0 12px;font-weight:600}.sourceCard button{background:#ffffff07;border-color:#ffffff12}.settingsGrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-items:start;gap:16px!important}.settingsCard{padding:18px;background:#ffffff04;border:1px solid #ffffff10;border-radius:16px;display:flex;flex-direction:column;gap:11px;min-width:0}.settingsCard h2{margin:0 0 5px;font-size:19px;font-weight:600}.settingsCard label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:13px}.settingsCard button{background:#ffffff06;border-color:#ffffff12}.settingsCard input,.settingsCard select{background:#0d1118}.light{--white:#202632;--field:#f0f3f7;--muted:#5d6878;--line:#00000012;background:#e5ebf2;color:var(--white)}.light .glass,.light .sidebar,.light #library,.light .player{background:linear-gradient(145deg,#fff,#e5ebf2);border-color:#bac4d0}.light nav button{color:#364355}.light nav button.active{background:#e9b94f33;color:#604508}.light .settingsCard,.light .methodPanel{background:#ffffff55;border-color:#00000015}.light .settingsCard input,.light .settingsCard select,.light .methodPanel input,.light .methodPanel textarea{background:#fff;color:#202632}.light .actions #play{color:#17120a}.light .methodTabs{background:#dce3eb}.light #modeLabel{color:#76530a}body.full{display:block;padding:0}body.full main{height:100vh}body.full .player{border:0;border-radius:0;padding:0;background:#000}body.full #screen{max-height:none;border:0}body.full .actions{border:1px solid #ffffff16;border-radius:20px;background:#10141ce8;padding:12px;left:50%;right:auto;transform:translateX(-50%);width:min(80vw,600px);max-width:none}body.full .playerOptions{bottom:105px}body.full footer{display:none}
@media(max-width:1000px){main{grid-template-columns:minmax(0,18fr) minmax(0,34fr) minmax(0,48fr);gap:9px}.glass,.sidebar,#library,.player{padding:10px}nav button{padding:8px;gap:7px}.player{gap:7px}.actions{gap:4px;padding-top:8px}#facets{gap:4px}footer{gap:9px}.channelRows .channelName{padding-inline-end:60px}}@media(max-height:700px){header{margin-bottom:1vh}#library{gap:7px}.player{gap:7px}.methodPanel{padding:14px;gap:9px}.settingsCard{padding:13px}.actions button{min-height:38px}.emptyList{padding-top:20px}}

/* Android-derived navigation and shared collection control */
.saveOverlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;background:#080b10c9}.savePanel{width:min(520px,85vw);max-height:85vh;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:24px!important}.savePanel button{display:flex;align-items:center;gap:12px;text-align:start;min-height:46px}.savePanel h2{margin:0 0 8px;font-size:1.2em}.savePanel .active{color:#f2b233;border-color:#f2b233}.savePanel input{min-height:46px}.playerHeading{display:none!important}.channelCard .addCollection{display:flex;align-items:center;justify-content:center}.channelCard .addCollection .rojIcon{width:21px;height:21px}.sidebar nav button{min-height:48px}.sidebar nav{gap:8px}#groupLabel[hidden]{display:none!important}#empty[hidden]{display:none!important}.saveOverlay .glass{border:1px solid #ffffff28}.playerOptions select:disabled{display:none}.playerOptions #resolution:empty{display:none}
/* Familiar full-screen receiver layout. */
#classicControls{display:none}body.classicWatch #classicControls{display:block;position:fixed;inset:0;z-index:20;pointer-events:none;color:#fff;font-family:inherit}body.classicWatch .actions,body.classicWatch .playerOptions,body.classicWatch #closePlayer,body.classicWatch #guide{display:none!important}body.classicWatch #status:empty{display:none!important}body.classicWatch #status{top:6vh;left:5vw;max-width:80vw}#classicBanner{position:absolute;top:5vh;right:5vw;background:#111923ed;border:1px solid #ffffff30;border-left:4px solid #f4c34f;padding:18px 28px;border-radius:8px;font-size:clamp(20px,2.2vw,42px);max-width:70vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#classicList{position:absolute;top:7vh;bottom:12vh;left:4vw;width:min(42vw,680px);background:#10151df2;border:1px solid #ffffff25;border-radius:16px;padding:20px;pointer-events:auto;overflow:auto;box-shadow:0 18px 60px #0008}#classicList h2{display:block!important;margin:0 0 12px;font-size:clamp(20px,2vw,36px)}#classicRows{display:flex;flex-direction:column;gap:5px}#classicRows .classicRow{display:flex;align-items:center;gap:16px;text-align:start;background:#ffffff08;color:#fff;border:1px solid transparent;border-radius:7px;padding:10px 14px;min-height:44px;font-size:clamp(16px,1.6vw,28px)}#classicRows .classicRow span:first-child{color:#e9bd61;min-width:3em;font-variant-numeric:tabular-nums}#classicRows .classicRow span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#classicRows .chosen{border-color:#f3c34f;background:#ffffff16}#classicBar{position:absolute;bottom:3vh;left:50%;transform:translateX(-50%);display:flex;gap:8px;pointer-events:auto;background:#111923dc;padding:8px;border-radius:12px;opacity:.25}#classicBar:hover,#classicBar:focus-within,body.virtual #classicBar{opacity:1}#classicBar button{white-space:nowrap;padding:10px 16px;color:#fff;background:#ffffff0b;border:1px solid #ffffff1c;border-radius:7px}
#classicControls [hidden]{display:none!important}body.classicWatch #cursor{z-index:110}body.classicWatch #screen{cursor:pointer}
/* V3 approved blue glass receiver design */
:root{--gold:#ffca36;--white:#f5f7ff;--muted:#a9b9d1;--glass:linear-gradient(145deg,#314c6bb0,#0d1d33eb 65%,#1c314dc7);--line:#b1cdeb40}[hidden]{display:none!important}body{padding:1.6vh 2.2vw 1.3vh;background:radial-gradient(ellipse at 54% 5%,#234368,transparent 48%),radial-gradient(ellipse at 90% 95%,#1b365b,transparent 45%),linear-gradient(145deg,#071522,#07111f 62%,#102943);color:var(--white);font:clamp(14px,1.3vw,25px) Arial,'Segoe UI',sans-serif;display:flex;flex-direction:column;gap:1.5vh}header{flex:none;display:flex;align-items:center;height:8.5vh;margin:0;padding:0 1vw 1.3vh;border-bottom:1px solid #a0b9dc44;gap:1.1vw;position:relative;z-index:2}header:after,#watchHeader:after{content:'';position:absolute;height:1px;left:18%;right:10%;bottom:0;background:linear-gradient(90deg,transparent,#ffcf7388,transparent)}header img{width:4vw;height:4vw}header strong,.watchBrand strong{font-size:clamp(21px,2.5vw,48px);letter-spacing:-.035em;font-weight:750;white-space:nowrap}header strong em,.watchBrand em{color:#ffd12d;font-style:normal}#headerContext{font-size:1.6vw;color:#c4d0e2;white-space:nowrap}#headerContext:not(:empty){border-inline-start:1px solid #ffffff33;padding-inline-start:1.5vw}#headerClock,#watchClock{font-size:clamp(18px,2.1vw,40px);font-weight:600;font-variant-numeric:tabular-nums;margin-inline-start:1vw;white-space:nowrap}#modeLabel{font-size:clamp(10px,.85vw,16px);color:#b5c4da;letter-spacing:.08em}#switch{padding:.55vw;background:#ffffff0a;border:1px solid var(--line);border-radius:.7vw}main{height:auto;flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,17fr) minmax(0,33fr) minmax(0,50fr);gap:1.2vw;grid-template-rows:minmax(0,1fr)}.glass,.sidebar,#library,.player{background:var(--glass);border:1px solid var(--line);border-radius:1.45vw;box-shadow:inset 0 1px 0 #ffffff12,0 12px 30px #0003;padding:1vw}.sidebar{width:auto;padding:1.2vw .65vw;grid-row:1 / -1}.sidebar nav{gap:.65vh}.sidebar nav button{min-height:clamp(36px,6.6vh,90px);padding:.8vw .9vw;border-radius:.95vw;background:transparent;border:1px solid transparent;color:#e9effb;gap:.9vw;white-space:normal;line-height:1.25;font-size:clamp(13px,1.25vw,25px);font-weight:500}.sidebar nav button .glyph{color:inherit;width:auto}.sidebar nav .rojIcon{width:clamp(20px,2vw,36px);height:clamp(20px,2vw,36px)}.sidebar nav button.active{background:linear-gradient(155deg,#fff09b,#ffcc31 44%,#eaaa14);color:#191708;border-color:#ffe17a;box-shadow:0 0 17px #ffc72d55,inset 0 1px 3px #fff8}.sidebar nav button.active:before{display:none}body:not(.remoteFocus) .sidebar nav button:hover:not(.active){background:#ffffff10}

button,input,select,textarea{background:#0d2037b5;border-color:#a5bed82b;color:inherit;border-radius:.65vw}body:not(.remoteFocus) button:hover{border-color:#f9cb5f88}#library{padding:1.2vw;gap:1vh}.heading{min-height:4.3vh}.heading h1{font-size:clamp(18px,1.85vw,35px)}.tools{display:flex;gap:.2vw;padding:2px}.tools button{padding:.35vw;background:transparent}.tools .rojIcon{width:clamp(16px,1.4vw,27px);height:clamp(16px,1.4vw,27px)}#search,#sort{padding:.65vw;background:#0c2038;border-color:#aec9e52b;font-size:clamp(12px,1.05vw,20px)}#facets select{background:#0b2036;font-size:clamp(12px,1vw,19px);padding:.55vw}#list.channelRows .channelCard{background:linear-gradient(110deg,#29435d90,#152b43a0);border-radius:.7vw;border-color:#afc5e519;min-height:5.5vh}
.channelRows .channelNumber{display:block;left:0;bottom:0;font-size:9px;padding:1px 3px;background:#000b}#count{font-size:.95em;font-weight:400;color:#b2c3d9}.player{padding:.75vw;gap:.8vh;min-width:0;min-height:0;background:var(--glass);overflow:hidden!important}#screen{border:1px solid #a6c5ec55;border-radius:1.15vw;background:radial-gradient(ellipse at 50% 40%,#203957,#07121f 75%);min-height:0}#empty img{width:5vw;height:5vw}#empty strong{color:#d0deef}#previewLive{position:absolute;z-index:2;right:.9vw;top:1vh;background:#ce1626;color:#fff;border-radius:.45vw;font-size:1.1vw;font-weight:700;padding:.4vw .7vw}#previewInfo{min-width:0;display:flex;flex-direction:column;gap:.8vh;padding:.3vw .5vw}#previewIdentity{display:flex;gap:.8vw;align-items:center;min-width:0}#previewNumber{font-weight:700;color:#ffda5e;font-variant-numeric:tabular-nums}#current{flex:1;min-width:0;margin:0;font-size:clamp(17px,1.8vw,34px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#previewQuality,#watchQuality{font-size:.72em;color:#ffcf47;border:1px solid #ffcf47;border-radius:4px;padding:.1em .35em}#previewQuality:empty,#watchQuality:empty{display:none}.epgProgress{height:clamp(4px,.55vw,9px);border-radius:99px;background:#a4bbd43b;overflow:hidden}.epgProgress i{display:block;height:100%;background:linear-gradient(90deg,#f1aa15,#ffe05a);border-radius:99px}#guide{font-size:clamp(11px,1.05vw,20px);color:#c4cfe1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#status{color:#efce80;font-size:clamp(11px,.85vw,16px)}.actions button{background:#182c43;border-color:#a8c2e62b;border-radius:.8vw;min-height:4.7vh;padding:.4vw}.actions #play{background:linear-gradient(145deg,#ffe58a,#efb72f);border-color:#ffe494}.playerOptions select,.playerOptions button{background:#0f233a;border-color:var(--line)}footer{height:4vh;flex:none;padding:0 .25vw;display:flex;align-items:center;gap:1vw;font-size:clamp(10px,.85vw,16px)}
/* Home */
body[data-page=dashboard]:not(.full) main{grid-template-columns:minmax(0,17fr) minmax(0,32fr) minmax(0,51fr);grid-template-rows:minmax(0,65fr) minmax(0,35fr);gap:1.2vw}body[data-page=dashboard]:not(.full) #library{display:none}body[data-page=dashboard]:not(.full) #dashboard{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:1.2vh;min-height:0;overflow:hidden}body[data-page=dashboard]:not(.full) .player{grid-column:3;grid-row:1;display:flex;padding:0;gap:0;border-radius:1.5vw;position:relative}body[data-page=dashboard]:not(.full) #screen{flex:1;aspect-ratio:auto;border:none;border-radius:0;max-height:none;cursor:pointer}body[data-page=dashboard]:not(.full) #previewInfo{background:linear-gradient(150deg,#102740,#0b192e);padding:.8vw 1.1vw;gap:.65vh;border-top:1px solid #ffffff26}body[data-page=dashboard]:not(.full) .playerOptions,body[data-page=dashboard]:not(.full) .actions{display:none}body[data-page=dashboard]:not(.full) #status{position:absolute;top:1vw;left:1vw;background:#101a29e0;border-radius:7px;padding:.5vw;max-width:85%;z-index:3}body[data-page=dashboard]:not(.full) #dashboardCategories{grid-column:2 / 4;grid-row:2;display:flex;flex-direction:column;min-height:0;gap:1.1vh}#categoriesTitle{font-size:clamp(18px,1.7vw,32px);margin:0;padding:.3vh .15vw}#categoryTiles{display:flex;align-items:stretch;gap:.65vw;overflow:auto;padding:.35vw .2vw .6vw;min-height:0;flex:1}.categoryTile{flex:0 0 12%;min-width:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.9vh;text-align:center;background:linear-gradient(150deg,#3f5776a0,#1a304ba6 52%,#324966b0);border:1px solid #a9c0df50;border-radius:1.25vw;box-shadow:inset 0 1px 0 #ffffff23;padding:.65vw;min-height:0}.categoryTile strong{max-width:100%;font-size:clamp(12px,1.13vw,22px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:500}.categoryTile>span:last-child{color:#c5d1e1;font-size:clamp(11px,.95vw,18px)}.categoryTile .rojIcon{width:clamp(23px,2.65vw,50px);height:clamp(23px,2.65vw,50px)}.dashboardHeading,.listHead{display:flex;justify-content:space-between;align-items:center;gap:1vw;flex:none}.dashboardHeading h1{margin:0;font-size:clamp(18px,1.75vw,33px);letter-spacing:-.025em}.dashboardHeading button{background:transparent;border:0;font-size:2em;padding:0 .3vw;line-height:1}#dashboardRows{display:flex;flex-direction:column;gap:.6vh;overflow:auto;min-height:0}.dashboardRow,.classicRow{display:flex;align-items:center;gap:.9vw;text-align:start;padding:.55vw .75vw;min-width:0;background:linear-gradient(135deg,#27415baf,#10233a);border:1px solid #acc7eb17;border-radius:.8vw;min-height:clamp(32px,6vh,85px);color:#f4f7ff;flex:none}.rowNumber{font-variant-numeric:tabular-nums;font-weight:500;min-width:2.45em;color:#cdd9e9}.rowLogo{width:clamp(28px,4.1vw,78px);height:clamp(23px,3vw,58px);object-fit:contain;border-radius:.4vw}.rowName{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.dashboardRow.onAir{background:linear-gradient(150deg,#ffe77f,#ffcb36 55%,#eeb426);border-color:#ffe9a4;box-shadow:0 0 14px #ffc72d55;color:#171a21}.dashboardRow.onAir .rowNumber{color:inherit}.playingDot{height:8px;width:8px;background:#20d88e;border-radius:100%;flex:none}.dashboardEmpty{padding:2vh 0;color:#b4c2d4;text-align:center;font-size:.95em}
/* Live TV and OK overlay */
body.full{padding:0;display:block;background:#000}body.full main{display:block;height:100vh}body.full #dashboard,body.full #dashboardCategories,body.full #library,body.full .sidebar,body.full header,body.full footer{display:none!important}body.full .player{display:flex!important;position:fixed;inset:0;padding:0;border:0;border-radius:0;height:100vh;box-shadow:none;background:#000}body.full #screen{position:absolute;inset:0;width:100%;height:100%;max-height:none;border:0;border-radius:0}body.full #previewInfo,body.full #previewLive{display:none!important}body.classicWatch #classicControls{position:fixed;inset:0;z-index:20;display:block;pointer-events:none;direction:inherit;color:#f4f7ff}#watchHeader{position:absolute;inset:0 0 auto;height:8.7vh;display:flex;align-items:center;gap:2vw;padding:0 3vw;border-bottom:1px solid #9db9dc65;border-radius:0 0 1.7vw 1.7vw;background:linear-gradient(135deg,#071a35ed,#14223ee0);box-shadow:0 6px 25px #0003}.watchBrand{display:flex;align-items:center;gap:.9vw}.watchBrand img{width:3.9vw;height:3.9vw;object-fit:contain}#watchContext{border-inline-start:1px solid #afc4df70;padding-inline-start:2vw;font-size:clamp(17px,1.8vw,35px)}#watchClock{margin-inline-start:auto}#watchInfo{position:absolute;inset:auto 2.5vw 13vh;display:flex;align-items:center;gap:1.4vw;min-height:15vh;padding:1.4vw 1.65vw;background:linear-gradient(145deg,#112540e8,#101c32ef 65%,#162f51e9);border:1px solid #b7cdec75;border-radius:2vw;box-shadow:0 10px 50px #0005,inset 0 1px 0 #ffffff35;pointer-events:auto}#watchInfo:before{position:absolute;content:'';height:1px;top:0;left:6%;right:6%;background:linear-gradient(90deg,transparent,#ffe6a2ad,transparent);pointer-events:none}.watchIdentity{display:flex;align-items:center;gap:1vw;min-width:0;flex:1.5}.watchIdentity strong{font-size:clamp(18px,2vw,38px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}#watchNumber{font-size:clamp(22px,2.9vw,55px);font-weight:700;color:#f1f4fc;font-variant-numeric:tabular-nums;padding-inline-end:1vw;border-inline-end:1px solid #a4bbd466}#watchLogo{width:5.5vw;height:5vw;object-fit:contain;border-radius:.75vw}.watchNow,.watchNext{min-width:0;display:flex;flex-direction:column;gap:.7vh;border-inline-start:1px solid #a6bdd24f;padding-inline-start:1.6vw;flex:1}.watchNow strong,.watchNext strong{font-size:clamp(13px,1.45vw,28px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.watchNow span,.watchNext span{font-size:clamp(11px,1.1vw,22px);color:#c2cddd}.watchNext:has(strong:empty){display:none}#watchSave,#watchSettings{border:0;background:transparent;padding:.4vw;flex:none}#watchSave .rojIcon,#watchSettings .rojIcon{width:2vw;height:2vw;min-width:20px;min-height:20px}#classicList{position:absolute;top:10.3vh;bottom:30vh;left:2.5vw;width:33vw;min-width:275px;max-width:none;padding:1.15vw;border:1px solid #b1c8e64a;border-radius:1.6vw;box-shadow:0 16px 45px #0005;background:linear-gradient(150deg,#1b3452e8,#0d1c32f5);display:flex;flex-direction:column;gap:1vh;overflow:hidden;pointer-events:auto}html[dir=rtl] #classicList{left:auto;right:2.5vw}#classicList .listHead h2{margin:0;font-size:clamp(18px,1.8vw,34px);letter-spacing:-.02em}#classicCount{font-size:clamp(11px,1.1vw,21px);color:#c0cee2;white-space:nowrap}#classicRows{flex:1;min-height:0;display:flex;flex-direction:column;gap:.35vh;overflow:auto;padding:2px}#classicRows .classicRow{flex:1 0 auto;min-height:4.6vh;padding:.32vw .6vw;gap:.75vw;font-size:clamp(12px,1.25vw,24px);border:1px solid #b1c8e619;border-radius:.65vw;background:linear-gradient(145deg,#172d48,#0b1b30);color:#f3f6ff}#classicRows .classicRow .rowNumber{color:#e8eef8;min-width:2.5em}#classicRows .classicRow .rowLogo{width:4vw;height:2.65vw;max-height:4vh;min-height:18px}#classicRows .classicRow.chosen{background:linear-gradient(135deg,#745619db,#322b22);border-color:#ffd34c;box-shadow:inset 0 0 10px #ffc84036,0 0 10px #ffc83c44;outline:none}
#classicBar{position:absolute;inset:auto 0 0;transform:none;width:100%;height:10vh;display:flex;align-items:center;justify-content:center;gap:1.25vw;padding:.8vw 2vw;background:linear-gradient(180deg,#12233cea,#071525f8);border-radius:0;border-top:1px solid #a3b9dc44;opacity:1;pointer-events:auto}#classicBar button{font-size:clamp(12px,1.2vw,23px);padding:.7vw 1.2vw;background:#ffffff05;border:1px solid #b2c9e047;border-radius:99px;color:#e6eefb;white-space:nowrap}#classicBar #classicOK{border-color:#ffcc38;color:#ffda56;font-weight:600}#classicBanner{top:11vh;right:3vw;background:#0d1b31e8;border:1px solid #adcbef55;border-inline-start:3px solid #ffce46;padding:1vw 1.7vw;border-radius:.8vw;font-size:clamp(18px,2vw,38px)}body.osdHidden #watchHeader,body.osdHidden #watchInfo,body.osdHidden #classicBar{display:none!important}body.classicWatch #status{display:block;top:10vh;left:37vw;right:auto;font-size:clamp(12px,1vw,20px);background:#061222d9;border-radius:6px;padding:.5vw;pointer-events:none}body.classicWatch #status:empty{display:none!important}body.classicWatch.watchOptions .playerOptions,body.classicWatch.watchOptions .actions{display:flex!important;z-index:25;position:fixed;left:20%;right:20%;width:auto;transform:none;background:#10243bf5;border:1px solid #adc5e859;opacity:1;padding:1vw;border-radius:1vw;justify-content:center}body.classicWatch.watchOptions .playerOptions{bottom:24vh}body.classicWatch.watchOptions .actions{bottom:15vh}body.classicWatch.watchOptions #watchInfo,body.classicWatch.watchOptions #watchHeader,body.classicWatch.watchOptions #classicBar,body.classicWatch.watchOptions #classicList{visibility:hidden}body.classicWatch.watchOptions .actions button{flex:1}body.classicWatch.watchOptions .player{z-index:21}body.classicWatch.watchOptions #classicControls{z-index:20}.saveOverlay{z-index:120}#cursor{z-index:150!important}
/* Secondary screens */
body:not(.full)[data-page=add] main,body:not(.full)[data-page=settings] main,body:not(.full)[data-page=sources] main,body:not(.full)[data-page=collections] main{grid-template-columns:minmax(0,17fr) minmax(0,83fr)}body:not(.full)[data-page=add] #library,body:not(.full)[data-page=settings] #library{padding:1.5vw 2vw}#list.formPage{max-width:65vw}.methodPanel,.settingsCard,.sourceCard{background:linear-gradient(135deg,#29466388,#0c2038a0);border-color:#a4c4e52b;border-radius:1.15vw}.methodPanel input,.methodPanel textarea,.settingsCard input,.settingsCard select{background:#0b1c31;border-color:#a5c1e43a}.methodPanel label,.settingsCard label{font-size:clamp(12px,1.1vw,21px);color:#c1d0e5}.methodTabs{background:#0c2036}.methodTabs button.active{background:#ffd34d24;color:#ffdd76;border-color:#ffd34d66}.methodPanel .primary{background:linear-gradient(145deg,#ffe78a,#eeb32b)!important}.settingsCard h2,.sourceCard h2{font-size:clamp(17px,1.5vw,28px)}.light{background:linear-gradient(145deg,#f3f7fc,#dae7f7);color:#1a2c45}.light .glass,.light .sidebar,.light #library,.light .player,.light .settingsCard,.light .methodPanel,.light .sourceCard{background:linear-gradient(135deg,#fff,#e4edf8);border-color:#9eb7d3}.light .sidebar nav button:not(.active){color:#243a55}.light #headerContext,.light #modeLabel,.light footer,.light #count,.light .categoryTile>span:last-child{color:#3c536d}.light #categoryTiles .categoryTile,.light .dashboardRow:not(.onAir){background:linear-gradient(145deg,#fff,#d9e6f5);color:#1d3654}.light .dashboardRow:not(.onAir) .rowNumber{color:#34506c}.light #previewInfo{color:#f5f7ff}.light #classicControls{color:#f4f7ff}
@media(max-width:800px){body{padding:1vh 1.2vw;gap:1vh}main{gap:.75vw}.sidebar nav button{font-size:12px;min-height:35px}.sidebar nav .rojIcon{width:18px;height:18px}.sidebar nav{gap:3px}.categoryTile{min-width:90px}.watchIdentity strong{font-size:16px}#classicBar{gap:.6vw}#classicBar button{padding:.6vw .8vw;font-size:11px}}@media(max-height:600px){.sidebar nav button{min-height:32px}.dashboardRow{min-height:26px}.rowLogo{height:22px}.dashboardHeading h1{font-size:17px}.categoryTile .rojIcon{height:23px;width:23px}#classicRows .classicRow{min-height:24px}.watchNow strong,.watchNext strong{font-size:13px}}
body[data-page=dashboard]:not(.full):not(.light){background:radial-gradient(ellipse at 52% 0%,#203953 0%,transparent 53%),linear-gradient(155deg,#101e32 0%,#0a1728 60%,#101f32 100%)}body[data-page=dashboard]:not(.full) #categoryTiles .categoryTile:first-child{border-color:#eec75883;background:linear-gradient(145deg,#534924a0,#14243beb);color:#ffe39a}body[data-page=dashboard]:not(.full) #categoryTiles .categoryTile{max-height:19vh}body.classicWatch.watchOptions #closePlayer{display:block!important;position:fixed;top:4vh;left:3vw;z-index:29}body[data-page=dashboard]:not(.full) .player #screen{height:auto}body:not(.full)[data-page=dashboard] .player #current{display:block}body[data-page=dashboard]:not(.full) .player .playerHeading{display:none!important}

/* V3.0.1 — understated TV glass scrollbars; scrolling remains enabled. */
* { scrollbar-width: thin; scrollbar-color: rgba(154,180,210,.42) transparent; }
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: transparent; border: 0; box-shadow: none; }
*::-webkit-scrollbar-thumb { background: rgba(154,180,210,.42); border: 0; border-radius: 99px; }body:not(.remoteFocus) *::-webkit-scrollbar-thumb:hover{ background: rgba(191,211,235,.72); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }
#list,#dashboardRows,#classicRows,#categoryTiles,.savePanel { scrollbar-width: thin; scrollbar-color: rgba(154,180,210,.42) transparent; }
#categoryTiles { overflow-x: auto; overflow-y: hidden; }
#dashboardRows,#classicRows { overflow-x: hidden; overflow-y: auto; }
.light,.light * { scrollbar-color: rgba(72,100,135,.45) transparent; }
.light *::-webkit-scrollbar-thumb { background: rgba(72,100,135,.45); }body:not(.remoteFocus) .light *::-webkit-scrollbar-thumb:hover{ background: rgba(72,100,135,.75); }

/* V3.0.2: final polish, consistent TV controls and readable spacing. */
body:not(.full):not(.light){background:radial-gradient(ellipse at 55% 0%,#203b59 0%,transparent 55%),linear-gradient(155deg,#101e32,#091525 65%,#13263b)!important;background-image:radial-gradient(ellipse at 55% 0%,#203b59 0%,transparent 55%),linear-gradient(155deg,#101e32,#091525 65%,#13263b)!important}
body:not(.full) #closePlayer{display:none!important}
body[data-page=dashboard]:not(.full) .player{position:relative;isolation:isolate;padding:0;gap:0}
body[data-page=dashboard]:not(.full) .player #screen{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:inherit;aspect-ratio:auto}
body[data-page=dashboard]:not(.full) .player #screen video{object-fit:contain}
body[data-page=dashboard]:not(.full) #previewInfo{position:absolute;inset:auto 0 0;z-index:2;padding:1.05vw 1.25vw;background:linear-gradient(0deg,rgba(5,14,28,.94),rgba(7,20,36,.70) 72%,rgba(7,20,36,0));border:none;box-shadow:none;pointer-events:none;color:#f5f7ff;gap:.45vh}
body[data-page=dashboard]:not(.full) #previewIdentity{gap:.7vw;align-items:center}
body[data-page=dashboard]:not(.full) #current{font-size:clamp(16px,1.55vw,30px);font-weight:600;text-shadow:0 1px 7px #0009}
#previewNumber{font-size:clamp(13px,1.2vw,23px);font-weight:600;color:#ffdb76}#previewQuality{font-size:clamp(10px,.85vw,16px);border:1px solid #f9d56c88;border-radius:5px;padding:2px 6px;background:#101c2d55;color:#ffe089}#previewQuality:empty{display:none}
#guide{font-weight:400;letter-spacing:0;font-size:clamp(11px,.95vw,18px);color:#d4dfed}#guide.noProgram{color:#b8c6d8;font-size:clamp(10px,.85vw,16px);opacity:.72}#guide:empty,#status:empty,#notice:empty{display:none!important}
body[data-page=dashboard]:not(.full) .player #status:not(:empty){position:absolute;top:1vw;left:1vw;right:5vw;z-index:3;color:#fff;background:#07111dbb;padding:.45vw .65vw;border-radius:8px;font-size:clamp(10px,.85vw,15px)}
body:not(.full) #library{padding:clamp(10px,1.15vw,22px);gap:clamp(6px,1vh,12px)}
#library .heading{min-height:4.7vh;gap:.6vw;align-items:center}#library .heading h1{font-size:clamp(19px,1.85vw,35px);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.15;margin:0}#library .tools{flex:none;gap:2px;padding:3px}#library .tools button{padding:clamp(5px,.5vw,9px);min-height:32px;min-width:32px}#library .tools .rojIcon{width:clamp(15px,1.35vw,25px);height:clamp(15px,1.35vw,25px)}
#filters{gap:.55vw;min-height:0}#filters input,#filters select,#facets select{font-size:clamp(12px,1vw,19px);min-height:clamp(32px,4.8vh,52px);padding:clamp(6px,.55vw,12px);border-radius:10px}#search{flex:1;min-width:0}#sort{width:34%;min-width:0}#facets{gap:.55vw}#facets label{font-size:clamp(10px,.75vw,15px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#facets select{margin-top:4px;text-overflow:ellipsis}#count{font-size:clamp(12px,1vw,19px);font-weight:400;letter-spacing:0;padding:0}
#list{min-height:0;overscroll-behavior:contain;padding:4px;gap:clamp(6px,.65vw,13px)}#list.channelGrid{grid-template-columns:repeat(auto-fill,minmax(clamp(116px,12vw,230px),1fr));grid-auto-rows:min-content;align-content:start;gap:clamp(8px,.8vw,16px)}
.channelGrid .channelCard{border:1px solid #b2c8e221;border-radius:12px;background:linear-gradient(155deg,#263d55a0,#11243a9e);overflow:visible;min-height:0}.channelGrid .channelCard>button:first-child{border-radius:11px;gap:0!important;overflow:hidden}.channelGrid .channelCard .thumb{border:0;border-bottom:1px solid #b1cdeb19;border-radius:11px 11px 0 0;background:radial-gradient(ellipse at 50% 40%,#40546b88,#14273c88);aspect-ratio:16/9}.channelGrid .channelCard .thumb img{width:61%!important;height:61%!important;max-height:100%;object-fit:contain}.channelGrid .channelName{font-size:clamp(11px,1vw,19px);line-height:1.3;padding:10px 34px 10px 10px;min-height:36px;font-weight:500;letter-spacing:0}.channelGrid .channelCard:has(.cardRemove) .channelName{padding-inline-end:65px}.channelGrid .addCollection{bottom:4px;inset-inline-end:4px;right:auto;width:28px;height:28px;min-height:28px!important;padding:4px!important}.channelGrid .cardRemove{bottom:4px;inset-inline-end:34px;right:auto}

.channelGrid .channelCard .channelNumber,.channelGrid .channelCard .category{font-size:clamp(9px,.65vw,13px);padding:3px 5px;border-radius:5px;max-width:56%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#091727cc;color:#e1ebf6}
#list.channelRows .channelCard{min-height:clamp(48px,6.8vh,75px);border-radius:10px}#list.channelRows .channelCard>button:first-child{min-width:0;gap:.7vw!important;padding:7px}#list.channelRows .thumb{width:clamp(43px,4.2vw,76px);height:clamp(35px,5vh,58px);aspect-ratio:auto}#list.channelRows .channelName{flex:1;font-size:clamp(12px,1.05vw,20px);font-weight:500;padding-inline-end:38px}#list.channelRows .channelCard:has(.cardRemove) .channelName{padding-inline-end:75px}#list.channelRows .addCollection{inset-inline-end:7px;right:auto}#list.channelRows .cardRemove{inset-inline-end:42px;right:auto}
#list.settingsGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(9px,1vw,18px)!important;align-items:start}#list.collectionGrid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:12px;align-items:stretch}.settingsCard,.methodPanel,.sourceCard{min-width:0;max-width:100%;padding:clamp(12px,1.15vw,22px);gap:clamp(8px,.7vw,13px);border-radius:14px}.settingsCard h2,.sourceCard h2{font-size:clamp(16px,1.25vw,24px);margin:0 0 5px;line-height:1.2}.settingsCard button,.sourceCard button,.methodPanel button{min-height:clamp(35px,4.7vh,52px);font-size:clamp(12px,1vw,19px);border-radius:9px;padding:9px 12px;overflow-wrap:anywhere}.settingsCard input,.settingsCard select,.methodPanel input,.methodPanel textarea{min-height:clamp(35px,4.7vh,52px);font-size:clamp(12px,1vw,19px);padding:9px 12px;border-radius:9px}.methodPanel textarea{min-height:clamp(70px,11vh,130px)}#list.formPage{max-width:min(100%,850px);align-self:center}.sourceCard{width:100%;max-width:850px;align-self:start}.collectionGrid .sourceCard{height:100%;max-width:none}.collectionGrid>button{min-height:75px;justify-content:center}.methodTabs{gap:5px;padding:5px}.methodTabs button{flex:1;justify-content:center;min-height:clamp(35px,5vh,54px)}.sidebar{min-height:0;overflow:auto}.sidebar nav button{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar nav button .glyph{flex:none}.sidebar nav button.active{font-weight:600}.savePanel{max-height:82vh;max-width:90vw;overflow:auto}.light #list.channelGrid .channelCard{background:linear-gradient(145deg,#fff,#dbe6f2);border-color:#9cb4cd66}.light #list.channelGrid .thumb{background:linear-gradient(145deg,#edf3f9,#d2dfea)}.light #filters input,.light #filters select,.light #facets select{background:#f8fbff;color:#1c3550;border-color:#9eb6ce80}.light .settingsCard label,.light .methodPanel label,.light #facets label{color:#47617c}.light #list.channelRows .channelCard{background:#e0eaf5;color:#213b57}.light #list.channelRows .channelName{color:#213b57}
/* Same understated scrollbar across every scrollable area. */
*{scrollbar-width:thin;scrollbar-color:#a5bbd34d transparent}*::-webkit-scrollbar{width:4px;height:4px}*::-webkit-scrollbar-thumb{background:#a5bbd34d;border-radius:99px}*::-webkit-scrollbar-button{display:none!important;width:0!important;height:0!important}
/* Compact theme-aware sound indicator; no oversized thumb or black rectangle. */
#volumeHUD{position:fixed;z-index:200;right:3vw;top:12vh;display:flex;align-items:center;gap:clamp(10px,.9vw,18px);color:#fff5e8;background:linear-gradient(125deg,rgba(32,38,41,.88),rgba(15,19,22,.78));border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:clamp(9px,.65vw,13px) clamp(14px,1vw,21px);pointer-events:none;direction:ltr;box-shadow:0 5px 22px rgba(0,0,0,.22);font-family:inherit;--volume-accent:var(--roj-accent,#ffd27a)}
#volumeHUD[hidden]{display:none!important}
#volumeGlyph{display:flex;align-items:center;justify-content:center;flex:none;color:#fff5e8}
#volumeGlyph .rojIcon{width:clamp(20px,1.45vw,28px);height:clamp(20px,1.45vw,28px);stroke-width:1.7}
.volumeTrack{position:relative;display:block;flex:none;width:clamp(100px,8.5vw,164px);height:5px;border-radius:99px;background:rgba(255,255,255,.19);margin:0;overflow:visible}
.volumeTrack i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:var(--volume-accent);transition:width .1s linear}
.volumeTrack b{display:none}
#volumePercent{font-size:clamp(13px,.95vw,18px);font-weight:600;min-width:3.3em;text-align:right;font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap;color:#fff5e8}
.playerOptions input#volume{appearance:none;-webkit-appearance:none;flex:1 1 90px;width:clamp(85px,8vw,150px);max-width:180px;min-width:60px;height:5px;padding:0;margin:12px 8px;border:0;border-radius:99px;background:linear-gradient(to right,var(--roj-accent,#ffd27a) 0%,var(--roj-accent,#ffd27a) var(--volume,100%),#9b9b9b55 var(--volume,100%),#9b9b9b55 100%);direction:ltr}
.playerOptions input#volume::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--roj-accent,#ffd27a);width:12px;height:12px;border:1px solid #ffffff88;border-radius:50%;cursor:pointer}
.playerOptions input#volume::-moz-range-thumb{background:var(--roj-accent,#ffd27a);width:12px;height:12px;border:1px solid #ffffff88;border-radius:50%;cursor:pointer}
.playerOptions input#volume:focus-visible{outline:2px solid var(--roj-accent,#ffd27a);outline-offset:6px}


.playerOptions #mute{background:transparent;border:0;padding:4px}.playerOptions #mute .rojIcon{width:24px;height:24px;stroke-width:2}
#watchInfo{background:linear-gradient(145deg,#0a172aca,#10243bd4 65%,#172f48bc);border-color:#b7cdec42;box-shadow:0 10px 32px #0004;backdrop-filter:blur(12px)}#watchInfo:before{opacity:.45}#classicBar{background:linear-gradient(0deg,#071525dc,#10223a8c);border-top-color:#a3b9dc28}
@media(max-width:1000px){#list.channelGrid{grid-template-columns:repeat(2,minmax(0,1fr))}#list.settingsGrid{gap:8px!important}.settingsCard,.methodPanel,.sourceCard{padding:10px}.sidebar nav button{font-size:clamp(11px,1.3vw,15px)}#facets select{padding:5px}.playerOptions input#volume{max-width:100px}}
@media(max-height:600px){#library .heading h1{font-size:18px}#filters input,#filters select,#facets select{min-height:29px;padding:5px}#list.channelGrid .channelName{padding-top:6px;padding-bottom:6px;min-height:28px}.settingsCard button,.sourceCard button,.methodPanel button,.settingsCard input,.settingsCard select,.methodPanel input{min-height:32px;padding:6px 9px}}

/* V3.0.3 – no header divider, sun loading and shared channel order. */
body:not(.full)>header{border-bottom:0!important;box-shadow:none!important;background-image:none!important}
body:not(.full)>header:before,body:not(.full)>header:after{content:none!important;display:none!important}
#empty[data-state="loading"] img{animation:rojSpin 10s linear infinite;opacity:1}
#empty[data-state="loading"] strong{display:none}
@keyframes rojSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
#empty[data-state="failed"] img,#empty[data-state="blocked"] img{opacity:.85;animation:none}
#emptyRetry{pointer-events:auto;font-size:clamp(12px,1vw,19px);padding:.5em 1.1em;border:1px solid #c6d9ed40;border-radius:9px;background:#0b192bb0;color:#e6edf6;min-height:32px}
#emptyRetry[hidden]{display:none!important}
.dashboardHeading{gap:.6vw;min-width:0}.dashboardHeading h1{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(16px,1.55vw,30px)}
.homeHeadingTools{display:flex;align-items:center;gap:.4vw;flex:none}.dashboardHeading #homeSort{font-size:clamp(10px,.8vw,16px);font-weight:500;line-height:1.2;max-width:9vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:.5em .65em;background:#ffffff0b;border:1px solid #c6d9ed29;border-radius:7px;color:inherit;min-height:28px}.dashboardHeading #allChannels{min-width:24px}
#dashboardRows{padding:3px 4px 4px;overscroll-behavior:contain}.dashboardRow{width:100%;min-width:0;min-height:clamp(32px,6vh,85px)}
.manualRow{display:flex;align-items:stretch;gap:4px;flex:none;min-width:0}.manualRow .dashboardRow{width:auto;flex:1}.manualRow .moveChannel{flex:0 0 clamp(23px,2.1vw,40px);min-width:0;padding:0;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#ffffff08;border:1px solid #ffffff15}.manualRow .moveChannel .rojIcon{width:clamp(13px,1.15vw,22px);height:clamp(13px,1.15vw,22px)}.manualRow .moveChannel:disabled{opacity:.25}.manualRow .rowLogo{width:clamp(22px,3vw,55px)}
/* Hide legacy arrow buttons and native tracks without disabling scrolling. */
#dashboardRows,#classicRows,#categoryTiles,#list,.sidebar,.savePanel{scrollbar-width:none!important;-ms-overflow-style:none!important}
#dashboardRows::-webkit-scrollbar,#classicRows::-webkit-scrollbar,#categoryTiles::-webkit-scrollbar,#list::-webkit-scrollbar,.sidebar::-webkit-scrollbar,.savePanel::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
@media(prefers-reduced-motion:reduce){#empty[data-state="loading"] img{animation-duration:4s}}

/* V3.0.4 — one shared reorder toolbar, no arrows on individual rows. */
#homeEdit{display:flex;align-items:center;justify-content:center;padding:5px;min-width:28px;background:#ffffff0b;border:1px solid #c6d9ed29;border-radius:7px;color:inherit}#homeEdit .rojIcon{width:clamp(15px,1.3vw,24px);height:clamp(15px,1.3vw,24px)}#homeEdit[hidden],#homeReorder[hidden]{display:none!important}
#homeReorder{flex:none;display:flex;flex-direction:column;gap:5px;padding:0 4px 4px;min-width:0}.batchSummary,.batchActions{display:flex;align-items:center;gap:5px;min-width:0}.batchSummary{justify-content:space-between}.batchSummary span{font-size:clamp(11px,.88vw,17px);color:#ffdb76}.batchSummary button{min-height:27px;padding:4px 10px;border-radius:7px;color:#ffe18a;background:#eac24b19;border:1px solid #eac24b55;font-size:clamp(11px,.9vw,17px)}.batchActions button{flex:1;display:flex;align-items:center;justify-content:center;min-width:0;min-height:clamp(28px,3.9vh,48px);padding:4px;background:#ffffff08;border:1px solid #c6d9ed25;border-radius:7px}.batchActions button .rojIcon{width:clamp(15px,1.4vw,26px);height:clamp(15px,1.4vw,26px)}.batchActions button:disabled{opacity:.3}.dashboardRow .batchCheck{margin-inline-start:auto;display:flex;align-items:center;justify-content:center;flex:none;width:clamp(16px,1.55vw,29px);height:clamp(16px,1.55vw,29px);border:1px solid #a9c0d880;border-radius:5px;color:#122033;background:#10223770}.batchCheck svg{width:80%;height:80%;visibility:hidden}.dashboardRow[aria-pressed]:not(.batchSelected){background:linear-gradient(135deg,#27415baf,#10233a);color:#f4f7ff;box-shadow:none;border-color:#acc7eb17}.dashboardRow.batchSelected{background:linear-gradient(135deg,#574920,#302b23);color:#fff3ce;border-color:#ffd35a;box-shadow:none}.dashboardRow.batchSelected .batchCheck{background:#ffd35a;border-color:#ffd35a}.dashboardRow.batchSelected .batchCheck svg{visibility:visible}.dashboardRow[aria-pressed] .rowName{min-width:0;flex:1}.dashboardRow[aria-pressed] .playingDot{display:none}.light .dashboardRow[aria-pressed]:not(.batchSelected){background:#e2eaf5;color:#213b57}.light .batchSummary span{color:#765000}

/* V3.0.5 — collapsible navigation rail; content reflows instead of being covered. */
body:not(.full){--rail-width:clamp(145px,16.5vw,320px);--rail-compact:clamp(54px,5.2vw,100px)}
body.sidebarCollapsed:not(.full){--rail-width:var(--rail-compact)}
body:not(.full) main{grid-template-columns:minmax(0,var(--rail-width)) minmax(0,33fr) minmax(0,50fr);transition:grid-template-columns .22s ease}
body[data-page=dashboard]:not(.full) main{grid-template-columns:minmax(0,var(--rail-width)) minmax(0,32fr) minmax(0,51fr)}
body:not(.full)[data-page=add] main,body:not(.full)[data-page=settings] main,body:not(.full)[data-page=sources] main,body:not(.full)[data-page=collections] main{grid-template-columns:minmax(0,var(--rail-width)) minmax(0,1fr)}
.sidebar{overflow-x:hidden;min-width:0;gap:clamp(5px,.7vh,10px)}
#sidebarToggle{align-self:flex-end;display:flex;align-items:center;justify-content:center;flex:none;padding:5px;min-width:clamp(27px,2.4vw,46px);min-height:clamp(27px,3.6vh,44px);border-radius:9px;background:#ffffff07;border:1px solid #ffffff16;color:#c6d6ea;margin:0 1px 1px;box-shadow:none}
#sidebarToggle .rojIcon{width:clamp(18px,1.55vw,30px);height:clamp(18px,1.55vw,30px);flex:none}body:not(.remoteFocus) #sidebarToggle:hover{background:#ffffff14;color:#fff}
.sidebar nav button{display:flex;align-items:center;justify-content:flex-start;min-width:0;max-width:100%}
.sidebar nav button .navLabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.sidebarCollapsed .sidebar{padding:clamp(6px,.65vw,12px) clamp(4px,.45vw,9px);align-items:stretch}
body.sidebarCollapsed #sidebarToggle{align-self:center;margin-inline:0}
body.sidebarCollapsed .sidebar nav button{justify-content:center;gap:0;padding:clamp(6px,.6vw,12px) 0;width:100%;text-align:center}
body.sidebarCollapsed .sidebar nav button .navLabel{display:none}
body.sidebarCollapsed .sidebar nav button .glyph{display:flex;align-items:center;justify-content:center;margin:0;padding:0;width:auto;flex:none}
.light #sidebarToggle{color:#29415c;border-color:#9eb7d366;background:#e3edf9}
@media(max-height:600px){#sidebarToggle{min-height:26px;min-width:26px}.sidebar{gap:3px}}
@media(prefers-reduced-motion:reduce){body:not(.full) main{transition:none}}

/* V3.0.7 — independent Glass, Dark and Light palettes. Video/OSD stay legible over live images. */
body.darkMode{--white:#f4f4f5;--muted:#b2b5bd;--line:#ffffff20;--glass:linear-gradient(145deg,#25272b,#141518 75%);--field:#222428;color-scheme:dark;color:var(--white)}
body.darkMode:not(.full){background:radial-gradient(ellipse at 55% 0%,#292b30 0%,transparent 60%),linear-gradient(155deg,#141518,#08090b 65%,#191b1e)!important}
body.darkMode:not(.full) .glass,body.darkMode:not(.full) .settingsCard,body.darkMode:not(.full) .methodPanel,body.darkMode:not(.full) .sourceCard{background:var(--glass);border-color:var(--line)}
body.darkMode:not(.full) button,body.darkMode:not(.full) input,body.darkMode:not(.full) select,body.darkMode:not(.full) textarea{background:#202226;color:inherit;border-color:#ffffff20}
body.darkMode:not(.full) .dashboardRow:not(.onAir):not(.batchSelected),body.darkMode:not(.full) .categoryTile,body.darkMode #list .channelCard{background:linear-gradient(145deg,#272a2f,#151619);border-color:#ffffff20;color:#f4f4f5}
body.darkMode:not(.full) #list .thumb{background:radial-gradient(ellipse at center,#3a3d43,#1b1c20)}
body.darkMode:not(.full) .sidebar nav button:not(.active){background:transparent;color:#e1e2e5}body.darkMode:not(.full) .sidebar nav button.active,body.light:not(.full) .sidebar nav button.active,body.darkMode:not(.full) .dashboardRow.onAir,body.light:not(.full) .dashboardRow.onAir{background:linear-gradient(145deg,#ffe898,#ffc72d);color:#18150e;border-color:#f5d46d}
body.darkMode[data-page=dashboard]:not(.full) #categoryTiles .categoryTile:first-child{background:linear-gradient(145deg,#514323,#25221b);color:#ffe39a;border-color:#ac873f}
body.darkMode:not(.full) .rowNumber,body.darkMode:not(.full) .categoryTile>span:last-child,body.darkMode:not(.full) #count,body.darkMode:not(.full) .settingsCard label,body.darkMode:not(.full) .methodPanel label,body.darkMode:not(.full) footer{color:#bfc2cb}body.darkMode .dashboardRow.onAir .rowNumber{color:inherit}
body.darkMode .methodTabs{background:#141518}body.darkMode .methodTabs button.active{color:#ffd46b;border-color:#ffd46b55;background:#40341c}
body.light{--white:#152239;--muted:#43566d;--line:#9cb2c7a0;--glass:linear-gradient(145deg,#ffffffed,#e3ebf6);--field:#f7f9fc;color-scheme:light;color:var(--white)}
body.light:not(.full){background:radial-gradient(ellipse at 60% 0%,#fff 0%,transparent 65%),linear-gradient(145deg,#e4ebf5,#cbd8e7)!important}
body.light:not(.full) button,body.light:not(.full) input,body.light:not(.full) select,body.light:not(.full) textarea{color:#20354f;background:#f4f7fb;border-color:#a9bdd2}
body.light:not(.full) .sidebar nav button:not(.active){background:transparent;color:#20354f}
body.light:not(.full) .dashboardRow:not(.onAir):not(.batchSelected),body.light:not(.full) #categoryTiles .categoryTile{color:#20354f;background:linear-gradient(145deg,#fff,#e0e9f5);border-color:#a6bbd2}
body.light[data-page=dashboard]:not(.full) #categoryTiles .categoryTile:first-child{background:linear-gradient(145deg,#fff4ca,#f2e2aa);color:#594100;border-color:#c9a34b}
body.light:not(.full) .dashboardRow.batchSelected{background:#ffe7a1;color:#463300;border-color:#bd880e}body.light:not(.full) .dashboardRow.batchSelected .rowNumber{color:#463300}
body.light:not(.full) .methodTabs button.active{color:#654800;background:#ffe9af;border-color:#c9a34b}body.light:not(.full) footer kbd{background:#f7f9fc;color:#253e58;border-color:#a3b5ca}
body.light:not(.full) #headerClock,body.light:not(.full) .channelName,body.light:not(.full) .categoryTile>span:last-child,body.light:not(.full) .settingsCard label,body.light:not(.full) .methodPanel label{color:#263c56}
body.light:not(.full) header strong em{color:#ffd12d}body.light:not(.full) #homeEdit,body.light:not(.full) #homeSort{background:#eff4fa;color:#243b55;border-color:#b6c6d8}
body.light:not(.full) #list .channelNumber,body.light:not(.full) #list .category{background:#20354edb;color:white}
body.light:not(.full) #previewInfo,body.light:not(.full) #previewInfo *,body.light #classicControls,body.light #classicControls button,body.light #emptyRetry{color:#f5f7ff}body.light #previewQuality,body.light #previewNumber{color:#ffdb6a!important}body.light #classicControls button,body.light #emptyRetry{background:#0d2037b5;border-color:#a5bed850}
body.darkMode #classicList,body.darkMode #watchInfo,body.darkMode #watchHeader,body.darkMode #classicBar{background:linear-gradient(145deg,#202226ed,#101113e8);border-color:#ffffff30}body.darkMode #classicRows .classicRow:not(.chosen){background:#24262b;color:white}
body.light.full{color-scheme:dark}body.light.full .player{background:#000;color:white}body.light.full .playerOptions select,body.light.full .actions button{background:#202a38;color:white;border-color:#ffffff30}
body:not(.full) .player #screen{background:#08111e}body.darkMode:not(.full) .player #screen{background:#090a0c}
html[dir=rtl] .rowNumber,html[dir=rtl] #previewNumber,html[dir=rtl] #watchNumber,html[dir=rtl] #headerClock,html[dir=rtl] #watchClock{direction:ltr;unicode-bidi:isolate}
.rowName,.channelName{unicode-bidi:plaintext}footer [data-i18n]{white-space:nowrap}#modeLabel{letter-spacing:normal;max-width:23vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* V3.0.8 — bottom rail toggle and current input mode. */
.sidebar{display:flex;flex-direction:column}
.sidebar #nav{flex:none;min-width:0}
#sidebarToggle{margin-top:auto;align-self:center;flex-shrink:0}
body.sidebarCollapsed #sidebarToggle{margin-top:auto}
header #switch{margin-inline-start:auto;width:auto;height:clamp(34px,4.5vh,54px);max-width:28vw;gap:clamp(6px,.5vw,10px);padding:0 clamp(10px,.8vw,16px);border-radius:999px;white-space:nowrap;flex:none}
#modeIcon{display:inline-flex;align-items:center;justify-content:center;flex:none}
#modeIcon .rojIcon,#classicMode .rojIcon{width:clamp(18px,1.5vw,28px);height:clamp(18px,1.5vw,28px);flex:none}
header #modeLabel{margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font-size:clamp(11px,.9vw,17px)!important;letter-spacing:normal;max-width:20vw;overflow:hidden;text-overflow:ellipsis}
#classicMode{display:inline-flex;align-items:center;justify-content:center;gap:6px}

/* V3.0.9 — independent action area on channel cards (LTR + RTL). */
#list.channelGrid .channelCard,#list.channelRows .channelCard{--card-action:clamp(32px,2.4vw,44px);--card-gap:6px;--card-reserve:calc(var(--card-action) + 2 * var(--card-gap));}
#list .channelCard.hasRemove{--card-reserve:calc(2 * var(--card-action) + 3 * var(--card-gap));}
#list.channelGrid .channelCard>button:first-child{min-width:0;width:100%;}
#list.channelGrid .channelName,#list.channelRows .channelName{display:block;min-width:0;box-sizing:border-box;text-align:start;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;unicode-bidi:isolate;}
#list.channelGrid .channelName{width:100%;min-height:calc(var(--card-action) + 2 * var(--card-gap));padding:0 var(--card-reserve) 0 10px;line-height:calc(var(--card-action) + 2 * var(--card-gap));}
#list.channelRows .channelName{flex:1;padding:0 var(--card-reserve) 0 4px;}
#list.channelGrid .channelCard:has(.cardRemove) .channelName,#list.channelRows .channelCard:has(.cardRemove) .channelName{padding-inline-end:var(--card-reserve)}
#list .channelCard .addCollection,#list .channelCard .cardRemove{position:absolute;inset-inline-start:auto;left:auto;right:var(--card-gap);width:var(--card-action);height:var(--card-action);min-height:var(--card-action)!important;min-width:0;padding:5px!important;display:flex;align-items:center;justify-content:center;z-index:2;border-radius:8px;}
#list .channelCard .cardRemove{right:calc(var(--card-action) + 2 * var(--card-gap));}
#list.channelGrid .channelCard .addCollection,#list.channelGrid .channelCard .cardRemove{top:auto;bottom:var(--card-gap);transform:none;}
#list.channelRows .channelCard .addCollection,#list.channelRows .channelCard .cardRemove{top:50%;bottom:auto;transform:translateY(-50%);}
html[dir=rtl] #list.channelGrid .channelName,html[dir=rtl] #list.channelRows .channelName{padding-right:10px;padding-left:var(--card-reserve);}
html[dir=rtl] #list .channelCard .addCollection{right:auto;left:var(--card-gap);}
html[dir=rtl] #list .channelCard .cardRemove{right:auto;left:calc(var(--card-action) + 2 * var(--card-gap));}
#list .channelCard .addCollection .rojIcon{width:clamp(17px,1.3vw,23px);height:clamp(17px,1.3vw,23px);flex:none;}


/* V3.1.0 — compact control indicator and sliding menu. */
header #switch,#classicBar #classicMode{display:inline-flex;align-items:center;justify-content:center;gap:0;min-width:0;max-width:clamp(34px,4.5vh,54px);height:clamp(34px,4.5vh,54px);padding:0 9px;overflow:hidden;white-space:nowrap;border-radius:999px;transition:max-width .30s ease,gap .28s ease,padding .28s ease;box-sizing:border-box;flex:none}
header #switch #modeLabel,#classicMode .classicModeLabel{display:inline-block;min-width:0;max-width:0;opacity:0;overflow:hidden;white-space:nowrap;transition:max-width .30s ease,opacity .18s ease;flex:none}
header #switch.modeReveal,#classicBar #classicMode.modeReveal{max-width:260px;padding:0 13px;gap:8px}
header #switch.modeReveal #modeLabel,#classicMode.modeReveal .classicModeLabel{max-width:200px;opacity:1}
body:not(.full) main{transition:grid-template-columns .36s cubic-bezier(.22,.75,.25,1)}
.sidebar nav button,body.sidebarCollapsed .sidebar nav button{justify-content:flex-start;gap:clamp(8px,.8vw,14px);padding-inline:clamp(6px,.7vw,14px);transition:padding .36s ease,gap .36s ease;white-space:nowrap;overflow:hidden}
.sidebar nav button .glyph,body.sidebarCollapsed .sidebar nav button .glyph{width:clamp(26px,2.7vw,49px);flex:0 0 clamp(26px,2.7vw,49px);display:flex;justify-content:center;align-items:center;margin:0;padding:0}
.sidebar nav button .navLabel,body.sidebarCollapsed .sidebar nav button .navLabel{display:block;opacity:1;max-width:260px;transition:max-width .33s ease,opacity .22s ease;white-space:nowrap;overflow:hidden;flex:1 1 auto}
body.sidebarCollapsed .sidebar nav button{gap:0;justify-content:center;padding-inline:0}
body.sidebarCollapsed .sidebar nav button .navLabel{max-width:0;opacity:0;flex:0 0 auto;pointer-events:none}
/* Only visible rows/cards are mounted. Keep scrolling geometry stable on TV browsers. */
#dashboardRows.virtualWindow,#list.virtualWindow{display:block!important;position:relative;overflow-y:auto;overflow-x:hidden;overflow-anchor:none;min-height:0;padding:4px!important;gap:0!important}
#dashboardRows.virtualWindow{flex:1 1 auto}
.windowStage{position:relative;width:100%;min-height:0;box-sizing:border-box;overflow:visible}
.virtualWindow .dashboardRow,.virtualWindow .channelCard{margin:0!important;box-sizing:border-box;contain:layout paint;box-shadow:none;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.virtualWindow .dashboardRow.onAir{box-shadow:none}

#list.virtualWindow.channelGrid .channelCard>button:first-child{height:100%;min-height:0;justify-content:flex-start;display:flex!important}
#list.virtualWindow.channelGrid .channelCard .thumb{flex:1 1 0;min-height:0;width:100%;aspect-ratio:auto;max-height:none}
#list.virtualWindow.channelGrid .channelName{flex:0 0 auto}
#list.virtualWindow.channelRows .channelCard>button:first-child{height:100%;min-height:0}
#list.virtualWindow .channelCard .thumb img{object-fit:contain}
.clockCard select{width:100%;max-width:100%}
#headerClock,#watchClock{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:reduce){body:not(.full) main,.sidebar nav button,.sidebar nav .navLabel,header #switch,#classicBar #classicMode,header #modeLabel,#classicMode .classicModeLabel{transition:none!important}}

/* V3.1.1: full scrollable OK channel list, bounded DOM. */
#classicRows.virtualWindow{display:block!important;position:relative;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overflow-anchor:none;padding:4px!important;gap:0!important;scrollbar-width:thin!important;scrollbar-color:#94aac45c transparent;touch-action:pan-y;overscroll-behavior:contain}
#classicRows.virtualWindow::-webkit-scrollbar{display:block!important;width:5px!important;height:0!important}
#classicRows.virtualWindow::-webkit-scrollbar-track{background:transparent}
#classicRows.virtualWindow::-webkit-scrollbar-thumb{background:#94aac45c;border-radius:8px}
#classicRows.virtualWindow::-webkit-scrollbar-button{display:none}
#classicRows.virtualWindow .classicRow{margin:0!important;box-sizing:border-box;min-height:0;contain:layout paint;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
#classicRows.virtualWindow .classicRow .rowName{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* V3.1.2: compact, legible category cards, compatible with all three themes. */
body[data-page=dashboard]:not(.full) #dashboardCategories{gap:.8vh;justify-content:flex-start}
#categoryTiles{align-items:center;gap:.65vw;padding:.5vw .2vw .65vw;flex:0 1 auto;min-height:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
body[data-page=dashboard]:not(.full) #categoryTiles .categoryTile{flex:0 0 clamp(142px,13.3vw,255px);min-width:0;min-height:clamp(64px,10.5vh,110px);max-height:none;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:.7vw;padding:.75vw .8vw;text-align:start;border-radius:clamp(10px,.9vw,18px);box-shadow:none;overflow:hidden}
.categoryTile .categoryGlyph{display:flex;flex:0 0 auto;align-items:center;justify-content:center;width:clamp(30px,2.75vw,52px);height:clamp(30px,2.75vw,52px);border-radius:clamp(8px,.6vw,12px);background:#ffffff09;color:inherit}
.categoryTile .categoryGlyph .rojIcon{width:clamp(20px,1.7vw,32px);height:clamp(20px,1.7vw,32px)}
.categoryTile .categoryText{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:.4vh;color:inherit!important}
.categoryTile .categoryText strong{font-size:clamp(12px,1.05vw,20px);font-weight:600;line-height:1.25;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:100%}
.categoryTile .categoryCount{font-size:clamp(11px,.9vw,17px);font-variant-numeric:tabular-nums;opacity:.75}
body.light .categoryTile .categoryGlyph{background:#20354f0b}


/* Restore the previous layout before restoring the scroll anchor. */
body.returningWatch main{transition:none!important}

/* V3.1.3: invariant brand, localized controls. */
.headerBrand{display:flex;align-items:center;gap:1.1vw;flex:none;white-space:nowrap;direction:ltr}
.headerBrand strong,.watchBrand strong{color:#f5f7ff}
.headerBrand strong em,.watchBrand strong em{color:#ffd12d}
body.light:not(.full) .headerBrand{background:#102238;border-radius:12px;padding:0 .65vw;box-shadow:none}
body.light:not(.full) .headerBrand strong{color:#f5f7ff}
#headerClock,#watchClock{direction:ltr;unicode-bidi:isolate}
.localizedFile{display:flex;align-items:center;gap:.6em;min-width:0;flex-wrap:wrap}.localizedFile button{flex:none}.localizedFile span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.localizedFile input{display:none!important}

/* V3.1.4 — refined 10-foot layout; keep the list and playback logic intact. */
body:not(.full){--ui-panel:#172a40;--ui-border:#a5c4e325;--ui-control:#ffffff08;--ui-hover:#ffffff13;--ui-text:#f3f6fc;--ui-sub:#a8bad0;--ui-radius:clamp(12px,1.12vw,22px);--ui-row:linear-gradient(110deg,#223a52a0,#14263d85);--ui-selected:linear-gradient(110deg,#ffe89a,#ffc535);--ui-selected-text:#211a09}
body:not(.full):not(.light):not(.darkMode){background:radial-gradient(ellipse at 62% 0%,#233d57 0%,transparent 58%),linear-gradient(145deg,#0c192b,#0b1725 76%,#12263a)}
body:not(.full) main{gap:clamp(9px,1.05vw,20px)}
body[data-page=dashboard]:not(.full) main{grid-template-rows:minmax(0,1fr) minmax(0,clamp(106px,16.2vh,180px));grid-template-columns:minmax(0,var(--rail-width)) minmax(0,37fr) minmax(0,63fr)}
body[data-page=dashboard]:not(.full) #dashboard{padding:clamp(10px,1vw,19px);gap:clamp(6px,.85vh,10px)}
body[data-page=dashboard]:not(.full) #dashboardCategories{align-self:end;justify-content:flex-end;gap:.8vh;min-width:0;padding:0 1px .15vh}
#dashboardCategories h2{font-size:clamp(15px,1.35vw,26px);line-height:1.2;font-weight:600;margin:0 0 .2vh;letter-spacing:0;color:var(--ui-text)}
#categoryTiles{align-items:center;gap:clamp(6px,.65vw,12px);padding:3px 3px 7px;flex:0 0 auto;scrollbar-width:thin;scrollbar-color:#809ab655 transparent}
body[data-page=dashboard]:not(.full) #categoryTiles .categoryTile{flex:0 0 clamp(146px,13.1vw,252px);height:clamp(56px,8.5vh,92px);min-height:0;max-height:none;border-radius:clamp(9px,.8vw,16px);border:1px solid var(--ui-border);background:var(--ui-control);color:var(--ui-text);padding:clamp(7px,.7vw,14px);gap:.7vw;box-shadow:none}
body[data-page=dashboard]:not(.full) #categoryTiles .categoryTile:first-child{background:#d8af3920;border-color:#d9b95a65;color:#fbe3a0}
.categoryTile .categoryGlyph{background:transparent;width:clamp(26px,2.35vw,45px);height:clamp(26px,2.35vw,45px)}
.categoryTile .categoryGlyph .rojIcon{width:clamp(19px,1.55vw,30px);height:clamp(19px,1.55vw,30px)}
.categoryTile .categoryText strong{font-size:clamp(12px,1vw,19px);font-weight:550;line-height:1.23}
.categoryTile .categoryCount{font-size:clamp(10px,.82vw,16px);opacity:.8}
.dashboardHeading h1{font-size:clamp(17px,1.45vw,28px);font-weight:650;letter-spacing:-.015em}
body:not(.full) .dashboardRow{min-height:0;border-radius:clamp(7px,.65vw,13px);gap:clamp(6px,.7vw,14px);padding:3px clamp(7px,.75vw,14px);font-size:clamp(13px,1.05vw,20px);background:var(--ui-row);border:1px solid var(--ui-border);color:var(--ui-text)}
body:not(.full) .dashboardRow .rowName{font-size:clamp(13px,1.05vw,20px);font-weight:500;line-height:1.25;min-width:0}
body:not(.full) .dashboardRow .rowNumber{font-size:clamp(12px,.96vw,18px);min-width:3.3em;color:var(--ui-sub)}
body:not(.full) .dashboardRow .rowLogo{width:clamp(28px,3.35vw,64px);height:clamp(21px,3.7vh,40px);max-height:100%;flex:none}
body:not(.full) .dashboardRow.onAir:not([aria-pressed]){background:var(--ui-selected);color:var(--ui-selected-text);border-color:#f8d975}
body:not(.full) .dashboardRow.onAir:not([aria-pressed]) .rowNumber{color:inherit}
body:not(.full) .dashboardRow.batchSelected{background:#715a263f;color:#ffe5a0;border-color:#dfbe60}
body:not(.full) .glass{border-radius:var(--ui-radius);border-color:var(--ui-border);box-shadow:none}
body:not(.full) .sidebar nav button{border-radius:clamp(8px,.8vw,16px);min-height:clamp(34px,6.5vh,70px);font-size:clamp(13px,1.12vw,22px);border:1px solid transparent;box-shadow:none}
body:not(.full) .sidebar nav button.active{background:var(--ui-selected);color:var(--ui-selected-text);border-color:#f4d875;box-shadow:none}body:not(.remoteFocus) body:not(.full) .sidebar nav button:not(.active):hover{background:var(--ui-hover)}
body:not(.full) #library{padding:clamp(10px,1vw,20px);gap:clamp(6px,.8vh,10px)}
#library .heading h1{font-size:clamp(18px,1.6vw,31px);font-weight:650;letter-spacing:-.015em}
body:not(.full) #list .channelCard{border-radius:clamp(8px,.75vw,15px);border-color:var(--ui-border);box-shadow:none}
body:not(.full) #list .channelName{font-size:clamp(12px,.96vw,18px);font-weight:500}
body:not(.full) #list .channelCard .thumb{background:var(--ui-control);border-color:var(--ui-border)}
body:not(.full) .settingsCard,body:not(.full) .methodPanel,body:not(.full) .sourceCard{border-radius:clamp(10px,.9vw,18px);background:var(--ui-control);border:1px solid var(--ui-border);box-shadow:none;padding:clamp(11px,1.1vw,21px)}
body:not(.full) .settingsCard h2,body:not(.full) .sourceCard h2{font-size:clamp(15px,1.2vw,23px);font-weight:650}
body:not(.full) .settingsCard label,body:not(.full) .methodPanel label{font-size:clamp(11px,.92vw,18px);color:var(--ui-sub)}
body:not(.full) #filters input,body:not(.full) #filters select,body:not(.full) #facets select,body:not(.full) .settingsCard input,body:not(.full) .settingsCard select,body:not(.full) .methodPanel input,body:not(.full) .methodPanel textarea{border-radius:9px;border-color:var(--ui-border)}
body:not(.full) #facets{border-radius:12px;background:transparent;box-shadow:none}
body:not(.full) footer{color:var(--ui-sub);font-size:clamp(10px,.78vw,15px)}
body[data-page=dashboard]:not(.full) .player{border-radius:var(--ui-radius);background:#080f19}
body[data-page=dashboard]:not(.full) #screen{max-height:none}
body[data-page=dashboard]:not(.full) #previewInfo{padding:clamp(9px,.9vw,17px) clamp(12px,1.15vw,22px)}
body[data-page=dashboard]:not(.full) #current{font-size:clamp(15px,1.35vw,26px);font-weight:600}
#watchInfo{border-radius:clamp(12px,1.35vw,26px);box-shadow:none;background:linear-gradient(135deg,#0c192be8,#15273bd9);border-color:#a3bbd438}
#classicList{border-radius:clamp(12px,1.2vw,24px);box-shadow:none;border-color:#a3bbd438}
#classicRows .classicRow .rowName{font-size:clamp(13px,1.1vw,21px)}
#classicBar button{font-weight:500}
/* Dark: neutral graphite, without blue cards. */
body.darkMode:not(.full){--ui-panel:#1c1e22;--ui-border:#ffffff19;--ui-control:#ffffff08;--ui-hover:#ffffff12;--ui-text:#f3f4f6;--ui-sub:#b8bbc2;--ui-row:linear-gradient(120deg,#26282d,#191b1f)}
/* Light: neutral porcelain and restrained borders, stable original brand. */
body.light:not(.full){--white:#202b3b;--muted:#526174;--line:#33476320;--glass:linear-gradient(145deg,#ffffff,#f4f6f9);--field:#fbfcfd;--ui-panel:#f8fafc;--ui-border:#344c6825;--ui-control:#e9edf340;--ui-hover:#dce5f080;--ui-text:#202b3b;--ui-sub:#546478;--ui-row:linear-gradient(110deg,#ffffff,#f3f6f9);--ui-selected:linear-gradient(120deg,#ffe99c,#ffcf4b);--ui-selected-text:#292009;background:radial-gradient(ellipse at 65% 0%,#ffffff 0%,transparent 67%),linear-gradient(145deg,#edf0f4,#e2e7ed)!important;color:var(--ui-text)}
body.light:not(.full) .glass:not(.player){background:var(--glass);border-color:var(--ui-border);box-shadow:none}
body.light:not(.full) .headerBrand{background:#102238;border:0;border-radius:10px;padding:.15vh .65vw;box-shadow:none}
body.light:not(.full) .headerBrand strong{color:#f5f7ff}
body.light:not(.full) .headerBrand strong em{color:#ffd12d}
body.light:not(.full) button,body.light:not(.full) input,body.light:not(.full) select,body.light:not(.full) textarea{background:#fbfcfe;color:var(--ui-text);border-color:var(--ui-border);box-shadow:none}
body.light:not(.full) .sidebar nav button:not(.active){background:transparent;border-color:transparent;color:var(--ui-text)}body:not(.remoteFocus) body.light:not(.full) .sidebar nav button:not(.active):hover{background:var(--ui-hover)}
body.light:not(.full) .sidebar nav button.active,body.light:not(.full) .dashboardRow.onAir:not([aria-pressed]){background:var(--ui-selected);color:var(--ui-selected-text);border-color:#dcb54c}
body.light:not(.full) .dashboardRow:not(.onAir):not(.batchSelected){background:var(--ui-row);color:var(--ui-text);border-color:var(--ui-border)}
body.light:not(.full) .dashboardRow.batchSelected{background:#fff2c5;color:#493800;border-color:#c7a34b}
body.light:not(.full) .dashboardRow.batchSelected .rowNumber{color:#493800}
body.light:not(.full) #categoryTiles .categoryTile{background:#fbfcfe;color:var(--ui-text);border-color:var(--ui-border)}
body.light[data-page=dashboard]:not(.full) #categoryTiles .categoryTile:first-child{background:#fff5d6;color:#624b0c;border-color:#d8ba63}
body.light:not(.full) .categoryTile .categoryGlyph{background:transparent}
body.light:not(.full) #list .channelCard{background:#fdfefe;border-color:var(--ui-border)}
body.light:not(.full) #list .channelCard .thumb{background:#eef2f6;border-color:var(--ui-border)}
body.light:not(.full) #list .channelCard .addCollection{background:transparent;color:#76550a;border-color:transparent}
body.light:not(.full) .settingsCard,body.light:not(.full) .methodPanel,body.light:not(.full) .sourceCard{background:#fbfcfe;border-color:var(--ui-border)}
body.light:not(.full) .methodTabs{background:#e9eef3;border-color:var(--ui-border)}
body.light:not(.full) .methodTabs button:not(.active){background:transparent;border-color:transparent}
body.light:not(.full) .methodTabs button.active{background:#fff0ba;color:#624608;border-color:#ddbe68}
body.light:not(.full) #facets{background:transparent;border-color:var(--ui-border)}
body.light:not(.full) .metrics span{background:#eff3f7;color:var(--ui-text);border-color:var(--ui-border)}
body.light:not(.full) .dashboardRow.onAir:not([aria-pressed]) .rowNumber{color:inherit}
body.light:not(.full) #categoryTiles .categoryTile:first-child .categoryCount{color:inherit}
body:not(.full) #categoryTiles::-webkit-scrollbar{display:block!important;height:3px!important;width:0!important}
body:not(.full) #categoryTiles::-webkit-scrollbar-thumb{background:#809ab655;border-radius:9px}
@media(max-height:650px){body[data-page=dashboard]:not(.full) main{grid-template-rows:minmax(0,1fr) 91px}body[data-page=dashboard]:not(.full) #categoryTiles .categoryTile{height:53px}.dashboardHeading h1{font-size:17px}.sidebar nav button{min-height:32px}}

/* V3.1.8 – collapsible Home category strip. */
body[data-page=dashboard]:not(.full) main{transition:grid-template-rows .24s ease;}
body[data-page=dashboard].categoriesCollapsed:not(.full) main{grid-template-rows:minmax(0,1fr) clamp(30px,4.4vh,48px)}
#dashboardCategories h2{margin:0;flex:none;min-width:0}
#categoryToggle{display:inline-flex;align-items:center;gap:.65em;max-width:100%;padding:4px 8px;background:transparent;border:1px solid transparent;border-radius:8px;box-shadow:none;color:var(--ui-text);font:inherit;line-height:1.3;min-height:30px;cursor:pointer}body:not(.remoteFocus) #categoryToggle:hover{background:var(--ui-control);border-color:var(--ui-border)}
#categoryToggle .categoryChevron{width:1em;height:1em;flex:none;transition:transform .24s ease}
body.categoriesCollapsed #categoryToggle .categoryChevron{transform:rotate(180deg)}
body[data-page=dashboard]:not(.full) #dashboardCategories{overflow:hidden}
#categoryTiles[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){body[data-page=dashboard]:not(.full) main,#categoryToggle .categoryChevron{transition:none}}


/* V3.1.9 - move categories into burger/sidebar */
.sidebar #dashboardCategories{order:3;width:100%;margin-top:8px;padding:0 4px 6px;display:flex;flex-direction:column;gap:8px;align-self:stretch;overflow:hidden}
.sidebar #dashboardCategories h2{margin:0}
.sidebar #categoryToggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid var(--ui-border);background:var(--ui-control);color:var(--ui-text);font-size:clamp(12px,.95vw,18px);font-weight:600;text-align:start}
.sidebar #categoryToggle .categoryChevron{width:18px;height:18px;transition:transform .25s ease}
body.categoriesCollapsed .sidebar #categoryToggle .categoryChevron{transform:rotate(-90deg)}
.sidebar #categoryTiles{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:0;overflow:auto;max-height:min(34vh,340px)}
.sidebar #categoryTiles .categoryTile{width:100%;min-height:50px;height:auto;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid var(--ui-border);background:var(--ui-control);color:var(--ui-text);text-align:start;box-shadow:none}
.sidebar #categoryTiles .categoryTile:first-child{background:#d8af3920;border-color:#d9b95a65;color:#fbe3a0}
.sidebar #categoryTiles .categoryGlyph{width:30px;height:30px;flex:0 0 30px;background:transparent}
.sidebar #categoryTiles .categoryGlyph .rojIcon{width:20px;height:20px}
.sidebar #categoryTiles .categoryText{display:flex;flex-direction:column;min-width:0;flex:1;align-items:flex-start;gap:2px}
.sidebar #categoryTiles .categoryText strong{font-size:clamp(12px,.92vw,16px);font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.sidebar #categoryTiles .categoryCount{font-size:clamp(10px,.8vw,14px);opacity:.75}
body.sidebarCollapsed .sidebar #dashboardCategories{display:none!important}
body.light .sidebar #categoryTiles .categoryTile:first-child{background:#fff5d6;color:#624b0c;border-color:#d8ba63}
body.darkMode .sidebar #categoryTiles .categoryTile:first-child{background:#514323;color:#ffe39a;border-color:#ac873f}
body[data-page=dashboard]:not(.full) main{align-items:stretch}
body[data-page=dashboard]:not(.full) #dashboardRows{min-height:0}


/* V3.2.0 classic watch cleanup */
#watchTools{margin-inline-start:auto;display:flex;align-items:center;gap:.55vw;flex:none}#watchTools button{display:inline-flex;align-items:center;justify-content:center;width:clamp(38px,3.1vw,58px);height:clamp(38px,3.1vw,58px);padding:0;border:1px solid #b7cdec4f;border-radius:999px;background:linear-gradient(145deg,#ffffff0f,#ffffff06);color:#edf4ff;box-shadow:inset 0 1px 0 #ffffff18}#watchTools button .rojIcon{width:clamp(18px,1.3vw,24px);height:clamp(18px,1.3vw,24px)}
#watchTools button[hidden]{display:none!important}#watchSave,#watchSettings{display:none!important}#classicBar{display:none!important}body.osdHidden #watchHeader,body.osdHidden #watchInfo{display:none!important}body.classicWatch.watchOptions #watchInfo,body.classicWatch.watchHeader{visibility:visible}body.classicWatch.watchOptions #watchInfo,body.classicWatch.watchOptions #watchHeader,body.classicWatch.watchOptions #classicList,body.classicWatch.watchOptions #watchTools{visibility:hidden}

/* 3.2.1: categories live in the sidebar, no empty second dashboard row. */
body[data-page=dashboard]:not(.full) main,body[data-page=dashboard].categoriesCollapsed:not(.full) main{grid-template-rows:minmax(0,1fr);transition:grid-template-columns .36s cubic-bezier(.22,.75,.25,1)}
body[data-page=dashboard]:not(.full) .sidebar #dashboardCategories{grid-area:auto;align-self:stretch;justify-content:flex-start;order:0;flex:1 1 auto;min-height:0}
.sidebar #categoryTiles{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;align-items:stretch}
body[data-page=dashboard]:not(.full) .sidebar #categoryTiles .categoryTile{flex:0 0 auto;width:100%;min-height:38px;height:auto;max-height:none;padding:7px;gap:8px}
.sidebar #sidebarToggle{order:2}
#dashboardCategories[hidden]{display:none!important}
#watchInfo{bottom:3vh}#classicList{bottom:21vh}
/* Palette tokens apply only to the five new themes. */

body[data-theme="cinema"]{--roj-accent:#8bd8ff;--roj-panel:#102b43;--roj-control:#0c2238;--roj-row:#183b58;--roj-border:#92c9ec42;--roj-fg:#d7efff;--roj-sub:#a2c2db;--roj-selected:#053048;--roj-selected-text:#c8f1ff;--roj-hover:#0b2a44;--roj-deep:#03101b;--roj-radius:18px}
body[data-theme="cinema"]:not(.full), body[data-theme="cinema"]:not(.full)[data-page=dashboard]{background:linear-gradient(128deg,#071522 0%,#0c233b 44%,#1b4865 45%,#0a1e32 47%,#071522 100%)!important;color:var(--roj-fg);--white:var(--roj-fg);--muted:var(--roj-sub);--line:var(--roj-border);--field:var(--roj-control);--glass:var(--roj-panel);--ui-panel:var(--roj-panel);--ui-border:var(--roj-border);--ui-control:var(--roj-control);--ui-hover:var(--roj-hover);--ui-text:var(--roj-fg);--ui-sub:var(--roj-sub);--ui-row:var(--roj-row);--ui-radius:var(--roj-radius);--ui-selected:var(--roj-selected);--ui-selected-text:var(--roj-selected-text)}

body[data-theme="violet"]{--roj-accent:#d9a4ff;--roj-panel:#2b1540;--roj-control:#21112e;--roj-row:#38204e;--roj-border:#c797ff48;--roj-fg:#f5ecff;--roj-sub:#c1add9;--roj-selected:#391d52;--roj-selected-text:#f4dfff;--roj-hover:#251333;--roj-deep:#10091a;--roj-radius:22px}
body[data-theme="violet"]:not(.full), body[data-theme="violet"]:not(.full)[data-page=dashboard]{background:radial-gradient(ellipse at 90% 0%,#50216b 0%,transparent 43%),linear-gradient(135deg,#10091b 0%,#211035 48%,#10091b 49%,#0c0812 100%)!important;color:var(--roj-fg);--white:var(--roj-fg);--muted:var(--roj-sub);--line:var(--roj-border);--field:var(--roj-control);--glass:var(--roj-panel);--ui-panel:var(--roj-panel);--ui-border:var(--roj-border);--ui-control:var(--roj-control);--ui-hover:var(--roj-hover);--ui-text:var(--roj-fg);--ui-sub:var(--roj-sub);--ui-row:var(--roj-row);--ui-radius:var(--roj-radius);--ui-selected:var(--roj-selected);--ui-selected-text:var(--roj-selected-text)}

body[data-theme="ice"]{--roj-accent:#1169a8;--roj-panel:#ffffff;--roj-control:#f8fcff;--roj-row:#e0edf7;--roj-border:#7e9dbb65;--roj-fg:#18354c;--roj-sub:#516b83;--roj-selected:#e2f2ff;--roj-selected-text:#0c416c;--roj-hover:#e3eef8;--roj-deep:#e6eef6;--roj-radius:24px}
body[data-theme="ice"]:not(.full), body[data-theme="ice"]:not(.full)[data-page=dashboard]{background:radial-gradient(ellipse at 84% 0%,#ffffff 0%,transparent 55%),linear-gradient(135deg,#dce9f4,#f9fcff 48%,#d6e7f4)!important;color:var(--roj-fg);--white:var(--roj-fg);--muted:var(--roj-sub);--line:var(--roj-border);--field:var(--roj-control);--glass:var(--roj-panel);--ui-panel:var(--roj-panel);--ui-border:var(--roj-border);--ui-control:var(--roj-control);--ui-hover:var(--roj-hover);--ui-text:var(--roj-fg);--ui-sub:var(--roj-sub);--ui-row:var(--roj-row);--ui-radius:var(--roj-radius);--ui-selected:var(--roj-selected);--ui-selected-text:var(--roj-selected-text)}

body[data-theme="gold"]{--roj-accent:#f5ce76;--roj-panel:#2a241b;--roj-control:#1d1913;--roj-row:#372e20;--roj-border:#d9b56955;--roj-fg:#fff4da;--roj-sub:#c8b795;--roj-selected:#5b431c;--roj-selected-text:#fff1cb;--roj-hover:#241d13;--roj-deep:#110f0b;--roj-radius:12px}
body[data-theme="gold"]:not(.full), body[data-theme="gold"]:not(.full)[data-page=dashboard]{background:radial-gradient(ellipse at 0% 100%,#6b451c 0%,transparent 42%),linear-gradient(150deg,#100e0b 0%,#252016 58%,#392a17 59%,#16120d 61%,#100e0b 100%)!important;color:var(--roj-fg);--white:var(--roj-fg);--muted:var(--roj-sub);--line:var(--roj-border);--field:var(--roj-control);--glass:var(--roj-panel);--ui-panel:var(--roj-panel);--ui-border:var(--roj-border);--ui-control:var(--roj-control);--ui-hover:var(--roj-hover);--ui-text:var(--roj-fg);--ui-sub:var(--roj-sub);--ui-row:var(--roj-row);--ui-radius:var(--roj-radius);--ui-selected:var(--roj-selected);--ui-selected-text:var(--roj-selected-text)}

body[data-theme="red"]{--roj-accent:#ff8b8d;--roj-panel:#2e161b;--roj-control:#231013;--roj-row:#402027;--roj-border:#f5878950;--roj-fg:#fff2f2;--roj-sub:#d3adb1;--roj-selected:#5e2027;--roj-selected-text:#ffebed;--roj-hover:#31181c;--roj-deep:#12080a;--roj-radius:9px}
body[data-theme="red"]:not(.full), body[data-theme="red"]:not(.full)[data-page=dashboard]{background:linear-gradient(135deg,#14080a 0%,#340e16 34%,#6b1c24 35%,#1a0b0e 37%,#170a0d 73%,#450e18 74%,#1b0b0f 79%)!important;color:var(--roj-fg);--white:var(--roj-fg);--muted:var(--roj-sub);--line:var(--roj-border);--field:var(--roj-control);--glass:var(--roj-panel);--ui-panel:var(--roj-panel);--ui-border:var(--roj-border);--ui-control:var(--roj-control);--ui-hover:var(--roj-hover);--ui-text:var(--roj-fg);--ui-sub:var(--roj-sub);--ui-row:var(--roj-row);--ui-radius:var(--roj-radius);--ui-selected:var(--roj-selected);--ui-selected-text:var(--roj-selected-text)}

body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .glass:not(.player){background:var(--roj-panel);border-color:var(--roj-border);border-radius:var(--roj-radius);box-shadow:none}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) button,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) input,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) select,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) textarea{background:var(--roj-control);border-color:var(--roj-border);color:var(--roj-fg);box-shadow:none}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) select option{background:var(--roj-control);color:var(--roj-fg)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .sidebar nav button:not(.active){background:transparent;color:var(--roj-fg);border-color:transparent}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .sidebar nav button.active,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .dashboardRow.onAir:not([aria-pressed]),body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .methodTabs button.active{background:var(--roj-selected);color:var(--roj-selected-text);border-color:var(--roj-accent)}
body:not(.remoteFocus)[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .sidebar nav button:not(.active):hover{background:var(--roj-hover)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .dashboardRow:not(.onAir):not(.batchSelected),body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #list .channelCard,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #list .channelCard .thumb{background:var(--roj-row);color:var(--roj-fg);border-color:var(--roj-border)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #list .channelCard .channelName,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .dashboardHeading h1,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #title,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #headerClock,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #headerContext{color:var(--roj-fg)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #list .channelCard .addCollection{color:var(--roj-accent);background:transparent;border-color:transparent}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #list .channelCard .thumb,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .dashboardRow,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #list .channelCard,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .sidebar nav button{border-radius:calc(var(--roj-radius)*.65)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full)[data-page=dashboard] .sidebar #categoryTiles .categoryTile{background:var(--roj-control);color:var(--roj-fg);border-color:var(--roj-border);border-radius:calc(var(--roj-radius)*.65)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full)[data-page=dashboard] .sidebar #categoryTiles .categoryTile:first-child{background:var(--roj-selected);color:var(--roj-selected-text);border-color:var(--roj-accent)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .settingsCard,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .methodPanel,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .sourceCard{background:var(--roj-panel);border-color:var(--roj-border);border-radius:var(--roj-radius)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) .methodTabs{background:var(--roj-control);border-color:var(--roj-border)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #sidebarToggle,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #switch{color:var(--roj-fg);background:var(--roj-control);border-color:var(--roj-border)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #facets{border-color:var(--roj-border)}

body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch #watchHeader,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch #watchInfo,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch #classicList{background:var(--roj-panel);border-color:var(--roj-border);color:var(--roj-fg);border-radius:var(--roj-radius);backdrop-filter:none}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch #classicRows .classicRow:not(.chosen){background:var(--roj-row);color:var(--roj-fg);border-color:var(--roj-border)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch #classicRows .classicRow.chosen{background:var(--roj-selected);color:var(--roj-selected-text);border-color:var(--roj-accent);box-shadow:none}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch #watchTools button{background:var(--roj-control);color:var(--roj-fg);border-color:var(--roj-border)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch #watchNumber,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch #classicCount,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch #watchClock,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch .watchNow span,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch .watchNext span,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch #classicRows .rowNumber{color:var(--roj-fg)}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]).classicWatch #watchQuality{color:var(--roj-accent);border-color:var(--roj-border)}

body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]) .headerBrand strong,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]) .watchBrand strong{color:#f5f7ff}
body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]) .headerBrand strong em,body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]) .watchBrand strong em{color:#ffd12d}
body[data-theme="ice"] .watchBrand{background:#102238;padding:5px 9px;border-radius:10px}
body[data-theme="ice"].classicWatch #watchInfo .watchIdentity strong{color:#18354c}
body[data-theme="cinema"]:not(.full) .sidebar{border-inline-start:3px solid #8bd8ff}
body[data-theme="violet"]:not(.full) .sidebar nav button.active{box-shadow:inset 0 0 0 1px #d9a4ff55,0 0 10px #a85bf333}
body[data-theme="gold"]:not(.full) .sidebar nav button.active{background:linear-gradient(100deg,#624817,#302615);color:#ffe3a1}
body[data-theme="red"]:not(.full) .sidebar nav button.active{background:linear-gradient(100deg,#7b242e,#3e161b);color:#fff2f2}
body[data-theme="ice"]:not(.full) .sidebar nav button.active{background:#1169a8;color:#ffffff}

body[data-theme]:not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]):not(.full) #empty{background:transparent;color:#f5f7ff}

/* V3.2.2 Nature collection and consistent control design */
body[data-theme="mountain"]{--roj-accent:#ffd37a;--roj-panel:#142335eb;--roj-control:#142235e8;--roj-row:#26394bc7;--roj-border:#e7c68b50;--roj-fg:#f5f6f8;--roj-sub:#bfcada;--roj-selected:#5c482e;--roj-selected-text:#fff3d5;--roj-hover:#233b50;--roj-deep:#0b1728;--roj-radius:18px;--nature-image:url("assets/backgrounds/mountain.jpg")}
body[data-theme="mountain"]:not(.full),body[data-theme="mountain"]:not(.full)[data-page=dashboard]{background:linear-gradient(110deg,rgba(5,13,23,.38),rgba(8,16,25,.13) 58%,rgba(6,12,22,.28)),var(--nature-image) center/cover no-repeat!important;color:var(--roj-fg);--white:var(--roj-fg);--muted:var(--roj-sub);--line:var(--roj-border);--field:var(--roj-control);--glass:var(--roj-panel);--ui-panel:var(--roj-panel);--ui-border:var(--roj-border);--ui-control:var(--roj-control);--ui-hover:var(--roj-hover);--ui-text:var(--roj-fg);--ui-sub:var(--roj-sub);--ui-row:var(--roj-row);--ui-radius:var(--roj-radius);--ui-selected:var(--roj-selected);--ui-selected-text:var(--roj-selected-text)}
body[data-theme="desert"]{--roj-accent:#efc08b;--roj-panel:#292523e8;--roj-control:#25211feb;--roj-row:#483b30bd;--roj-border:#d5b19755;--roj-fg:#fff5e9;--roj-sub:#d9c8b8;--roj-selected:#63462f;--roj-selected-text:#fff0d4;--roj-hover:#4b4036;--roj-deep:#201a17;--roj-radius:18px;--nature-image:url("assets/backgrounds/desert.jpg")}
body[data-theme="desert"]:not(.full),body[data-theme="desert"]:not(.full)[data-page=dashboard]{background:linear-gradient(110deg,rgba(5,13,23,.38),rgba(8,16,25,.13) 58%,rgba(6,12,22,.28)),var(--nature-image) center/cover no-repeat!important;color:var(--roj-fg);--white:var(--roj-fg);--muted:var(--roj-sub);--line:var(--roj-border);--field:var(--roj-control);--glass:var(--roj-panel);--ui-panel:var(--roj-panel);--ui-border:var(--roj-border);--ui-control:var(--roj-control);--ui-hover:var(--roj-hover);--ui-text:var(--roj-fg);--ui-sub:var(--roj-sub);--ui-row:var(--roj-row);--ui-radius:var(--roj-radius);--ui-selected:var(--roj-selected);--ui-selected-text:var(--roj-selected-text)}
body[data-theme="valley"]{--roj-accent:#9ce0c0;--roj-panel:#102f30e8;--roj-control:#102b2bea;--roj-row:#214442c7;--roj-border:#9bc7b449;--roj-fg:#effaf4;--roj-sub:#bbd4c8;--roj-selected:#285c49;--roj-selected-text:#e4ffee;--roj-hover:#254d47;--roj-deep:#091e20;--roj-radius:18px;--nature-image:url("assets/backgrounds/valley.jpg")}
body[data-theme="valley"]:not(.full),body[data-theme="valley"]:not(.full)[data-page=dashboard]{background:linear-gradient(110deg,rgba(5,13,23,.38),rgba(8,16,25,.13) 58%,rgba(6,12,22,.28)),var(--nature-image) center/cover no-repeat!important;color:var(--roj-fg);--white:var(--roj-fg);--muted:var(--roj-sub);--line:var(--roj-border);--field:var(--roj-control);--glass:var(--roj-panel);--ui-panel:var(--roj-panel);--ui-border:var(--roj-border);--ui-control:var(--roj-control);--ui-hover:var(--roj-hover);--ui-text:var(--roj-fg);--ui-sub:var(--roj-sub);--ui-row:var(--roj-row);--ui-radius:var(--roj-radius);--ui-selected:var(--roj-selected);--ui-selected-text:var(--roj-selected-text)}
body[data-theme="lake"]{--roj-accent:#accdf5;--roj-panel:#182b42e8;--roj-control:#13243beb;--roj-row:#263e59c7;--roj-border:#98b8dd50;--roj-fg:#f1f6ff;--roj-sub:#bdcce0;--roj-selected:#345477;--roj-selected-text:#edf5ff;--roj-hover:#2b4562;--roj-deep:#0b1729;--roj-radius:18px;--nature-image:url("assets/backgrounds/lake.jpg")}
body[data-theme="lake"]:not(.full),body[data-theme="lake"]:not(.full)[data-page=dashboard]{background:linear-gradient(110deg,rgba(5,13,23,.38),rgba(8,16,25,.13) 58%,rgba(6,12,22,.28)),var(--nature-image) center/cover no-repeat!important;color:var(--roj-fg);--white:var(--roj-fg);--muted:var(--roj-sub);--line:var(--roj-border);--field:var(--roj-control);--glass:var(--roj-panel);--ui-panel:var(--roj-panel);--ui-border:var(--roj-border);--ui-control:var(--roj-control);--ui-hover:var(--roj-hover);--ui-text:var(--roj-fg);--ui-sub:var(--roj-sub);--ui-row:var(--roj-row);--ui-radius:var(--roj-radius);--ui-selected:var(--roj-selected);--ui-selected-text:var(--roj-selected-text)}
body[data-theme="solar"]{--roj-accent:#ffd278;--roj-panel:#17263de8;--roj-control:#17243aeb;--roj-row:#2d3b55c7;--roj-border:#d9bb8050;--roj-fg:#fff8ed;--roj-sub:#cbd3e1;--roj-selected:#604b31;--roj-selected-text:#fff0cd;--roj-hover:#374761;--roj-deep:#0c1729;--roj-radius:18px;--nature-image:url("assets/backgrounds/solar.svg")}
body[data-theme="solar"]:not(.full),body[data-theme="solar"]:not(.full)[data-page=dashboard]{background:linear-gradient(110deg,rgba(5,13,23,.38),rgba(8,16,25,.13) 58%,rgba(6,12,22,.28)),var(--nature-image) center/cover no-repeat!important;color:var(--roj-fg);--white:var(--roj-fg);--muted:var(--roj-sub);--line:var(--roj-border);--field:var(--roj-control);--glass:var(--roj-panel);--ui-panel:var(--roj-panel);--ui-border:var(--roj-border);--ui-control:var(--roj-control);--ui-hover:var(--roj-hover);--ui-text:var(--roj-fg);--ui-sub:var(--roj-sub);--ui-row:var(--roj-row);--ui-radius:var(--roj-radius);--ui-selected:var(--roj-selected);--ui-selected-text:var(--roj-selected-text)}
body:not(.full) .dashboardHeading .homeHeadingTools{gap:6px;align-items:center;flex-shrink:0}
body[data-theme]:not(.full) .dashboardHeading .homeHeadingTools button{height:clamp(30px,4.2vh,46px);min-height:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-control);color:var(--ui-text);box-shadow:none;font-weight:550;line-height:1.15;flex:none}
body[data-theme]:not(.full) .dashboardHeading .homeHeadingTools #homeSort{padding:0 12px;max-width:14vw;min-width:0;font-size:clamp(11px,.86vw,16px);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-theme]:not(.full) .dashboardHeading .homeHeadingTools #homeEdit,body[data-theme]:not(.full) .dashboardHeading .homeHeadingTools #allChannels{width:clamp(30px,4.2vh,46px);padding:0}
body:not(.full) .homeHeadingTools .rojIcon{width:clamp(16px,1.2vw,23px);height:clamp(16px,1.2vw,23px)}
html[dir=rtl] #allChannels .rojIcon{transform:scaleX(-1)}
body[data-theme]:not(.full) #facets{gap:clamp(6px,.65vw,12px);padding:3px;overflow:visible}
body[data-theme]:not(.full) #facets label{overflow:visible;color:var(--ui-sub);font-weight:500;line-height:1.4}
body[data-theme]:not(.full) #facets select,body[data-theme]:not(.full) #filters select,body[data-theme]:not(.full) #list select{appearance:none;-webkit-appearance:none;background-color:var(--ui-control);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dce6f4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:16px 16px;border:1px solid var(--ui-border);border-radius:10px;color:var(--ui-text);padding-inline-start:12px;padding-inline-end:34px;text-overflow:ellipsis;box-shadow:none;min-height:clamp(34px,4.5vh,49px);line-height:1.3}
html[dir=rtl] body[data-theme]:not(.full) #facets select,html[dir=rtl] body[data-theme]:not(.full) #filters select,html[dir=rtl] body[data-theme]:not(.full) #list select{background-position:left 10px center}
body.light[data-theme]:not(.full) #facets select,body.light[data-theme]:not(.full) #filters select,body.light[data-theme]:not(.full) #list select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344a60' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
body:not(.full) select option{background:#142235;color:#edf3fc}body.light:not(.full) select option{background:#f5f8fc;color:#24364a}

body:not(.remoteFocus)[data-theme]:not(.full) .homeHeadingTools button:hover{border-color:var(--roj-accent,#ffcf47)}
body[data-theme]:not(.full) .homeHeadingTools button[hidden]{display:none!important}

body[data-theme="mountain"]:not(.full) .glass:not(.player),body[data-theme="mountain"]:not(.full) .settingsCard,body[data-theme="mountain"]:not(.full) .methodPanel,body[data-theme="mountain"]:not(.full) .sourceCard{backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
body[data-theme="mountain"]:not(.full) #dashboardRows .dashboardRow:not(.onAir):not(.batchSelected){background:var(--roj-row);box-shadow:none}
body[data-theme="mountain"]:not(.full) .sidebar nav button.active{background:var(--roj-selected);color:var(--roj-selected-text);border-color:var(--roj-accent);box-shadow:none}
body[data-theme="desert"]:not(.full) .glass:not(.player),body[data-theme="desert"]:not(.full) .settingsCard,body[data-theme="desert"]:not(.full) .methodPanel,body[data-theme="desert"]:not(.full) .sourceCard{backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
body[data-theme="desert"]:not(.full) #dashboardRows .dashboardRow:not(.onAir):not(.batchSelected){background:var(--roj-row);box-shadow:none}
body[data-theme="desert"]:not(.full) .sidebar nav button.active{background:var(--roj-selected);color:var(--roj-selected-text);border-color:var(--roj-accent);box-shadow:none}
body[data-theme="valley"]:not(.full) .glass:not(.player),body[data-theme="valley"]:not(.full) .settingsCard,body[data-theme="valley"]:not(.full) .methodPanel,body[data-theme="valley"]:not(.full) .sourceCard{backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
body[data-theme="valley"]:not(.full) #dashboardRows .dashboardRow:not(.onAir):not(.batchSelected){background:var(--roj-row);box-shadow:none}
body[data-theme="valley"]:not(.full) .sidebar nav button.active{background:var(--roj-selected);color:var(--roj-selected-text);border-color:var(--roj-accent);box-shadow:none}
body[data-theme="lake"]:not(.full) .glass:not(.player),body[data-theme="lake"]:not(.full) .settingsCard,body[data-theme="lake"]:not(.full) .methodPanel,body[data-theme="lake"]:not(.full) .sourceCard{backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
body[data-theme="lake"]:not(.full) #dashboardRows .dashboardRow:not(.onAir):not(.batchSelected){background:var(--roj-row);box-shadow:none}
body[data-theme="lake"]:not(.full) .sidebar nav button.active{background:var(--roj-selected);color:var(--roj-selected-text);border-color:var(--roj-accent);box-shadow:none}
body[data-theme="solar"]:not(.full) .glass:not(.player),body[data-theme="solar"]:not(.full) .settingsCard,body[data-theme="solar"]:not(.full) .methodPanel,body[data-theme="solar"]:not(.full) .sourceCard{backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
body[data-theme="solar"]:not(.full) #dashboardRows .dashboardRow:not(.onAir):not(.batchSelected){background:var(--roj-row);box-shadow:none}
body[data-theme="solar"]:not(.full) .sidebar nav button.active{background:var(--roj-selected);color:var(--roj-selected-text);border-color:var(--roj-accent);box-shadow:none}

/* V3.2.3 — Modern navigation, transparent loading, restrained nature palettes. */
body #screen #empty, body[data-theme] #screen #empty, body.full #screen #empty {
 background:transparent!important; border:0!important; box-shadow:none!important;
}
body #screen #empty img {background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;opacity:1;object-fit:contain;}
body #screen #empty[data-state="loading"] img {animation:rojSpin 10s linear infinite;}
body:not(.full) {--rail-compact:clamp(58px,4.65vw,92px);--rail-width:clamp(170px,15.2vw,300px);--rail-ink:var(--roj-fg,var(--ui-text,#eef4ff));--rail-accent:var(--roj-accent,#ffd05a);--rail-edge:rgba(170,196,224,.15);--rail-fill:rgba(9,23,39,.70);--rail-active:rgba(255,200,66,.13);--rail-hover:rgba(180,205,235,.085);}
body.darkMode:not(.full){--rail-fill:rgba(25,26,29,.92);--rail-edge:rgba(255,255,255,.11);}
body.light:not(.full){--rail-fill:rgba(255,255,255,.83);--rail-edge:rgba(42,62,87,.14);--rail-accent:#8c5e00;--rail-active:rgba(255,197,48,.25);--rail-hover:rgba(31,61,91,.06);}
body[data-theme="ice"]:not(.full){--rail-accent:#17659b;--rail-active:rgba(50,142,220,.13);}
body[data-theme]:not(.full) main > aside.sidebar.glass{background:var(--rail-fill)!important;border:1px solid var(--rail-edge)!important;border-radius:clamp(15px,1.35vw,26px)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.055)!important;padding:clamp(7px,.7vw,14px)!important;gap:clamp(6px,.6vw,12px);backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
body[data-theme]:not(.full) .sidebar #nav {gap:clamp(4px,.7vh,8px);}
body[data-theme]:not(.full) .sidebar #nav > button {position:relative;min-height:clamp(36px,5.8vh,65px);height:clamp(36px,5.8vh,65px);border-radius:clamp(10px,.85vw,17px)!important;background:transparent!important;color:var(--rail-ink)!important;border:1px solid transparent!important;box-shadow:none!important;font-weight:500;}
body[data-theme]:not(.full) .sidebar #nav > button.active {background:var(--rail-active)!important;border-color:var(--rail-accent)!important;color:var(--rail-accent)!important;font-weight:650;}
body:not(.remoteFocus)[data-theme]:not(.full) .sidebar #nav > button:not(.active):hover {background:var(--rail-hover)!important;}

body[data-theme]:not(.full) .sidebar #nav > button .rojIcon {width:clamp(19px,1.55vw,30px);height:clamp(19px,1.55vw,30px);stroke-width:1.65;flex:none;}
body[data-theme]:not(.full) .sidebar #sidebarToggle {margin-top:auto;align-self:center;min-width:clamp(34px,3vw,52px);height:clamp(34px,4.5vh,50px);background:transparent!important;border:1px solid var(--rail-edge)!important;color:var(--rail-ink)!important;border-radius:12px!important;box-shadow:none!important;}
body:not(.remoteFocus)[data-theme]:not(.full) .sidebar #sidebarToggle:hover {background:var(--rail-hover)!important;}
body[data-theme]:not(.full) .sidebar #categoryToggle {border-radius:12px;background:var(--rail-hover)!important;color:var(--rail-ink)!important;border-color:var(--rail-edge)!important;}
body[data-theme]:not(.full) .sidebar #categoryTiles .categoryTile {border-radius:11px;box-shadow:none;}
body[data-theme]:not(.full):not([data-theme="glass"]):not([data-theme="dark"]):not([data-theme="light"]) {--ui-text:var(--roj-fg);--ui-sub:var(--roj-sub);--ui-control:var(--roj-control);}
body[data-theme="mountain"],body[data-theme="desert"],body[data-theme="valley"],body[data-theme="lake"],body[data-theme="solar"] {--roj-radius:19px;}
body[data-theme="mountain"]{--roj-panel:#122336ca;--roj-row:#182a3cdc;--roj-control:#132337ed;}
body[data-theme="desert"]{--roj-panel:#29241fce;--roj-row:#382d25e2;--roj-control:#29211ded;}
body[data-theme="valley"]{--roj-panel:#102c2ccd;--roj-row:#173b38e0;--roj-control:#102c2bec;}
body[data-theme="lake"]{--roj-panel:#15263dd0;--roj-row:#20334ae0;--roj-control:#15263ded;}
body[data-theme="solar"]{--roj-panel:#15253acf;--roj-row:#1b2c43df;--roj-control:#14233aee;}
body:not(.full) #screen{background:#091421;}
body[data-theme]:not(.full) .player #screen{border-color:rgba(147,172,202,.17);}
@media(prefers-reduced-motion:reduce){body #screen #empty[data-state="loading"] img{animation:none;}}

/* Show the existing theme image while idle/loading; never cover playing video. */
body[data-theme="mountain"] #screen,body[data-theme="desert"] #screen,body[data-theme="valley"] #screen,body[data-theme="lake"] #screen,body[data-theme="solar"] #screen{--waiting-wallpaper:linear-gradient(180deg,rgba(4,12,23,.22),rgba(4,12,23,.43)),var(--nature-image);}
body[data-theme] .player #screen[data-load-state="idle"],body[data-theme] .player #screen[data-load-state="loading"]{background-image:var(--waiting-wallpaper,none);background-size:cover;background-position:center;background-repeat:no-repeat;}
body[data-theme] #screen[data-load-state="idle"] video,body[data-theme] #screen[data-load-state="loading"] video{visibility:hidden;}
body[data-theme] #screen[data-load-state="idle"] #previewLive,body[data-theme] #screen[data-load-state="loading"] #previewLive{display:none!important;}

/* V3.2.4 — clean channel numbers, compact in-app PiP and panel transparency */
#list .channelIndex{position:static;display:inline-block;flex:none;min-width:3.3em;width:auto;height:auto;margin:0;padding:0;background:none;border:0;box-shadow:none;border-radius:0;font-size:clamp(12px,.96vw,18px);font-weight:500;line-height:1.2;color:var(--ui-sub);font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate;text-align:start;}
#list.channelRows .channelIndex{margin-inline-start:4px;}
#list.channelGrid .channelCaption{display:flex;align-items:center;gap:8px;padding-inline-start:10px;padding-inline-end:var(--card-reserve,42px);min-height:calc(var(--card-action,28px) + 2 * var(--card-gap,4px));flex:none;min-width:0;box-sizing:border-box;}
#list.channelGrid .channelCaption .channelName{padding:0!important;flex:1;width:auto;min-width:0;line-height:1.25;min-height:0;}
#list.channelGrid .channelCaption .channelIndex{min-width:2.6em;}
#pipControls{display:none;}
body.mini:not(.full) main,body.mini[data-page=dashboard]:not(.full) main{grid-template-columns:minmax(0,var(--rail-width)) minmax(0,1fr);grid-template-rows:minmax(0,1fr);}
body.mini:not(.full) main>.player,body.mini[data-page=dashboard]:not(.full) main>.player{position:fixed!important;inset:auto!important;right:clamp(14px,1.2vw,28px)!important;bottom:clamp(14px,1.2vw,28px)!important;width:clamp(230px,26vw,450px)!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:16/9;display:block!important;z-index:40;grid-column:auto;grid-row:auto;padding:0!important;gap:0;background:#08121e!important;border:1px solid #8299b65c;border-radius:14px;box-shadow:0 12px 32px #0007;overflow:hidden!important;color:#fff;}
body.mini:not(.full) main>.player #screen{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;min-height:0;aspect-ratio:auto!important;border:0!important;border-radius:inherit;}
body.mini:not(.full) main>.player #screen video{width:100%;height:100%;}
body.mini:not(.full) main>.player #previewInfo{position:absolute!important;inset:auto 0 0!important;background:linear-gradient(0deg,#07121de8,transparent)!important;color:#fff!important;z-index:3;padding:18px 11px 9px!important;pointer-events:none;}
body.mini:not(.full) #previewIdentity{gap:6px;}
body.mini:not(.full) #previewIdentity #current,body.mini:not(.full) #previewNumber{font-size:clamp(12px,1vw,17px)!important;color:#fff!important;line-height:1.2;}
body.mini:not(.full) #previewNumber{color:#ffd05b!important;}
body.mini:not(.full) #previewQuality,body.mini:not(.full) #guide,body.mini:not(.full) #previewProgress,body.mini:not(.full) .playerOptions,body.mini:not(.full) .actions,body.mini:not(.full) #closePlayer{display:none!important;}
body.mini:not(.full) #previewLive{font-size:11px!important;top:8px!important;right:auto!important;left:8px!important;padding:4px 7px!important;}
body.mini:not(.full) #pipControls{position:absolute;top:7px;right:7px;z-index:5;display:flex;gap:5px;}
body.mini:not(.full) #pipControls button{background:#081421d9!important;border:1px solid #ffffff35;color:white!important;width:32px;height:32px;min-height:0;padding:6px;display:flex;align-items:center;justify-content:center;border-radius:8px;}
body.mini:not(.full) #pipControls .rojIcon{width:18px;height:18px;}
body.mini:not(.full) #status:not(:empty){position:absolute;top:44px;left:8px;right:8px;z-index:4;font-size:11px;padding:4px;background:#081421cc;}
body.mini:not(.full) #empty img{width:clamp(34px,4vw,64px)!important;height:auto!important;}
body.mini:not(.full) #empty strong{display:none!important;}
body.mini:not(.full) #list{padding-bottom:0;}
.transparencyLabel{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.transparencyValue{font-variant-numeric:tabular-nums;font-weight:600;color:var(--ui-text);}
body:not(.full) .settingsCard #uiTransparency{appearance:auto;-webkit-appearance:auto;accent-color:#f5be3b;display:block;width:100%;min-height:26px;height:26px;margin:0;padding:0;background:transparent;border:0;cursor:pointer;}
body{--panel-rgb:23,42,64;--row-rgb:34,58,82;--control-rgb:29,49,70;}
body[data-theme="dark"]{--panel-rgb:28,30,34;--row-rgb:38,40,45;--control-rgb:33,35,40;}
body[data-theme="light"]{--panel-rgb:248,250,252;--row-rgb:243,246,249;--control-rgb:233,237,243;}
body[data-theme="cinema"]{--panel-rgb:16,43,67;--row-rgb:24,59,88;--control-rgb:12,34,56;}
body[data-theme="violet"]{--panel-rgb:43,21,64;--row-rgb:56,32,78;--control-rgb:33,17,46;}
body[data-theme="ice"]{--panel-rgb:255,255,255;--row-rgb:224,237,247;--control-rgb:248,252,255;}
body[data-theme="gold"]{--panel-rgb:42,36,27;--row-rgb:55,46,32;--control-rgb:29,25,19;}
body[data-theme="red"]{--panel-rgb:46,22,27;--row-rgb:64,32,39;--control-rgb:35,16,19;}
body[data-theme="mountain"]{--panel-rgb:18,35,54;--row-rgb:24,42,60;--control-rgb:19,35,55;}
body[data-theme="desert"]{--panel-rgb:41,36,31;--row-rgb:56,45,37;--control-rgb:41,33,29;}
body[data-theme="valley"]{--panel-rgb:16,44,44;--row-rgb:23,59,56;--control-rgb:16,44,43;}
body[data-theme="lake"]{--panel-rgb:21,38,61;--row-rgb:32,51,74;--control-rgb:21,38,61;}
body[data-theme="solar"]{--panel-rgb:21,37,58;--row-rgb:27,44,67;--control-rgb:20,35,58;}
body.customTransparency[data-theme]:not(.full) main > aside.sidebar.glass,body.customTransparency[data-theme]:not(.full) #dashboard,body.customTransparency[data-theme]:not(.full) #library{background:rgba(var(--panel-rgb),var(--panel-opacity))!important;}
body.customTransparency[data-theme]:not(.full) .settingsCard,body.customTransparency[data-theme]:not(.full) .methodPanel,body.customTransparency[data-theme]:not(.full) .sourceCard,body.customTransparency[data-theme]:not(.full) .collectionGrid>button{background:rgba(var(--control-rgb),var(--panel-opacity))!important;}
body.customTransparency[data-theme]:not(.full) .dashboardRow:not(.onAir):not(.batchSelected),body.customTransparency[data-theme]:not(.full) #list .channelCard,body.customTransparency[data-theme]:not(.full) .sidebar #categoryTiles .categoryTile:not(:first-child){background:rgba(var(--row-rgb),var(--row-opacity))!important;}
body.customTransparency[data-theme].classicWatch #watchHeader,body.customTransparency[data-theme].classicWatch #watchInfo,body.customTransparency[data-theme].classicWatch #classicList{background:rgba(var(--panel-rgb),var(--panel-opacity))!important;backdrop-filter:none!important;}
body.customTransparency[data-theme].classicWatch #classicRows .classicRow:not(.chosen){background:rgba(var(--row-rgb),var(--row-opacity))!important;}

/* Keep the PiP clear of the navigation rail in RTL layouts. */
html[dir=rtl] body.mini:not(.full) main>.player,html[dir=rtl] body.mini[data-page=dashboard]:not(.full) main>.player{right:calc(var(--rail-width) + clamp(26px,3.2vw,62px))!important;}
html[dir=rtl] body.mini.sidebarCollapsed:not(.full) main>.player,html[dir=rtl] body.mini.sidebarCollapsed[data-page=dashboard]:not(.full) main>.player{right:calc(var(--rail-compact) + clamp(26px,3.2vw,62px))!important;}

/* 3.2.6: opaque baseline, lightweight controls, city palettes */
body[data-theme="dark"]{--panel-rgb:14,15,17;--row-rgb:23,24,27;--control-rgb:19,20,23;--rail-fill:#101114;--rail-active:#30291a;--rail-edge:#ffffff18;--ui-control:#191a1d;--ui-panel:#101114;--ui-row:#17181b;background:#070809!important}
body[data-theme="mountain"]{--panel-rgb:25,29,36;--row-rgb:38,43,51;--control-rgb:30,34,42;--roj-accent:#eac38a;--roj-selected:#59462e;--roj-selected-text:#fff2d8;--roj-border:#bfa98a55;--rail-accent:#eac38a;--nature-image:var(--city-wallpaper,linear-gradient(150deg,#514033,#172332 65%,#0b111d))}
body[data-theme="desert"]{--panel-rgb:23,34,43;--row-rgb:32,48,57;--control-rgb:24,37,46;--roj-accent:#8ed0df;--roj-selected:#244653;--roj-selected-text:#e6faff;--roj-border:#8fb5c955;--rail-accent:#8ed0df;--nature-image:var(--city-wallpaper,linear-gradient(140deg,#446476,#192e3d 60%,#0c1620))}
body[data-theme="valley"]{--panel-rgb:33,34,29;--row-rgb:47,49,39;--control-rgb:37,39,31;--roj-accent:#d6ce95;--roj-selected:#4b4c32;--roj-selected-text:#fff6d3;--roj-border:#c5bd8750;--rail-accent:#d6ce95;--nature-image:var(--city-wallpaper,linear-gradient(140deg,#72674d,#303b30 58%,#141d1a))}
body[data-theme="lake"]{--panel-rgb:22,26,43;--row-rgb:33,40,62;--control-rgb:25,31,48;--roj-accent:#b7c5f1;--roj-selected:#3d4868;--roj-selected-text:#f4f5ff;--roj-border:#adb9df50;--rail-accent:#b7c5f1;--nature-image:var(--city-wallpaper,linear-gradient(145deg,#545573,#202b45 60%,#111724))}
body[data-theme]:not(.full) main>.sidebar.glass,body[data-theme]:not(.full) #dashboard,body[data-theme]:not(.full) #library{background:rgba(var(--panel-rgb),var(--panel-opacity,1))!important}
body[data-theme]:not(.full) .settingsCard,body[data-theme]:not(.full) .methodPanel,body[data-theme]:not(.full) .sourceCard{background:rgba(var(--control-rgb),var(--panel-opacity,1))!important}
body[data-theme="dark"]:not(.full) #list input,body[data-theme="dark"]:not(.full) #list select,body[data-theme="dark"]:not(.full) #list button:not(.onAir),body[data-theme="dark"]:not(.full) #filters input,body[data-theme="dark"]:not(.full) #filters select,body[data-theme="dark"]:not(.full) #facets select{background-color:#191a1d;color:#f3f4f6;border-color:#ffffff15}
body[data-theme="dark"]:not(.full) .player{background:#101114}
body[data-theme]:not(.full) .sidebar #nav>button{border-radius:13px!important;gap:12px}
body[data-theme]:not(.full) .sidebar #nav>button.active{background:var(--rail-active)!important;border-color:transparent!important;color:var(--rail-accent)!important}
body[data-theme]:not(.full) .sidebar #nav>button.active:before{content:'';position:absolute;inset-inline-start:0;top:27%;height:46%;width:3px;background:var(--rail-accent);border-radius:4px}
body[data-theme]:not(.full) .sidebar #nav>button .rojIcon{stroke-width:1.7;width:clamp(20px,1.65vw,31px);height:clamp(20px,1.65vw,31px)}
body[data-theme]:not(.full) .sidebar #nav{min-height:0;overflow-y:auto;scrollbar-width:none}
#networkState{display:inline-flex;align-items:center;justify-content:center;width:clamp(26px,2.4vw,44px);height:clamp(26px,2.4vw,44px);color:#38d9a0;flex:none}
#networkState.unknownNetwork{color:var(--ui-sub,#c4d1e2)}#networkState.offline{color:#ff6673}#networkState .rojIcon{width:clamp(19px,1.65vw,30px);height:clamp(19px,1.65vw,30px)}
body.light #networkState.unknownNetwork{color:#35485d}
.playingDot.failedDot{background:#ef4656!important;box-shadow:0 0 0 2px #ef465622}.playingDot{min-width:8px;min-height:8px}
#list .channelCard>.playingDot{position:absolute;inset-inline-end:8px;top:8px;z-index:2;pointer-events:none;outline:1px solid #0005}
#list .channelRows .channelCard>.playingDot{inset-inline-end:50px;top:calc(50% - 4px)}
.categoryOverlay .categoryPanel{width:min(460px,45vw);max-width:90vw;max-height:84vh;display:flex;flex-direction:column;gap:12px;padding:18px;background:rgba(var(--panel-rgb),.98);border:1px solid var(--ui-border);color:var(--ui-text);border-radius:20px}
.categoryPanelHead{display:flex;align-items:center;justify-content:space-between;gap:12px}.categoryPanelHead h2{margin:0}.categoryPanelHead button{width:40px;height:40px;padding:8px;flex:none}.categoryPanelRows{display:flex;flex-direction:column;gap:6px;overflow:auto;min-height:0;padding:4px}.categoryPanelRows button{display:flex;align-items:center;gap:12px;text-align:start;flex:none;min-height:44px;border-radius:10px;background:rgba(var(--row-rgb),1);color:var(--ui-text);border:1px solid var(--ui-border)}.categoryPanelRows button>span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.categoryPanelRows small{color:var(--ui-sub);font-variant-numeric:tabular-nums}.categoryPanelRows .rojIcon{width:22px;height:22px}
.settingGlyph{display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--ui-sub);width:24px;height:24px}.settingGlyph .rojIcon{width:20px;height:20px}.settingsCard h2{display:flex;align-items:center;gap:10px}.settingsCard h2 .settingGlyph{color:var(--roj-accent,var(--ui-text));width:28px;height:28px}.settingsCard .settingAction{display:flex;align-items:center;gap:10px;text-align:start}.settingsCard .settingLabel{display:flex;align-items:center;gap:8px;margin-bottom:5px}.settingsCard .transparencyLabel .transparencyValue{margin-inline-start:auto}.settingsCard .transparencyLabel{justify-content:flex-start}
#filters .filterControl,#facets .filterControl{display:block;position:relative;min-width:0;width:100%}#filters>.filterControl:first-child{flex:1.6}#filters>.filterControl:last-child{flex:1}#filters .filterControl>input,#filters .filterControl>select,#facets .filterControl>select{width:100%;box-sizing:border-box;margin:0!important;min-width:0;padding-inline-start:clamp(30px,2.6vw,48px)!important;min-height:clamp(36px,4.6vh,51px);border-radius:11px!important;background-color:rgba(var(--control-rgb),var(--panel-opacity,1));font-weight:500}
.filterGlyph{position:absolute;inset-inline-start:10px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--ui-sub);z-index:1}.filterGlyph .rojIcon{width:clamp(15px,1.15vw,22px);height:clamp(15px,1.15vw,22px)}#facets label .filterControl{margin-top:5px}body[data-page="home"]:not(.full) #filters,body[data-page="home"]:not(.full) #facets{gap:clamp(8px,.8vw,16px)}body[data-page="home"]:not(.full) #facets{padding:6px 0 0}body[data-page="home"]:not(.full) #count{font-size:clamp(12px,1vw,18px);font-weight:500;color:var(--ui-sub);margin:5px 0}
body[data-theme="dark"]:not(.full),body[data-theme="dark"]:not(.full)[data-page=dashboard]{background:#070809!important;background-image:none!important}
#watchNetworkState{margin-inline-start:auto;display:inline-flex;align-items:center;justify-content:center;color:#38d9a0;flex:none}#watchNetworkState .rojIcon{width:clamp(20px,1.65vw,32px);height:clamp(20px,1.65vw,32px)}#watchNetworkState.unknownNetwork{color:#c4d1e2}#watchNetworkState.offline{color:#ff6673}#watchNetworkState+#watchClock{margin-inline-start:0}
#list.channelRows .channelCard>.playingDot{inset-inline-end:50px;top:calc(50% - 4px)}

/* V3.2.7 — Kurdish artwork collection. Local 16:9 wallpapers and matched palettes. */
body[data-theme="goldenMountain"]{--roj-accent:#ffd27f;--roj-panel:#291c21;--roj-control:#38242a;--roj-row:#452e30;--roj-border:#ffd27f50;--roj-fg:#fff5e4;--roj-sub:#d9bba8;--roj-selected:#75402b;--roj-selected-text:#fff5e4;--roj-hover:#452e30;--roj-deep:#291c21;--roj-radius:18px;--panel-rgb:41,28,33;--row-rgb:69,46,48;--control-rgb:56,36,42;--nature-image:url("assets/backgrounds/goldenMountain.jpg");--rail-accent:#ffd27f;--rail-active:#75402b;--rail-edge:#ffd27f40;--rail-hover:#452e30;--rail-ink:#fff5e4;--ui-text:#fff5e4;--ui-sub:#d9bba8;--ui-control:#38242a;--ui-border:#ffd27f50;--ui-panel:#291c21;--ui-row:#452e30;--ui-selected:#75402b;--ui-selected-text:#fff5e4;--ui-hover:#452e30;--ui-radius:18px;--white:#fff5e4;--muted:#d9bba8;--line:#ffd27f50;--field:#38242a;--glass:#291c21;color:#fff5e4;}
body[data-theme="goldenMountain"]:not(.full),body[data-theme="goldenMountain"]:not(.full)[data-page=dashboard]{background:linear-gradient(100deg,rgba(7,9,10,.35),rgba(7,9,10,.08) 60%,rgba(7,9,10,.24)),var(--nature-image) center/cover no-repeat!important;}
body[data-theme="goldenMountain"]:not(.full) .sidebar #nav>button.active{background:var(--roj-selected)!important;color:var(--roj-accent)!important;}
body[data-theme="goldenMountain"]:not(.full) .player{background:rgba(var(--panel-rgb),var(--panel-opacity,1));border-color:var(--roj-border);}
body[data-theme="goldenMountain"]:not(.full) #dashboardRows .dashboardRow.onAir,body[data-theme="goldenMountain"]:not(.full) #list .channelCard.onAir{background:var(--roj-selected)!important;color:var(--roj-selected-text)!important;border-color:var(--roj-accent)!important;}
body[data-theme="goldenMountain"] #screen{--waiting-wallpaper:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.42)),var(--nature-image);}
body[data-theme="goldenMountain"]:not(.full) .glass,body[data-theme="goldenMountain"]:not(.full) .settingsCard{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none;}
body[data-theme="goldenMountain"]:not(.full) input[type=range]{accent-color:var(--roj-accent);}
body[data-theme="goldenMountain"]:not(.full) #homeSort,body[data-theme="goldenMountain"]:not(.full) #homeEdit,body[data-theme="goldenMountain"]:not(.full) #allChannels{background:var(--roj-control);border-color:var(--roj-border);color:var(--roj-fg);}

body[data-theme="kurdishSun"]{--roj-accent:#ffd775;--roj-panel:#102e27;--roj-control:#153c30;--roj-row:#204a3b;--roj-border:#ffd77550;--roj-fg:#fff9e9;--roj-sub:#c7dacb;--roj-selected:#7b3927;--roj-selected-text:#fff9e9;--roj-hover:#204a3b;--roj-deep:#102e27;--roj-radius:18px;--panel-rgb:16,46,39;--row-rgb:32,74,59;--control-rgb:21,60,48;--nature-image:url("assets/backgrounds/kurdishSun.jpg");--rail-accent:#ffd775;--rail-active:#7b3927;--rail-edge:#ffd77540;--rail-hover:#204a3b;--rail-ink:#fff9e9;--ui-text:#fff9e9;--ui-sub:#c7dacb;--ui-control:#153c30;--ui-border:#ffd77550;--ui-panel:#102e27;--ui-row:#204a3b;--ui-selected:#7b3927;--ui-selected-text:#fff9e9;--ui-hover:#204a3b;--ui-radius:18px;--white:#fff9e9;--muted:#c7dacb;--line:#ffd77550;--field:#153c30;--glass:#102e27;color:#fff9e9;}
body[data-theme="kurdishSun"]:not(.full),body[data-theme="kurdishSun"]:not(.full)[data-page=dashboard]{background:linear-gradient(100deg,rgba(7,9,10,.35),rgba(7,9,10,.08) 60%,rgba(7,9,10,.24)),var(--nature-image) center/cover no-repeat!important;}
body[data-theme="kurdishSun"]:not(.full) .sidebar #nav>button.active{background:var(--roj-selected)!important;color:var(--roj-accent)!important;}
body[data-theme="kurdishSun"]:not(.full) .player{background:rgba(var(--panel-rgb),var(--panel-opacity,1));border-color:var(--roj-border);}
body[data-theme="kurdishSun"]:not(.full) #dashboardRows .dashboardRow.onAir,body[data-theme="kurdishSun"]:not(.full) #list .channelCard.onAir{background:var(--roj-selected)!important;color:var(--roj-selected-text)!important;border-color:var(--roj-accent)!important;}
body[data-theme="kurdishSun"] #screen{--waiting-wallpaper:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.42)),var(--nature-image);}
body[data-theme="kurdishSun"]:not(.full) .glass,body[data-theme="kurdishSun"]:not(.full) .settingsCard{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none;}
body[data-theme="kurdishSun"]:not(.full) input[type=range]{accent-color:var(--roj-accent);}
body[data-theme="kurdishSun"]:not(.full) #homeSort,body[data-theme="kurdishSun"]:not(.full) #homeEdit,body[data-theme="kurdishSun"]:not(.full) #allChannels{background:var(--roj-control);border-color:var(--roj-border);color:var(--roj-fg);}

body[data-theme="royalSun"]{--roj-accent:#f8c879;--roj-panel:#310e18;--roj-control:#42121e;--roj-row:#501d29;--roj-border:#f8c87950;--roj-fg:#fff2e4;--roj-sub:#e0b5ae;--roj-selected:#742a2b;--roj-selected-text:#fff2e4;--roj-hover:#501d29;--roj-deep:#310e18;--roj-radius:18px;--panel-rgb:49,14,24;--row-rgb:80,29,41;--control-rgb:66,18,30;--nature-image:url("assets/backgrounds/royalSun.jpg");--rail-accent:#f8c879;--rail-active:#742a2b;--rail-edge:#f8c87940;--rail-hover:#501d29;--rail-ink:#fff2e4;--ui-text:#fff2e4;--ui-sub:#e0b5ae;--ui-control:#42121e;--ui-border:#f8c87950;--ui-panel:#310e18;--ui-row:#501d29;--ui-selected:#742a2b;--ui-selected-text:#fff2e4;--ui-hover:#501d29;--ui-radius:18px;--white:#fff2e4;--muted:#e0b5ae;--line:#f8c87950;--field:#42121e;--glass:#310e18;color:#fff2e4;}
body[data-theme="royalSun"]:not(.full),body[data-theme="royalSun"]:not(.full)[data-page=dashboard]{background:linear-gradient(100deg,rgba(7,9,10,.35),rgba(7,9,10,.08) 60%,rgba(7,9,10,.24)),var(--nature-image) center/cover no-repeat!important;}
body[data-theme="royalSun"]:not(.full) .sidebar #nav>button.active{background:var(--roj-selected)!important;color:var(--roj-accent)!important;}
body[data-theme="royalSun"]:not(.full) .player{background:rgba(var(--panel-rgb),var(--panel-opacity,1));border-color:var(--roj-border);}
body[data-theme="royalSun"]:not(.full) #dashboardRows .dashboardRow.onAir,body[data-theme="royalSun"]:not(.full) #list .channelCard.onAir{background:var(--roj-selected)!important;color:var(--roj-selected-text)!important;border-color:var(--roj-accent)!important;}
body[data-theme="royalSun"] #screen{--waiting-wallpaper:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.42)),var(--nature-image);}
body[data-theme="royalSun"]:not(.full) .glass,body[data-theme="royalSun"]:not(.full) .settingsCard{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none;}
body[data-theme="royalSun"]:not(.full) input[type=range]{accent-color:var(--roj-accent);}
body[data-theme="royalSun"]:not(.full) #homeSort,body[data-theme="royalSun"]:not(.full) #homeEdit,body[data-theme="royalSun"]:not(.full) #allChannels{background:var(--roj-control);border-color:var(--roj-border);color:var(--roj-fg);}

body[data-theme="newroz"]{--roj-accent:#ffd679;--roj-panel:#20272d;--roj-control:#2a3238;--roj-row:#333e45;--roj-border:#ffd67950;--roj-fg:#f9f7ef;--roj-sub:#c7d0d3;--roj-selected:#57482e;--roj-selected-text:#f9f7ef;--roj-hover:#333e45;--roj-deep:#20272d;--roj-radius:18px;--panel-rgb:32,39,45;--row-rgb:51,62,69;--control-rgb:42,50,56;--nature-image:url("assets/backgrounds/newroz.jpg");--rail-accent:#ffd679;--rail-active:#57482e;--rail-edge:#ffd67940;--rail-hover:#333e45;--rail-ink:#f9f7ef;--ui-text:#f9f7ef;--ui-sub:#c7d0d3;--ui-control:#2a3238;--ui-border:#ffd67950;--ui-panel:#20272d;--ui-row:#333e45;--ui-selected:#57482e;--ui-selected-text:#f9f7ef;--ui-hover:#333e45;--ui-radius:18px;--white:#f9f7ef;--muted:#c7d0d3;--line:#ffd67950;--field:#2a3238;--glass:#20272d;color:#f9f7ef;}
body[data-theme="newroz"]:not(.full),body[data-theme="newroz"]:not(.full)[data-page=dashboard]{background:linear-gradient(100deg,rgba(7,9,10,.35),rgba(7,9,10,.08) 60%,rgba(7,9,10,.24)),var(--nature-image) center/cover no-repeat!important;}
body[data-theme="newroz"]:not(.full) .sidebar #nav>button.active{background:var(--roj-selected)!important;color:var(--roj-accent)!important;}
body[data-theme="newroz"]:not(.full) .player{background:rgba(var(--panel-rgb),var(--panel-opacity,1));border-color:var(--roj-border);}
body[data-theme="newroz"]:not(.full) #dashboardRows .dashboardRow.onAir,body[data-theme="newroz"]:not(.full) #list .channelCard.onAir{background:var(--roj-selected)!important;color:var(--roj-selected-text)!important;border-color:var(--roj-accent)!important;}
body[data-theme="newroz"] #screen{--waiting-wallpaper:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.42)),var(--nature-image);}
body[data-theme="newroz"]:not(.full) .glass,body[data-theme="newroz"]:not(.full) .settingsCard{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none;}
body[data-theme="newroz"]:not(.full) input[type=range]{accent-color:var(--roj-accent);}
body[data-theme="newroz"]:not(.full) #homeSort,body[data-theme="newroz"]:not(.full) #homeEdit,body[data-theme="newroz"]:not(.full) #allChannels{background:var(--roj-control);border-color:var(--roj-border);color:var(--roj-fg);}

body[data-theme="kurdishHeritage"]{--roj-accent:#ffd37a;--roj-panel:#172b1e;--roj-control:#203827;--roj-row:#2a4430;--roj-border:#ffd37a50;--roj-fg:#fff7e7;--roj-sub:#d5d9b9;--roj-selected:#68402a;--roj-selected-text:#fff7e7;--roj-hover:#2a4430;--roj-deep:#172b1e;--roj-radius:18px;--panel-rgb:23,43,30;--row-rgb:42,68,48;--control-rgb:32,56,39;--nature-image:url("assets/backgrounds/kurdishHeritage.jpg");--rail-accent:#ffd37a;--rail-active:#68402a;--rail-edge:#ffd37a40;--rail-hover:#2a4430;--rail-ink:#fff7e7;--ui-text:#fff7e7;--ui-sub:#d5d9b9;--ui-control:#203827;--ui-border:#ffd37a50;--ui-panel:#172b1e;--ui-row:#2a4430;--ui-selected:#68402a;--ui-selected-text:#fff7e7;--ui-hover:#2a4430;--ui-radius:18px;--white:#fff7e7;--muted:#d5d9b9;--line:#ffd37a50;--field:#203827;--glass:#172b1e;color:#fff7e7;}
body[data-theme="kurdishHeritage"]:not(.full),body[data-theme="kurdishHeritage"]:not(.full)[data-page=dashboard]{background:linear-gradient(100deg,rgba(7,9,10,.35),rgba(7,9,10,.08) 60%,rgba(7,9,10,.24)),var(--nature-image) center/cover no-repeat!important;}
body[data-theme="kurdishHeritage"]:not(.full) .sidebar #nav>button.active{background:var(--roj-selected)!important;color:var(--roj-accent)!important;}
body[data-theme="kurdishHeritage"]:not(.full) .player{background:rgba(var(--panel-rgb),var(--panel-opacity,1));border-color:var(--roj-border);}
body[data-theme="kurdishHeritage"]:not(.full) #dashboardRows .dashboardRow.onAir,body[data-theme="kurdishHeritage"]:not(.full) #list .channelCard.onAir{background:var(--roj-selected)!important;color:var(--roj-selected-text)!important;border-color:var(--roj-accent)!important;}
body[data-theme="kurdishHeritage"] #screen{--waiting-wallpaper:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.42)),var(--nature-image);}
body[data-theme="kurdishHeritage"]:not(.full) .glass,body[data-theme="kurdishHeritage"]:not(.full) .settingsCard{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none;}
body[data-theme="kurdishHeritage"]:not(.full) input[type=range]{accent-color:var(--roj-accent);}
body[data-theme="kurdishHeritage"]:not(.full) #homeSort,body[data-theme="kurdishHeritage"]:not(.full) #homeEdit,body[data-theme="kurdishHeritage"]:not(.full) #allChannels{background:var(--roj-control);border-color:var(--roj-border);color:var(--roj-fg);}

/* V3.2.8 — opt-in Art Cards, original themes remain unchanged */
body.artCards[data-theme]{--art-corner:url("assets/ornaments/brush.jpg");--art-warm:#852f15;--art-shadow:#29191a;--art-glow:#ffd17c;--art-rail:39,18,21;}
body.artCards[data-theme="goldenMountain"]{--art-warm:#8b2c12;--art-shadow:#291b20;--art-rail:42,22,27;}
body.artCards[data-theme="kurdishSun"]{--art-warm:#9a3d13;--art-shadow:#23372b;--art-rail:14,41,31;}
body.artCards[data-theme="royalSun"]{--art-corner:url("assets/ornaments/royal.jpg");--art-warm:#8e2028;--art-shadow:#3e111a;--art-rail:48,13,23;}
body.artCards[data-theme="newroz"]{--art-corner:url("assets/ornaments/newroz.jpg");--art-warm:#825022;--art-shadow:#242d33;--art-rail:30,29,27;}
body.artCards[data-theme="kurdishHeritage"]{--art-corner:url("assets/ornaments/heritage.jpg");--art-warm:#8c361a;--art-shadow:#243a25;--art-rail:21,42,25;}
body.artCards[data-theme]:not(.full) main>aside.sidebar.glass{background:var(--rail-ornament,none) center calc(100% - 5vh) / 105% auto no-repeat,linear-gradient(155deg,rgba(var(--art-rail),var(--panel-opacity)),rgba(var(--art-rail),var(--panel-opacity)) 60%,rgba(var(--art-rail),.78))!important;border:1px solid #eac38a65;box-shadow:inset 0 1px 0 #ffffff16!important;}
body.artCards.sidebarCollapsed[data-theme]:not(.full) main>aside.sidebar.glass{background-size:85% auto,auto!important;}
body.artCards[data-theme]:not(.full) .sidebar #nav>button{color:var(--roj-fg);background:transparent;border:1px solid transparent!important;}
body.artCards[data-theme]:not(.full) .sidebar #nav>button.active,body.artCards[data-theme]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body.artCards[data-theme]:not(.full) #list .channelCard.onAir,body.artCards[data-theme].classicWatch #classicRows .classicRow.chosen{color:#fff7e5!important;border:1px solid var(--art-glow)!important;box-shadow:inset 0 0 0 1px #ffd68a60,inset 0 0 13px #ffad353a!important;background:var(--art-selected-surface)!important;}
body.artCards[data-theme]:not(.full) .sidebar #nav>button.active:before{display:none;}
body.artCards[data-theme]:not(.full) #dashboardRows .dashboardRow:not(.onAir):not(.batchSelected){background:linear-gradient(110deg,#ffffff08,transparent 75%),rgba(var(--row-rgb),var(--row-opacity))!important;border-color:#f6d6a01c;}
body.artCards[data-theme]:not(.full) #dashboard,body.artCards[data-theme]:not(.full) #library{background-image:linear-gradient(150deg,#fff1d00d,transparent 40%,#00000016)!important;border-color:#eac38a55;}
body.artCards[data-theme]:not(.full) #dashboardRows .rowNumber,body.artCards[data-theme].classicWatch #classicRows .rowNumber{color:inherit;font-variant-numeric:tabular-nums;}
body.artCards[data-theme]:not(.full) .settingsCard,body.artCards[data-theme]:not(.full) .methodPanel,body.artCards[data-theme]:not(.full) .sourceCard,body.artCards[data-theme]:not(.full) .collectionGrid>button,body.artCards[data-theme] .categoryPanelRows button,body.artCards[data-theme]:not(.full) .sidebar #categoryTiles .categoryTile,body.artCards[data-theme]:not(.full) #list .channelCard:not(.onAir){border-color:#eac38a48;background:var(--art-selected-surface)!important;}
body.artCards[data-theme]:not(.full):not(.mini) #previewInfo,body.artCards[data-theme].classicWatch #watchInfo{border:1px solid #eac38a60!important;color:var(--roj-fg)!important;box-shadow:inset 0 1px 0 #ffd88a33!important;background:var(--art-content-surface)!important;}
body.artCards[data-theme]:not(.full):not(.mini) #previewInfo{border-radius:12px;}
body.artCards[data-theme]:not(.full) #homeSort,body.artCards[data-theme]:not(.full) #homeEdit,body.artCards[data-theme]:not(.full) #allChannels,body.artCards[data-theme]:not(.full) #filters input,body.artCards[data-theme]:not(.full) #filters select,body.artCards[data-theme]:not(.full) #facets select{border-color:#eac38a59!important;color:var(--roj-fg);}


body.artCards[data-theme]:not(.full) main>aside.sidebar.glass{background-image:var(--rail-ornament,none),linear-gradient(165deg,#ffffff0b,transparent 58%,#a75c2b38)!important;background-position:center calc(100% - 5vh),center!important;background-size:105% auto,cover!important;background-repeat:no-repeat!important;background-color:rgba(var(--art-rail),var(--panel-opacity))!important;}
body.artCards.sidebarCollapsed[data-theme]:not(.full) main>aside.sidebar.glass{background-size:85% auto,cover!important;}

/* 3.2.9 — consistent surfaces, unclipped focus and independent preview. */
body.previewHidden:not(.full)[data-page=dashboard] main,body.previewHidden:not(.full)[data-page=home] main,body.previewHidden:not(.full)[data-page=favorites] main,body.previewHidden:not(.full)[data-page=recent] main,body.previewHidden:not(.full)[data-page=collections] main{grid-template-columns:minmax(0,var(--rail-width)) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
body.previewHidden:not(.full) main>.player{display:none!important}
body.previewHidden:not(.full) #dashboard,body.previewHidden:not(.full) #library{grid-column:2!important;min-width:0}
#homePreviewToggle,#libraryPreviewToggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:clamp(32px,2.8vw,50px);height:clamp(32px,2.8vw,50px);padding:0;}
#libraryPreviewToggle[hidden]{display:none!important}
body[data-theme] .homeHeadingTools button,body[data-theme] .tools button,body[data-theme] #watchTools button,body[data-theme] #sidebarToggle{border:1px solid var(--ui-border,#ffffff30)!important;background:var(--ui-control,#182636)!important;color:var(--ui-text,#fff)!important;border-radius:11px!important;box-shadow:none!important;flex-shrink:0}
body[data-theme] .tools{gap:5px;background:transparent!important;border:0!important;padding:0!important}
body[data-theme] .tools button .rojIcon,body[data-theme] .homeHeadingTools button .rojIcon{width:clamp(17px,1.4vw,26px);height:clamp(17px,1.4vw,26px)}
body[data-theme]:not(.full) .sidebar #nav>button{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;border:1px solid transparent!important;outline:none!important;outline-offset:0!important;overflow:hidden!important;border-radius:14px!important;box-shadow:none!important;isolation:isolate;}
body[data-theme]:not(.full) .sidebar #nav>button.active{border-color:var(--rail-accent)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)!important}
body[data-theme]:not(.full) .sidebar #nav>button.active:before{display:none!important}


body.sidebarCollapsed[data-theme]:not(.full) .sidebar #nav>button{padding:0!important;gap:0!important;justify-content:center!important;min-height:clamp(36px,5.8vh,65px);}
body.sidebarCollapsed[data-theme]:not(.full) .sidebar #nav>button .navLabel{width:0!important;max-width:0!important;flex:0 0 0!important;margin:0!important;padding:0!important;opacity:0!important}
body.sidebarCollapsed[data-theme]:not(.full) .sidebar #nav>button .glyph{width:100%!important;flex:0 0 100%!important;min-width:0!important}
body.artCards[data-theme="newroz"]{--art-corner:url("assets/ornaments/newroz-top.jpg")}
body.artCards[data-theme="newroz"]:not(.full):not(.mini) #previewInfo,body.artCards[data-theme="newroz"].classicWatch #watchInfo{background-position:center,right top,center!important;background-size:auto,35% auto,auto!important}
html[dir=rtl] body.artCards[data-theme="newroz"]:not(.full):not(.mini) #previewInfo,html[dir=rtl] body.artCards[data-theme="newroz"].classicWatch #watchInfo{background-position:center,left top,center!important}
#networkState,#watchNetworkState{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;gap:2px;min-width:28px;color:var(--ui-text,#fff)}
#networkState.offline,#watchNetworkState.offline{color:#f46a70!important}.signalUnknown{font-size:11px;line-height:1;align-self:flex-end;color:inherit;font-weight:600;opacity:.9}.wifiStrength{flex:none}
body[data-theme] .playerOptions .trackField{display:flex;flex:1 1 125px;min-width:0;flex-direction:column;gap:6px;font-size:clamp(11px,.85vw,16px);color:var(--ui-text,#fff);text-align:start}
body[data-theme] .playerOptions .trackField[hidden]{display:none!important}.trackLabel{display:flex;align-items:center;gap:6px;white-space:nowrap}.trackLabel .rojIcon{width:18px;height:18px;vertical-align:middle}
body[data-theme] .trackField select{width:100%;max-width:none;min-height:38px;text-overflow:ellipsis;background:var(--ui-control,#17283c)!important;color:var(--ui-text,#fff)!important;border:1px solid var(--ui-border,#ffffff30)!important;border-radius:10px!important}
body.classicWatch.watchOptions[data-theme] .playerOptions,body.classicWatch.watchOptions[data-theme] .actions{left:12%;right:12%;background:var(--ui-panel,#132337)!important;border:1px solid var(--ui-border,#ffffff40)!important;opacity:1!important;backdrop-filter:none!important;box-shadow:0 8px 28px #0005!important;gap:10px;}
body.classicWatch.watchOptions[data-theme] .playerOptions{bottom:25vh}.playerOptions .trackField select:disabled{display:none!important}
body[data-theme] .saveOverlay{background:rgba(0,0,0,.48)!important;backdrop-filter:none!important}
body[data-theme] .savePanel.glass{background:var(--ui-panel,#142337)!important;color:var(--ui-text,#fff)!important;border:1px solid var(--ui-border,#ffffff40)!important;border-radius:22px!important;box-shadow:0 20px 60px #0006!important;backdrop-filter:none!important;opacity:1!important}
body[data-theme] .savePanel button,body[data-theme] .savePanel input,body[data-theme] .savePanel select{background:var(--ui-control,#20334a)!important;color:var(--ui-text,#fff)!important;border:1px solid var(--ui-border,#ffffff30)!important;border-radius:11px!important;min-height:42px;box-shadow:none!important;}body[data-theme] .savePanel button.selected{outline:none!important;border-color:var(--rail-accent,#ffcc42)!important;box-shadow:inset 0 0 0 1px var(--rail-accent,#ffcc42)!important}
.rojPopup{position:fixed!important;inset:0!important;z-index:10000!important;display:flex!important;align-items:center;justify-content:center;}
.rojPopupPanel{width:min(550px,80vw)!important;max-height:80vh!important;padding:18px!important;display:flex!important;flex-direction:column;gap:12px;overflow:hidden!important;}
.rojPopupHead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.rojPopupHead h2{font-size:clamp(18px,1.5vw,28px);margin:0;min-width:0}.rojPopupClose{width:42px;justify-content:center;font-size:25px;padding:0!important;flex:none}.rojPopupContent{min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:6px;scrollbar-width:thin;}.rojSelectOption{display:flex!important;align-items:center;justify-content:space-between;gap:12px;flex:none;min-width:0;text-align:start;font-size:clamp(13px,1.05vw,20px);padding:9px 12px!important}.rojSelectOption>span:first-child{min-width:0;overflow-wrap:anywhere}.rojOptionCheck{width:24px;flex:none;color:var(--rail-accent,#ffcc42)}.rojOptionCheck .rojIcon{width:20px;height:20px}.programmeDetail{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-control)}.programmeDetail small{color:var(--rail-accent,#ffcc42)}.programmeDetail span{color:var(--ui-sub,#becbdd)}
body[data-theme] .settingsCard button,body[data-theme] .methodPanel button,body[data-theme] .sourceCard button,body[data-theme] #filters .filterControl>input,body[data-theme] #filters .filterControl>select,body[data-theme] #facets .filterControl>select{border-radius:11px!important;box-sizing:border-box;min-width:0;}
body[data-theme] #filters .filterControl>select,body[data-theme] #facets .filterControl>select,body[data-theme] #list select{text-overflow:ellipsis;}


body.artCards[data-theme="newroz"]:not(.full):not(.mini) #previewInfo,body.artCards[data-theme="newroz"].classicWatch #watchInfo{background-size:auto,auto 150%,auto!important;background-position:center,right center,center!important}
html[dir=rtl] body.artCards[data-theme="newroz"]:not(.full):not(.mini) #previewInfo,html[dir=rtl] body.artCards[data-theme="newroz"].classicWatch #watchInfo{background-position:center,left center,center!important}
.rojDialogActions{display:flex;gap:10px;justify-content:flex-end;margin-top:8px}.rojDialogActions button{flex:1;justify-content:center}.rojPopupContent>input{padding:12px;width:100%;box-sizing:border-box;min-height:44px;}
body[data-theme] .rojDialogActions button:last-child{border-color:var(--rail-accent,#ffcf42)!important;}
body[data-theme].classicWatch.watchOptions .actions button{background:var(--ui-control,#182636)!important;border:1px solid var(--ui-border,#ffffff30)!important;color:var(--ui-text,#fff)!important;border-radius:12px!important;opacity:1!important}
body[data-theme].classicWatch.watchOptions .actions button#play{border-color:var(--rail-accent,#ffcf42)!important;color:var(--rail-accent,#ffcf42)!important}
body[data-theme] #watchTools button[hidden],body[data-theme] .tools button[hidden]{display:none!important}
/* V3.2.9 — complete Art Collection, with original themes retained. */
body.artCards[data-theme]{--art-rail-image:url("assets/ornaments/rail-royal.jpg");--art-detail:url("assets/ornaments/brush.jpg");--art-base:24,24,34;--art-edge:#d9b87b80;--art-position:right center;--art-rail-size:100% auto;}
body.artCards[data-theme="kurdishSun"]{--art-base:10,38,29;--art-rail-image:url("assets/ornaments/rail-sun.jpg");}
body.artCards[data-theme="royalSun"]{--art-base:48,13,22;--art-detail:url("assets/ornaments/royal.jpg");}
body.artCards[data-theme="newroz"]{--art-base:25,30,39;--art-rail-image:url("assets/ornaments/rail-newroz.jpg");--art-warm:#7a351b;}
body.artCards[data-theme="kurdishHeritage"]{--art-base:12,40,25;--art-rail-image:url("assets/ornaments/rail-heritage.jpg");}
html[dir=rtl] body.artCards[data-theme]{--art-position:left center;}
body.artCards[data-theme]:not(.full) main>aside.sidebar.glass{background:linear-gradient(180deg,rgba(var(--art-rail),var(--panel-opacity)) 0%,rgba(var(--art-rail),.95) 49%,rgba(var(--art-rail),.68) 64%,rgba(var(--art-rail),.06) 91%,rgba(var(--art-rail),.30) 100%),var(--art-rail-image) center bottom/var(--art-rail-size) no-repeat,rgba(var(--art-rail),var(--panel-opacity))!important;background-size:auto,var(--art-rail-size),auto!important;background-position:center,center bottom,center!important;border:1px solid var(--art-edge)!important;box-shadow:inset 0 1px 0 #ffffff21,inset 0 -1px 0 #ffc86b55!important;}
body.artCards.sidebarCollapsed[data-theme]:not(.full) main>aside.sidebar.glass{--art-rail-size:auto 32%;background-size:auto,var(--art-rail-size),auto!important;}
body.artCards[data-theme]:not(.full) .sidebar #nav>button{border-radius:13px!important;background:linear-gradient(135deg,#ffffff06,transparent)!important;}
body.artCards[data-theme]:not(.full) .sidebar #nav>button.active,body.artCards[data-theme]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body.artCards[data-theme]:not(.full) #list .channelCard.onAir,body.artCards[data-theme].classicWatch #classicRows .classicRow.chosen{color:#fff7e5!important;border-color:var(--art-glow)!important;box-shadow:inset 0 0 0 1px #ffe1a066,inset 0 0 13px #ffb84050,0 0 8px #ff9a302e!important;background:var(--art-selected-surface)!important;}
body.artCards[data-theme]:not(.full) #dashboard,body.artCards[data-theme]:not(.full) #library,body.artCards[data-theme].classicWatch #classicList{background:linear-gradient(145deg,#fff0ce0c,transparent 32%,#00000018),rgba(var(--art-base),var(--panel-opacity))!important;border-color:var(--art-edge)!important;}
body.artCards[data-theme]:not(.full) #dashboardRows .dashboardRow:not(.onAir):not(.batchSelected),body.artCards[data-theme].classicWatch #classicRows .classicRow:not(.chosen){background:linear-gradient(110deg,#ffffff06,transparent),rgba(var(--art-base),var(--row-opacity))!important;border-color:#f6d6a025!important;}
body.artCards[data-theme]:not(.full) .settingsCard,body.artCards[data-theme]:not(.full) .methodPanel,body.artCards[data-theme]:not(.full) .sourceCard,body.artCards[data-theme]:not(.full) .collectionGrid>button,body.artCards[data-theme] .categoryPanelRows button,body.artCards[data-theme]:not(.full) .sidebar #categoryTiles .categoryTile,body.artCards[data-theme]:not(.full) #list .channelCard:not(.onAir),body.artCards[data-theme] .programmeDetail{border-color:var(--art-edge)!important;background:var(--art-selected-surface)!important;}
body.artCards[data-theme]:not(.full):not(.mini) #previewInfo,body.artCards[data-theme].classicWatch #watchInfo{border:1px solid var(--art-edge)!important;box-shadow:inset 0 1px 0 #ffdc9226!important;background:var(--art-content-surface)!important;}
body.artCards[data-theme="newroz"]:not(.full):not(.mini) #previewInfo,body.artCards[data-theme="newroz"].classicWatch #watchInfo{;background:var(--art-content-surface)!important;}
html[dir=rtl] body.artCards[data-theme="newroz"]:not(.full):not(.mini) #previewInfo,html[dir=rtl] body.artCards[data-theme="newroz"].classicWatch #watchInfo{background-position:center,left center,center!important;}
body.artCards[data-theme] .savePanel.glass,body.artCards[data-theme].classicWatch.watchOptions .playerOptions,body.artCards[data-theme].classicWatch.watchOptions .actions{border-color:var(--art-edge)!important;color:var(--roj-fg)!important;background:var(--art-content-surface)!important;}
body.artCards[data-theme] .savePanel button.selected{border-color:var(--art-glow)!important;background:var(--art-selected-surface)!important;}
body.artCards[data-theme] .homeHeadingTools button,body.artCards[data-theme] .tools button,body.artCards[data-theme] #watchTools button,body.artCards[data-theme] #sidebarToggle{background:linear-gradient(145deg,#ffffff09,transparent),rgba(var(--art-base),.94)!important;border-color:var(--art-edge)!important;}


/* 3.3.0 — one focus indicator, separate playing and selected states. */
body.remoteFocus:not(.virtual)[data-theme] button,body.remoteFocus:not(.virtual)[data-theme] select,body.remoteFocus:not(.virtual)[data-theme] input,body.remoteFocus:not(.virtual)[data-theme] textarea{outline:none!important}
body.remoteFocus:not(.virtual)[data-theme] #list .channelCard{outline:none!important;box-shadow:none!important;border-color:var(--ui-border,#ffffff25)!important}
body.remoteFocus:not(.virtual)[data-theme] .sidebar #nav>button.active,body.remoteFocus:not(.virtual)[data-theme] #dashboardRows .dashboardRow.onAir,body.remoteFocus:not(.virtual)[data-theme] #classicRows .classicRow.chosen,body.remoteFocus:not(.virtual)[data-theme] .savePanel button.selected,body.remoteFocus:not(.virtual)[data-theme] .savePanel button.active{border-color:var(--ui-border,#ffffff25)!important;box-shadow:none!important}
body.remoteFocus:not(.virtual)[data-theme] button:focus,body.remoteFocus:not(.virtual)[data-theme] select:focus,body.remoteFocus:not(.virtual)[data-theme] input:focus,body.remoteFocus:not(.virtual)[data-theme] textarea:focus{outline:2px solid var(--rail-accent,var(--gold,#ffce42))!important;outline-offset:-3px!important;box-shadow:none!important;}
body.remoteFocus:not(.virtual)[data-theme] .sidebar #nav>button:focus,body.remoteFocus:not(.virtual)[data-theme] .sidebar #sidebarToggle:focus{outline:2px solid var(--rail-accent,var(--gold,#ffce42))!important;outline-offset:-3px!important;box-shadow:none!important;}
body.remoteFocus:not(.virtual)[data-theme] #list .channelCard>button:first-child:focus{outline:2px solid var(--rail-accent,var(--gold,#ffce42))!important;outline-offset:-3px!important;border-radius:inherit;}
body.remoteFocus:not(.virtual)[data-theme] #list .channelCard .addCollection:focus,body.remoteFocus:not(.virtual)[data-theme] #list .channelCard .cardRemove:focus{outline:2px solid var(--rail-accent,var(--gold,#ffce42))!important;outline-offset:-2px!important;box-shadow:none!important;z-index:3;}
body.virtual[data-theme] button:focus,body.virtual[data-theme] select:focus,body.virtual[data-theme] input:focus,body.virtual[data-theme] textarea:focus{outline:none!important;box-shadow:none!important}
body:not(.remoteFocus):not(.virtual)[data-theme] input:focus,body:not(.remoteFocus):not(.virtual)[data-theme] textarea:focus{outline:1px solid var(--rail-accent,var(--gold,#ffce42));outline-offset:-1px}
body.remoteFocus[data-theme] .rojSelectOption.selected:not(:focus){border-color:var(--ui-border,#ffffff25)!important;box-shadow:none!important;outline:none!important}

/* 3.3.0 — restore the original decorative rail, independent of wallpaper. */

body.artCards[data-theme]:not(.full) main>aside.sidebar.glass{background:var(--rail-ornament,none) center calc(100% - 5vh) / 105% auto no-repeat,linear-gradient(155deg,rgba(var(--art-rail),var(--panel-opacity)),rgba(var(--art-rail),var(--panel-opacity)) 60%,rgba(var(--art-rail),.78))!important;border:1px solid #eac38a65;box-shadow:inset 0 1px 0 #ffffff16!important;}

body.artCards.sidebarCollapsed[data-theme]:not(.full) main>aside.sidebar.glass{background-size:85% auto,auto!important;}


body.artCards[data-theme]:not(.full) main>aside.sidebar.glass{background-image:var(--rail-ornament,none),linear-gradient(165deg,#ffffff0b,transparent 58%,#a75c2b38)!important;background-position:center calc(100% - 5vh),center!important;background-size:105% auto,cover!important;background-repeat:no-repeat!important;background-color:rgba(var(--art-rail),var(--panel-opacity))!important;}

body.artCards.sidebarCollapsed[data-theme]:not(.full) main>aside.sidebar.glass{background-size:85% auto,cover!important;}

/* Settings: quieter two-column sections, distinct labels, controls, and state indicators. */
body[data-page=settings][data-theme]:not(.full) #library{padding:clamp(12px,1.2vw,24px)!important}
body[data-page=settings][data-theme]:not(.full) #list.settingsGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,1vw,20px)!important;align-content:start;align-items:start;padding:3px 3px 12px!important;}
body[data-page=settings][data-theme]:not(.full) #list .settingsCard{background:rgba(var(--panel-rgb),var(--panel-opacity,1))!important;box-shadow:none!important;border:1px solid var(--ui-border)!important;border-radius:clamp(12px,1vw,20px)!important;padding:clamp(12px,1.2vw,24px)!important;gap:0!important;min-width:0;}
body[data-page=settings][data-theme]:not(.full) #list .settingsCard h2{font-size:clamp(15px,1.22vw,24px);font-weight:650;letter-spacing:.005em;line-height:1.4;margin:0 0 10px!important;padding:0 0 12px;border-bottom:1px solid var(--ui-border);color:var(--ui-text);gap:9px;}
body[data-page=settings][data-theme]:not(.full) #list .settingsCard h2 .settingGlyph{color:var(--rail-accent,#ffcf42);width:25px;height:25px;}
body[data-page=settings][data-theme]:not(.full) #list .settingsCard>button,body[data-page=settings][data-theme]:not(.full) #list .settingsCard>label{display:flex;flex-direction:row;align-items:center;gap:10px;text-align:start;min-height:clamp(39px,5.1vh,58px);margin:0!important;padding:8px 5px!important;color:var(--ui-text)!important;font-size:clamp(12px,1.05vw,20px);background:transparent!important;border:0!important;border-bottom:1px solid var(--ui-border)!important;border-radius:5px!important;box-shadow:none!important;min-width:0;}
body[data-page=settings][data-theme]:not(.full) #list .settingsCard>label:last-child,body[data-page=settings][data-theme]:not(.full) #list .settingsCard>button:last-child{border-bottom-color:transparent!important}
body[data-page=settings][data-theme]:not(.full) #list .settingsCard>label .settingLabel{flex:1;min-width:0;margin:0!important;font-weight:500;line-height:1.3;}
body[data-page=settings][data-theme]:not(.full) #list .settingsCard>label>select{width:51%;min-width:0;flex:0 0 51%;font-size:clamp(12px,.95vw,18px);min-height:36px;padding-block:7px;background:var(--ui-control)!important;border:1px solid var(--ui-border)!important;border-radius:9px!important;}
body[data-page=settings][data-theme]:not(.full) #list .settingsCard>label.transparencySetting{display:flex;flex-direction:column;align-items:stretch;gap:4px;}
body[data-page=settings][data-theme]:not(.full) #list .settingsCard>input{margin:5px 0;max-width:100%;min-width:0;}
body[data-page=settings][data-theme]:not(.full) #list .settingsCard>button.settingChosen{color:var(--rail-accent,#ffcf42)!important;}
.settingsRadio{margin-inline-start:auto;border:1px solid currentColor;border-radius:50%;width:17px;height:17px;flex:none;opacity:.65;}
.settingChosen .settingsRadio{opacity:1;background:currentColor;box-shadow:inset 0 0 0 4px var(--ui-control,#222);}
.settingsSwitch{margin-inline-start:auto;display:block;width:36px;height:20px;border-radius:20px;background:#82909a66;position:relative;flex:none;border:1px solid #ffffff22;}
.settingsSwitch:before{content:"";position:absolute;width:14px;height:14px;inset-inline-start:2px;top:2px;border-radius:50%;background:#fff;}
.settingsSwitch.on{background:var(--rail-accent,#ffcf42);border-color:transparent;}.settingsSwitch.on:before{inset-inline-start:auto;inset-inline-end:2px;background:#181818;}
body.light[data-page=settings] #list .settingsCard h2 .settingGlyph,body.light[data-page=settings] #list .settingsCard>button.settingChosen{color:#825800!important}
@media(max-width:900px){body[data-page=settings][data-theme]:not(.full) #list.settingsGrid{grid-template-columns:minmax(0,1fr)}}
/* Explicit dropdown affordance on quiet settings rows. */
body[data-page=settings][data-theme]:not(.full) #list .settingsCard>label>select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dce6f4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 10px center!important;background-size:16px 16px!important;padding-inline-end:32px!important}
html[dir=rtl] body[data-page=settings][data-theme]:not(.full) #list .settingsCard>label>select{background-position:left 10px center!important}
body.light[data-page=settings][data-theme]:not(.full) #list .settingsCard>label>select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330475b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important}

/* 3.3.1: original 16:9 artwork, coordinated surfaces, one remote focus ring. */
body[data-theme="goldenMountain"]{--panel-rgb:36,23,24;--row-rgb:92,53,31;--control-rgb:57,36,41;--art-base:36,23,24;--art-rail:36,23,24;--art-warm:#8b341d;--art-shadow:#241718;--art-edge:#ffd08165;--art-glow:#ffd081;--art-detail:url("assets/ornaments/goldenMountain-331.jpg");--art-corner:var(--art-detail);--roj-panel:#241718;--roj-control:#392429;--roj-row:#5c351f;--roj-accent:#ffd081;--roj-fg:#fff4e6;--roj-sub:#dfc5ad;--roj-border:#ffd08155;--roj-selected:#8b341d;--roj-selected-text:#fff4e6;--roj-hover:#5c351f;--roj-deep:#241718;--rail-accent:#ffd081;--rail-active:#8b341d;--rail-edge:#ffd08155;--rail-hover:#5c351f;--rail-ink:#fff4e6;--ui-text:#fff4e6;--ui-sub:#dfc5ad;--ui-control:#392429;--ui-border:#ffd08155;--ui-panel:#241718;--ui-row:#5c351f;--ui-selected:#8b341d;--ui-selected-text:#fff4e6;--ui-hover:#5c351f;--white:#fff4e6;--muted:#dfc5ad;--line:#ffd08155;--field:#392429;--glass:#241718;--gold:#ffd081;color:#fff4e6;}
body.artCards[data-theme="goldenMountain"]{--art-base:36,23,24;--art-rail:36,23,24;--art-detail:url("assets/ornaments/goldenMountain-331.jpg");--art-corner:var(--art-detail);--art-warm:#8b341d;--art-shadow:#241718;--art-edge:#ffd08165;--art-glow:#ffd081;}
body[data-theme="goldenMountain"]:not(.full),body[data-theme="goldenMountain"]:not(.full)[data-page=dashboard]{background:linear-gradient(100deg,rgba(0,0,0,.30),rgba(0,0,0,.06) 58%,rgba(0,0,0,.16)),var(--nature-image) center center/cover no-repeat!important;}
body[data-theme="goldenMountain"] #screen{--waiting-wallpaper:linear-gradient(180deg,#00000012,#00000030),var(--nature-image);}
body[data-theme="goldenMountain"]:not(.full) #dashboard,body[data-theme="goldenMountain"]:not(.full) #library,body[data-theme="goldenMountain"]:not(.full) .player,body[data-theme="goldenMountain"].classicWatch #classicList{background:rgba(var(--panel-rgb),var(--panel-opacity,1))!important;border-color:var(--ui-border)!important;}
body[data-theme="goldenMountain"]:not(.full) .sidebar #nav>button.active,body[data-theme="goldenMountain"]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body[data-theme="goldenMountain"]:not(.full) #list .channelCard.onAir,body[data-theme="goldenMountain"].classicWatch #classicRows .classicRow.chosen{background:linear-gradient(110deg,#8b341d,#241718)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important;}
body.artCards[data-theme="goldenMountain"]:not(.full) .sidebar #nav>button.active,body.artCards[data-theme="goldenMountain"]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body.artCards[data-theme="goldenMountain"]:not(.full) #list .channelCard.onAir,body.artCards[data-theme="goldenMountain"].classicWatch #classicRows .classicRow.chosen{box-shadow:inset 0 0 0 1px #ffd08144!important;background:var(--art-selected-surface)!important;}
body.artCards[data-theme="goldenMountain"]:not(.full):not(.mini) #previewInfo,body.artCards[data-theme="goldenMountain"].classicWatch #watchInfo{color:var(--ui-text)!important;border-color:var(--art-edge)!important;background:var(--art-content-surface)!important;}
body.artCards[data-theme="goldenMountain"][data-page=settings]:not(.full) #list .settingsCard{;background:var(--art-content-surface)!important;}
body[data-theme="kurdishSun"]{--panel-rgb:16,39,31;--row-rgb:41,77,56;--control-rgb:25,59,45;--art-base:16,39,31;--art-rail:16,39,31;--art-warm:#80502b;--art-shadow:#10271f;--art-edge:#ffda7565;--art-glow:#ffda75;--art-detail:url("assets/ornaments/kurdishSun-331.jpg");--art-corner:var(--art-detail);--roj-panel:#10271f;--roj-control:#193b2d;--roj-row:#294d38;--roj-accent:#ffda75;--roj-fg:#fff8e8;--roj-sub:#d4dfca;--roj-border:#ffda7555;--roj-selected:#80502b;--roj-selected-text:#fff8e8;--roj-hover:#294d38;--roj-deep:#10271f;--rail-accent:#ffda75;--rail-active:#80502b;--rail-edge:#ffda7555;--rail-hover:#294d38;--rail-ink:#fff8e8;--ui-text:#fff8e8;--ui-sub:#d4dfca;--ui-control:#193b2d;--ui-border:#ffda7555;--ui-panel:#10271f;--ui-row:#294d38;--ui-selected:#80502b;--ui-selected-text:#fff8e8;--ui-hover:#294d38;--white:#fff8e8;--muted:#d4dfca;--line:#ffda7555;--field:#193b2d;--glass:#10271f;--gold:#ffda75;color:#fff8e8;}
body.artCards[data-theme="kurdishSun"]{--art-base:16,39,31;--art-rail:16,39,31;--art-detail:url("assets/ornaments/kurdishSun-331.jpg");--art-corner:var(--art-detail);--art-warm:#80502b;--art-shadow:#10271f;--art-edge:#ffda7565;--art-glow:#ffda75;}
body[data-theme="kurdishSun"]:not(.full),body[data-theme="kurdishSun"]:not(.full)[data-page=dashboard]{background:linear-gradient(100deg,rgba(0,0,0,.30),rgba(0,0,0,.06) 58%,rgba(0,0,0,.16)),var(--nature-image) center center/cover no-repeat!important;}
body[data-theme="kurdishSun"] #screen{--waiting-wallpaper:linear-gradient(180deg,#00000012,#00000030),var(--nature-image);}
body[data-theme="kurdishSun"]:not(.full) #dashboard,body[data-theme="kurdishSun"]:not(.full) #library,body[data-theme="kurdishSun"]:not(.full) .player,body[data-theme="kurdishSun"].classicWatch #classicList{background:rgba(var(--panel-rgb),var(--panel-opacity,1))!important;border-color:var(--ui-border)!important;}
body[data-theme="kurdishSun"]:not(.full) .sidebar #nav>button.active,body[data-theme="kurdishSun"]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body[data-theme="kurdishSun"]:not(.full) #list .channelCard.onAir,body[data-theme="kurdishSun"].classicWatch #classicRows .classicRow.chosen{background:linear-gradient(110deg,#80502b,#10271f)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important;}
body.artCards[data-theme="kurdishSun"]:not(.full) .sidebar #nav>button.active,body.artCards[data-theme="kurdishSun"]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body.artCards[data-theme="kurdishSun"]:not(.full) #list .channelCard.onAir,body.artCards[data-theme="kurdishSun"].classicWatch #classicRows .classicRow.chosen{box-shadow:inset 0 0 0 1px #ffda7544!important;background:var(--art-selected-surface)!important;}
body.artCards[data-theme="kurdishSun"]:not(.full):not(.mini) #previewInfo,body.artCards[data-theme="kurdishSun"].classicWatch #watchInfo{color:var(--ui-text)!important;border-color:var(--art-edge)!important;background:var(--art-content-surface)!important;}
body.artCards[data-theme="kurdishSun"][data-page=settings]:not(.full) #list .settingsCard{;background:var(--art-content-surface)!important;}
body[data-theme="royalSun"]{--panel-rgb:43,12,19;--row-rgb:91,32,39;--control-rgb:65,21,28;--art-base:43,12,19;--art-rail:43,12,19;--art-warm:#842b2a;--art-shadow:#2b0c13;--art-edge:#f7c67665;--art-glow:#f7c676;--art-detail:url("assets/ornaments/royalSun-331.jpg");--art-corner:var(--art-detail);--roj-panel:#2b0c13;--roj-control:#41151c;--roj-row:#5b2027;--roj-accent:#f7c676;--roj-fg:#fff4de;--roj-sub:#e2c4ae;--roj-border:#f7c67655;--roj-selected:#842b2a;--roj-selected-text:#fff4de;--roj-hover:#5b2027;--roj-deep:#2b0c13;--rail-accent:#f7c676;--rail-active:#842b2a;--rail-edge:#f7c67655;--rail-hover:#5b2027;--rail-ink:#fff4de;--ui-text:#fff4de;--ui-sub:#e2c4ae;--ui-control:#41151c;--ui-border:#f7c67655;--ui-panel:#2b0c13;--ui-row:#5b2027;--ui-selected:#842b2a;--ui-selected-text:#fff4de;--ui-hover:#5b2027;--white:#fff4de;--muted:#e2c4ae;--line:#f7c67655;--field:#41151c;--glass:#2b0c13;--gold:#f7c676;color:#fff4de;}
body.artCards[data-theme="royalSun"]{--art-base:43,12,19;--art-rail:43,12,19;--art-detail:url("assets/ornaments/royalSun-331.jpg");--art-corner:var(--art-detail);--art-warm:#842b2a;--art-shadow:#2b0c13;--art-edge:#f7c67665;--art-glow:#f7c676;}
body[data-theme="royalSun"]:not(.full),body[data-theme="royalSun"]:not(.full)[data-page=dashboard]{background:linear-gradient(100deg,rgba(0,0,0,.30),rgba(0,0,0,.06) 58%,rgba(0,0,0,.16)),var(--nature-image) center center/cover no-repeat!important;}
body[data-theme="royalSun"] #screen{--waiting-wallpaper:linear-gradient(180deg,#00000012,#00000030),var(--nature-image);}
body[data-theme="royalSun"]:not(.full) #dashboard,body[data-theme="royalSun"]:not(.full) #library,body[data-theme="royalSun"]:not(.full) .player,body[data-theme="royalSun"].classicWatch #classicList{background:rgba(var(--panel-rgb),var(--panel-opacity,1))!important;border-color:var(--ui-border)!important;}
body[data-theme="royalSun"]:not(.full) .sidebar #nav>button.active,body[data-theme="royalSun"]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body[data-theme="royalSun"]:not(.full) #list .channelCard.onAir,body[data-theme="royalSun"].classicWatch #classicRows .classicRow.chosen{background:linear-gradient(110deg,#842b2a,#2b0c13)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important;}
body.artCards[data-theme="royalSun"]:not(.full) .sidebar #nav>button.active,body.artCards[data-theme="royalSun"]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body.artCards[data-theme="royalSun"]:not(.full) #list .channelCard.onAir,body.artCards[data-theme="royalSun"].classicWatch #classicRows .classicRow.chosen{box-shadow:inset 0 0 0 1px #f7c67644!important;background:var(--art-selected-surface)!important;}
body.artCards[data-theme="royalSun"]:not(.full):not(.mini) #previewInfo,body.artCards[data-theme="royalSun"].classicWatch #watchInfo{color:var(--ui-text)!important;border-color:var(--art-edge)!important;background:var(--art-content-surface)!important;}
body.artCards[data-theme="royalSun"][data-page=settings]:not(.full) #list .settingsCard{;background:var(--art-content-surface)!important;}
body[data-theme="newroz"]{--panel-rgb:25,36,45;--row-rgb:53,67,78;--control-rgb:40,54,64;--art-base:25,36,45;--art-rail:25,36,45;--art-warm:#79502e;--art-shadow:#19242d;--art-edge:#ffda8665;--art-glow:#ffda86;--art-detail:url("assets/ornaments/newroz-331.jpg");--art-corner:var(--art-detail);--roj-panel:#19242d;--roj-control:#283640;--roj-row:#35434e;--roj-accent:#ffda86;--roj-fg:#f8f6ef;--roj-sub:#cdd8e1;--roj-border:#ffda8655;--roj-selected:#79502e;--roj-selected-text:#f8f6ef;--roj-hover:#35434e;--roj-deep:#19242d;--rail-accent:#ffda86;--rail-active:#79502e;--rail-edge:#ffda8655;--rail-hover:#35434e;--rail-ink:#f8f6ef;--ui-text:#f8f6ef;--ui-sub:#cdd8e1;--ui-control:#283640;--ui-border:#ffda8655;--ui-panel:#19242d;--ui-row:#35434e;--ui-selected:#79502e;--ui-selected-text:#f8f6ef;--ui-hover:#35434e;--white:#f8f6ef;--muted:#cdd8e1;--line:#ffda8655;--field:#283640;--glass:#19242d;--gold:#ffda86;color:#f8f6ef;}
body.artCards[data-theme="newroz"]{--art-base:25,36,45;--art-rail:25,36,45;--art-detail:url("assets/ornaments/newroz-331.jpg");--art-corner:var(--art-detail);--art-warm:#79502e;--art-shadow:#19242d;--art-edge:#ffda8665;--art-glow:#ffda86;}
body[data-theme="newroz"]:not(.full),body[data-theme="newroz"]:not(.full)[data-page=dashboard]{background:linear-gradient(100deg,rgba(0,0,0,.30),rgba(0,0,0,.06) 58%,rgba(0,0,0,.16)),var(--nature-image) center center/cover no-repeat!important;}
body[data-theme="newroz"] #screen{--waiting-wallpaper:linear-gradient(180deg,#00000012,#00000030),var(--nature-image);}
body[data-theme="newroz"]:not(.full) #dashboard,body[data-theme="newroz"]:not(.full) #library,body[data-theme="newroz"]:not(.full) .player,body[data-theme="newroz"].classicWatch #classicList{background:rgba(var(--panel-rgb),var(--panel-opacity,1))!important;border-color:var(--ui-border)!important;}
body[data-theme="newroz"]:not(.full) .sidebar #nav>button.active,body[data-theme="newroz"]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body[data-theme="newroz"]:not(.full) #list .channelCard.onAir,body[data-theme="newroz"].classicWatch #classicRows .classicRow.chosen{background:linear-gradient(110deg,#79502e,#19242d)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important;}
body.artCards[data-theme="newroz"]:not(.full) .sidebar #nav>button.active,body.artCards[data-theme="newroz"]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body.artCards[data-theme="newroz"]:not(.full) #list .channelCard.onAir,body.artCards[data-theme="newroz"].classicWatch #classicRows .classicRow.chosen{box-shadow:inset 0 0 0 1px #ffda8644!important;background:var(--art-selected-surface)!important;}
body.artCards[data-theme="newroz"]:not(.full):not(.mini) #previewInfo,body.artCards[data-theme="newroz"].classicWatch #watchInfo{color:var(--ui-text)!important;border-color:var(--art-edge)!important;background:var(--art-content-surface)!important;}
body.artCards[data-theme="newroz"][data-page=settings]:not(.full) #list .settingsCard{;background:var(--art-content-surface)!important;}
body[data-theme="kurdishHeritage"]{--panel-rgb:18,41,31;--row-rgb:49,80,57;--control-rgb:32,60,44;--art-base:18,41,31;--art-rail:18,41,31;--art-warm:#80502b;--art-shadow:#12291f;--art-edge:#ffd18065;--art-glow:#ffd180;--art-detail:url("assets/ornaments/kurdishHeritage-331.jpg");--art-corner:var(--art-detail);--roj-panel:#12291f;--roj-control:#203c2c;--roj-row:#315039;--roj-accent:#ffd180;--roj-fg:#fff6e5;--roj-sub:#d8dfc7;--roj-border:#ffd18055;--roj-selected:#80502b;--roj-selected-text:#fff6e5;--roj-hover:#315039;--roj-deep:#12291f;--rail-accent:#ffd180;--rail-active:#80502b;--rail-edge:#ffd18055;--rail-hover:#315039;--rail-ink:#fff6e5;--ui-text:#fff6e5;--ui-sub:#d8dfc7;--ui-control:#203c2c;--ui-border:#ffd18055;--ui-panel:#12291f;--ui-row:#315039;--ui-selected:#80502b;--ui-selected-text:#fff6e5;--ui-hover:#315039;--white:#fff6e5;--muted:#d8dfc7;--line:#ffd18055;--field:#203c2c;--glass:#12291f;--gold:#ffd180;color:#fff6e5;}
body.artCards[data-theme="kurdishHeritage"]{--art-base:18,41,31;--art-rail:18,41,31;--art-detail:url("assets/ornaments/kurdishHeritage-331.jpg");--art-corner:var(--art-detail);--art-warm:#80502b;--art-shadow:#12291f;--art-edge:#ffd18065;--art-glow:#ffd180;}
body[data-theme="kurdishHeritage"]:not(.full),body[data-theme="kurdishHeritage"]:not(.full)[data-page=dashboard]{background:linear-gradient(100deg,rgba(0,0,0,.30),rgba(0,0,0,.06) 58%,rgba(0,0,0,.16)),var(--nature-image) center center/cover no-repeat!important;}
body[data-theme="kurdishHeritage"] #screen{--waiting-wallpaper:linear-gradient(180deg,#00000012,#00000030),var(--nature-image);}
body[data-theme="kurdishHeritage"]:not(.full) #dashboard,body[data-theme="kurdishHeritage"]:not(.full) #library,body[data-theme="kurdishHeritage"]:not(.full) .player,body[data-theme="kurdishHeritage"].classicWatch #classicList{background:rgba(var(--panel-rgb),var(--panel-opacity,1))!important;border-color:var(--ui-border)!important;}
body[data-theme="kurdishHeritage"]:not(.full) .sidebar #nav>button.active,body[data-theme="kurdishHeritage"]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body[data-theme="kurdishHeritage"]:not(.full) #list .channelCard.onAir,body[data-theme="kurdishHeritage"].classicWatch #classicRows .classicRow.chosen{background:linear-gradient(110deg,#80502b,#12291f)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important;}
body.artCards[data-theme="kurdishHeritage"]:not(.full) .sidebar #nav>button.active,body.artCards[data-theme="kurdishHeritage"]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body.artCards[data-theme="kurdishHeritage"]:not(.full) #list .channelCard.onAir,body.artCards[data-theme="kurdishHeritage"].classicWatch #classicRows .classicRow.chosen{box-shadow:inset 0 0 0 1px #ffd18044!important;background:var(--art-selected-surface)!important;}
body.artCards[data-theme="kurdishHeritage"]:not(.full):not(.mini) #previewInfo,body.artCards[data-theme="kurdishHeritage"].classicWatch #watchInfo{color:var(--ui-text)!important;border-color:var(--art-edge)!important;background:var(--art-content-surface)!important;}
body.artCards[data-theme="kurdishHeritage"][data-page=settings]:not(.full) #list .settingsCard{;background:var(--art-content-surface)!important;}

body[data-theme] #watchTools{gap:clamp(5px,.5vw,10px);align-items:center;flex-wrap:nowrap}
body[data-theme] #watchTools button{width:clamp(38px,3.05vw,60px);height:clamp(38px,3.05vw,60px);border-radius:12px!important;background:var(--ui-control)!important;color:var(--ui-text)!important;border:1px solid var(--ui-border)!important;box-shadow:none!important;opacity:1!important;}
body[data-theme] #watchTools button .rojIcon{width:clamp(19px,1.45vw,28px);height:clamp(19px,1.45vw,28px)}
body[data-theme] #watchTools button:hover{background:var(--ui-hover)!important}
body[data-theme] .rojPopupPanel.glass{background-color:var(--ui-panel)!important;color:var(--ui-text)!important;border:1px solid var(--ui-border)!important;box-shadow:0 16px 55px #0007!important;}
body[data-theme] .rojPopupPanel .rojSelectOption{background:var(--ui-control)!important;color:var(--ui-text)!important;border:1px solid var(--ui-border)!important;border-radius:11px!important;padding:12px 15px!important;}
body[data-theme] .rojPopupPanel .rojSelectOption.selected{color:var(--ui-text)!important;background:var(--ui-selected)!important;}
body[data-theme] .rojPopupPanel .rojOptionCheck{color:var(--rail-accent)!important}
body[data-theme] .rojPopupPanel .programmeDetail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px 16px;padding:13px 14px;border-radius:10px;background:var(--ui-control);border:1px solid var(--ui-border);align-items:center;}
body[data-theme] .rojPopupPanel .programmeDetail small{color:var(--ui-sub);font-size:clamp(13px,.9vw,18px)}
body[data-theme] .rojPopupPanel .programmeDetail strong{font-size:clamp(14px,1vw,20px);text-align:end;overflow-wrap:anywhere;}
body[data-theme] .rojPopupPanel .programmeDetail span{grid-column:1/-1;color:var(--ui-sub);}
body[data-theme] .rojPopupPanel .streamInfoTitle{margin:0 0 6px;font-size:clamp(18px,1.45vw,29px);line-height:1.3;overflow-wrap:anywhere}
body[data-theme] .rojPopupPanel .streamInfoNote{color:var(--ui-sub);margin:5px 0 0;font-size:clamp(13px,1vw,18px)}
body[data-theme] .trackField .trackLabel{font-weight:600;line-height:1.4}
body[data-theme] .trackField select{color:var(--ui-text)!important;background-color:var(--ui-control)!important;}
body[data-theme].classicWatch.watchOptions .playerOptions,body[data-theme].classicWatch.watchOptions .actions{background:var(--ui-panel)!important;opacity:1!important;border-color:var(--ui-border)!important;}
body[data-theme].remoteFocus:not(.virtual) #watchTools button:focus,body[data-theme].remoteFocus:not(.virtual) .rojPopupPanel button:focus{outline:2px solid var(--rail-accent)!important;outline-offset:-3px!important;box-shadow:none!important;}

/* V3.3.2 — coherent art surfaces; full bleed, not rectangular image stickers. */
body.artCards[data-theme]{
 --art-flow:100deg;
 --art-content-surface:linear-gradient(var(--art-flow),rgba(var(--art-base),.98) 0%,rgba(var(--art-base),.96) 28%,rgba(var(--art-base),.83) 64%,rgba(var(--art-base),.52) 100%),var(--art-detail) center/cover no-repeat;
 --art-selected-surface:radial-gradient(ellipse at 30% 0%,#ffd18a25,transparent 70%),linear-gradient(var(--art-flow),var(--art-warm),var(--art-shadow) 100%);
 --art-soft-surface:linear-gradient(150deg,rgba(var(--art-base),.96),rgba(var(--art-base),.78)),var(--art-detail) center/cover no-repeat;
}
html[dir=rtl] body.artCards[data-theme]{--art-flow:260deg;}
/* Wallpaper remains its own continuous layer. Sidebar keeps the original rosette. */
body.artCards[data-theme]:not(.full) main>aside.sidebar.glass{background:var(--rail-ornament,none) center calc(100% - 5vh)/105% auto no-repeat,linear-gradient(155deg,rgba(var(--art-rail),var(--panel-opacity)),rgba(var(--art-rail),var(--panel-opacity)) 60%,rgba(var(--art-rail),.78))!important;}
body.artCards.sidebarCollapsed[data-theme]:not(.full) main>aside.sidebar.glass{background-size:85% auto,cover!important;}
/* Selected controls share an illuminated material, not repeated figures or pasted scenes. */
body.artCards[data-theme]:not(.full) .sidebar #nav>button.active,body.artCards[data-theme]:not(.full) #dashboardRows .dashboardRow.onAir:not(.batchSelected),body.artCards[data-theme]:not(.full) #list .channelCard.onAir,body.artCards[data-theme].classicWatch #classicRows .classicRow.chosen,body.artCards[data-theme] .rojPopupPanel .rojSelectOption.selected,body.artCards[data-theme] .savePanel button.selected,body.artCards[data-theme][data-page=settings]:not(.full) #list .settingsCard>button.settingChosen{background:var(--art-selected-surface)!important;color:var(--ui-text)!important;border-color:var(--art-edge)!important;box-shadow:inset 0 1px 0 #ffe1a035!important;}
/* Settings and dialogs have cohesive large-area surfaces; rows are quiet and readable. */
body.artCards[data-theme][data-page=settings]:not(.full) #list .settingsCard{background:var(--art-content-surface)!important;border:1px solid var(--art-edge)!important;border-radius:18px!important;box-shadow:inset 0 1px 0 #ffffff12!important;}
body.artCards[data-theme][data-page=settings]:not(.full) #list .settingsCard>button:not(.settingChosen){background:linear-gradient(110deg,#ffffff06,transparent)!important;}
body.artCards[data-theme] .rojPopupPanel.glass,body.artCards[data-theme] .savePanel.glass{background:var(--art-soft-surface)!important;border-color:var(--art-edge)!important;border-radius:20px!important;box-shadow:0 18px 50px #0007,inset 0 1px 0 #ffffff18!important;}
body.artCards[data-theme] .rojPopupPanel .rojSelectOption:not(.selected){background:linear-gradient(120deg,rgba(var(--control-rgb),.98),rgba(var(--art-base),.94))!important;border-color:var(--ui-border)!important;}
body.artCards[data-theme] .rojPopupPanel .programmeDetail{background:rgba(var(--art-base),.92)!important;border-color:var(--ui-border)!important;}
body.artCards[data-theme] .rojPopupPanel .rojPopupHead{border-color:var(--ui-border);}
body.artCards[data-theme] .rojPopupPanel .rojPopupHead button{background:rgba(var(--control-rgb),.94)!important;color:var(--ui-text)!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;}
body.artCards[data-theme].classicWatch.watchOptions .playerOptions,body.artCards[data-theme].classicWatch.watchOptions .actions{background:var(--art-soft-surface)!important;border-color:var(--art-edge)!important;}
body.artCards[data-theme] .trackField select,body.artCards[data-theme] #watchTools button,body.artCards[data-theme] .homeHeadingTools button,body.artCards[data-theme] .tools button,body.artCards[data-theme] #sidebarToggle{background:linear-gradient(150deg,rgba(var(--control-rgb),.99),rgba(var(--art-base),.96))!important;border-color:var(--ui-border)!important;}
/* Only the actual focused target receives a focus outline. */
body.artCards[data-theme].remoteFocus:not(.virtual) .rojPopupPanel button:focus,body.artCards[data-theme].remoteFocus:not(.virtual) #watchTools button:focus{outline:2px solid var(--rail-accent)!important;outline-offset:-3px!important;box-shadow:none!important;}
/* One continuous scene per view. No duplicate portrait in the small cards. */
body.artCards[data-theme]{
 --art-content-surface:radial-gradient(ellipse at 100% 0%,#ffce7d13,transparent 75%),linear-gradient(var(--art-flow),rgba(var(--art-base),var(--panel-opacity,1)),rgba(var(--row-rgb),var(--panel-opacity,1)));
 --art-soft-surface:radial-gradient(ellipse at 95% 0%,#ffd18a18,transparent 65%),linear-gradient(145deg,rgba(var(--art-base),.99),rgba(var(--control-rgb),.97));
}
body.artCards[data-theme][data-page=settings]:not(.full) #library{background:linear-gradient(115deg,rgba(var(--art-base),.96),rgba(var(--art-base),.90) 48%,rgba(var(--art-base),.68)),var(--nature-image) center/cover no-repeat!important;}
body.artCards[data-theme][data-page=settings]:not(.full) #list .settingsCard{background:radial-gradient(ellipse at 100% 0%,#ffda8510,transparent 70%),linear-gradient(145deg,rgba(var(--art-base),.82),rgba(var(--control-rgb),.68))!important;}
body.artCards[data-theme]:not(.full):not(.mini) #previewInfo,body.artCards[data-theme].classicWatch #watchInfo{background:linear-gradient(var(--art-flow),rgba(var(--art-base),.99),rgba(var(--art-base),.93) 55%,rgba(var(--art-base),.66)),var(--art-material) center/cover no-repeat!important;}
body.artCards[data-theme="goldenMountain"]{--art-material:url("assets/ornaments/goldenMountain-material.jpg");}
body.artCards[data-theme="kurdishSun"]{--art-material:url("assets/ornaments/kurdishSun-material.jpg");}
body.artCards[data-theme="royalSun"]{--art-material:url("assets/ornaments/royalSun-material.jpg");}
body.artCards[data-theme="newroz"]{--art-material:url("assets/ornaments/newroz-material.jpg");}
body.artCards[data-theme="kurdishHeritage"]{--art-material:url("assets/ornaments/kurdishHeritage-material.jpg");}

/* V3.3.3 · Home search, same controls and palette as other filters. */
#homeSearchBox{position:relative;display:flex;align-items:center;gap:8px;flex:none;min-width:0;background:var(--ui-control,#172638);border:1px solid var(--ui-border,#ffffff30);color:var(--ui-text,#fff);border-radius:11px;padding:0 clamp(8px,.7vw,14px);min-height:clamp(34px,4.3vh,48px)}
#homeSearchBox[hidden],#homeSearchClear[hidden]{display:none!important}
#homeSearchGlyph{display:flex;align-items:center;flex:none;opacity:.78}#homeSearchGlyph .rojIcon{width:clamp(16px,1.2vw,24px);height:clamp(16px,1.2vw,24px)}
#homeSearchBox #homeSearch{flex:1;min-width:0;width:100%;height:clamp(34px,4.3vh,48px);padding:0 4px;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit;font-size:clamp(14px,1.02vw,20px);border-radius:7px;outline-offset:-2px;appearance:none;-webkit-appearance:none}
#homeSearch::-webkit-search-cancel-button{display:none}#homeSearchClear{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:inherit;font-size:22px;flex:none;padding:0;border-radius:7px}
body.remoteFocus:not(.virtual) #homeSearch:focus,body.remoteFocus:not(.virtual) #homeSearchClear:focus{outline:2px solid var(--rail-accent,#ffcc00)!important;outline-offset:-2px!important;box-shadow:none!important}
/* V3.3.4: single lightweight player toolbar. */
body[data-theme].classicWatch #watchInfo #watchTools{display:flex;flex:none;align-items:center;gap:clamp(2px,.22vw,5px);padding:clamp(3px,.24vw,5px);margin-inline-start:auto;border:1px solid var(--ui-border,#ffffff36);border-radius:999px;background:rgba(10,15,21,.28);box-shadow:none;}
body[data-theme].classicWatch #watchInfo #watchTools>button{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:clamp(39px,2.8vw,54px);height:clamp(39px,2.8vw,54px);padding:0;border:1px solid transparent!important;border-radius:50%!important;background:transparent!important;color:var(--ui-text,#fff)!important;box-shadow:none!important;outline:none!important;opacity:1!important;transition:background-color .14s,border-color .14s,color .14s;}
body[data-theme].classicWatch #watchInfo #watchTools>button .rojIcon{width:clamp(21px,1.5vw,29px);height:clamp(21px,1.5vw,29px);stroke-width:1.65;}
body[data-theme].classicWatch #watchInfo #watchTools>button[hidden]{display:none!important;}
body[data-theme].classicWatch #watchInfo #watchTools>button:hover{background:rgba(255,255,255,.10)!important;}
body[data-theme].classicWatch.remoteFocus:not(.virtual) #watchInfo #watchTools>button:focus{outline:none!important;border-color:var(--rail-accent,#ffcf4c)!important;background:rgba(255,204,80,.13)!important;color:var(--rail-accent,#ffcf4c)!important;box-shadow:0 0 0 1px rgba(255,204,80,.17)!important;}
body[data-theme="light"].classicWatch #watchInfo #watchTools,body[data-theme="ice"].classicWatch #watchInfo #watchTools{background:rgba(255,255,255,.18);}
body[data-theme="light"].classicWatch #watchInfo #watchTools>button:hover,body[data-theme="ice"].classicWatch #watchInfo #watchTools>button:hover{background:rgba(60,83,108,.12)!important;}
@media(prefers-reduced-motion:reduce){body[data-theme].classicWatch #watchInfo #watchTools>button{transition:none}}

/* V3.3.6: shared edit toolbar and recoverable channel deletion */
#libraryReorder{margin:0 0 8px;flex:none;padding:6px 8px;border:1px solid var(--ui-border,#ffffff24);border-radius:12px;background:var(--ui-control,#142437)}
#libraryReorder[hidden],#libraryEdit[hidden],#homeDelete[hidden]{display:none!important}
#libraryReorder .batchSummary,#homeReorder .batchSummary{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:5px}
#libraryReorder .batchActions,#homeReorder .batchActions{display:flex;gap:5px;align-items:center}
#libraryReorder .batchActions button,#homeReorder .batchActions button{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;padding:6px;min-height:34px}
#homeDelete,#libraryDelete{color:#ff777a!important}#homeDelete:disabled,#libraryDelete:disabled{opacity:.35!important}
#libraryEdit{display:inline-flex;align-items:center;justify-content:center}
.channelCard.channelEditing>button{position:relative;width:100%;height:100%;padding-inline-end:38px}
.channelEditing .editCheck{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%);width:25px;height:25px;border:1px solid var(--ui-border,#ffffff70);border-radius:7px;display:flex;align-items:center;justify-content:center;background:var(--ui-control,#182634);color:transparent;pointer-events:none}
.channelEditing .batchSelected .editCheck{background:#eec65b;color:#241b09;border-color:#eec65b}.channelEditing .editCheck svg{width:17px;height:17px}
.deletedSection{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}.deletedSection h2{margin:0 0 4px}.deletedSection p{opacity:.7;margin:4px 0}
.deletedRow{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 10px;border:1px solid var(--ui-border,#ffffff24);background:var(--ui-control,#17263a);border-radius:10px;min-height:44px}.deletedRow>span{flex:1;min-width:0;overflow-wrap:anywhere}.deletedRow small{display:block;font-size:.75em;opacity:.72;margin-top:3px}.deletedRow button{flex:none;width:auto;white-space:nowrap;padding:8px 12px}

/* V3.3.7: first-run setup, common theme colors and one focus target. */
body.setupOpen>header,body.setupOpen>main{visibility:hidden!important}
#initialSetup{z-index:110!important;background:transparent!important;padding:3vh 4vw;}
#initialSetup .setupPanel{width:min(740px,76vw);max-height:94vh;overflow:auto;display:flex;flex-direction:column;gap:clamp(9px,1.25vh,18px);padding:clamp(16px,2.2vw,36px);border:1px solid var(--ui-border,#ffffff38);border-radius:24px;background:var(--ui-panel,rgba(12,23,35,.96));color:var(--ui-text,#eef4fb);box-shadow:0 12px 44px #0004;}
#initialSetup .setupBrand{display:flex;align-items:center;gap:12px;font-size:clamp(20px,2.2vw,36px);letter-spacing:.01em;}
#initialSetup .setupBrand img{width:clamp(34px,3.5vw,58px);height:auto;background:transparent!important;border:0!important;box-shadow:none!important;}
#initialSetup .setupBrand em{font-style:normal;color:#ffce25;}
#initialSetup h1{margin:0;font-size:clamp(22px,2.1vw,34px);font-weight:650;}
#initialSetup .setupFields{display:grid;grid-template-columns:1fr 1fr;gap:clamp(9px,1.25vh,16px) 14px;}
#initialSetup .setupField{display:flex;flex-direction:column;gap:6px;min-width:0;}
#initialSetup .setupField:first-child,#initialSetup .setupField:nth-child(2),#initialSetup .setupField:last-child{grid-column:1/-1;}
#initialSetup .setupFieldTitle{display:flex;align-items:center;gap:8px;font-size:clamp(13px,1.2vw,18px);color:var(--ui-sub,#bac7d8);}
#initialSetup .setupFieldTitle .rojIcon{width:19px;height:19px;display:block;}
#initialSetup select{width:100%;min-height:42px;font-size:clamp(15px,1.25vw,21px);padding:9px 12px;background:var(--ui-control,#172635);color:var(--ui-text,#eef4fb);border:1px solid var(--ui-border,#ffffff30);border-radius:10px;}
#initialSetup .setupClockPreview{font-size:clamp(24px,2.8vw,44px);font-weight:650;font-variant-numeric:tabular-nums;align-self:center;line-height:1.1;}
#initialSetup .setupDone{display:block;width:100%;text-align:center;background:#ffce44!important;color:#171b20!important;font-weight:650;border:1px solid #ffdb73;border-radius:12px;min-height:46px;font-size:clamp(16px,1.4vw,23px);}
#initialSetup select:focus,#initialSetup button:focus{outline:2px solid #ffce44!important;outline-offset:2px!important;box-shadow:none!important;}
body.setupOpen .rojPopup{z-index:130!important}
body.light #initialSetup .setupPanel{background:#f8fafcf5;color:#17263b;}
@media(max-width:700px){#initialSetup .setupPanel{width:92vw;}}

/* V3.3.8: cinematic first-run setup. A single continuous wallpaper. */
body.setupOpen{background-position:center center!important;}
#initialSetup.saveOverlay{display:flex;justify-content:flex-start;align-items:center;gap:0;padding:4vh 4vw!important;background:linear-gradient(90deg,rgba(0,0,0,.38),transparent 75%)!important;overflow:hidden;}
html[dir=rtl] #initialSetup.saveOverlay{background:linear-gradient(270deg,rgba(0,0,0,.38),transparent 75%)!important;}
#initialSetup .setupPanel{position:relative;z-index:1;flex:0 0 44%;width:44%;max-width:800px;max-height:92vh;min-width:0;overflow:auto;scrollbar-width:thin;gap:clamp(10px,1.5vh,20px);padding:clamp(20px,2.5vw,48px);border:1px solid var(--ui-border,#d6a86755);border-radius:22px;background:linear-gradient(155deg,rgba(var(--panel-rgb,36,23,24),.98),rgba(var(--panel-rgb,36,23,24),.88))!important;color:var(--ui-text,#fff5e4);box-shadow:0 20px 65px #0005;}
#initialSetup .setupBrand{gap:10px;font-size:clamp(18px,1.75vw,34px);line-height:1.15;white-space:nowrap;}
#initialSetup .setupBrand img{width:clamp(32px,3vw,55px);flex:none;}
#initialSetup .setupClockPreview{font-size:clamp(14px,1.5vw,29px);font-weight:500;line-height:1.2;margin-inline-start:auto;align-self:center;white-space:nowrap;color:var(--ui-sub,#dfc8ad);}
#initialSetup h1{font-size:clamp(25px,2.55vw,48px);font-weight:650;letter-spacing:-.025em;line-height:1.2;margin:clamp(3px,1vh,14px) 0;}
#initialSetup .setupFields{gap:clamp(10px,1.7vh,24px) 14px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
#initialSetup .setupField{gap:7px;}
#initialSetup .setupFieldTitle{font-size:clamp(13px,1.1vw,21px);font-weight:500;color:var(--ui-sub,#e2c4a3);}
#initialSetup .setupFieldTitle .rojIcon{width:clamp(17px,1.3vw,24px);height:clamp(17px,1.3vw,24px);color:var(--roj-accent,#ffd081);}
#initialSetup select{min-height:clamp(39px,5.2vh,62px);padding:10px 13px;font-size:clamp(14px,1.25vw,23px);background-color:rgba(var(--control-rgb,57,36,41),.96)!important;color:var(--ui-text,#fff5e4);border:1px solid var(--ui-border,#d6a86755);border-radius:10px;}
#initialSetup .setupDone{margin-top:clamp(2px,1vh,12px);min-height:clamp(45px,6.4vh,76px);background:linear-gradient(115deg,#ffe5a4,#e7ad49)!important;color:#261909!important;border:1px solid #ffe6ac;border-radius:12px;font-size:clamp(17px,1.45vw,27px);font-weight:700;box-shadow:0 5px 20px #0002;}
#initialSetup select:focus,#initialSetup button:focus{outline:2px solid #ffe3a0!important;outline-offset:3px!important;box-shadow:none!important;}
#initialSetup .setupScene{flex:1;align-self:stretch;display:flex;justify-content:flex-end;align-items:flex-end;min-width:0;padding:0 0 1vh;pointer-events:none;}
#initialSetup .setupSceneLabel{background:#160e0bcc;color:#fff3d7;border:1px solid #e9bd7650;border-radius:99px;padding:9px 18px;font-size:clamp(13px,1.15vw,21px);letter-spacing:.015em;}
body.light #initialSetup .setupPanel{background:linear-gradient(155deg,#fffffffa,#f0f3f7ee)!important;color:#17263b;}
body.light #initialSetup select{background-color:#f9fafc!important;color:#17263b;}
body.light #initialSetup .setupBrand em{color:#926000;}
@media(max-width:850px){#initialSetup .setupPanel{flex-basis:65%;width:65%;padding:20px;}#initialSetup .setupClockPreview{font-size:14px;}}
@media(max-width:650px){#initialSetup .setupPanel{flex-basis:100%;width:100%;max-height:94vh;}#initialSetup .setupScene{display:none;}}
@media(max-height:550px){#initialSetup .setupPanel{gap:6px;padding:12px 18px;}#initialSetup .setupFields{gap:6px 12px;}#initialSetup .setupField{gap:3px;}#initialSetup h1{font-size:23px;margin:0;}#initialSetup select{min-height:33px;padding-block:5px;}#initialSetup .setupDone{min-height:35px;margin-top:0;}}

/* Explicit local wallpaper mapping, including first-run preview. */
body[data-theme="goldenMountain"]{--nature-image:url("assets/backgrounds/goldenMountain.jpg");}
body.setupOpen[data-theme="goldenMountain"]:not(.full){background:linear-gradient(110deg,#0003,transparent 70%),var(--nature-image) center/cover no-repeat!important;}
body[data-theme="kurdishSun"]{--nature-image:url("assets/backgrounds/kurdishSun.jpg");}
body.setupOpen[data-theme="kurdishSun"]:not(.full){background:linear-gradient(110deg,#0003,transparent 70%),var(--nature-image) center/cover no-repeat!important;}
body[data-theme="royalSun"]{--nature-image:url("assets/backgrounds/royalSun.jpg");}
body.setupOpen[data-theme="royalSun"]:not(.full){background:linear-gradient(110deg,#0003,transparent 70%),var(--nature-image) center/cover no-repeat!important;}
body[data-theme="newroz"]{--nature-image:url("assets/backgrounds/newroz.jpg");}
body.setupOpen[data-theme="newroz"]:not(.full){background:linear-gradient(110deg,#0003,transparent 70%),var(--nature-image) center/cover no-repeat!important;}
body[data-theme="kurdishHeritage"]{--nature-image:url("assets/backgrounds/kurdishHeritage.jpg");}
body.setupOpen[data-theme="kurdishHeritage"]:not(.full){background:linear-gradient(110deg,#0003,transparent 70%),var(--nature-image) center/cover no-repeat!important;}

/* V3.3.9: three-step TV onboarding, integrated with a single wallpaper. */
#initialSetup.saveOverlay{padding:6vh 6vw!important;align-items:stretch;justify-content:flex-start;background:linear-gradient(90deg,rgba(12,10,12,.96) 0%,rgba(19,14,16,.92) 24%,rgba(21,14,15,.78) 43%,rgba(17,11,12,.22) 63%,transparent 85%)!important}
html[dir=rtl] #initialSetup.saveOverlay{background:linear-gradient(270deg,rgba(12,10,12,.96) 0%,rgba(19,14,16,.92) 24%,rgba(21,14,15,.78) 43%,rgba(17,11,12,.22) 63%,transparent 85%)!important}
#initialSetup .setupPanel,body.light #initialSetup .setupPanel{flex:0 0 42%;width:42%;max-width:700px;max-height:none;min-height:0;overflow:auto;gap:0;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:#fff6e7!important;justify-content:center;}
#initialSetup .setupBrand{gap:12px;margin:0 0 clamp(32px,7vh,94px);font-size:clamp(22px,2vw,38px);color:#fff6e7;}
#initialSetup .setupBrand img{width:clamp(40px,3.6vw,68px)}#initialSetup .setupBrand em,body.light #initialSetup .setupBrand em{color:#ffcd39!important}
#initialSetup .setupClockPreview{color:#f2dfc5;font-size:clamp(15px,1.25vw,24px);font-weight:400}
#initialSetup .setupKicker{font-size:clamp(13px,1.05vw,20px);letter-spacing:.065em;color:#e3c6a2;font-weight:500;margin-bottom:12px}
#initialSetup .setupProgress{display:flex;gap:7px;width:clamp(100px,12vw,220px);margin-bottom:clamp(16px,3vh,38px)}#initialSetup .setupProgress i{flex:1;height:3px;background:#ffffff26;border-radius:5px}#initialSetup .setupProgress i.complete{background:#f4c66e}
#initialSetup h1{font-size:clamp(32px,3.5vw,66px);font-weight:600;letter-spacing:-.035em;line-height:1.12;color:#fff6e7;margin:0 0 clamp(20px,4vh,48px)}
#initialSetup .setupFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2vh,22px);min-height:0;margin:0 0 clamp(22px,4vh,48px)}
#initialSetup .setupField[hidden],#initialSetup .setupActions button[hidden]{display:none!important}
#initialSetup .setupField{gap:8px}#initialSetup .setupFieldTitle{font-size:clamp(15px,1.15vw,22px);color:#e3c6a2!important}#initialSetup .setupFieldTitle .rojIcon{color:#ebc47f!important}
#initialSetup select,body.light #initialSetup select{background:rgba(255,242,219,.075)!important;color:#fff6e7!important;border:1px solid #eed3a53d!important;border-radius:12px;min-height:clamp(50px,7vh,78px);font-size:clamp(19px,1.7vw,32px);padding:12px 20px;box-shadow:none!important;appearance:auto}
#initialSetup select option{background:#2a2020;color:#fff6e7}
#initialSetup .setupActions{display:flex;align-items:center;gap:12px;width:100%}
#initialSetup .setupActions button{min-height:clamp(48px,6.5vh,72px);border-radius:999px;box-shadow:none!important;font-size:clamp(16px,1.3vw,25px);font-weight:600;margin:0;}
#initialSetup .setupActions .setupNext,#initialSetup .setupActions .setupDone{flex:1;max-width:280px;background:#f0ca82!important;color:#241709!important;border:1px solid #ffe6ad!important}
#initialSetup .setupBack{padding:0 26px;background:transparent!important;color:#fff0db!important;border:1px solid #eed3a555!important}
#initialSetup select:focus,#initialSetup .setupActions button:focus{outline:2px solid #ffdc91!important;outline-offset:4px!important;box-shadow:none!important}
#initialSetup .setupScene{align-items:flex-end;justify-content:flex-end;padding:0}#initialSetup .setupSceneLabel{border:0;background:transparent;box-shadow:none;color:#fff2d8;text-shadow:0 2px 12px #000;padding:0;font-size:clamp(16px,1.3vw,24px)}
body.setupOpen[data-theme="goldenMountain"]:not(.full){background:var(--nature-image) center/cover no-repeat!important}
@media(max-width:850px){#initialSetup .setupPanel{flex-basis:65%;width:65%}#initialSetup .setupBrand{margin-bottom:24px}}
@media(max-width:650px){#initialSetup .setupPanel{flex-basis:100%;width:100%}#initialSetup.saveOverlay{background:#160f13d9!important}}
@media(max-height:650px){#initialSetup .setupBrand{margin-bottom:18px}#initialSetup .setupProgress{margin-bottom:13px}#initialSetup h1{margin-bottom:18px}#initialSetup .setupFields{margin-bottom:18px;gap:9px 12px}#initialSetup select{min-height:38px;padding:7px 12px}}
/* Align the TV actions and prevent clipping the remote focus ring. */
#initialSetup .setupPanel{padding:6px;box-sizing:border-box}
#initialSetup .setupActions button{display:flex;align-items:center;justify-content:center;text-align:center!important}
#initialSetup .setupFields[data-step="0"] .setupFieldTitle,#initialSetup .setupFields[data-step="2"] .setupFieldTitle{display:none}

/* V3.4.1 – first setup brand, no clock or wallpaper caption. */
#initialSetup .setupBrand{font-size:clamp(26px,2.55vw,48px);gap:clamp(12px,1.1vw,21px)}
#initialSetup .setupBrand img{width:clamp(50px,4.5vw,85px);height:auto;flex:none}
#initialSetup .setupClockPreview,#initialSetup .setupSceneLabel{display:none!important}
@media(max-height:650px){#initialSetup .setupBrand{font-size:clamp(24px,2.4vw,38px);margin-bottom:18px}#initialSetup .setupBrand img{width:clamp(46px,4.1vw,66px)}}

/* V3.4.5 — menu switch directly below Settings; free the bottom ornament. */
body[data-theme]:not(.full) .sidebar #nav>#sidebarToggle{order:0;margin:clamp(4px,.7vh,9px) 0 0!important;align-self:center;justify-content:center!important;width:clamp(34px,4vw,64px)!important;max-width:100%!important;min-width:0!important;min-height:clamp(32px,4.5vh,48px)!important;height:clamp(32px,4.5vh,48px)!important;padding:0!important;flex:none!important;background:transparent!important;border:1px solid var(--rail-edge)!important;box-shadow:none!important;}
body[data-theme]:not(.full) .sidebar #nav>#sidebarToggle .rojIcon{width:clamp(19px,1.55vw,30px);height:clamp(19px,1.55vw,30px)}
body[data-theme]:not(.full) .sidebar #nav{flex:0 1 auto;min-height:0;overflow-y:auto;}
body.artCards[data-theme]:not(.full) main>aside.sidebar.glass{background-position:center calc(100% - 1.8vh),center!important;}
body.remoteFocus:not(.virtual)[data-theme]:not(.full) .sidebar #nav>#sidebarToggle:focus{outline:2px solid var(--rail-accent,var(--gold,#ffce42))!important;outline-offset:-3px!important;}

/* V3.4.6: individual Art Cards identities and clean Settings heading. */
body[data-page="settings"] #library .heading .tools{display:none!important}
body.artCards[data-theme="goldenMountain"]{--rail-ornament:url("assets/ornaments/rail-mountain-346.svg");--rail-art-size:92%;--art-selected-surface:radial-gradient(ellipse at 12% 0%,#efb66c44,transparent 72%),linear-gradient(108deg,#9a502a,#2b1c20 90%);}
body.artCards[data-theme="kurdishSun"]{--rail-ornament:url("assets/ornaments/rail-brush-346.svg");--rail-art-size:100%;--art-selected-surface:linear-gradient(120deg,#184d3c,#6d512d 52%,#492d22);}
body.artCards[data-theme="royalSun"]{--rail-ornament:url("assets/ornaments/rail-royal-346.svg");--rail-art-size:88%;--art-selected-surface:radial-gradient(ellipse at 50% 0%,#c17a5144,transparent 78%),linear-gradient(145deg,#6b1c2e,#300e1a);}
body.artCards[data-theme="newroz"]{--rail-ornament:url("assets/ornaments/rail-newroz-346.svg");--rail-art-size:94%;--art-selected-surface:linear-gradient(110deg,#70573c,#36444a 65%,#202c35);}
body.artCards[data-theme="kurdishHeritage"]{--rail-ornament:url("assets/ornaments/rail-heritage-346.svg");--rail-art-size:100%;--art-selected-surface:linear-gradient(115deg,#775033,#29483a 60%,#142b22);}
body.artCards[data-theme]:not(.full) main>aside.sidebar.glass{background-size:var(--rail-art-size,90%) auto,cover!important;background-position:center calc(100% - 2vh),center!important;background-repeat:no-repeat!important;}
body.artCards[data-theme].sidebarCollapsed:not(.full) main>aside.sidebar.glass{background-size:90% auto,cover!important;}

/* V3.4.7: restore the original gold rosette only on the 18 plain themes.
   The five Art Cards rails retain their existing independent artwork. */
body[data-theme]:not(.artCards):not(.full) main>aside.sidebar.glass{
 background-image:url("assets/ornaments/sun-rosette.svg")!important;
 background-repeat:no-repeat!important;
 background-position:center calc(100% - 2vh)!important;
 background-size:min(90%,26vh) auto!important;
}
body.sidebarCollapsed[data-theme]:not(.artCards):not(.full) main>aside.sidebar.glass{background-size:85% auto!important;}

/* V3.4.8 — compact receiver information, searchable restore dialog, track controls. */
body[data-theme] .rojPopupPanel.glass.streamInfoPanel,body[data-theme] .rojPopupPanel.glass.deletedPopupPanel{
 background:var(--roj-panel,#162636)!important;color:var(--ui-text,#fff)!important;
 border:1px solid var(--ui-border,#ffffff40)!important;box-shadow:0 16px 44px #0008!important;
 opacity:1!important;max-height:84vh!important;border-radius:18px!important;padding:clamp(12px,1.1vw,22px)!important;gap:10px;
}
body[data-theme] .rojPopupPanel.glass.streamInfoPanel{width:min(570px,76vw)!important;}
body[data-theme] .rojPopupPanel.glass.deletedPopupPanel{width:min(760px,82vw)!important;}
body.full .rojPopupPanel .rojPopupHead h2,body[data-theme] .rojPopupPanel .rojPopupHead h2{display:block!important;color:var(--ui-text,#fff);font-size:clamp(16px,1.35vw,25px);margin:0!important;line-height:1.3;}
body[data-theme] .streamInfoPanel .rojPopupHead,body[data-theme] .deletedPopupPanel .rojPopupHead{padding-bottom:8px;border-bottom:1px solid var(--ui-border);}
body[data-theme] .streamInfoPanel .rojPopupContent{gap:5px;padding:2px;}
body[data-theme] .streamInfoPanel .streamInfoTitle{margin:4px 0 8px;font-size:clamp(19px,1.55vw,30px);font-weight:650;}
body[data-theme] .rojPopupPanel.streamInfoPanel .programmeDetail{
 background:rgba(var(--control-rgb,30,45,60),.88)!important;border:1px solid var(--ui-border)!important;
 border-radius:8px!important;grid-template-columns:minmax(0,2fr) minmax(0,3fr);padding:clamp(7px,.65vw,12px) 12px!important;gap:5px 12px;
}
body[data-theme] .streamInfoPanel .programmeDetail small{font-size:clamp(12px,1vw,18px)!important;}
body[data-theme] .streamInfoPanel .programmeDetail strong{font-size:clamp(13px,1vw,19px)!important;font-weight:600;overflow-wrap:anywhere;}
body[data-theme] .streamInfoPanel .streamInfoNote{margin:4px 0;}
body[data-theme] .streamSourceToggle{display:flex;gap:8px;align-items:center;border-radius:9px!important;min-height:38px!important;padding:8px 12px!important;background:transparent!important;color:var(--ui-text)!important;border:1px solid var(--ui-border)!important;}
.streamSourceToggle .rojIcon{width:19px;height:19px;}.streamSourceChevron{margin-inline-start:auto;}.streamSourceDetails{display:flex;flex-direction:column;gap:5px;}.streamSourceDetails[hidden]{display:none!important;}
body[data-theme] .streamSourceDetails .programmeDetail{grid-template-columns:1fr!important;}.streamSourceDetails .programmeDetail strong{text-align:start!important;font-weight:400!important;font-size:clamp(11px,.83vw,16px)!important;overflow-wrap:anywhere;word-break:break-word;}
body[data-theme] #list>#deletedSearch{align-self:flex-start;display:flex;align-items:center;gap:10px;width:auto;min-height:42px;padding:9px 15px!important;margin-bottom:6px;border-radius:10px!important;background:var(--ui-control)!important;border:1px solid var(--ui-border)!important;color:var(--ui-text)!important;}
#deletedSearch .rojIcon,.deletedSearchField .rojIcon,.restoreChannel .rojIcon{width:19px;height:19px;vertical-align:middle;}
#deletedSearch small{margin-inline-start:6px;color:var(--ui-sub);font-variant-numeric:tabular-nums;border:1px solid var(--ui-border);border-radius:999px;padding:2px 8px;}
.deletedSearchField{display:flex;align-items:center;gap:9px;padding:0 10px;border:1px solid var(--ui-border);background:var(--ui-control);border-radius:10px;flex:none;}
.deletedSearchField>input{min-width:0;flex:1;width:100%;background:transparent!important;border:0!important;min-height:40px;padding:8px 2px;color:var(--ui-text)!important;}
.deletedResultsCount{color:var(--ui-sub);font-size:clamp(12px,1vw,18px);margin:5px 0;}.deletedResults{display:flex;flex-direction:column;gap:6px;}.deletedEmpty{padding:14px 5px;color:var(--ui-sub);}
body[data-theme] .deletedPopupPanel .deletedRow{background:rgba(var(--control-rgb,30,45,60),.9)!important;border:1px solid var(--ui-border)!important;padding:8px 10px;min-height:50px;}
.deletedRow img{width:44px;height:35px;object-fit:contain;flex:none;}.deletedRow>span{font-size:clamp(13px,1.15vw,21px);}.deletedRow small{font-size:.78em;color:var(--ui-sub);}
body[data-theme] .deletedPopupPanel .restoreChannel{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 10px!important;background:transparent!important;border:1px solid var(--ui-border)!important;color:var(--rail-accent,var(--ui-text))!important;border-radius:9px!important;white-space:nowrap;font-size:clamp(12px,.95vw,18px);}
body[data-theme] .deletedPopupPanel .deletedMore{justify-content:center;}
/* The preview controls share one grid, with a separate low-profile volume row. */
body[data-theme] .playerOptions{gap:7px;align-items:stretch;flex-wrap:wrap;min-width:0;}
.trackControls{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%;min-width:0;}.trackControls[hidden]{display:none!important;}
body[data-theme] .playerOptions .trackField{flex:1 1 135px;min-width:0;flex-direction:row;align-items:center;gap:6px;background:var(--ui-control);border:1px solid var(--ui-border);border-radius:9px;padding:4px 7px;}
body[data-theme] .playerOptions .trackLabel{gap:4px;flex:none;font-size:clamp(10px,.8vw,15px);font-weight:500;}
body[data-theme] .playerOptions .trackLabel .rojIcon{width:17px;height:17px;}
body[data-theme] .playerOptions .trackField select{flex:1;min-width:0;width:0;max-width:100%;background:transparent!important;border:0!important;border-radius:5px!important;padding:5px 6px!important;min-height:30px;font-size:clamp(11px,.85vw,16px);}
body[data-theme] .playerOptions #resolution:not(:empty){display:inline-flex;flex:none;align-items:center;justify-content:center;font-size:clamp(11px,.85vw,16px);font-variant-numeric:tabular-nums;color:var(--ui-sub);border:1px solid var(--ui-border);border-radius:8px;padding:7px 9px;min-height:36px;white-space:nowrap;}
.volumeControls{display:flex;align-items:center;gap:6px;width:100%;min-width:0;justify-content:center;}
body[data-theme] .volumeControls #retry{width:34px;min-width:34px;min-height:34px;border-radius:8px;background:var(--ui-control)!important;border:1px solid var(--ui-border)!important;}
body[data-theme] .volumeControls #volume{max-width:180px;flex:1 1 95px;}
@media(max-width:1000px){body[data-theme] .playerOptions .trackField{flex-basis:100%;}body[data-theme] .playerOptions #resolution:not(:empty){min-height:27px;padding:4px 7px;}}

/* V3.5.1 unified search focus and visible channel scrollbars */
body[data-theme] #homeSearchBox,body[data-theme] #filters .filterControl.unifiedSearch,body[data-theme] .deletedSearchField{display:flex;align-items:center;gap:8px;border:1px solid var(--ui-border,#ffffff30)!important;border-radius:11px!important;background:var(--ui-control,#172638)!important;min-width:0;min-height:clamp(34px,4.3vh,48px);padding:0 12px;box-sizing:border-box;position:relative;}
body[data-theme] #filters .filterControl.unifiedSearch .filterGlyph{position:static;transform:none;flex:none;}
body[data-theme] #homeSearchBox #homeSearch,body[data-theme] #filters .filterControl.unifiedSearch>input,body[data-theme] .deletedSearchField>input{flex:1;min-width:0;min-height:0;width:100%;height:clamp(34px,4.3vh,48px);padding:0 4px!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;color:var(--ui-text,#fff)!important;border-radius:0!important;}
body[data-theme] #homeSearchBox.searchFocused,body[data-theme] #filters .filterControl.unifiedSearch.searchFocused,body[data-theme] .deletedSearchField.searchFocused{outline:2px solid #ffcf42!important;outline-offset:-2px!important;box-shadow:none!important;}
body[data-theme] #homeSearchBox #homeSearch:focus,body[data-theme] #filters .filterControl.unifiedSearch>input:focus,body[data-theme] .deletedSearchField>input:focus{outline:none!important;box-shadow:none!important;}
body[data-theme] #dashboardRows.virtualWindow,body[data-theme][data-page=home] #list.virtualWindow{scrollbar-width:thin!important;scrollbar-color:var(--rail-accent,#c6a16b) transparent!important;overflow-y:auto!important;-ms-overflow-style:auto!important;}
body[data-theme] #dashboardRows.virtualWindow::-webkit-scrollbar,body[data-theme][data-page=home] #list.virtualWindow::-webkit-scrollbar{display:block!important;width:5px!important;height:0!important;}
body[data-theme] #dashboardRows.virtualWindow::-webkit-scrollbar-thumb,body[data-theme][data-page=home] #list.virtualWindow::-webkit-scrollbar-thumb{background:var(--rail-accent,#c6a16b)!important;border-radius:9px!important;}
body[data-theme] #dashboardRows.virtualWindow::-webkit-scrollbar-track,body[data-theme][data-page=home] #list.virtualWindow::-webkit-scrollbar-track{background:transparent!important;}
#homeReorder .batchActions,#libraryReorder .batchActions{grid-template-columns:repeat(6,minmax(0,1fr))!important;}

/* V3.5.6: icon-only sort mode, same size as adjacent Edit button. */
body[data-theme]:not(.full) .dashboardHeading .homeHeadingTools #homeSort{width:clamp(30px,4.2vh,46px);min-width:clamp(30px,4.2vh,46px);max-width:none;padding:0;display:inline-flex;align-items:center;justify-content:center;}

/* Public web navigation */
[data-nav-page="sources"]{display:none!important;}
