/* One continuous menu: saved views and provider categories share the same rows. */
html#iptv-theme-root[data-stream-ui] #library-special,
html#iptv-theme-root[data-stream-ui] #categories{margin:0!important;padding:0!important;border:0!important;gap:0!important;background:transparent!important;}html#iptv-theme-root[data-stream-ui] #library-special button,html#iptv-theme-root[data-stream-ui] #categories button{
 display:block!important;box-sizing:border-box;width:100%!important;margin:0!important;
 min-height:60px;padding:14px 16px!important;white-space:normal!important;overflow-wrap:break-word;
 text-align:start!important;line-height:1.4!important;font-size:21px;border:0!important;
 border-bottom:1px solid rgba(210,228,250,.18)!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;transform:none!important;
}
html#iptv-theme-root[data-stream-ui] #categories .category-title,
html#iptv-theme-root[data-stream-ui] #categories .category-subtitle{display:block;unicode-bidi:plaintext;white-space:normal;line-height:1.45;}
html#iptv-theme-root[data-stream-ui] #categories .category-subtitle{font-size:.87em;opacity:.82;margin-top:3px;}
html#iptv-theme-root[data-stream-ui] #categories button:last-child{border-bottom:0!important;}
html#iptv-theme-root[data-stream-ui] #library-special button.active,
html#iptv-theme-root[data-stream-ui] #categories button.active{background:rgba(177,215,247,.13)!important;}
html#iptv-theme-root[data-stream-ui] #library-special button:focus,
html#iptv-theme-root[data-stream-ui] #categories button:focus{background:rgba(111,204,238,.23)!important;outline:2px solid rgba(223,242,255,.85)!important;outline-offset:-2px!important;}
@media(max-width:1400px){html#iptv-theme-root[data-stream-ui] #library-special button,html#iptv-theme-root[data-stream-ui] #categories button{min-height:48px;padding:11px 12px!important;font-size:17px;}}
@media(max-width:600px){html#iptv-theme-root[data-stream-ui] #library-special button,html#iptv-theme-root[data-stream-ui] #categories button{min-height:48px;font-size:16px;}}

/* Keep section search beside title order, with a compact accessible icon action. */
html#iptv-theme-root[data-tv-library] body main .heading{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;direction:ltr!important;}
html#iptv-theme-root[data-tv-library] body main .heading>div:first-child:not(.search){flex:1 1 auto!important;min-width:0;}
html#iptv-theme-root[data-tv-library] body main .heading .search{display:flex!important;flex:0 1 440px!important;min-width:140px;max-width:42%;margin:0!important;gap:8px!important;direction:ltr;}
html#iptv-theme-root[data-tv-library] body main .heading .search input{flex:1!important;min-width:0!important;width:100%!important;height:44px!important;box-sizing:border-box;padding:9px 12px!important;font-size:18px!important;margin:0!important;}
html#iptv-theme-root[data-tv-library] body main .heading #search-go{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important;box-sizing:border-box;}
html#iptv-theme-root[data-tv-library] body main .heading #search-go svg{width:22px;height:22px;}
html#iptv-theme-root[data-tv-library] body main .heading>#catalog-sort{margin:0!important;flex:0 0 auto;}
html#iptv-theme-root[data-tv-library] body main .heading>button{min-height:44px;box-sizing:border-box;}
@media(max-width:1400px){html#iptv-theme-root[data-tv-library] body main .heading{gap:8px!important;}html#iptv-theme-root[data-tv-library] body main .heading .search{flex-basis:320px!important;max-width:42%;}html#iptv-theme-root[data-tv-library] body main .heading .search input{font-size:15px!important;}html#iptv-theme-root[data-tv-library] body main .heading .search input::placeholder{font-size:13px!important;}}

/* Category ordering is an in-place card; keep the library visible underneath. */
html#iptv-theme-root[data-stream-ui] body #category-order-panel{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
