/* =====================================================================
   ArabP2P — Style 2026  (theme2026.css)
   Loaded AFTER the old main.css: it draws the new shell (header, stats bar,
   cards, sidebar, footer, mobile bar, drawer), re-skins the home blocks, and
   gives the inner pages (which still use the old markup) the new colours.
   Every colour is a variable: dark and light themes share the same rules.
   ===================================================================== */

@font-face{font-family:'ApKufi';src:url('fonts/DroidKufi-Regular.ttf');font-weight:400;font-display:swap}
@font-face{font-family:'ApKufi';src:url('fonts/DroidKufi-Bold.ttf');font-weight:700;font-display:swap}

/* ---------- 1. Theme tokens ---------- */
:root{
  --accent:#1F6FD6; --accent-h:#2A7BE4; --on-accent:#FFFFFF;
  --radius:14px; --radius-sm:10px;
  --font:'ApKufi','Segoe UI',Tahoma,Arial,sans-serif;
  --wrap:1320px;
}
:root,:root[data-theme="dark"]{
  --bg:#0A1520; --hdr:#0D1B2A; --bar:#0B1824; --card:#101E2C; --sunk:#0D1A27;
  --line:#1C3046; --line-strong:#23394F; --line-soft:#16283A;
  --raise:#13253A; --raise-h:#18304A; --on:#1C3349; --on-line:#2C5E95; --focus:#3B7FD0;
  --text:#E6EEF7; --head:#FFFFFF; --text2:#C3D1E0; --muted:#8FA4BB;
  --seed:#4ECDC4; --leech:#F2A65A; --gold:#E8C266; --gold-bg:#2C2614; --danger:#FF7A7A;
  --link:#6FB1FF; --link-h:#A9D0FF;
  --news-bg:#112640; --news-line:#234B75;
  --input-bg:#0A1520; --shadow:0 10px 30px rgba(0,0,0,.45);
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#EEF2F7; --hdr:#FFFFFF; --bar:#F7F9FC; --card:#FFFFFF; --sunk:#F4F7FA;
  --line:#DCE3EB; --line-strong:#C9D3DE; --line-soft:#E9EEF3;
  --raise:#EEF3F8; --raise-h:#E2EAF3; --on:#DCE8F6; --on-line:#9DBCE0; --focus:#2F6FC0;
  --text:#132233; --head:#0B1724; --text2:#33475C; --muted:#5B6C7E;
  --seed:#0B776F; --leech:#B45309; --gold:#8A6100; --gold-bg:#FBF1D6; --danger:#C62828;
  --link:#1F5FBF; --link-h:#174A94;
  --news-bg:#EAF2FD; --news-line:#BCD3F0;
  --input-bg:#FFFFFF; --shadow:0 10px 30px rgba(15,30,50,.15);
  color-scheme:light;
}


/* ---------- 1b. The old main.css variables follow the new theme ---------- */
:root[data-theme="dark"],:root[data-theme="light"]{
  --background-color:var(--bg); --white:var(--card); --light-gray:var(--raise); --medium-gray:var(--line-strong);
  --dark-gray:var(--text2); --black:var(--text); --primary:var(--accent); --primary-light:var(--accent);
  --primary-dark:var(--link); --secondary-dark:var(--accent); --Green:var(--seed); --Red:#E5484D;
}

/* ---------- 2. Base (overrides the old main.css generics) ---------- */
html{-webkit-text-size-adjust:100%;scroll-padding-top:90px}
body.ap{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.7}
body.ap{min-height:100vh;display:flex;flex-direction:column}
body.ap>.ap-main{flex:1 0 auto;width:100%}
body.ap *,body.ap *::before,body.ap *::after{box-sizing:border-box}
body.ap a{color:var(--link);text-decoration:none}
body.ap a:hover{color:var(--link-h)}
body.ap img{max-width:100%;height:auto}
body.ap .active{border-bottom:0}
.ap-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ap-skip{position:absolute;top:-60px;right:12px;z-index:100;background:var(--accent);color:#fff!important;padding:10px 16px;border-radius:10px}
.ap-skip:focus{top:10px}
body.ap :focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.ap-wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px;text-align:right}

/* shell elements must not inherit the old "div{text-align:center}" / "input{width:400px}" */
.ap-hdr div,.ap-stats div,.ap-drawer div,.ap-bnav,.ap-foot div,.ap-cats,.ap-catpanel div,.ap-card-h{text-align:right}
.ap-hdr input,.ap-drawer input,.ap-guest input{width:auto;max-width:none}

/* ---------- 3. Buttons ---------- */
body.ap .btn-primary,body.ap .uploader-tab a:hover,body.ap .download-btn,body.ap .download-btn a,body.ap .send-btn,body.ap .send-btn-mid,body.ap .send-btn-small,body.ap .cancel-btn,body.ap .cancel-btn-small,body.ap .small-btn,body.ap a.tor_download{color:#fff!important}
.ap-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 16px;border-radius:var(--radius-sm);border:0;background:var(--accent);color:var(--on-accent)!important;font:inherit;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap;text-decoration:none}
.ap-btn:hover{background:var(--accent-h);color:var(--on-accent)!important}
.ap-btn-ghost{background:var(--raise);color:var(--text)!important;border:1px solid var(--line)}
.ap-btn-ghost:hover{background:var(--raise-h);color:var(--head)!important}
.ap-ibtn{width:42px;height:42px;flex-shrink:0;border-radius:var(--radius-sm);background:var(--raise);border:1px solid var(--line);color:var(--text2)!important;display:inline-flex;align-items:center;justify-content:center;position:relative;cursor:pointer;padding:0}
.ap-ibtn:hover{background:var(--raise-h);color:var(--head)!important}
.ap-badge{position:absolute;top:-5px;left:-5px;min-width:18px;height:18px;border-radius:9px;background:#F2A65A;color:#1A1006;font-size:11px;font-weight:700;line-height:18px;text-align:center;padding:0 5px;font-family:Tahoma,Arial,sans-serif}
.ap-badge:empty,.ap-count:empty{display:none}
.ap-count{display:inline-block;font-size:11px;font-weight:700;background:#F2A65A;color:#1A1006;border-radius:10px;padding:0 7px;line-height:18px;font-family:Tahoma,Arial,sans-serif;margin-inline-start:4px}
[data-theme="dark"] .ap-i-moon,[data-theme="light"] .ap-i-sun{display:none}

/* ---------- 4. Header ---------- */
.ap-hdr{position:sticky;top:0;z-index:50;background:var(--hdr);border-bottom:1px solid var(--line)}
.ap-hdr-row{display:flex;align-items:center;gap:16px;height:70px}
.ap-logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.ap-mark{display:block;flex-shrink:0}
.ap-wm{font-family:var(--font);font-weight:700;font-size:21px;color:var(--head);direction:ltr;letter-spacing:.2px;line-height:1}
.ap-wm b{color:var(--link);font-weight:700}
.ap-nav{display:flex;align-items:center;gap:2px;flex:1;min-width:0}
.ap-nav>a,.ap-dd-btn{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;border-radius:9px;color:var(--text2)!important;font:inherit;font-size:14px;background:transparent;border:0;cursor:pointer;white-space:nowrap}
.ap-nav>a:hover,.ap-dd-btn:hover,.ap-dd.is-open>.ap-dd-btn{background:var(--raise);color:var(--head)!important}
.ap-gold{color:var(--gold)!important}
.ap-dd{position:relative}
.ap-dd-menu{display:none;position:absolute;top:calc(100% + 8px);right:0;min-width:230px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:6px;z-index:60}
.ap-dd-end{right:auto;left:0}
.ap-dd.is-open>.ap-dd-menu{display:block}
.ap-dd-menu a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:8px;color:var(--text)!important;font-size:14px;line-height:1.4}
.ap-dd-menu a:hover{background:var(--raise);color:var(--head)!important}
.ap-dd-head{padding:10px 12px 8px;border-bottom:1px solid var(--line);margin-bottom:4px}
.ap-dd-head b{display:block;color:var(--head)}
.ap-dd-head span{font-size:12px;color:var(--muted)}
.ap-search{display:flex;align-items:center;gap:8px;background:var(--input-bg);border:1px solid var(--line-strong);border-radius:var(--radius-sm);padding:0 12px;height:42px;width:280px;color:var(--muted);margin:0}
.ap-search:focus-within{border-color:var(--focus)}
body.ap .ap-search input[type=search]{background:transparent;border:0;color:var(--text);font:inherit;font-size:14px;flex:1;min-width:0;height:40px;padding:0;outline:none;border-radius:0}
.ap-search input::placeholder{color:var(--muted)}
.ap-actions{display:flex;align-items:center;gap:10px;flex-shrink:0;margin-inline-start:auto}
.ap-avatar{position:relative;width:42px;height:42px;padding:0;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--raise);cursor:pointer;display:flex;align-items:center;justify-content:center}
.ap-avatar img{width:32px;height:32px;border-radius:8px;object-fit:cover;display:block}
.ap-menu-btn{display:none}
.ap-login{padding:12px;min-width:260px}
.ap-login form{display:flex;flex-direction:column;gap:8px}

/* stats bar */
.ap-stats{background:var(--bar);border-bottom:1px solid var(--line-soft)}
.ap-stats-row{display:flex;gap:26px;align-items:center;height:40px;font-size:13px;color:var(--muted);overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.ap-stats-row::-webkit-scrollbar{display:none}
.ap-stats b{color:var(--text);font-weight:700;margin-inline-start:4px;direction:ltr;display:inline-block;font-family:Tahoma,Arial,sans-serif}
.ap-stats .ap-up{color:var(--seed)} .ap-stats .ap-down{color:var(--leech)}

.ap-alert{margin:14px 0 0;padding:12px 16px;border-radius:12px;background:var(--gold-bg);color:var(--text);border:1px solid var(--line)}

/* ---------- 5. Categories ---------- */
.ap-cats{display:flex;gap:8px;align-items:center;padding-top:16px}
.ap-cats-strip{display:flex;gap:8px;overflow-x:auto;flex:1;min-width:0;scrollbar-width:none;padding-bottom:2px}
.ap-cats-strip::-webkit-scrollbar{display:none}
.ap-chip{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;border-radius:19px;background:var(--card);border:1px solid var(--line);color:var(--text2)!important;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer;flex-shrink:0}
.ap-chip:hover{border-color:var(--focus);color:var(--head)!important}
.ap-chip.is-on{background:var(--on);border-color:var(--on-line);color:var(--head)!important}
.ap-chip-free{color:var(--seed)!important}
.ap-chip-all{background:var(--raise)}
.ap-catpanel{margin-top:12px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}
.ap-catpanel[hidden]{display:none}
.ap-catgroup{display:flex;flex-direction:column;gap:2px}
.ap-catgroup-h{font-weight:700;color:var(--head);font-size:14px;padding:4px 8px}
.ap-catgroup a{padding:6px 8px;border-radius:8px;color:var(--text2)!important;font-size:13px}
.ap-catgroup a:hover{background:var(--raise);color:var(--head)!important}
.ap-showblocks{display:flex;gap:6px;flex-wrap:wrap;padding-top:10px}
.ap-showblocks:empty{display:none}

/* ---------- 6. Layout ---------- */
body.ap .ap-main,body.ap #bodyarea{padding-bottom:40px;background:transparent!important;color:var(--text)}
.ap-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;padding-top:20px;align-items:start}
.ap-layout.ap-noside{grid-template-columns:minmax(0,1fr)}
.ap-noside>.ap-side{display:none}
.ap-content,.ap-side{display:flex;flex-direction:column;gap:24px;min-width:0;text-align:right}
body.ap .ap-side{word-break:normal!important;overflow:visible!important;width:auto!important;max-width:none!important;min-width:0!important;padding:0!important;background:transparent!important}
.ap-top:empty{display:none}

/* ---------- 7. Cards (block.tpl / module.tpl / block-tabs.tpl) ---------- */
.ap-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;color:var(--text)}
[data-theme="light"] .ap-card,[data-theme="light"] .ap-hdr{box-shadow:0 1px 2px rgba(15,30,50,.05)}
.ap-card-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;min-height:56px;border-bottom:1px solid var(--line);flex-wrap:nowrap}
.ap-tabcard .ap-card-h{flex-wrap:wrap}
.ap-card-t{flex:1 1 auto;min-width:0}
.ap-card-t{margin:0;font-size:15px;font-weight:700;color:var(--head);line-height:1.5}
.ap-card-t a{color:var(--head)}
.ap-card-b{padding:0;color:var(--text);text-align:right}
.hide_block_btn{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;padding:0!important;border-radius:8px;border:1px solid var(--line)!important;background:var(--raise)!important;color:var(--muted)!important;font-size:18px!important;line-height:1;cursor:pointer;margin-inline-start:auto}
.hide_block_btn:hover{color:var(--head)!important}
.show_block_btn{height:34px;padding:0 12px;border-radius:17px;border:1px dashed var(--line-strong)!important;background:transparent;color:var(--muted)!important;cursor:pointer;font:inherit;font-size:13px}
.show_block_btn::after{content:" إظهار صندوق"}
.ap-tabs{display:flex;gap:4px;background:var(--bg);padding:4px;border-radius:10px}
.ap-tab{border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;padding:0 14px;height:34px;border-radius:7px;cursor:pointer;white-space:nowrap}
.ap-tab:hover{color:var(--head)}
.ap-tab.is-on{background:var(--on);color:var(--head);font-weight:700}
.ap-pane[hidden]{display:none}
.ap-guest{margin-top:20px}
.ap-guest-form{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;padding:18px}
body.ap .ap-guest-form input{height:44px;width:220px}

/* ---------- 8. Forms (whole site) ---------- */
body.ap input[type=text],body.ap input[type=password],body.ap input[type=search],body.ap input[type=email],body.ap input[type=number],body.ap input[type=url],body.ap input:not([type]),body.ap select,body.ap textarea{
  background:var(--input-bg);color:var(--text);border:1px solid var(--line-strong);border-radius:var(--radius-sm);font-family:inherit;font-size:14px}
body.ap input[type=text],body.ap input[type=password],body.ap input[type=search],body.ap input[type=email],body.ap input[type=number],body.ap input[type=url],body.ap select{height:40px;padding:0 12px;max-width:100%}
body.ap textarea{padding:10px 12px;max-width:100%}
body.ap input:focus,body.ap select:focus,body.ap textarea:focus{border-color:var(--focus);outline:none}
body.ap input::placeholder,body.ap textarea::placeholder{color:var(--muted)}
body.ap input[type=submit],body.ap input[type=button],body.ap button.btn,body.ap .btn{background:var(--accent);color:var(--on-accent);border:0;border-radius:var(--radius-sm);height:40px;padding:0 16px;font:inherit;font-weight:700;cursor:pointer;width:auto}
body.ap input[type=submit]:hover,body.ap input[type=button]:hover{background:var(--accent-h)}
body.ap input[type=checkbox],body.ap input[type=radio]{accent-color:var(--accent);appearance:auto;-webkit-appearance:auto;width:18px;height:18px;background:none}
body.ap label{color:var(--text2)}

/* ---------- 9. Inner pages: legacy tables get the new colours ---------- */
body.ap .ap-content table{color:var(--text)}
body.ap td.block,body.ap td.header,body.ap td.module,body.ap th{background:var(--raise)!important;color:var(--head)!important;border-color:var(--line)!important}
body.ap td.lista,body.ap td.blocklist,body.ap table.lista{background:var(--card);color:var(--text);border-color:var(--line)}
body.ap table.lista td{border-color:var(--line-soft)}
body.ap td.lista a,body.ap td.blocklist a{color:var(--link)}
body.ap .ap-content h1,body.ap .ap-content h2,body.ap .ap-content h3{color:var(--head)}
body.ap hr{border:0;border-top:1px solid var(--line)}
body.ap div.pagination a,body.ap div.pagination span{border-radius:8px}

/* ---------- 10. Home blocks ---------- */
/* magazine (Last_tor_Mgz_*) — grid of posters, built only with CSS over the AJAX output */
#containera,#container{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px 16px;padding:18px;text-align:right}
#containera>br,#container>br,#containera>form,#container>form,#containera>.total,#container>.total,#loadinga,#loading{display:none!important}
#containera>.paginationa,#container>.pagination{grid-column:1/-1;margin:0}
#containera>.paginationa:first-of-type,#container>.pagination:first-of-type{display:none}
body.ap div.Mgz{width:auto!important;height:auto!important;margin:0!important;display:flex;flex-direction:column;gap:6px;min-width:0;float:none!important;background:none!important;border:0!important;text-align:right}
body.ap img.Mgz{width:100%!important;height:auto!important;aspect-ratio:2/3;object-fit:cover;border-radius:10px;border:1px solid var(--line);display:block;transition:transform .15s ease,border-color .15s ease;max-width:none}
body.ap div.Mgz:hover img.Mgz{transform:translateY(-3px);border-color:var(--focus)}
body.ap div.Mgz ul.enlarge{margin:0;padding:0;list-style:none;background:none!important;border:0!important;width:auto!important;height:auto!important}
body.ap div.Mgz ul.enlarge li{margin:0;padding:0!important;list-style:none;display:block;width:auto!important;height:auto!important;background:none!important;border:0!important;box-shadow:none!important}
body.ap div.Mgz ul.enlarge span{display:none!important}
body.ap div.Mitem,body.ap div.Mitemsize,body.ap div.Mitemfilename{margin:0;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.6;height:auto;text-align:right}
body.ap div.Mitemfilename{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12.5px;line-height:1.5;min-height:3em;padding:0}
body.ap div.Mitemfilename a{color:var(--head)!important;font-weight:700}
body.ap div.Mitem a{color:var(--text2)}
body.ap .Mseed{color:var(--seed)!important;font-weight:700}
body.ap .Mleech{color:var(--leech)!important;font-weight:700}
body.ap .free,body.ap .seedbox{font-size:10.5px;border-radius:5px;padding:0 6px;margin-inline-start:6px;background:var(--on);color:var(--head)}
/* pagination of the magazine */
#containera .paginationa ul,#container .pagination ul{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:0;padding:0}
body.ap #containera .paginationa ul li,body.ap #container .pagination ul li{list-style:none;min-width:40px;height:40px;line-height:40px;padding:0 10px;border-radius:9px;border:1px solid var(--line);background:var(--sunk)!important;color:var(--text2)!important;font-size:13px;text-align:center;cursor:pointer;float:none;margin:0}
body.ap #containera .paginationa ul li:hover,body.ap #container .pagination ul li:hover{border-color:var(--focus);color:var(--head)!important}
body.ap #containera .paginationa ul li[style],body.ap #container .pagination ul li[style]{background:var(--on)!important;border-color:var(--on-line);color:var(--head)!important;font-weight:700}
body.ap #containera .paginationa ul li.inactive,body.ap #container .pagination ul li.inactive{opacity:.45;cursor:default}
/* vertical magazine view (members who chose it) */
body.ap #Imaz_table_v,body.ap #Emaz_table_v{color:var(--text)!important;background:var(--card)}
body.ap #Imaz_table_v td[style*="rgb(18, 132, 192)"],body.ap #Emaz_table_v td[style*="rgb(18, 132, 192)"]{background:var(--raise)!important}

/* top seeded / top voted tables */
body.ap table.topseeded{width:100%;border-collapse:collapse;font-size:13px;margin:0;background:transparent}
body.ap .topseeded tr:nth-child(odd),body.ap .topseeded tr:nth-child(even),body.ap .latest_comments tr:nth-child(odd),body.ap .latest_comments tr:nth-child(even){background:transparent}
body.ap table.topseeded td{padding:11px 14px;border-bottom:1px solid var(--line-soft);color:var(--text2);text-align:right;vertical-align:middle}
body.ap table.topseeded tr:last-child td{border-bottom:0}
body.ap table.topseeded tr:hover td{background:var(--raise)}
body.ap table.topseeded td:first-child{width:44px;text-align:center;color:var(--muted);font-weight:700;white-space:nowrap}
body.ap table.topseeded td:nth-child(2) a{color:var(--head);font-weight:700}
body.ap table.topseeded td:nth-child(3){white-space:nowrap;direction:ltr;text-align:right;color:var(--muted)}
body.ap td.topgreen a,body.ap td.topgreen a:link,body.ap td.topgreen a:visited{color:var(--seed)!important;font-weight:700}
body.ap td.topred a,body.ap td.topred a:link,body.ap td.topred a:visited{color:var(--leech)!important;font-weight:700}
body.ap .ap-pane>span:first-child{display:block;padding:12px 18px 0;color:var(--muted);font-size:12.5px;font-weight:400!important}

/* top uploaders */
body.ap .top_users1{background:transparent!important;display:grid;grid-template-columns:1fr auto;align-items:stretch;text-align:right}
body.ap .top_users7,body.ap .top_users2{background:transparent!important;border:0!important;border-bottom:1px solid var(--line-soft)!important;padding:10px 18px!important;display:flex;align-items:center;gap:6px;margin:0;width:auto!important;min-height:48px}
body.ap .top_users7{font-weight:700;color:var(--head)}
body.ap .top_users7 img{width:16px;height:24px}
body.ap .top_users7 img:last-child{display:none}
body.ap .top_users2{direction:ltr;text-align:left;color:var(--seed);font-weight:700;font-size:13px;white-space:nowrap}
body.ap .top_users3{display:none}

/* forum topics */
body.ap td.forum{background:transparent!important;border:0!important;border-bottom:1px solid var(--line-soft)!important;padding:12px 18px;text-align:right;color:var(--muted);font-size:12.5px;line-height:1.7}
body.ap td.forum b a{color:var(--head);font-size:13.5px}
body.ap td.forum a{color:var(--link)}
body.ap .ap-side table{margin:0}

/* latest comments (staff) */
body.ap table.latest_comments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
body.ap table.latest_comments tbody{display:contents}
body.ap table.latest_comments tr{display:block;border-bottom:1px solid var(--line-soft);border-inline-start:1px solid var(--line-soft)}
body.ap table.latest_comments td{display:block;padding:12px 18px;text-align:right;font-size:13px;line-height:1.7}
body.ap table.latest_comments a{color:var(--text2)}
body.ap table.latest_comments a:hover{color:var(--head)}

/* news */
body.ap .ap-card[id^="Block"] .news_title,body.ap .ap-card .newstitle{color:var(--head)}

/* shoutbox */
body.ap #chat{background:transparent!important;border:0!important;margin:0;padding:0;width:auto;height:auto;overflow:visible}/* main.css gives #chat height:180px+overflow:auto -> 2nd scrollbar; only #chatoutput scrolls */
body.ap #chatoutput{background:transparent!important;border:0!important;max-height:240px;overflow-y:auto;padding:4px 0;margin:0;width:auto;height:auto}
body.ap #chatoutput ul{margin:0;padding:0;list-style:none;background:transparent!important;line-height:1.7}
body.ap #chatoutput ul li{list-style:none;padding:10px 18px 0;margin:0;background:none!important;text-align:right}
body.ap #chatoutput ul li span.name,body.ap #chatoutput ul li:hover span.name{background:none!important;color:var(--muted);font-size:11.5px;padding:0;display:block}
body.ap #chatoutput ul li span.name a{font-weight:700;font-size:13px}
body.ap #chatoutput .lista{display:none}
body.ap div.chatoutput{background:transparent!important;border:0!important;border-bottom:1px solid var(--line-soft)!important;color:var(--text2)!important;padding:2px 18px 10px;margin:0;text-align:right;font-size:13.5px;line-height:1.7;width:auto}
body.ap div.chatoutput a,body.ap div.chatoutput a:link,body.ap div.chatoutput a:visited{color:var(--link)}
body.ap .chat_reply_text{background:var(--sunk);border:1px solid var(--line);color:var(--text2);border-radius:8px;padding:6px 10px}
body.ap .chat_reply_btn,body.ap .chat_quote_btn{opacity:.75;vertical-align:middle}
body.ap #shoutheader{background:var(--sunk)!important;border:0!important;border-top:1px solid var(--line)!important;padding:12px 18px;margin:0;width:auto;text-align:right}
body.ap #chatForm{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body.ap #chatForm>br{display:none}
body.ap #chatbarText{flex:1 1 220px;width:auto!important;height:44px;max-width:none}
body.ap #chatForm input#submit{height:44px}
body.ap #chatForm img.form{width:24px;height:24px}
body.ap .chat_send_header{background:var(--raise);color:var(--text);border-radius:8px;max-width:none;flex-basis:100%}
body.ap table.smilies{width:auto;margin:0}
body.ap #chatForm>div{flex-basis:100%;overflow-x:auto}


/* ---------- fixes after the first live test (2026-11-04) ---------- */
/* system messages in the chat are written [color=black]: readable in both themes */
body.ap div.chatoutput font[color="black" i],body.ap div.chatoutput font[color="#000000" i],body.ap div.chatoutput font[color="#000" i],
body.ap div.chatoutput span[style*="color: black" i],body.ap div.chatoutput span[style*="color:black" i]{color:var(--head)!important}
/* magazine pagination: room above and below, no fixed height from the old css */
body.ap #containera>.paginationa,body.ap #container>.pagination{height:auto!important;line-height:normal!important;padding:8px 0 4px!important;margin:6px 0 0!important;float:none!important;width:auto!important}
body.ap #containera,body.ap #container{padding-bottom:22px}
body.ap #containera .paginationa ul,body.ap #container .pagination ul{float:none!important;height:auto!important}
/* forum topics block */
body.ap table.forum_topics{width:100%;border-collapse:collapse;margin:0}
body.ap table.forum_topics td.forum{display:block;padding:12px 18px!important;border:0!important;border-bottom:1px solid var(--line-soft)!important;text-align:right;color:var(--muted);font-size:12px;line-height:1.6}
body.ap table.forum_topics tr:last-child td.forum{border-bottom:0!important}
body.ap table.forum_topics tr:hover td.forum{background:var(--raise)!important}
body.ap table.forum_topics td.forum b{display:block;font-weight:700;margin-bottom:3px}
body.ap table.forum_topics td.forum b a{color:var(--head)!important;font-size:13.5px;font-weight:700;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.ap table.forum_topics td.forum b a:hover{color:var(--link)!important}
body.ap table.forum_topics td.forum>a{color:var(--link)!important;font-weight:400}
body.ap table.forum_topics td.forum br{display:none}


/* ---------- inner page: torrents list (torrent.list2.tpl) ---------- */
body.ap div.torrents_list{position:relative;text-align:right;padding:16px 18px 0}
body.ap .search-form{flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:10px!important;border:0!important;padding:0!important;margin:0 0 6px!important;background:none!important}
body.ap .search-form .search-row{display:flex;gap:10px;flex-wrap:wrap;margin:0;align-items:center}
body.ap .search-form .search-row:first-of-type{flex:1 1 260px}
body.ap #search_input_box{width:100%!important;height:42px!important}
body.ap .search-form select{height:42px!important;width:auto!important;min-width:120px}
body.ap .search-form .download-btn{height:42px;padding:0 22px;min-width:90px;max-width:none}
body.ap div.torrents_list>span[style*="position: absolute"]{position:static!important;display:inline-flex;gap:6px;align-items:center;margin:10px 0;color:var(--muted)}
body.ap span.rss{position:static;margin-inline-start:10px}
body.ap table.torList{width:100%;border-collapse:separate;border-spacing:0;margin:0}
body.ap table.torList>tbody>tr>td,body.ap table.torList>tr>td{padding:0 18px;text-align:right}
body.ap #torrents_list_p{width:100%;border-collapse:separate;border-spacing:0 10px}
body.ap #torrents_list_p td{padding:0}
body.ap .pager-right{padding:10px 0;text-align:right;color:var(--muted)}
body.ap .pager-right a,body.ap .pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 8px;margin:2px;border-radius:9px;border:1px solid var(--line);background:var(--sunk);color:var(--text2)}
body.ap .pager-right a:hover{border-color:var(--focus);color:var(--head)}
body.ap .file-list{gap:0}
body.ap .file-item{border:1px solid var(--line)!important;border-radius:12px!important;background:var(--sunk);padding:14px 16px!important;transition:border-color .15s}
body.ap .file-item:hover{border-color:var(--on-line)!important}
body.ap .file-header{gap:12px;margin-bottom:6px;align-items:flex-start}
body.ap .file-header .filename{font-size:15px;line-height:1.6;text-align:right;min-width:0;overflow-wrap:anywhere}
body.ap .file-header .filename a,body.ap .tor_link,body.ap .tor_free_link{color:var(--head)}
body.ap .file-header .filename a:hover .tor_link{color:var(--link)}
body.ap .file-header .download-btn{flex-shrink:0;height:36px;padding:0 16px;border-radius:9px;font-weight:700}
body.ap .file-meta{color:var(--muted)!important;font-size:13px;align-items:center;margin-bottom:4px}
body.ap .meta-group{flex-wrap:wrap;align-items:center;gap:6px 14px}
body.ap .meta-group .size{direction:ltr;unicode-bidi:isolate}
body.ap .meta-group .category a{color:var(--text2)!important}
body.ap .stats-group{gap:14px;font-weight:700;direction:rtl}body.ap .stats-group>span{direction:ltr;unicode-bidi:isolate}/* 2026-11-08: seeds on the right, leechers on the left (as in the rest of the site) */
body.ap .stats-group .green,body.ap .stats-group .green a{color:var(--seed)!important}
body.ap .stats-group .red,body.ap .stats-group .red a{color:var(--leech)!important}
body.ap .file-tags{gap:6px;margin-top:4px}
body.ap .file-tags .tag,body.ap .tag{background:var(--raise)!important;color:var(--text2)!important;border:1px solid var(--line);border-radius:7px;padding:1px 8px;font-size:12px}
body.ap .uploader-tab{background:var(--card)!important;border:1px solid var(--line)!important;border-radius:10px!important;box-shadow:var(--shadow)}
body.ap .uploader-tab .uploader-info{background:transparent!important}
body.ap .uploader-tab a{color:var(--text)!important;border-radius:6px}
body.ap .uploader-tab a:hover{background:var(--raise)!important}
@media (max-width:640px){
  body.ap div.torrents_list{padding:12px 12px 0}
  body.ap table.torList>tbody>tr>td,body.ap table.torList>tr>td{padding:0 12px}
  body.ap .search-form .search-row{width:100%}
  body.ap .search-form .search-row>*{width:100%!important;flex:none}
  body.ap .search-form .download-btn{width:100%}
  body.ap .file-header{flex-direction:row!important;align-items:flex-start!important}
  body.ap .file-header .download-btn{width:auto!important}
  body.ap .file-meta{flex-direction:column;align-items:flex-start}
}


/* =====================================================================
   Inner pages (pass 2, from the saved live pages)
   ===================================================================== */
/* card titles that contain an <h1> (torrent details) / long titles */
.ap-card-h{position:relative}
.ap-card-t:empty{display:none}
.ap-card-h h1{margin:0;flex:1 1 auto;min-width:0;font-size:16px;line-height:1.6;color:var(--head);text-align:right;overflow-wrap:anywhere}
.ap-card-h h1 a{color:var(--head)}
.ap-card-h h1 a[style*="position: absolute"]{position:static!important;margin-inline-start:8px}
.ap-card-b{overflow-x:auto}
.ap-card-b>table,.ap-card-b>form>table{margin:0}

/* old tables everywhere: one look */
body.ap .ap-main table.lista{border-collapse:collapse;background:transparent}
body.ap .ap-main td.header,body.ap .ap-main th{padding:10px 12px;font-weight:700;font-size:13px;border:0!important;border-bottom:1px solid var(--line)!important;text-align:right}
body.ap .ap-main td.lista,body.ap .ap-main td.blocklist{padding:9px 12px;border:0!important;border-bottom:1px solid var(--line-soft)!important;background:transparent!important;text-align:right}
body.ap .ap-main table.lista tr:hover>td.lista{background:var(--raise)!important}

/* log rows (deleted / added / modified): a coloured edge instead of a full pastel row */
body.ap td.deleted,body.ap td.added,body.ap td.modified{color:var(--text)!important;text-align:right;padding:9px 12px;border-bottom:1px solid var(--line-soft)}
body.ap td.deleted{background:color-mix(in srgb,#E5484D 14%,var(--card))!important}
body.ap td.added{background:color-mix(in srgb,#30A46C 16%,var(--card))!important}
body.ap td.modified{background:var(--card)!important}
body.ap tr>td.deleted:first-child{box-shadow:inset -3px 0 0 #E5484D}
body.ap tr>td.added:first-child{box-shadow:inset -3px 0 0 #30A46C}
body.ap tr>td.modified:first-child{box-shadow:inset -3px 0 0 var(--muted)}

/* pagers (span.pager / span.pagercurrent) */
body.ap span.pager a,body.ap span.pagercurrent{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 8px;margin:2px;border-radius:9px;border:1px solid var(--line);background:var(--sunk)!important;color:var(--text2)!important;font-weight:400}
body.ap span.pagercurrent{background:var(--on)!important;border-color:var(--on-line);color:var(--head)!important;font-weight:700}
body.ap span.pagercurrent a{color:var(--head)!important}
body.ap span.pager a:hover{border-color:var(--focus);color:var(--head)!important}

/* admin menu (left column of the admin pages) */
body.ap .mainbigL table.lista td.header{background:transparent!important;color:var(--muted)!important;font-size:12px;padding:14px 16px 6px;border:0!important}
body.ap .mainbigL table.lista td.lista{padding:0!important;border:0!important}
body.ap .mainbigL table.lista td.lista a{display:block;padding:8px 16px;color:var(--text2)!important;font-size:13px;border-radius:8px;margin:0 6px}
body.ap .mainbigL table.lista td.lista a:hover{background:var(--raise);color:var(--head)!important}
body.ap .mainbigL .ap-card-b{padding-bottom:10px}
.ap-layout:has(>.mainbigL){grid-template-columns:240px minmax(0,1fr)}
.ap-layout:has(>.mainbigL)>.mainbigL{order:-1}

/* profile / control-panel tabs (ul.tabs) */
body.ap ul.tabs{display:flex!important;flex-wrap:wrap;gap:6px;padding:14px 18px!important;margin:0!important;list-style:none;border:0!important;background:none!important;height:auto!important;justify-content:flex-start}
body.ap ul.tabs li{list-style:none;margin:0!important;padding:0!important;float:none!important;display:block;border:0!important;background:none!important}
body.ap ul.tabs li a,body.ap ul.tabs li a:link,body.ap ul.tabs li a:visited{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px!important;border-radius:18px!important;border:1px solid var(--line)!important;background:var(--raise)!important;color:var(--text2)!important;font-size:13px;font-weight:400;white-space:nowrap;margin:0!important;line-height:1!important}
body.ap ul.tabs li a:hover{border-color:var(--focus)!important;color:var(--head)!important}
body.ap ul.tabs li.tabs_active a,body.ap ul.tabs li.tabs_active a:link,body.ap ul.tabs li.tabs_active a:visited{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;font-weight:700}
body.ap ul.tabs .alert_counter{position:static!important;display:inline-block;min-width:18px;height:18px;line-height:18px;padding:0 5px;border-radius:9px;background:#F2A65A;color:#1A1006;font-size:11px;font-weight:700}

/* switch buttons (on / off) */
body.ap .on-btn,body.ap .off-btn{border-radius:8px;font-size:12px}

/* file inputs */
body.ap input[type=file]{width:auto;max-width:100%;height:auto;padding:6px;background:var(--input-bg)!important;color:var(--text2);border:1px dashed var(--line-strong);border-radius:var(--radius-sm)}
body.ap input[type=file]::file-selector-button{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:8px 14px;margin-inline-end:10px;font:inherit;cursor:pointer}

/* reports module (#UserReport + #AdminReport) */
body.ap #UserReport,body.ap #AdminReport{background:var(--card)!important;color:var(--text);border:1px solid var(--line);padding:0;width:auto;margin:0 18px;word-break:normal}
body.ap #UserReport{border-radius:12px 12px 0 0;margin-top:14px;border-bottom:0}
body.ap #AdminReport{border-radius:0 0 12px 12px;background:var(--sunk)!important;margin-bottom:0;margin-top:0;padding:10px 14px;display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
body.ap #UserReport form{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;padding:12px 14px;align-items:baseline}
body.ap #UserReport form>div{width:auto!important;display:block!important;text-align:right}
body.ap #UserReport form>div:nth-of-type(1){grid-row:span 5;font-weight:700;color:var(--muted);font-family:Tahoma,Arial,sans-serif}
body.ap #UserReport form>div:nth-of-type(2) a{font-weight:700;color:var(--head)}
body.ap #UserReport form>div:nth-of-type(4){color:var(--leech);font-size:12px}
body.ap #AdminReport>div{width:auto!important}
body.ap #AdminReport #AdminName{display:flex!important;gap:8px;align-items:center;margin-inline-start:auto}
body.ap #AdminReport #AdminName br{display:none}
body.ap #AdminReport input[type=text]{width:220px!important}
body.ap .ap-module .ap-card-b>div[style*="background: #DEDEDE"]{background:transparent!important;padding-bottom:16px}

@media (max-width:1040px){
  .ap-layout:has(>.mainbigL){grid-template-columns:minmax(0,1fr)}
  body.ap .mainbigL .ap-card-b{max-height:none}
  body.ap .mainbigL table.lista tbody{display:flex;flex-wrap:wrap;gap:4px;padding:8px}
  body.ap .mainbigL table.lista tr{display:contents}
  body.ap .mainbigL table.lista td.header{width:100%;display:block}
  body.ap .mainbigL table.lista td.lista{display:block}
  body.ap .mainbigL table.lista td.lista a{border:1px solid var(--line);margin:0}
}
@media (max-width:640px){
  body.ap ul.tabs{flex-wrap:nowrap;overflow-x:auto;padding:12px!important;scrollbar-width:none}
  body.ap #UserReport,body.ap #AdminReport{margin-left:12px;margin-right:12px}
  body.ap #AdminReport #AdminName{margin-inline-start:0;width:100%!important}
  body.ap #AdminReport input[type=text]{flex:1;width:auto!important}
}


/* phones: form tables (label | field) become one column; data tables scroll inside their card */
@media (max-width:640px){
  body.ap .ap-main table:has(textarea,input[type=text],input[type=password],input[type=file],input[type=email],select):not(:has(table)){display:block;width:100%!important}
  body.ap .ap-main table:has(textarea,input[type=text],input[type=password],input[type=file],input[type=email],select):not(:has(table))>tbody,
  body.ap .ap-main table:has(textarea,input[type=text],input[type=password],input[type=file],input[type=email],select):not(:has(table))>tbody>tr,
  body.ap .ap-main table:has(textarea,input[type=text],input[type=password],input[type=file],input[type=email],select):not(:has(table))>tbody>tr>td{display:block;width:auto!important;text-align:right!important}
  body.ap .ap-main table:has(textarea,input[type=text],input[type=password],input[type=file],input[type=email],select):not(:has(table))>tbody>tr>td{padding:6px 12px!important;border:0!important}
  body.ap .ap-main table:has(textarea,input[type=text],input[type=password],input[type=file],input[type=email],select):not(:has(table))>tbody>tr{border-bottom:1px solid var(--line-soft);padding:6px 0}
  body.ap .ap-main textarea,body.ap .ap-main input[type=text],body.ap .ap-main input[type=password],body.ap .ap-main input[type=email],body.ap .ap-main select{width:100%!important;max-width:100%!important}
  body.ap .ap-main input[type=file]{width:100%!important}
  body.ap .ap-main img{max-width:100%!important;height:auto!important}
  body.ap .ap-main .ap-card-b{overflow-x:auto;-webkit-overflow-scrolling:touch}
}


/* torrent details: info row (category, size, seeders, date, download) */
body.ap .tor-row{flex-wrap:wrap;gap:8px;justify-content:flex-start;padding:12px 18px}
body.ap .tor-row:first-of-type .tor-item:not(:empty){background:var(--raise);border:1px solid var(--line);border-radius:9px;padding:6px 12px;white-space:nowrap}
body.ap .tor-row:first-of-type .tor-item:has(.btn){background:none;border:0;padding:0;margin-inline-start:auto}
body.ap .tor-row:first-of-type .tor-item:has(#myTopnav):not(:has(.btn)){display:contents}
body.ap .tor-item a,body.ap .tor-item a:visited{color:var(--text)}
body.ap .tor-item .green,body.ap .tor-item .green a{color:var(--seed)!important}
body.ap .tor-item .red,body.ap .tor-item .red a{color:var(--leech)!important}
body.ap .tor-item .btn{height:40px}
body.ap .Topnav{background:var(--card)!important;color:var(--text);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:12px}
/* magazines (movies / series / anime / turkish listing) */
body.ap div.listing_div1{display:inline-flex!important;flex-direction:column;vertical-align:top;width:200px!important;margin:8px!important;text-align:center}
body.ap div.listing_div1>div:first-child{padding:0!important}
body.ap div.listing_div1+br,body.ap div.listing_div1+br+br{display:none}
body.ap .tor-item{unicode-bidi:plaintext}
body.ap img.listing_poster{width:100%!important;height:auto!important;aspect-ratio:2/3;object-fit:cover;border-radius:10px;padding:0!important;box-shadow:none!important;border:1px solid var(--line);transition:transform .15s,border-color .15s}
body.ap div.listing_div1:hover img.listing_poster{transform:translateY(-3px);border-color:var(--focus)}
body.ap .listing_div2{padding:6px 2px 0;font-size:13px;line-height:1.6}
body.ap .listing_div2 a:first-child{color:var(--head)!important;font-weight:700}
body.ap .listing_div2 a[style*="color: black"]{color:var(--muted)!important;font-size:12px}
body.ap form.torrent_form{display:flex;flex-direction:column;gap:10px;align-items:center;padding:12px 18px}
body.ap #search_input_box_listing{width:min(520px,100%)!important}
@media (max-width:640px){
  body.ap div.listing_div1{width:calc(50% - 14px)!important;margin:6px!important}
  body.ap .tor-row{padding:10px 12px}
  body.ap .tor-row:first-of-type .tor-item:has(.btn){width:100%;margin:4px 0 0}
  body.ap .tor-row:first-of-type .tor-item .btn{width:100%}
}


/* =====================================================================
   Torrent details (torrent.details.tpl, rewritten for 2026)
   ===================================================================== */
body.ap .td{display:flex;flex-direction:column;gap:18px;padding:18px;text-align:right}
body.ap .td div,body.ap .td span,body.ap .td label{text-align:inherit}
body.ap .td-up-info,body.ap .td-cmt-main,body.ap .td-cmt-head{text-align:right}
body.ap .td-k{display:block;font-size:11.5px;color:var(--muted);margin-bottom:2px;line-height:1.4}
body.ap .td-ltr{direction:ltr;unicode-bidi:isolate}
body.ap .td-h{margin:0 0 12px;font-size:15px;font-weight:700;color:var(--head)}
body.ap .td-tags:empty{display:none}
body.ap .td-tags{display:flex;flex-wrap:wrap;gap:6px}
body.ap .td-tags .tag,body.ap .td-tags span,body.ap .td-tags a{border-radius:7px}
/* facts + download */
body.ap .td-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:14px}
body.ap .td-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
body.ap .td-fact{background:var(--card);border:1px solid var(--line-soft);border-radius:10px;padding:8px 12px;min-width:0}
body.ap .td-v{display:block;font-size:14px;font-weight:700;color:var(--head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ap .td-v a{color:var(--head)!important}
body.ap .td-peers .green,body.ap .td-peers .green a{color:var(--seed)!important}
body.ap .td-peers .red,body.ap .td-peers .red a{color:var(--leech)!important;margin-inline-start:10px}
body.ap .td-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch;min-width:210px}
body.ap .td-download a{display:block}
body.ap .td-download .btn,body.ap .td-download button{width:100%!important;max-width:none!important;height:48px;font-size:15px;border-radius:12px}
body.ap .td-small{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap}
body.ap .td-small:empty{display:none}
body.ap .td-reseed{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:9px;background:var(--gold-bg);color:var(--gold)!important;font-weight:700;font-size:13px}
/* uploader */
body.ap .td-uploader{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px solid var(--line);border-radius:12px;padding:12px 14px}
body.ap .td-up-avatar img{width:56px!important;height:56px!important;border-radius:12px;object-fit:cover;display:block}
body.ap .td-up-info{flex:1 1 160px;min-width:0}
body.ap .td-up-info .uploader-name{font-weight:700;font-size:15px;cursor:pointer}
body.ap .td-up-info .custom_title{display:block;font-size:12px;color:var(--muted)}
body.ap .td-thanks{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body.ap .td-thanks form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0}
body.ap .td-thanks .thanks_btn{height:40px;border-radius:10px}
body.ap .td-thanks .thank{color:var(--muted);font-size:13px}
body.ap .td-mod:empty{display:none}
body.ap .td-mod{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;padding:10px;border:1px dashed var(--line-strong);border-radius:12px}
/* description */
body.ap .td-desc{border-top:1px solid var(--line);padding-top:18px}
body.ap .td-links{display:flex;flex-direction:column;gap:10px;align-items:center;margin-bottom:12px}
body.ap .td-icons{display:flex;gap:10px;align-items:center;justify-content:center}
body.ap .td-icons:empty,body.ap .td-links:empty{display:none}
body.ap .td-icons img{height:28px;width:auto;border-radius:6px}
body.ap .td-desc-body{text-align:center;line-height:1.9;overflow-wrap:anywhere;max-width:900px;margin:0 auto}
body.ap .td-desc-body img{max-width:100%!important;height:auto!important;border-radius:8px}
/* files + comment button */
body.ap .td-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:16px}
body.ap .td-bar:empty{display:none}
body.ap .td-btn,body.ap .td-btn-ghost{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px;border-radius:10px;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
body.ap .td-btn{background:var(--accent);color:#fff!important;border:0}
body.ap .td-btn-ghost{background:var(--raise);color:var(--text)!important;border:1px solid var(--line)}
body.ap .td-count{font-weight:400;color:var(--muted);font-size:12.5px}
body.ap .td-files{border:1px solid var(--line);border-radius:12px;overflow:auto;max-height:420px}
body.ap .td-files table{width:100%;border-collapse:collapse;font-size:13px}
body.ap .td-files th{position:sticky;top:0;background:var(--raise)!important;text-align:right;padding:9px 12px}
body.ap .td-files td{padding:8px 12px;border-bottom:1px solid var(--line-soft);text-align:right}
body.ap .td-files .td-fname{direction:ltr;text-align:left;overflow-wrap:anywhere}
body.ap .td-section{border-top:1px solid var(--line);padding-top:16px}
body.ap .td-section .file-list{display:flex;flex-direction:column;gap:10px}
/* comments */
body.ap .td-comments{display:flex;flex-direction:column;gap:12px}
body.ap .td-comments .td-h{margin-bottom:0}
body.ap .td-cmt{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:14px}
body.ap .td-cmt-avatar img{width:56px!important;height:56px!important;border-radius:12px;object-fit:cover;display:block}
body.ap .td-cmt-head{display:flex;align-items:center;gap:8px 14px;flex-wrap:nowrap;border-bottom:1px solid var(--line-soft);padding-bottom:8px;margin-bottom:8px}
body.ap .td-cmt-who{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
body.ap .td-cmt-user{font-weight:700;font-size:14px}
body.ap .td-cmt-who .custom_title{font-size:11.5px;color:var(--muted)}
body.ap .td-cmt-date{font-size:12px;color:var(--muted);direction:ltr;unicode-bidi:isolate;white-space:nowrap}
body.ap .td-cmt-tools{display:inline-flex;gap:6px;align-items:center;flex-wrap:nowrap;white-space:nowrap}
body.ap .td-cmt-tools *{display:inline-flex!important;align-items:center;margin:0!important;float:none!important;width:auto!important}
body.ap .td-cmt-tools br{display:none!important}
body.ap .td-cmt-tools img{width:16px;height:16px}
body.ap .comment_voting{display:inline-flex;align-items:center;gap:6px;width:auto!important;margin:0!important;flex:0 0 auto}
body.ap .comment_voting button{width:22px!important;height:22px!important;min-width:0!important;padding:0!important;background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;border:0!important;background-color:transparent!important;opacity:.85}
body.ap .comment_voting .vote-count{min-width:16px;text-align:center;font-size:13px;color:var(--text2)}
body.ap .td-cmt-text,body.ap .td-cmt-text div,body.ap .td-cmt-text p{text-align:right!important}
body.ap .td-cmt-text{line-height:1.8;overflow-wrap:anywhere;color:var(--text)}
body.ap .td-cmt-text img{max-width:100%!important;height:auto!important}
body.ap .td-cmt-text .quote,body.ap .td-cmt-text blockquote,body.ap .td-cmt-text div[style*="border"]{background:var(--card)!important;border:0!important;border-inline-start:3px solid var(--on-line)!important;border-radius:8px;padding:8px 12px!important;margin:6px 0!important;color:var(--text2)!important;width:auto!important}
body.ap .td-cmt-text{min-height:0!important;padding:0!important;border:0!important;margin:0!important;background:none!important}
body.ap .td-cmt .signature:empty{display:none}
body.ap .td-cmt .signature{margin-top:8px;padding-top:8px;border-top:1px dashed var(--line-soft);font-size:12px;color:var(--muted)}
body.ap .td-cmt-show{background:var(--raise);color:var(--text2);border:1px solid var(--line);border-radius:9px;padding:8px 12px;font:inherit;font-size:13px;cursor:pointer}
@media (max-width:760px){
  body.ap .td{padding:12px;gap:14px}
  body.ap .td-hero{grid-template-columns:minmax(0,1fr);padding:12px}
  body.ap .td-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.ap .td-actions{min-width:0;width:auto}
  body.ap .td-uploader{gap:10px}
  body.ap .td-thanks{width:100%}
  body.ap .td-thanks .thanks_btn{flex:0 0 auto}
  body.ap .td-cmt{grid-template-columns:44px minmax(0,1fr);gap:10px;padding:12px}
  body.ap .td-cmt-avatar img{width:44px!important;height:44px!important;border-radius:10px}
  body.ap .td-cmt-head{flex-wrap:wrap}
  body.ap .td-cmt-who{flex-basis:100%}
  body.ap .td-cmt-head>*:not(.td-cmt-who){flex:0 0 auto}
  body.ap .td-bar>*{flex:1 1 auto;justify-content:center}
}


/* ---------- torrent details — round 2: buttons, pills, report dialog ---------- */
/* one main colour for the main action only; the rest are quieter */
body.ap .td .thanks_btn{background:color-mix(in srgb,var(--seed) 20%,transparent)!important;color:var(--seed)!important;border:1px solid color-mix(in srgb,var(--seed) 65%,transparent)!important;min-width:0!important;font-weight:700}
body.ap .td .thanks_btn:disabled{opacity:.55}
body.ap .td .thanks_btn:not(:disabled):hover{background:color-mix(in srgb,var(--seed) 24%,transparent)!important}
body.ap .td .td-btn{background:transparent!important;color:var(--link)!important;border:1px solid var(--on-line)!important}
body.ap .td .td-btn:hover{background:var(--on)!important;color:var(--head)!important}
body.ap .td-section .file-header .download-btn{background:transparent!important;color:var(--link)!important;border:1px solid var(--on-line)!important;height:34px;padding:0 14px;display:inline-flex;align-items:center;font-size:13px}
body.ap .td-section .file-header .download-btn:hover{background:var(--on)!important;color:var(--head)!important}
body.ap .td-btn-danger{background:#E5484D!important;color:#fff!important;border:0!important;border-radius:10px!important;height:42px!important;padding:0 20px!important;font:inherit!important;font-size:14px!important;font-weight:700!important;cursor:pointer;min-width:0!important;width:auto!important}
body.ap .td-btn-danger:hover{background:#D13438!important}
/* staff tools: small, neutral */
body.ap .td-mod form{display:inline-flex;margin:0}
body.ap .td-mod input[type=submit]{height:32px!important;padding:0 12px!important;font-size:12.5px!important;font-weight:400!important;background:transparent!important;color:var(--text2)!important;border:1px solid var(--line-strong)!important;border-radius:8px!important;min-width:0!important}
body.ap .td-mod input[type=submit]:hover{border-color:var(--focus)!important;color:var(--head)!important}
body.ap .td-mod a{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;border:1px solid var(--line);background:var(--card)}
body.ap .td-mod a:hover{border-color:var(--focus)}
body.ap .td-mod img{width:16px!important;height:16px!important}
body.ap .td-mod br{display:none}
/* pills: favourite / vote / reseed / report */
body.ap .td-small{display:flex;gap:8px;justify-content:center}
body.ap .td-small>span,body.ap .td-small>a,body.ap .td-small>button{flex:1 1 0;max-width:72px}
body.ap .td .small-btn.wish,body.ap .td .small-btn.unwish,body.ap .td .small-btn.vote,body.ap .td .small-btn.already_voted,body.ap .td-pill{
  display:inline-flex!important;align-items:center;justify-content:center;gap:6px;width:100%;height:36px!important;padding:0 12px!important;border-radius:18px!important;
  background:var(--card)!important;border:1px solid var(--line)!important;color:var(--text2)!important;font:inherit;font-size:12.5px!important;font-weight:400;cursor:pointer;white-space:nowrap;vertical-align:middle;min-width:0!important;line-height:1}
body.ap .td .small-btn.wish:hover,body.ap .td .small-btn.vote:hover,body.ap .td-pill:hover{border-color:var(--focus)!important;color:var(--head)!important}
body.ap .td .small-btn::before,body.ap .td-pill::before{content:"";width:16px;height:16px;flex:0 0 16px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
body.ap .td .small-btn.wish{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 20.5s-7.4-4.5-9.4-9C1.1 8.1 3.3 4.5 6.9 4.5c2.1 0 3.7 1.1 5.1 2.9 1.4-1.8 3-2.9 5.1-2.9 3.6 0 5.8 3.6 4.3 7-2 4.5-9.4 9-9.4 9z'/%3E%3C/svg%3E")}
body.ap .td .small-btn.unwish{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 20.5s-7.4-4.5-9.4-9C1.1 8.1 3.3 4.5 6.9 4.5c2.1 0 3.7 1.1 5.1 2.9 1.4-1.8 3-2.9 5.1-2.9 3.6 0 5.8 3.6 4.3 7-2 4.5-9.4 9-9.4 9z'/%3E%3C/svg%3E");color:#E5484D!important;border-color:color-mix(in srgb,#E5484D 45%,transparent)!important;background:color-mix(in srgb,#E5484D 10%,var(--card))!important}
body.ap .td .small-btn.vote{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M7 10v11M15 5.9 14 10h5.8a2 2 0 0 1 1.9 2.6l-2.3 8a2 2 0 0 1-1.9 1.4H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.8a2 2 0 0 0 1.8-1.1L12 2a3.1 3.1 0 0 1 3 3.9z'/%3E%3C/svg%3E")}
body.ap .td .small-btn.already_voted{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M7 10v11M15 5.9 14 10h5.8a2 2 0 0 1 1.9 2.6l-2.3 8a2 2 0 0 1-1.9 1.4H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.8a2 2 0 0 0 1.8-1.1L12 2a3.1 3.1 0 0 1 3 3.9z'/%3E%3C/svg%3E");color:var(--gold)!important;border-color:color-mix(in srgb,var(--gold) 45%,transparent)!important;background:var(--gold-bg)!important;cursor:default}
body.ap .td-pill-reseed{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 4v11M7.5 10.5 12 15l4.5-4.5M5 20h14'/%3E%3C/svg%3E");color:var(--gold)!important}
body.ap .td-pill-report{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M5 21V4h10.5l-1.6 4 1.6 4H5'/%3E%3C/svg%3E")}
body.ap .td-pill-report:hover{color:#E5484D!important;border-color:color-mix(in srgb,#E5484D 50%,transparent)!important}
/* report dialog */
body.ap #apConfirm.td-modal,body.ap #myTopnav.td-modal{position:fixed!important;inset:0!important;width:auto!important;height:auto!important;z-index:120!important;background:none!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow-y:auto!important;top:0!important;right:0!important;color:var(--text)}
body.ap .td-modal-bg{position:fixed;inset:0;background:rgba(4,10,16,.65)}
body.ap .td-modal-box{position:relative;width:min(440px,calc(100% - 28px));margin:12vh auto 24px;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:18px;text-align:right!important}
body.ap .td-modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
body.ap .td-modal-head h3{margin:0;font-size:16px;color:var(--head)}
body.ap .td-modal .td-modal-x{position:static!important;width:36px;height:36px;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;font-size:24px!important;line-height:1!important;border-radius:9px;border:1px solid var(--line);background:var(--raise);color:var(--text2)!important;cursor:pointer}
body.ap .td-report-form fieldset{border:0;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:6px}
body.ap .td-report-form legend{font-size:12.5px;color:var(--muted);margin-bottom:6px;padding:0}
body.ap .td-opt,body.ap .td-opt-noseed{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--sunk);cursor:pointer;color:var(--text)!important;font-size:14px}
body.ap .td-opt:has(input:checked),body.ap .td-opt-noseed:has(input:checked){border-color:var(--focus);background:var(--on)}
body.ap .td-opt-noseed:not(:has(input)){display:none}
body.ap .td-opt-noseed input{order:-1}
body.ap .td-opt-noseed label{color:var(--text)!important;cursor:pointer;flex:1}
body.ap .td-report-label{display:block;font-size:12.5px;color:var(--muted)!important;margin-bottom:6px}
body.ap .td-report-form textarea{width:100%!important;min-height:84px;resize:vertical}
body.ap .td-modal-foot{display:flex;gap:10px;justify-content:flex-start;margin-top:14px;flex-direction:row-reverse}
@media (max-width:760px){
  body.ap .td-modal-box{margin-top:8vh}
}


/* icon-only action buttons + tooltip (data-tip) */
body.ap .td .small-btn.wish,body.ap .td .small-btn.unwish,body.ap .td .small-btn.vote,body.ap .td .small-btn.already_voted,body.ap .td-pill{height:40px!important;padding:0!important;border-radius:12px!important}
body.ap .td .small-btn::before,body.ap .td-pill::before{width:20px;height:20px;flex-basis:20px}
body.ap .td-tip{position:relative}
body.ap .td-tip::after{content:attr(data-tip);position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%,-4px);background:var(--text);color:var(--bg);font-size:12px;font-weight:400;line-height:1.4;padding:6px 10px;border-radius:8px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;z-index:30;box-shadow:var(--shadow)}
body.ap .td-tip:not(:hover):not(:focus-visible)::after{display:none}/* 2026-11-08: hidden tooltips took space (83px horizontal scroll) */
body.ap .td-tip:hover::after,body.ap .td-tip:focus-visible::after{opacity:1;transform:translate(-50%,0)}
body.ap .td-tip[data-tip=""]::after{display:none}
/* the buttons at the two ends: keep the tooltip inside the page */
body.ap .td-small>:first-child .td-tip::after,body.ap .td-small>.td-tip:first-child::after{left:auto;right:0;transform:translate(0,-4px)}
body.ap .td-small>.td-tip:last-of-type::after,body.ap .td-small>:last-child .td-tip::after{left:0;right:auto;transform:translate(0,-4px)}
body.ap .td-small .td-tip:hover::after{transform:translate(var(--tx,-50%),0)}
body.ap .td-small>:first-child .td-tip:hover::after,body.ap .td-small>.td-tip:first-child:hover::after,body.ap .td-small>.td-tip:last-of-type:hover::after,body.ap .td-small>:last-child .td-tip:hover::after{transform:translate(0,0)}
body.ap .td-actions{width:240px}


body.ap .td-confirm{width:min(400px,calc(100% - 28px));margin-top:22vh}
body.ap .td-confirm p{margin:0 0 4px;color:var(--text2);line-height:1.8;text-align:right}
body.ap .td-btn-gold{background:var(--gold)!important;color:#1A1300!important;border:0!important;border-radius:10px!important;height:42px;padding:0 20px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
[data-theme="light"] body.ap .td-btn-gold{color:#fff!important}
body.ap .td-btn-gold:hover{filter:brightness(1.08)}


/* ---------- system messages (success.tpl / error.tpl / information.tpl) ---------- */
.ap-card:has(>.ap-card-b>.ap-msg)>.ap-card-h{display:none}
.ap-card:has(>.ap-card-b>.ap-msg){max-width:640px;width:100%;margin:24px auto 0}
body.ap .ap-msg{display:flex;gap:16px;align-items:flex-start;padding:22px;text-align:right;--c:var(--link)}
body.ap .ap-msg-ok{--c:var(--seed)}
body.ap .ap-msg-err{--c:#E5484D}
body.ap .ap-msg-info{--c:var(--gold)}
body.ap .ap-msg-ic{flex:0 0 48px;width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:var(--c);background:color-mix(in srgb,var(--c) 15%,transparent);border:1px solid color-mix(in srgb,var(--c) 40%,transparent)}
body.ap .ap-msg-body{flex:1;min-width:0;text-align:right}
body.ap .ap-msg-body div,body.ap .ap-msg-body p,body.ap .ap-msg-body h2{text-align:right!important}
body.ap .ap-msg-t{margin:2px 0 6px;font-size:17px;font-weight:700;color:var(--head)}
body.ap .ap-msg-text{color:var(--text2);line-height:1.9;font-size:14.5px;overflow-wrap:anywhere}
body.ap .ap-msg-text br:first-child{display:none}
body.ap .ap-msg-foot:empty{display:none}
body.ap .ap-msg-foot{margin-top:14px}
body.ap .ap-msg-foot a{display:inline-flex;align-items:center;height:38px;padding:0 16px;border-radius:10px;border:1px solid var(--line);background:var(--raise);color:var(--text)!important;font-size:13.5px}
body.ap .ap-msg-foot a:hover{border-color:var(--focus);color:var(--head)!important}
@media (max-width:640px){
  .ap-card:has(>.ap-card-b>.ap-msg){margin-top:12px}
  body.ap .ap-msg{padding:16px;gap:12px}
  body.ap .ap-msg-ic{flex-basis:40px;width:40px;height:40px;border-radius:12px}
}

/* ---------- magazines: category / tag buttons, item page ---------- */
body.ap .listing_div{background:transparent!important;padding:14px 18px 0!important;text-align:center}
body.ap .listing_div>div[style*="inline-block"]{display:flex!important;flex-wrap:wrap;gap:6px;justify-content:center;margin:0 0 8px}
body.ap .listing_cat_btn,body.ap .listing_tag_btnt{float:none!important;margin:0!important;padding:0!important;background:none!important;border-radius:0!important;display:inline-flex!important}
body.ap .listing_cat_btn a,body.ap .listing_tag_btnt a{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:17px;border:1px solid var(--line);background:var(--card);color:var(--text2)!important;font-size:13px;white-space:nowrap}
body.ap .listing_tag_btnt a{height:30px;padding:0 12px;font-size:12.5px;background:var(--raise);border-color:transparent}
body.ap .listing_cat_btn a:hover,body.ap .listing_tag_btnt a:hover{border-color:var(--focus);color:var(--head)!important}
body.ap .listing_cat_btn_act a,body.ap .listing_tag_btn_act a{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;font-weight:700}
body.ap .listing_radios{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:center;align-items:center;padding:4px 0!important;margin:0!important;width:auto!important}
body.ap .listing_radios label{color:var(--text2)}
body.ap .listing_div_id{display:flex;flex-direction:column;align-items:center;gap:14px;padding:20px 18px 6px;text-align:center}
body.ap .listing_div_id>div:first-child{padding:0!important;order:2}
body.ap .listing_div_id>div:nth-child(2){order:1;padding:0!important;max-width:720px}
body.ap .listing_div_id img.listing_poster{width:280px!important;max-width:100%!important;height:auto!important;aspect-ratio:auto;border-radius:14px;border:1px solid var(--line);box-shadow:var(--shadow);display:block}
body.ap .listing_div_id h1{text-align:center!important;font-size:22px;line-height:1.7;color:var(--head);margin:0}
@media (max-width:640px){
  body.ap .listing_div{padding:12px 12px 0!important}
  body.ap .listing_div>div[style*="inline-block"]{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;scrollbar-width:none;padding-bottom:2px}
  body.ap .listing_div_id{padding:14px 12px 4px}
  body.ap .listing_div_id img.listing_poster{width:220px!important}
  body.ap .listing_div_id h1{font-size:18px}
}

/* staff forms under a magazine item (ANN / MAL / imdb / TMDB / poster / update): small and neutral */
body.ap .listing_div form:not(.torrent_form){margin:4px}
body.ap .listing_div form:not(.torrent_form) input[type=submit]{height:32px!important;padding:0 12px!important;font-size:12.5px!important;font-weight:400!important;background:transparent!important;color:var(--text2)!important;border:1px solid var(--line-strong)!important;border-radius:8px!important;margin-top:4px}
body.ap .listing_div form:not(.torrent_form) input[type=submit]:hover{border-color:var(--focus)!important;color:var(--head)!important}
body.ap .listing_div form:not(.torrent_form) input[type=text],body.ap .listing_div form:not(.torrent_form) textarea{height:34px;font-size:12.5px;max-width:100%!important}
body.ap .listing_div form:not(.torrent_form) textarea{height:auto}


/* torrents of a magazine item (#listing_table): same cards as the torrents page */
body.ap table#listing_table{display:block;width:auto!important;margin:14px 18px 18px;border:0!important;background:none!important;text-align:right}
body.ap table#listing_table thead{display:none}
body.ap table#listing_table tbody{display:flex;flex-direction:column;gap:10px}
body.ap table#listing_table tr.torrent{display:grid;grid-template-columns:auto auto auto minmax(0,1fr) auto auto;grid-template-areas:"name name name name name dl" "cat size date up seed leech";gap:6px 14px;align-items:center;background:var(--sunk)!important;border:1px solid var(--line);border-radius:12px;padding:12px 16px}
body.ap table#listing_table tr.torrent:hover{border-color:var(--on-line)}
body.ap table#listing_table tr.torrent>td{display:block;padding:0!important;border:0!important;background:none!important;text-align:right;min-width:0}
body.ap table#listing_table tr.torrent>td:nth-child(1){grid-area:name;font-size:14.5px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}
body.ap table#listing_table tr.torrent>td:nth-child(1)>a{color:var(--head)}
body.ap table#listing_table tr.torrent>td:nth-child(1)>a[style*="#c4c4c4"]{color:var(--muted)!important;font-weight:400}
body.ap table#listing_table tr.torrent>td:nth-child(2){grid-area:dl;align-self:start}
body.ap table#listing_table tr.torrent>td:nth-child(2) a{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:9px;border:1px solid var(--on-line);color:var(--link)!important;font-size:13px;font-weight:700}
body.ap table#listing_table tr.torrent>td:nth-child(2) a:hover{background:var(--on);color:var(--head)!important}
body.ap table#listing_table tr.torrent>td:nth-child(2) img{display:none}
body.ap table#listing_table tr.torrent>td:nth-child(2) a::after{content:"تحميل"}
body.ap table#listing_table tr.torrent>td:nth-child(3){grid-area:cat;font-size:12.5px}
body.ap table#listing_table tr.torrent>td:nth-child(3) a{color:var(--text2)!important}
body.ap table#listing_table tr.torrent>td:nth-child(4){grid-area:size;font-size:12.5px;color:var(--muted);direction:ltr;unicode-bidi:isolate;white-space:nowrap}
body.ap table#listing_table tr.torrent>td:nth-child(5){grid-area:seed;color:var(--seed)!important;font-weight:700;font-size:13px}
body.ap table#listing_table tr.torrent>td:nth-child(5)::before{content:"▲ "}
body.ap table#listing_table tr.torrent>td:nth-child(6){grid-area:leech;color:var(--leech)!important;font-weight:700;font-size:13px}
body.ap table#listing_table tr.torrent>td:nth-child(6)::before{content:"▼ "}
body.ap table#listing_table tr.torrent>td:nth-child(7){grid-area:date;font-size:12.5px;color:var(--muted);white-space:nowrap}
body.ap table#listing_table tr.torrent>td:nth-child(8){grid-area:up;font-size:12.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ap table#listing_table .free{font-size:11px;margin-inline-start:6px;vertical-align:middle}
@media (max-width:640px){
  body.ap table#listing_table{margin:12px}
  body.ap table#listing_table tr.torrent{grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-areas:"name name name name" "cat cat cat cat" "size date up up" "seed leech . dl";padding:12px}
}

/* ---------- 11. Footer ---------- */
.ap-foot{border-top:1px solid var(--line-soft);background:var(--bar);padding:26px 0 30px}
.ap-foot-row{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.ap-foot nav{display:flex;gap:4px;flex-wrap:wrap}
.ap-foot nav a{color:var(--text2)!important;font-size:13px;padding:8px 10px;border-radius:8px}
.ap-foot nav a:hover{background:var(--raise);color:var(--head)!important}
.ap-foot-meta{color:var(--muted);font-size:12px}

/* ---------- 12. Mobile bottom bar & drawer ---------- */
.ap-bnav{display:none}
.ap-drawer{position:fixed;inset:0;z-index:90;display:flex}
.ap-drawer[hidden]{display:none}
.ap-drawer-bg{position:absolute;inset:0;background:rgba(4,10,16,.6)}
.ap-drawer-panel{position:relative;width:310px;max-width:86%;height:100%;background:var(--hdr);border-inline-end:1px solid var(--line);padding:16px;display:flex;flex-direction:column;gap:2px;overflow-y:auto}
.ap-drawer-panel>a{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:0 12px;border-radius:10px;color:var(--text)!important;font-size:15px}
.ap-drawer-panel>a:hover{background:var(--raise)}
.ap-drawer-panel hr{width:100%;margin:8px 0}
.ap-drawer-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.ap-search-drawer{width:100%;margin-bottom:8px}
body.ap-lock{overflow:hidden}

/* ---------- 13. Responsive ---------- */
@media (max-width:1240px){
  .ap-layout{grid-template-columns:minmax(0,1fr) 290px}
  #containera,#container{grid-template-columns:repeat(5,minmax(0,1fr))}
  .ap-search{width:210px}
  .ap-nav>a,.ap-dd-btn{padding:0 9px}
}
@media (max-width:1040px){
  .ap-nav,.ap-hdr .ap-search:not(.ap-search-drawer){display:none}
  .ap-menu-btn{display:inline-flex}
  .ap-layout{grid-template-columns:minmax(0,1fr)}
  .ap-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  #containera,#container{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:640px){
  body.ap{font-size:14px}
  .ap-wrap{padding:0 14px}
  .ap-hdr-row{height:62px;gap:8px}
  .ap-wm{font-size:18px}
  .ap-mark{width:34px;height:34px}
  .ap-upload,.ap-hide-xs,.ap-hide-sm{display:none!important}
  .ap-stats-row{gap:18px;font-size:12px}
  .ap-layout{gap:16px;padding-top:14px}
  .ap-content,.ap-side{gap:16px}
  .ap-side{grid-template-columns:minmax(0,1fr)}
  .ap-card-h{padding:10px 14px}
  #containera,#container{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px;padding:14px}
  body.ap div.Mgz>div.Mitem:last-child,body.ap div.Mitemsize{display:none}
  body.ap table.topseeded td:nth-child(3),body.ap table.topseeded td:nth-child(6),body.ap table.topseeded td:nth-child(7){display:none}
  body.ap table.topseeded td{padding:10px}
  body.ap table.latest_comments{grid-template-columns:minmax(0,1fr)}
  body.ap #chatoutput{max-height:220px}
  .ap-bnav{display:flex;position:sticky;bottom:0;z-index:40;background:var(--hdr);border-top:1px solid var(--line);padding:6px 6px calc(8px + env(safe-area-inset-bottom));justify-content:space-around}
  .ap-bnav a{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:58px;min-height:48px;justify-content:center;color:var(--muted)!important;font-size:11px;border-radius:10px}
  .ap-bnav a:hover{color:var(--head)!important}
  .ap-bnav a.ap-fab{width:52px;height:52px;min-width:52px;border-radius:16px;background:var(--accent);color:#fff!important;margin-top:-22px;box-shadow:0 6px 18px rgba(0,0,0,.35)}
  .ap-foot{padding-bottom:20px}
  .ap-foot-row{flex-direction:column;align-items:flex-start}
  .ap-dd-menu{position:fixed;top:66px;left:10px;right:10px;min-width:0}
  body.ap .ap-guest-form input{width:100%}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ===== user CP: passkey / RSS key / change password (2026-11-05) ===== */
body.ap .ucp-wrap{display:flex;flex-direction:column;gap:16px;padding:16px 18px 20px;max-width:780px;text-align:right!important}
body.ap .ucp-wrap *{text-align:inherit}
body.ap .ucp-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:visible}
body.ap .ucp-card-h{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-bottom:1px solid var(--line)}
body.ap .ucp-card-h h2{margin:0 0 4px;font-size:16px;font-weight:700;color:var(--head)!important;border:0!important;padding:0!important;background:none!important}
body.ap .ucp-card-h p{margin:0;font-size:13px;line-height:1.7;color:var(--muted)}
body.ap .ucp-ico{flex-shrink:0;width:40px;height:40px;border-radius:12px;background:var(--on);border:1px solid var(--on-line);display:inline-flex;align-items:center;justify-content:center;color:var(--link)}
body.ap .ucp-ico svg,body.ap .ucp-ib svg,body.ap .ucp-note svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.ap .ucp-card-b{padding:16px 18px;display:flex;flex-direction:column;gap:14px}
body.ap .ucp-card-f{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 18px;border-top:1px solid var(--line);background:var(--sunk);border-radius:0 0 var(--radius) var(--radius)}
body.ap .ucp-card-f form{margin:0}
body.ap #change_pass .ucp-card-f{justify-content:flex-start}
body.ap #change_pass .ucp-card-f button[type=submit]{order:-1}
body.ap .ucp-card-f .ucp-hint{flex:1;min-width:220px}
body.ap .ucp-field{display:flex;flex-direction:column;gap:6px}
body.ap .ucp-field label{font-size:13px;font-weight:700;color:var(--text)!important}
body.ap .ucp-copy{display:flex;gap:8px;align-items:center}
body.ap .ucp-copy input{flex:1;min-width:0;width:auto!important;height:42px!important;margin:0!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;font-size:14px!important;letter-spacing:.3px;text-align:left!important;direction:ltr}
body.ap .ucp-copy input[readonly]{background:var(--sunk)!important;cursor:text}
body.ap .ucp-ib{width:42px;height:42px;flex-shrink:0;border-radius:var(--radius-sm);background:var(--raise);border:1px solid var(--line);color:var(--text2)!important;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0!important;position:relative}
body.ap .ucp-ib:hover{border-color:var(--focus);color:var(--head)!important}
body.ap .ucp-ib.is-on{background:var(--on);border-color:var(--on-line);color:var(--link)!important}
body.ap .ucp-ib.is-ok{border-color:var(--seed);color:var(--seed)!important}
body.ap .ucp-hint{margin:0;font-size:12.5px;line-height:1.7;color:var(--muted)!important}
body.ap .ucp-muted{margin:0;color:var(--muted)}
body.ap .ucp-bad{color:var(--danger)!important}
body.ap .ucp-note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;font-size:13.5px;line-height:1.7;border:1px solid var(--line)}
body.ap .ucp-note svg{flex-shrink:0;margin-top:2px}
body.ap .ucp-note-ok{background:color-mix(in srgb,var(--seed) 12%,var(--card));border-color:color-mix(in srgb,var(--seed) 45%,var(--line));color:var(--text)}
body.ap .ucp-note-ok svg{color:var(--seed)}
body.ap .ucp-note-warn{background:var(--gold-bg);border-color:color-mix(in srgb,var(--gold) 45%,var(--line));color:var(--text)}
body.ap .ucp-note-warn svg{color:var(--gold)}
body.ap .ap-btn.ucp-btn-ghost{background:var(--raise);color:var(--text)!important;border:1px solid var(--line)}
body.ap .ap-btn.ucp-btn-ghost:hover{border-color:var(--focus);background:var(--raise-h)}
body.ap .ap-btn.ucp-btn-danger{background:transparent;color:var(--danger)!important;border:1px solid color-mix(in srgb,var(--danger) 55%,var(--line))}
body.ap .ap-btn.ucp-btn-danger:hover{background:color-mix(in srgb,var(--danger) 12%,transparent)}
body.ap .ap-btn[disabled]{opacity:.45;cursor:not-allowed;filter:grayscale(.4)}
body.ap .ucp-meter{height:6px;border-radius:3px;background:var(--raise);overflow:hidden}
body.ap .ucp-meter i{display:block;height:100%;width:0;border-radius:3px;transition:width .2s,background .2s}
body.ap .ucp-meter i.s1{width:25%;background:var(--danger)}
body.ap .ucp-meter i.s2{width:50%;background:var(--leech)}
body.ap .ucp-meter i.s3{width:75%;background:var(--gold)}
body.ap .ucp-meter i.s4{width:100%;background:var(--seed)}
@media (max-width:600px){body.ap .ucp-wrap{padding:12px}body.ap .ucp-card-h,body.ap .ucp-card-b,body.ap .ucp-card-f{padding-left:14px;padding-right:14px}body.ap .ucp-card-f .ap-btn{flex:1}}

/* ===== user profile (userdetails tab 1) — 2026-11-05 ===== */
body.ap .ud-cp-tabs{padding-top:0!important}
body.ap .ud-wrap{display:flex;flex-direction:column;gap:16px;padding:6px 18px 20px;text-align:right}
body.ap .ud-hero{display:flex;align-items:center;gap:18px;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(135deg,var(--on) 0%,var(--card) 70%)}
body.ap .ud-av{width:92px;height:92px;flex-shrink:0;border-radius:22px;object-fit:cover;border:2px solid var(--on-line);background:var(--raise)}
body.ap .ud-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
body.ap .ud-name{margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:24px;font-weight:800;line-height:1.2;color:var(--head)!important;display:flex;align-items:center;gap:10px;flex-wrap:wrap;word-break:break-word}
body.ap .ud-flag{height:16px;width:auto;border-radius:3px}
body.ap .ud-badges{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
body.ap .ud-badge{display:inline-flex;align-items:center;height:26px;padding:0 12px;border-radius:13px;font-size:12.5px;font-weight:700;background:var(--accent);color:var(--on-accent)!important}
body.ap .ud-title{font-size:13px;color:var(--gold)}
body.ap .ud-title:empty{display:none}
body.ap .ud-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
body.ap .ud-meta b{color:var(--text);font-weight:600}
body.ap .ud-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;align-self:flex-start}
body.ap .ud-acts>a:not(.ud-report){width:40px;height:40px;display:inline-flex!important;align-items:center;justify-content:center;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--raise);margin:0!important}
body.ap .ud-acts>a:not(.ud-report):hover{border-color:var(--focus)}
body.ap .ud-acts>a img{width:18px;height:18px;object-fit:contain}
[data-theme="dark"] body.ap .ud-acts>a img{filter:brightness(0) invert(.85)}
body.ap .ud-report{display:inline-flex;align-items:center;height:40px;padding:0 14px;border-radius:var(--radius-sm);border:1px solid color-mix(in srgb,var(--danger) 55%,var(--line));color:var(--danger)!important;font-size:13px;font-weight:700;background:transparent}
body.ap .ud-report:hover{background:color-mix(in srgb,var(--danger) 12%,transparent)}
body.ap .ud-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:10px}
body.ap .ud-stat{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
body.ap .ud-stat span{font-size:12px;color:var(--muted)}
body.ap .ud-stat b{font-size:clamp(14px,1.45vw,17px);font-weight:800;color:var(--head);direction:ltr;text-align:right;white-space:nowrap;overflow:visible}/* 2026-11-08: points were cut (4,292,306....) */
body.ap .ud-stat.ud-up b{color:var(--seed)} body.ap .ud-stat.ud-down b{color:var(--leech)}
body.ap .ud-stat.ud-pts b{color:var(--gold)} body.ap .ud-stat.ud-good b{color:var(--seed)} body.ap .ud-stat.ud-bad b{color:var(--danger)}
body.ap .ud-dl div{display:none}
body.ap .ud-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
body.ap .ud-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:6px 0 10px;min-width:0}
body.ap .ud-card-t{margin:0!important;padding:12px 18px 10px!important;font-size:15px;font-weight:700;color:var(--head)!important;border:0!important;background:none!important;text-align:right}
body.ap .ud-sub{margin:14px 18px 8px;font-size:13.5px;font-weight:700;color:var(--head)}
body.ap table.ud-kv{width:100%;border-collapse:collapse;margin:0;background:none!important;border:0!important}
body.ap table.ud-kv tr{background:none!important}
body.ap table.ud-kv td{padding:9px 18px!important;border:0!important;border-top:1px solid var(--line)!important;font-size:13.5px;vertical-align:top;text-align:right!important;background:none!important;color:var(--text)}
body.ap table.ud-kv td:first-child{width:38%;color:var(--muted)!important;font-weight:400;white-space:nowrap}
body.ap table.ud-kv tr.ud-private td:first-child::after{content:" 🔒";font-size:11px;opacity:.55}
body.ap table.ud-kv td img{vertical-align:middle}
body.ap .ud-dl-full div{margin-top:6px;font-size:11.5px;color:var(--muted);word-break:break-all;line-height:1.7}
body.ap table.ud-rights td:first-child{display:none}
body.ap table.ud-rights td{border-top:0!important;padding-top:4px!important}
body.ap table.ud-rights td br{display:block;content:"";margin-top:6px}
body.ap .ud-rights .rights{display:inline-flex;align-items:center;margin:0 0 6px 6px!important;padding:5px 12px!important;border-radius:16px!important;font-size:12.5px!important;font-weight:600!important;background:var(--raise)!important;border:1px solid var(--line);color:var(--text)!important}
body.ap .ud-rights .rights div{display:inline!important;margin-right:4px}
body.ap .ud-awards .usr_details_awards{display:inline-block;margin:0 0 4px 6px}
body.ap .ud-awards img{max-height:44px;width:auto}
body.ap table.ud-sb{width:calc(100% - 36px);margin:0 18px;border-collapse:collapse;border:1px solid var(--line)!important;border-radius:10px;overflow:hidden;background:none!important}
body.ap table.ud-sb th,body.ap table.ud-sb td{padding:8px 12px!important;font-size:13px;text-align:center!important;border:0!important;border-top:1px solid var(--line)!important;background:none!important}
body.ap table.ud-sb th{background:var(--sunk)!important;color:var(--muted);font-weight:600;border-top:0!important}
body.ap .ud-sb-sum{margin:10px 18px 0;font-size:13px;color:var(--muted)}
body.ap .ud-sb-sum b{color:var(--text)}
body.ap .ud-sb-acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 18px 2px}
body.ap .ud-sb-acts:empty{display:none}
body.ap .ud-sb-acts form{margin:0}
body.ap .ud-sb-acts .shva3h,body.ap .ud-sb-acts input[type=submit]{display:inline-flex!important;align-items:center;height:38px;padding:0 16px!important;border-radius:var(--radius-sm)!important;background:var(--accent)!important;color:#fff!important;border:0!important;font:inherit;font-size:13.5px!important;font-weight:700;cursor:pointer;width:auto!important;float:none!important}
body.ap .ud-sb-acts font,body.ap .ud-upg-wait{color:var(--danger)!important;font-size:13px}
body.ap .ud-sig{padding:4px 18px 8px;font-size:14px;line-height:1.8;color:var(--text);overflow-wrap:anywhere}
body.ap .ud-sig:empty::before{content:"لا يوجد توقيع.";color:var(--muted)}
body.ap .ud-sig img{max-width:100%;height:auto}
body.ap .ud-bans{display:flex;flex-wrap:wrap;gap:8px;padding:4px 18px 4px}
body.ap .ud-bans form{margin:0}
body.ap .ud-bans .mod_stk{float:none!important;height:38px;padding:0 14px!important;border-radius:var(--radius-sm)!important;border:1px solid color-mix(in srgb,var(--danger) 50%,var(--line))!important;background:transparent!important;color:var(--danger)!important;font:inherit;font-size:13px!important;font-weight:600;cursor:pointer;width:auto!important}
body.ap .ud-bans .mod_stk:hover{background:color-mix(in srgb,var(--danger) 12%,transparent)!important}
body.ap .ud-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:12px 18px 6px}
body.ap .ud-note{display:flex;flex-direction:column;gap:8px;margin:0}
body.ap .ud-note label{font-size:13px;font-weight:700;color:var(--text)!important}
body.ap .ud-note textarea{width:100%!important;min-height:120px;resize:vertical;font-size:13px;line-height:1.7}
body.ap .ud-note .ap-btn{align-self:flex-start;height:38px}
@media (max-width:900px){body.ap .ud-grid,body.ap .ud-notes{grid-template-columns:1fr}}
@media (max-width:600px){
  body.ap .ud-wrap{padding:6px 12px 16px}
  body.ap .ud-hero{flex-wrap:wrap;gap:14px;padding:14px}
  body.ap .ud-av{width:72px;height:72px;border-radius:18px}
  body.ap .ud-name{font-size:20px}
  body.ap .ud-acts{width:100%}
  body.ap .ud-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.ap table.ud-kv td:first-child{width:42%;white-space:normal}
}
body.ap table.ud-kv td:last-child{unicode-bidi:plaintext}
body.ap .ud-meta b{direction:ltr;unicode-bidi:isolate}
body.ap .ud-sig{text-align:right!important}
body.ap .ud-sb-sum b{direction:ltr;unicode-bidi:isolate}
/* shva3h button (profile header) */
body.ap .ud-acts>a.ud-shva3h{width:auto!important;display:inline-flex!important;align-items:center;gap:8px;height:40px;padding:0 16px 0 14px;border-radius:var(--radius-sm);border:1px solid color-mix(in srgb,var(--gold) 55%,var(--line))!important;background:var(--gold-bg)!important;color:var(--gold)!important;font-size:13.5px;font-weight:700;text-decoration:none}
body.ap .ud-acts>a.ud-shva3h:hover{border-color:var(--gold)!important;filter:brightness(1.08)}
body.ap .ud-shva3h svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.ap .ud-sb-acts .shva3h{display:none!important}

/* ===== shva3h module (نظام الشفاعه) — 2026-11-05 ===== */
body.ap .sh-wrap{display:flex;flex-direction:column;gap:14px;padding:16px 18px 20px;max-width:820px;text-align:right!important}
body.ap .sh-wrap *{text-align:inherit}
body.ap .sh-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:16px 18px}
body.ap .sh-card h3{margin:0 0 12px!important;padding:0!important;border:0!important;background:none!important;font-size:15px;font-weight:700;color:var(--head)!important}
body.ap .sh-head{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,var(--gold-bg) 0%,var(--card) 75%);border-color:color-mix(in srgb,var(--gold) 35%,var(--line))}
body.ap .sh-ico{flex-shrink:0;width:48px;height:48px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:var(--gold-bg);border:1px solid color-mix(in srgb,var(--gold) 50%,var(--line));color:var(--gold)}
body.ap .sh-ico svg,body.ap .sh-go svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.ap .sh-go svg{width:18px;height:18px}
body.ap .sh-head-t{flex:1;min-width:0}
body.ap .sh-head-t h2{margin:0 0 4px!important;padding:0!important;border:0!important;background:none!important;font-size:18px;font-weight:800;color:var(--head)!important}
body.ap .sh-head-t p{margin:0;font-size:13px;line-height:1.7;color:var(--muted)}
body.ap .sh-head-t p b{color:var(--gold)}
body.ap .sh-credit{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:76px;height:64px;border-radius:14px;border:1px solid color-mix(in srgb,var(--gold) 50%,var(--line));background:var(--card)}
body.ap .sh-credit span{font-size:11.5px;color:var(--muted)}
body.ap .sh-credit b{font-size:24px;font-weight:800;line-height:1.1;color:var(--gold)}
body.ap .sh-credit.sh-zero{border-color:var(--line)} body.ap .sh-credit.sh-zero b{color:var(--muted)}
body.ap .sh-form{display:flex;flex-direction:column;gap:8px;margin:0}
body.ap .sh-form label{font-size:13px;font-weight:700;color:var(--text)!important}
body.ap .sh-row{display:flex;gap:8px}
body.ap .sh-row input{flex:1;min-width:0;width:auto!important;height:44px!important;margin:0!important;font-size:15px!important}
body.ap .sh-row .ap-btn{height:44px;padding:0 22px}
body.ap .sh-rules{margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--line);list-style:none;display:flex;flex-direction:column;gap:6px}
body.ap .sh-rules li{position:relative;padding-right:16px;font-size:12.5px;color:var(--muted);line-height:1.7}
body.ap .sh-rules li::before{content:"";position:absolute;right:2px;top:.75em;width:6px;height:6px;border-radius:50%;background:var(--gold)}
body.ap .sh-target{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--sunk)}
body.ap .sh-target>a{font-size:18px;font-weight:800;color:var(--link)!important}
body.ap .sh-nums{display:flex;gap:8px;flex-wrap:wrap}
body.ap .sh-nums div{display:flex;flex-direction:column;align-items:center;min-width:84px;padding:8px 10px;border-radius:10px;background:var(--card);border:1px solid var(--line)}
body.ap .sh-nums span{font-size:11.5px;color:var(--muted)}
body.ap .sh-nums b{font-size:20px;font-weight:800;color:var(--head)}
body.ap .sh-nums b.sh-g{color:var(--gold)}
body.ap .sh-hist{margin-top:12px;font-size:13px}
body.ap .sh-hist b{display:block;margin-bottom:6px;color:var(--text)}
body.ap .sh-hist ul{margin:0;padding:0 18px 0 0;color:var(--muted);line-height:1.9}
body.ap .sh-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 0}
body.ap .ap-btn.sh-go{background:var(--gold)!important;color:#1A1300!important}
[data-theme="light"] body.ap .ap-btn.sh-go{color:#fff!important}
body.ap .ap-btn.sh-go:hover{filter:brightness(1.08)}
body.ap .ap-btn.sh-ghost{background:var(--raise);color:var(--text)!important;border:1px solid var(--line)}
body.ap .sh-hint{margin:10px 0 0;font-size:12.5px;color:var(--muted)}
body.ap .sh-muted{margin:0;color:var(--muted)}
body.ap .sh-note{display:flex;flex-direction:column;gap:4px;padding:12px 16px;border-radius:12px;border:1px solid var(--line);font-size:13.5px;line-height:1.7}
body.ap .sh-note b{font-size:14px}
body.ap .sh-ok{background:color-mix(in srgb,var(--seed) 12%,var(--card));border-color:color-mix(in srgb,var(--seed) 45%,var(--line))}
body.ap .sh-ok>b{color:var(--seed)}
body.ap .sh-bad{background:color-mix(in srgb,var(--danger) 10%,var(--card));border-color:color-mix(in srgb,var(--danger) 45%,var(--line))}
body.ap .sh-bad>b{color:var(--danger)}
body.ap table.sh-log{width:100%;border-collapse:collapse;margin:0;background:none!important;border:0!important}
body.ap table.sh-log th,body.ap table.sh-log td{padding:9px 10px!important;font-size:13px;text-align:right!important;border:0!important;border-top:1px solid var(--line)!important;background:none!important}
body.ap table.sh-log th{color:var(--muted);font-weight:600;border-top:0!important}
@media (max-width:600px){
  body.ap .sh-wrap{padding:12px}
  body.ap .sh-head{flex-wrap:wrap}
  body.ap .sh-credit{flex-direction:row;gap:8px;height:40px;min-width:0;padding:0 14px;width:100%}
  body.ap .sh-row{flex-direction:column}
  body.ap .sh-actions .ap-btn{flex:1;justify-content:center}
}

/* ===== gifts: send points / invites (userdetails tab 12-14) — 2026-11-05 ===== */
body.ap .gf-wrap{padding:16px 18px 22px;max-width:640px;text-align:right!important}
body.ap .gf-wrap *{text-align:inherit}
body.ap .gf-lead{display:flex;align-items:center;gap:10px;margin:0 0 14px;color:var(--muted);font-size:14px}
body.ap .gf-lead svg{width:22px;height:22px;color:var(--gold)}
body.ap .gf-pick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.ap a.gf-opt{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);color:var(--text)!important;text-decoration:none;transition:border-color .15s,transform .15s}
body.ap a.gf-opt:hover{border-color:color-mix(in srgb,var(--gold) 60%,var(--line));transform:translateY(-2px)}
body.ap a.gf-opt b{font-size:16px;color:var(--head)}
body.ap a.gf-opt small{font-size:12.5px;color:var(--muted)}
body.ap .gf-ico{width:44px;height:44px;flex-shrink:0;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;background:var(--gold-bg);border:1px solid color-mix(in srgb,var(--gold) 45%,var(--line));color:var(--gold);margin-bottom:4px}
body.ap .gf-ico svg,body.ap .gf-lead svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.ap .gf-ico svg{width:22px;height:22px}
body.ap .gf-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:18px}
body.ap .gf-form{display:flex;flex-direction:column;gap:8px;margin:0}
body.ap .gf-head{display:flex;gap:12px;align-items:center;margin-bottom:8px}
body.ap .gf-head .gf-ico{margin:0}
body.ap .gf-head h3{margin:0 0 2px!important;padding:0!important;border:0!important;background:none!important;font-size:17px;font-weight:800;color:var(--head)!important}
body.ap .gf-head p{margin:0;font-size:13px;color:var(--muted)}
body.ap .gf-head p b{color:var(--gold)}
body.ap .gf-form label{font-size:13px;font-weight:700;color:var(--text)!important;margin-top:6px}
body.ap .gf-form label small{font-weight:400;color:var(--muted)}
body.ap .gf-form .gf-amount{width:100%!important;height:48px!important;margin:0!important;font-size:20px!important;font-weight:700;direction:ltr;text-align:right!important;letter-spacing:.5px}
body.ap .gf-form textarea{width:100%!important;min-height:84px;resize:vertical;margin:0!important}
body.ap .gf-chips{display:flex;flex-wrap:wrap;gap:6px}
body.ap .gf-chip{height:32px;padding:0 12px;border-radius:16px;border:1px solid var(--line);background:var(--raise);color:var(--text2);font:inherit;font-size:13px;cursor:pointer;direction:ltr}
body.ap .gf-chip:hover:not(:disabled){border-color:var(--gold);color:var(--gold)}
body.ap .gf-chip:disabled{opacity:.4;cursor:not-allowed}
body.ap .gf-chip.gf-all{direction:rtl}
body.ap .gf-err{margin:2px 0 0;font-size:13px;color:var(--danger)!important}
body.ap .gf-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
body.ap .gf-count{font-size:12px;color:var(--muted);direction:ltr}
body.ap .gf-send{min-width:120px;justify-content:center;background:var(--gold)!important;color:#1A1300!important}
[data-theme="light"] body.ap .gf-send{color:#fff!important}
body.ap .gf-send:disabled{opacity:.5;cursor:not-allowed}
@media (max-width:600px){body.ap .gf-wrap{padding:12px}body.ap .gf-pick{grid-template-columns:1fr}body.ap .gf-send{flex:1}}

/* ===== notifications tab (userdetails tab 20) — 2026-11-05 ===== */
body.ap .nl-wrap{padding:14px 18px 20px;text-align:right}
body.ap .nl-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
body.ap .nl-filters .tabs{display:contents}
body.ap .nl-filters a.nl-f{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:17px;border:1px solid var(--line);background:var(--raise);color:var(--text2)!important;font-size:13px;text-decoration:none}
body.ap .nl-filters a.nl-f:hover{border-color:var(--focus);color:var(--head)!important}
body.ap .nl-filters a.nl-f.is-on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)!important;font-weight:700}
body.ap .nl-pager{margin:6px 0 10px}
body.ap table.nl-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line)!important;border-radius:var(--radius);overflow:hidden;background:var(--card)!important;margin:0}
body.ap table.nl-table th{padding:10px 14px!important;font-size:12.5px;font-weight:600;color:var(--muted);background:var(--sunk)!important;text-align:right!important;border:0!important}
body.ap table.nl-table td{padding:11px 14px!important;border:0!important;border-top:1px solid var(--line)!important;font-size:13.5px;line-height:1.75;vertical-align:top;background:none!important;color:var(--text)!important;text-align:right!important}
body.ap table.nl-table th:first-child,body.ap table.nl-table td.nl-who{width:150px}
body.ap table.nl-table th:last-child,body.ap table.nl-table td.nl-time{width:110px;white-space:nowrap;color:var(--muted)!important;font-size:12.5px}
body.ap td.nl-who{font-weight:600;color:var(--muted)!important}
body.ap table.nl-table td.nl-txt{position:relative;padding-right:26px!important}
body.ap td.nl-txt::before{content:"";position:absolute;right:12px;top:19px;width:7px;height:7px;border-radius:50%;background:var(--muted)}
body.ap tr.nl-good td.nl-txt::before{background:var(--seed)}
body.ap tr.nl-bad td.nl-txt::before{background:var(--danger)}
body.ap tr.nl-send td.nl-txt::before{background:var(--link)}
body.ap tr.nl-seed td.nl-txt::before{background:#A78BFA}
body.ap tr.nl-req td.nl-txt::before{background:var(--leech)}
body.ap tr.nl-bad td.nl-txt>span:first-child{color:var(--danger)}
body.ap tr.nl-new td{background:color-mix(in srgb,var(--accent) 8%,transparent)!important}
body.ap .nl-badge{display:inline-flex;align-items:center;height:20px;padding:0 8px;margin-right:8px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-size:11px;font-weight:700;vertical-align:middle}
body.ap tr.nl-dead td.nl-txt>span:first-child{text-decoration:line-through;opacity:.6}
body.ap .nl-gone{color:var(--muted)}
body.ap tr.nl-foot td{text-align:center!important;color:var(--muted)!important;font-size:12.5px;background:var(--sunk)!important}
@media (max-width:700px){
  body.ap .nl-wrap{padding:12px}
  body.ap table.nl-table thead{display:none}
  body.ap table.nl-table tr.nl-row{display:grid;grid-template-columns:1fr auto;border-top:1px solid var(--line)}
  body.ap table.nl-table tr.nl-row td{border-top:0!important;width:auto!important}
  body.ap table.nl-table td.nl-who{grid-column:1;padding-bottom:0!important}
  body.ap table.nl-table td.nl-time{grid-column:2;grid-row:1;padding-bottom:0!important}
  body.ap table.nl-table td.nl-txt{grid-column:1 / -1;padding-top:4px!important;padding-right:26px!important}
  body.ap td.nl-txt::before{top:14px}
}

/* ===== templates tab (userdetails tab 23) — 2026-11-05 ===== */
body.ap .tp-wrap{padding:16px 18px 20px;max-width:900px;text-align:right!important;display:flex;flex-direction:column;gap:12px}
body.ap .tp-wrap *{text-align:inherit}
body.ap .tp-head{display:flex;align-items:center;gap:14px;justify-content:space-between}
body.ap .tp-head h3{margin:0 0 4px!important;padding:0!important;border:0!important;background:none!important;font-size:17px;font-weight:800;color:var(--head)!important}
body.ap .tp-head p{margin:0;font-size:13px;line-height:1.7;color:var(--muted)}
body.ap .tp-count{flex-shrink:0;display:flex;align-items:baseline;gap:4px;padding:8px 14px;border-radius:12px;border:1px solid var(--line);background:var(--card);direction:ltr}
body.ap .tp-count b{font-size:22px;font-weight:800;color:var(--head)}
body.ap .tp-count span{font-size:13px;color:var(--muted)}
body.ap .tp-count.tp-full b{color:var(--danger)}
body.ap .tp-list{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);overflow:hidden}
body.ap .tp-row{display:grid;grid-template-columns:minmax(220px,300px) 1fr auto;gap:12px;align-items:center;padding:10px 14px;border-top:1px solid var(--line)}
body.ap .tp-row:first-child{border-top:0}
body.ap .tp-row:hover{background:var(--sunk)}
body.ap .tp-name{display:flex;gap:6px;align-items:center;margin:0}
body.ap .tp-lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
body.ap .tp-name input[type=text]{flex:1;min-width:0;width:auto!important;height:36px!important;margin:0!important;font-size:13.5px!important}
body.ap .tp-save,body.ap .tp-del button{height:36px;padding:0 12px;border-radius:9px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
body.ap .tp-save{border:1px solid var(--line);background:var(--raise);color:var(--text)}
body.ap .tp-save:hover{border-color:var(--focus);color:var(--head)}
body.ap .tp-title{min-width:0;font-size:13.5px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ap .tp-muted{color:var(--muted)}
body.ap .tp-del{margin:0}
body.ap .tp-del button{border:1px solid color-mix(in srgb,var(--danger) 50%,var(--line));background:transparent;color:var(--danger)}
body.ap .tp-del button:hover{background:color-mix(in srgb,var(--danger) 12%,transparent)}
body.ap .tp-empty{padding:28px 18px;border:1px dashed var(--line-strong);border-radius:var(--radius);text-align:center!important;color:var(--muted)}
body.ap .tp-note{padding:10px 14px;border-radius:10px;border:1px solid color-mix(in srgb,var(--seed) 45%,var(--line));background:color-mix(in srgb,var(--seed) 12%,var(--card));color:var(--text);font-size:13.5px}
@media (max-width:700px){
  body.ap .tp-wrap{padding:12px}
  body.ap .tp-head{flex-direction:column;align-items:stretch}
  body.ap .tp-count{align-self:flex-start}
  body.ap .tp-row{grid-template-columns:1fr auto;grid-template-areas:"title del" "name name"}
  body.ap .tp-title{grid-area:title;white-space:normal}
  body.ap .tp-del{grid-area:del}
  body.ap .tp-name{grid-area:name}
}

/* ===== subscriptions tab (userdetails tab 7) — 2026-11-05 ===== */
body.ap .sb-wrap{padding:16px 18px 20px;max-width:900px;text-align:right!important;display:flex;flex-direction:column;gap:12px}
body.ap .sb-wrap *{text-align:inherit}
body.ap .sb-head{display:flex;align-items:center;gap:14px;justify-content:space-between}
body.ap .sb-head h3{margin:0 0 4px!important;padding:0!important;border:0!important;background:none!important;font-size:17px;font-weight:800;color:var(--head)!important}
body.ap .sb-head p{margin:0;font-size:13px;line-height:1.7;color:var(--muted)}
body.ap .sb-sum{flex-shrink:0;display:flex;flex-direction:column;align-items:center;padding:8px 16px;border-radius:12px;border:1px solid var(--line);background:var(--card)}
body.ap .sb-sum b{font-size:22px;font-weight:800;color:var(--seed);line-height:1.1}
body.ap .sb-sum span{font-size:11.5px;color:var(--muted)}
body.ap .sb-alloff{margin:0;align-self:flex-start}
body.ap .sb-alloff button{height:34px;padding:0 14px;border-radius:9px;border:1px solid color-mix(in srgb,var(--danger) 50%,var(--line));background:transparent;color:var(--danger);font:inherit;font-size:13px;cursor:pointer}
body.ap .sb-alloff button:hover{background:color-mix(in srgb,var(--danger) 12%,transparent)}
body.ap .sb-group{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);overflow:hidden}
body.ap .sb-gh,body.ap .sb-row{display:grid;grid-template-columns:1fr 92px 92px;align-items:center;gap:8px;padding:9px 14px}
body.ap .sb-gh{background:var(--sunk);font-size:13.5px;font-weight:700;color:var(--head)}
body.ap .sb-gh .sb-col{font-size:11.5px;font-weight:600;color:var(--muted);text-align:center!important}
body.ap .sb-row{border-top:1px solid var(--line);font-size:13.5px;scroll-margin-top:120px}
body.ap .sb-row:target{background:color-mix(in srgb,var(--accent) 10%,transparent)}
body.ap .sb-row:hover{background:var(--sunk)}
body.ap .sb-name a{color:var(--text)!important}
body.ap .sb-cell{display:flex;justify-content:center}
body.ap .sb-f{margin:0}
body.ap .sb-sw{position:relative;width:42px;height:24px;border-radius:12px;border:1px solid var(--line-strong);background:var(--raise);cursor:pointer;padding:0;transition:background .15s,border-color .15s}
body.ap .sb-sw i{position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;background:var(--muted);transition:right .15s,background .15s}
body.ap .sb-sw.is-on{background:var(--seed);border-color:var(--seed)}
body.ap .sb-sw.is-on i{right:20px;background:#fff}
body.ap .sb-sw:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
body.ap .sb-state{font-size:12px;color:var(--muted)}
body.ap .sb-state.is-on{color:var(--seed);font-weight:700}
body.ap .sb-na{font-size:11.5px;color:var(--muted);opacity:.7}
@media (max-width:600px){
  body.ap .sb-wrap{padding:12px}
  body.ap .sb-head{flex-direction:column;align-items:stretch}
  body.ap .sb-sum{flex-direction:row;gap:8px;align-self:flex-start}
  body.ap .sb-gh,body.ap .sb-row{grid-template-columns:1fr 64px 64px;padding:9px 10px}
}

/* ===== profile edit (usercp) + admin user edit — 2026-11-05 ===== */
body.ap .pf-form{padding:16px 18px 20px;text-align:right!important;margin:0}
body.ap .pf-form *{text-align:inherit}
body.ap .pf-top{display:flex;align-items:center;gap:14px;margin-bottom:14px}
body.ap .pf-top-av img{width:64px!important;height:64px!important;border-radius:16px;object-fit:cover;border:1px solid var(--line)}
body.ap .pf-top h2{margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:20px;font-weight:800;color:var(--head)!important}
body.ap .pf-top p{margin:2px 0 0;font-size:13px;color:var(--muted)}
body.ap .pf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
body.ap .pf-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
body.ap .pf-wide{grid-column:1 / -1}
body.ap .pf-card h3{margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:15px;font-weight:700;color:var(--head)!important}
body.ap .pf-f{display:flex;flex-direction:column;gap:6px;min-width:0}
body.ap .pf-f>label{font-size:12.5px;font-weight:600;color:var(--muted)!important}
body.ap .pf-f>label small{font-weight:400}
body.ap .pf-form input[type=text],body.ap .pf-form input[type=email],body.ap .pf-form input[type=url],body.ap .pf-form input[type=password],body.ap .pf-form input[type=number],body.ap .pf-form select{width:100%!important;height:42px!important;margin:0!important;font-size:14px!important}
body.ap .pf-form textarea{width:100%!important;min-height:110px;resize:vertical;margin:0!important;font-size:14px;line-height:1.7}
body.ap .pf-row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body.ap .pf-ro{height:42px;display:flex;align-items:center;padding:0 12px;border-radius:var(--radius-sm);background:var(--sunk);border:1px solid var(--line);font-weight:700;color:var(--head)}
body.ap .pf-hint{margin:0;font-size:12.5px;line-height:1.7;color:var(--muted)}
body.ap .pf-hint a{color:var(--link)!important}
body.ap .pf-av{display:flex;gap:14px;align-items:center}
body.ap .pf-av img{width:76px;height:76px;flex-shrink:0;border-radius:18px;object-fit:cover;border:1px solid var(--line);background:var(--raise)}
body.ap .pf-av .pf-f{flex:1}
body.ap .pf-pre{display:flex;align-items:stretch;border:1px solid var(--line-strong);border-radius:var(--radius-sm);overflow:hidden;background:var(--input-bg)}
body.ap .pf-pre>span{display:flex;align-items:center;padding:0 10px;background:var(--sunk);color:var(--muted);font-size:13px;border-left:1px solid var(--line)}
body.ap .pf-pre input{border:0!important;border-radius:0!important;flex:1}
body.ap .pf-eye{border:0;border-right:1px solid var(--line);background:var(--raise);color:var(--text2);font:inherit;font-size:12.5px;padding:0 12px;cursor:pointer}
body.ap .pf-sw{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px;color:var(--text)!important;margin:0}
body.ap .pf-sw input{position:absolute;opacity:0;pointer-events:none}
body.ap .pf-sw i{position:relative;flex-shrink:0;width:40px;height:22px;border-radius:11px;background:var(--raise);border:1px solid var(--line-strong);transition:background .15s}
body.ap .pf-sw i::after{content:"";position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:right .15s,background .15s}
body.ap .pf-sw input:checked+i{background:var(--seed);border-color:var(--seed)}
body.ap .pf-sw input:checked+i::after{right:20px;background:#fff}
body.ap .pf-sw input:focus-visible+i{outline:2px solid var(--focus);outline-offset:2px}
body.ap .pf-seg{display:flex;gap:6px}
body.ap .pf-seg label{flex:1;margin:0;cursor:pointer}
body.ap .pf-seg input{position:absolute;opacity:0}
body.ap .pf-seg span{display:flex;align-items:center;justify-content:center;height:42px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--raise);color:var(--text2);font-size:14px}
body.ap .pf-seg input:checked+span{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:700}
body.ap .pf-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body.ap .pf-stats div{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:12px;background:var(--sunk);border:1px solid var(--line)}
body.ap .pf-stats span{font-size:12px;color:var(--muted)}
body.ap .pf-stats b{font-size:18px;font-weight:800;direction:ltr;text-align:right}
body.ap .pf-up{color:var(--seed)} body.ap .pf-down{color:var(--leech)}
body.ap .pf-cnt{font-size:12px;color:var(--muted);direction:ltr;text-align:left!important}
body.ap .pf-save{position:sticky;bottom:12px;z-index:5;display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-top:14px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:color-mix(in srgb,var(--card) 92%,transparent);backdrop-filter:blur(8px);box-shadow:var(--shadow)}
body.ap .pf-save .pf-f{flex:1;min-width:220px}
body.ap .pf-save .ap-btn{height:42px}
body.ap .ap-btn.pf-ghost{background:var(--raise);color:var(--text)!important;border:1px solid var(--line)}
@media (max-width:900px){body.ap .pf-grid{grid-template-columns:1fr}}
@media (max-width:600px){
  body.ap .pf-form{padding:12px}
  body.ap .pf-row2{grid-template-columns:1fr}
  body.ap .pf-save{bottom:76px}
  body.ap .pf-save .ap-btn{flex:1;justify-content:center}
}
body.ap .pf-form input[dir=ltr]{text-align:left!important}

/* ===== uploads tab (userdetails tab 2) — 2026-11-05 ===== */
body.ap .up-wrap{padding:14px 18px 20px;text-align:right;display:flex;flex-direction:column;gap:12px}
body.ap .up-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.ap .up-head span[style*="float"]{float:none!important}
body.ap .up-head img{width:28px;height:28px}
body.ap .up-nums{display:flex;gap:10px}
body.ap .up-nums div{display:flex;flex-direction:column;padding:8px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card);min-width:100px}
body.ap .up-nums b{font-size:20px;font-weight:800;color:var(--head);direction:ltr;text-align:right}
body.ap .up-nums span{font-size:12px;color:var(--muted)}
body.ap .up-zip{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 14px;border:1px dashed var(--line-strong);border-radius:12px}
body.ap .up-zip-t{font-size:13px;color:var(--text)}
body.ap .up-zip-t small{color:var(--muted)}
body.ap .up-zip-b{display:flex;gap:6px;flex-wrap:wrap}
body.ap .up-zip form{margin:0}
body.ap .up-zip button{height:34px;padding:0 12px;border-radius:9px;border:1px solid var(--line);background:var(--raise);color:var(--text);font:inherit;font-size:13px;cursor:pointer}
body.ap .up-zip button:hover:not(:disabled){border-color:var(--focus);color:var(--head)}
body.ap .up-search{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap;margin:0!important;padding:0!important;background:none!important;border:0!important}
body.ap .up-search-l{font-size:13px;font-weight:700;color:var(--text)}
body.ap .up-search-r{display:flex;gap:8px;align-items:center;flex:1;min-width:260px}
body.ap .up-search-r input[type=search]{flex:1;width:auto!important;height:40px!important;margin:0!important}
body.ap .up-search-r input[type=submit]{height:40px;padding:0 18px;margin:0!important}
body.ap .up-clear{font-size:12.5px;color:var(--muted)!important;white-space:nowrap}
body.ap table.up-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line)!important;border-radius:var(--radius);overflow:hidden;background:var(--card)!important;margin:0}
body.ap table.up-table th{padding:10px 12px!important;font-size:12.5px;font-weight:600;color:var(--muted);background:var(--sunk)!important;border:0!important;text-align:center!important}
body.ap table.up-table th:first-child{text-align:right!important}
body.ap table.up-table td{padding:10px 12px!important;border:0!important;border-top:1px solid var(--line)!important;font-size:13.5px;background:none!important;text-align:center!important;white-space:nowrap}
body.ap table.up-table td.up-name{text-align:right!important;white-space:normal;width:100%}
body.ap table.up-table tr:hover td{background:var(--sunk)!important}
body.ap td.up-name a{color:var(--text)!important;font-weight:600}
body.ap td.up-name a:hover{color:var(--link)!important}
body.ap td.up-date,body.ap td.up-size{color:var(--muted)!important;font-size:12.5px!important}
body.ap td.up-s,body.ap td.up-s a{color:var(--seed)!important;font-weight:700}
body.ap td.up-l,body.ap td.up-l a{color:var(--leech)!important;font-weight:700}
body.ap td.up-c,body.ap td.up-c a{color:var(--link)!important}
body.ap tr.up-dead td.up-name a{color:var(--muted)!important;font-weight:400}
body.ap tr.up-dead td.up-s,body.ap tr.up-dead td.up-s a{color:var(--danger)!important}
body.ap .up-me{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--muted);margin-left:8px;vertical-align:middle}
body.ap .up-me.is-on{background:var(--seed);box-shadow:0 0 0 3px color-mix(in srgb,var(--seed) 25%,transparent)}
body.ap .up-sb{display:inline-flex;align-items:center;gap:2px;margin-right:8px;vertical-align:middle}
body.ap .up-sb img{width:18px;height:18px}
body.ap .up-sb b{font-size:11px;color:var(--muted)}
body.ap .up-anon,body.ap .up-ext{display:inline-block;margin-right:8px;padding:1px 8px;border-radius:9px;font-size:11px;vertical-align:middle;border:1px solid var(--line);color:var(--muted)}
body.ap .up-ext{color:var(--leech);border-color:color-mix(in srgb,var(--leech) 45%,var(--line))}
body.ap .up-empty{padding:28px 18px;border:1px dashed var(--line-strong);border-radius:var(--radius);text-align:center;color:var(--muted)}
@media (max-width:700px){
  body.ap .up-wrap{padding:12px}
  body.ap table.up-table thead{display:none}
  body.ap table.up-table tr.up-row{display:grid;grid-template-columns:repeat(5,auto);gap:4px 12px;padding:10px 12px;border-top:1px solid var(--line);justify-content:start}
  body.ap table.up-table tr.up-row td{border:0!important;padding:0!important;font-size:12.5px}
  body.ap table.up-table td.up-name{grid-column:1 / -1;font-size:14px;padding-bottom:4px!important}
  body.ap td.up-s::before{content:"▲ "} body.ap td.up-l::before{content:"▼ "} body.ap td.up-c::before{content:"✓ "}
}
body.ap form.up-search{flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;text-align:right!important;max-width:none!important;width:auto!important}
body.ap form.up-search>div{margin:0!important;padding:0!important;width:auto!important}
body.ap form.up-search .up-search-r{flex:1}

/* ===== active torrents tab (userdetails tab 3) — 2026-11-05 ===== */
body.ap .ac-g{color:var(--seed)!important} body.ap .ac-o{color:var(--leech)!important}
body.ap .ac-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12.5px;color:var(--muted)}
body.ap .ac-legend span{display:inline-flex;align-items:center;gap:6px}
body.ap .ac-legend i{display:inline-block;width:10px;height:10px;border-radius:3px}
body.ap .ac-legend i.ac-ok,body.ap tr.ac-ok{--ac:var(--seed)}
body.ap .ac-legend i.ac-warn,body.ap tr.ac-warn{--ac:var(--danger)}
body.ap .ac-legend i.ac-off,body.ap tr.ac-off{--ac:#E8A0A0}
body.ap .ac-legend i.ac-none,body.ap tr.ac-none{--ac:var(--line-strong)}
body.ap .ac-legend i{background:var(--ac)}
body.ap table.ac-table td.up-name{box-shadow:inset -3px 0 0 var(--ac)}
body.ap tr.ac-ok td.up-name a{color:var(--seed)!important}
body.ap tr.ac-warn td.up-name a{color:var(--danger)!important}
body.ap tr.ac-off td.up-name a{color:#E8A0A0!important}
body.ap td.ac-stc .ac-st{font-size:18px!important;line-height:1}
body.ap .ac-seed{color:var(--seed)!important} body.ap .ac-leech{color:var(--leech)!important}
body.ap td.ac-seedh{font-weight:600}
body.ap td.ac-ratio{font-weight:700}
body.ap a.collect_points{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:13px;background:var(--gold-bg)!important;border:1px solid color-mix(in srgb,var(--gold) 55%,var(--line));color:var(--gold)!important;font-size:12px;font-weight:700;white-space:nowrap}
body.ap a.collect_points:hover{filter:brightness(1.1)}
body.ap .up-nums{flex-wrap:wrap}
@media (max-width:700px){
  body.ap .up-nums div{flex:1 1 40%;min-width:0}
  body.ap table.ac-table tr.up-row{grid-template-columns:repeat(4,auto);box-shadow:inset -3px 0 0 var(--ac)}
  body.ap table.ac-table td.up-name{box-shadow:none}
  body.ap table.ac-table td.ac-stc{display:none}
}
/* download history (tab 10) */
body.ap .ac-legend i.ac-old,body.ap tr.ac-old{--ac:var(--muted)}
body.ap tr.ac-old td.up-name a{color:var(--muted)!important;font-weight:400}
@media (max-width:700px){body.ap #download_record tr.up-row{grid-template-columns:repeat(4,auto)}}
/* favourites (tab 4) */
body.ap td.wl-x form{margin:0}
body.ap .wl-del{height:30px!important;padding:0 12px!important;border-radius:8px!important;border:1px solid color-mix(in srgb,var(--danger) 50%,var(--line))!important;background:transparent!important;color:var(--danger)!important;font-size:12.5px!important;cursor:pointer}
body.ap .wl-del:hover{background:color-mix(in srgb,var(--danger) 12%,transparent)!important}
@media (max-width:700px){body.ap #wish_list tr.up-row{grid-template-columns:repeat(5,auto)}body.ap #wish_list td.wl-x{grid-column:1 / -1}}
/* requests (tab 5) */
body.ap td.rq-cat a{color:var(--text2)!important;font-size:12.5px}
body.ap td.rq-rw{color:var(--gold)!important;font-weight:800}
body.ap .rq-ok,body.ap .rq-soon,body.ap .rq-end{display:inline-block;padding:2px 10px;border-radius:10px;font-size:12px;font-weight:700}
body.ap .rq-ok{background:color-mix(in srgb,var(--seed) 14%,transparent);color:var(--seed)}
body.ap .rq-soon{background:color-mix(in srgb,var(--leech) 16%,transparent);color:var(--leech)}
body.ap .rq-end{background:color-mix(in srgb,var(--danger) 14%,transparent);color:var(--danger)}
body.ap .up-head>.ap-btn{height:38px}
@media (max-width:700px){body.ap #user_requests tr.up-row{grid-template-columns:repeat(4,auto)}}
/* friends (tab 6) */
body.ap .up-head .friendship_ask{margin:0!important;padding:0!important;background:none!important;border:0!important;width:auto!important}
body.ap a.fr-btn{display:inline-flex;align-items:center;height:38px;padding:0 16px;border-radius:var(--radius-sm);background:var(--accent);color:var(--on-accent)!important;font-weight:700;font-size:13.5px;text-decoration:none}
body.ap a.fr-btn:hover{filter:brightness(1.08)}
body.ap .fr-wait,body.ap .fr-ok{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:17px;font-size:13px;font-weight:600}
body.ap .fr-wait{background:color-mix(in srgb,var(--leech) 14%,transparent);color:var(--leech)}
body.ap .fr-ok{background:color-mix(in srgb,var(--seed) 14%,transparent);color:var(--seed)}
body.ap .fr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}
body.ap .fr-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 10px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);text-align:center;transition:border-color .15s,transform .15s}
body.ap .fr-card:hover{border-color:var(--focus);transform:translateY(-2px)}
body.ap .fr-av{width:64px;height:64px;border-radius:18px;object-fit:cover;border:1px solid var(--line);background:var(--raise)}
body.ap .fr-name{font-size:13.5px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ap .fr-lvl{font-size:11.5px;color:var(--muted)}
@media (max-width:600px){body.ap .fr-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}body.ap .fr-av{width:52px;height:52px}}
body.ap a.fr-btn,body.ap .fr-wait,body.ap .fr-ok{white-space:nowrap}
body.ap .up-head .friendship_ask{flex-shrink:0;float:none!important;height:auto!important}

/* ===== friends tab fix + friends management (userdetails tabs 6, 9) — 2026-11-05 ===== */
/* old main.css gives .friendship_ask max-width:90px -> the button spilled out of the card */
body.ap .up-head .friendship_ask{max-width:none!important;min-width:0!important}
body.ap .fr-grid{grid-template-columns:repeat(auto-fill,minmax(140px,160px));justify-content:start}
body.ap .fm-intro{font-size:13px;color:var(--muted)}
body.ap .tp-note.tp-note-err{border-color:color-mix(in srgb,var(--danger) 45%,var(--line));background:color-mix(in srgb,var(--danger) 10%,var(--card))}
body.ap .fm-sec{display:flex;flex-direction:column;gap:10px}
body.ap h3.fm-h{margin:6px 0 0!important;padding:0!important;font-size:15px;font-weight:700;color:var(--head);border:0!important;background:none!important;text-align:right}
body.ap .fm-reqs{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px}
body.ap .fm-req{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}
body.ap .fm-req .fm-user{flex:1;min-width:0}
body.ap .fm-since{font-size:12px;color:var(--muted);white-space:nowrap}
body.ap .fm-acts{display:flex;gap:6px}
body.ap a.fm-user{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}
body.ap .fm-user span{display:flex;flex-direction:column;min-width:0;line-height:1.35}
body.ap .fm-user b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ap .fm-user small{font-size:11.5px;color:var(--muted);font-weight:400}
body.ap img.fm-av{width:38px;height:38px;border-radius:11px;object-fit:cover;border:1px solid var(--line);background:var(--raise);flex-shrink:0}
body.ap form.fm-f{display:inline-block;margin:0!important;padding:0!important;width:auto!important;max-width:none!important;background:none!important;border:0!important;box-shadow:none!important}
body.ap button.fm-b{height:32px;padding:0 14px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--card);color:var(--text);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap}
body.ap button.fm-ok{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
body.ap button.fm-no{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 40%,var(--line))}
body.ap button.fm-no:hover{background:color-mix(in srgb,var(--danger) 10%,var(--card))}
body.ap button.fm-ghost:hover,body.ap button.fm-ok:hover{filter:brightness(1.06)}
body.ap button.fm-sw{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 4px;border:0;background:none;color:var(--muted);font:inherit;font-size:12.5px;cursor:pointer}
body.ap button.fm-sw i{position:relative;width:36px;height:20px;border-radius:10px;background:var(--line-strong);transition:background .15s;flex-shrink:0}
body.ap button.fm-sw i::after{content:"";position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:right .15s}
body.ap button.fm-sw.on{color:var(--seed);font-weight:600}
body.ap button.fm-sw.on i{background:var(--seed)}
body.ap button.fm-sw.on i::after{right:18px}
body.ap .fm-na{font-size:12px;color:var(--muted)}
body.ap table.fm-table td.up-name{width:auto}
body.ap table.fm-table td:first-child{width:40%}
@media (max-width:700px){
  body.ap .fm-reqs{grid-template-columns:1fr}
  body.ap .fm-req{flex-wrap:wrap}
  body.ap .fm-req .fm-user{flex-basis:100%}
  body.ap table.fm-table thead{display:none}
  body.ap table.fm-table tr.fm-row{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;padding:10px 12px;border-top:1px solid var(--line)}
  body.ap table.fm-table tr.fm-row td{border:0!important;padding:0!important;text-align:right!important;width:auto!important}
  body.ap table.fm-table tr.fm-row td.up-name{grid-column:1 / -1}
  body.ap table.fm-table tr.fm-row td[data-label]:not(.up-name)::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted)}
}
body.ap .fm-req{flex-wrap:wrap}
body.ap .fm-req .fm-since{order:3;flex-basis:100%;padding-right:48px;margin-top:-4px}
body.ap .fm-req .fm-acts{order:2}
@media (max-width:700px){body.ap .fm-wrap .up-nums{width:100%}body.ap .fm-wrap .up-nums div{flex:1;min-width:0;padding:8px 10px}}
/* friends tab header button (v2): no legacy .friendship_ask wrapper */
body.ap .fr-head{flex-wrap:wrap;min-width:0}
body.ap .fr-acts{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
body.ap a.fr-act{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px;border-radius:17px;border:1px solid var(--line-strong);background:var(--card);color:var(--text)!important;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;transition:border-color .15s,color .15s,background .15s;box-sizing:border-box;max-width:100%}
body.ap a.fr-act svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:var(--muted);transition:color .15s}
body.ap a.fr-act:hover{border-color:var(--focus);color:var(--link)!important;background:color-mix(in srgb,var(--focus) 7%,var(--card))}
body.ap a.fr-act:hover svg{color:var(--link)}
body.ap a.fr-act-add{border-color:color-mix(in srgb,var(--seed) 50%,var(--line));color:var(--seed)!important}
body.ap a.fr-act-add svg{color:var(--seed)}
body.ap a.fr-act-add:hover{background:color-mix(in srgb,var(--seed) 10%,var(--card));border-color:var(--seed);color:var(--seed)!important}
body.ap a.fr-act-add:hover svg{color:var(--seed)}
@media (max-width:600px){body.ap .fr-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* block commenters tab (userdetails tab 17) */
body.ap .bl-form .up-search-r{max-width:520px}
body.ap .bl-form input[type=submit]{background:var(--danger)!important;border-color:var(--danger)!important;color:#fff!important}
body.ap table.fm-table tr.fm-row td:last-child{width:1%}
@media (max-width:700px){body.ap form.up-search.bl-form .up-search-r{min-width:0;flex:1 1 100%;max-width:none}body.ap form.bl-form .up-search-r input[type=search]{min-width:0}}
/* warnings tab (userdetails tab 8) */
body.ap .w-rules{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--sunk);font-size:13px;color:var(--text);line-height:1.7}
body.ap .w-rules span{display:inline-block;padding:1px 9px;border-radius:9px;background:color-mix(in srgb,var(--seed) 12%,var(--card));color:var(--seed);font-size:12px;font-weight:600}
body.ap .w-rules.w-pay{background:color-mix(in srgb,var(--accent) 6%,var(--card))}
body.ap .w-table td.up-name a{font-weight:600}
body.ap small.w-sub{display:block;margin-top:2px;font-size:11.5px;color:var(--muted);font-weight:400}
body.ap small.w-sub a.w-s{color:var(--seed)!important;font-weight:600!important} body.ap small.w-sub a.w-l{color:var(--leech)!important;font-weight:600!important}
body.ap .w-gone{color:var(--muted);font-style:italic}
body.ap .w-good{color:var(--seed);font-weight:700} body.ap .w-mid{color:var(--leech);font-weight:700} body.ap .w-bad{color:var(--danger);font-weight:700}
body.ap .w-auto{display:inline-block;padding:2px 9px;border-radius:9px;font-size:12px;background:var(--sunk);color:var(--muted);border:1px solid var(--line)}
body.ap .w-auto.w-done{background:color-mix(in srgb,var(--seed) 12%,var(--card));color:var(--seed);border-color:color-mix(in srgb,var(--seed) 40%,var(--line))}
body.ap .w-cost{font-size:12px;color:var(--muted)}
body.ap button.fm-b[disabled]{opacity:.55;cursor:not-allowed}
@media (max-width:700px){body.ap .w-table tr.fm-row td:last-child{grid-column:1 / -1}}
/* peers page (peers.php) */
body.ap .pr-title{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:15px;font-weight:700}
body.ap .pr-title span{font-size:12px;font-weight:400;color:var(--muted)}
body.ap .pr-title a{color:var(--head)!important;overflow-wrap:anywhere}
body.ap .pr-wrap .up-head{flex-wrap:wrap;align-items:flex-start}
body.ap b.pr-s{color:var(--seed)!important} body.ap b.pr-l{color:var(--leech)!important}
body.ap .pr-user{display:inline-flex;align-items:center;gap:8px}
body.ap .pr-user img{width:18px;height:auto;border-radius:2px}
body.ap .pr-me{font-size:11px;padding:0 7px;border-radius:8px;background:color-mix(in srgb,var(--accent) 14%,var(--card));color:var(--link)}
body.ap .pr-anon{color:var(--muted);font-style:italic}
body.ap .pr-st{display:inline-block;padding:1px 9px;border-radius:9px;font-size:12px;font-weight:600}
body.ap tr.pr-seed .pr-st{background:color-mix(in srgb,var(--seed) 13%,var(--card));color:var(--seed)}
body.ap tr.pr-leech .pr-st{background:color-mix(in srgb,var(--leech) 13%,var(--card));color:var(--leech)}
body.ap .pr-bar{display:inline-block;width:70px;height:6px;border-radius:3px;background:var(--line);overflow:hidden;vertical-align:middle;margin-left:6px}
body.ap .pr-bar i{display:block;height:100%;background:var(--leech);border-radius:3px}
body.ap tr.pr-seed .pr-bar i{background:var(--seed)}
body.ap .pr-pct{font-size:12px;color:var(--muted)}
body.ap td.pr-acts{white-space:nowrap}
body.ap td.pr-acts>a img{width:20px;height:20px;vertical-align:middle;opacity:.75}
body.ap td.pr-acts>a:hover img{opacity:1}
body.ap form.pr-rep{margin-right:8px!important}
body.ap form.pr-rep button{height:26px;padding:0 10px;border-radius:13px;border:1px solid color-mix(in srgb,var(--danger) 40%,var(--line));background:none;color:var(--danger);font:inherit;font-size:11.5px;cursor:pointer}
body.ap form.pr-rep button:hover{background:color-mix(in srgb,var(--danger) 10%,var(--card))}
@media (max-width:700px){body.ap .pr-table tr.fm-row td.pr-acts{grid-column:1 / -1}}
body.ap table.pr-table td:first-child{width:auto}
body.ap table.pr-table td,body.ap table.pr-table th{padding-left:8px!important;padding-right:8px!important}
@media (max-width:700px){body.ap .pr-wrap .up-nums{width:100%}body.ap .pr-wrap .up-nums div{flex:1;min-width:0;padding:8px 10px}}
body.ap table.pr-table td.pr-acts{min-width:96px;width:96px!important}body.ap td.pr-acts{display:table-cell}body.ap form.pr-rep{margin:0 6px 0 0!important}
/* delete torrent page (delete.php) */
body.ap .dl-wrap{max-width:820px;margin:0 auto}
body.ap .dl-head{display:flex;align-items:center;gap:12px}
body.ap .dl-ico{flex-shrink:0;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--danger) 12%,var(--card));color:var(--danger)}
body.ap .dl-ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.ap .dl-t{display:flex;flex-direction:column;gap:2px;min-width:0}
body.ap .dl-t span{font-size:12px;color:var(--muted)}
body.ap .dl-t a{font-size:15.5px;font-weight:700;color:var(--head)!important;overflow-wrap:anywhere}
body.ap .dl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
body.ap .dl-grid div{display:flex;flex-direction:column;gap:2px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card)}
body.ap .dl-grid span{font-size:11.5px;color:var(--muted)}
body.ap .dl-grid b{font-size:13.5px;color:var(--text)}
body.ap .dl-grid i{font-style:normal} body.ap i.pr-s{color:var(--seed)} body.ap i.pr-l{color:var(--leech)}
body.ap details.dl-desc{border:1px solid var(--line);border-radius:10px;background:var(--card)}
body.ap details.dl-desc summary{padding:9px 12px;cursor:pointer;font-size:13px;font-weight:600;color:var(--text)}
body.ap .dl-desc-b{padding:0 12px 12px;max-height:320px;overflow:auto;font-size:13px}
body.ap .dl-desc-b img{max-width:100%;height:auto}
body.ap form.dl-form{display:flex;flex-direction:column;gap:10px;margin:0!important;padding:14px!important;border:1px solid color-mix(in srgb,var(--danger) 35%,var(--line))!important;border-radius:var(--radius);background:color-mix(in srgb,var(--danger) 4%,var(--card))!important;max-width:none!important;width:auto!important;text-align:right}
body.ap .dl-form label{font-size:13.5px;font-weight:700;color:var(--head)}
body.ap .dl-form label em{font-style:normal;font-weight:400;color:var(--muted);font-size:12px}
body.ap .dl-chips{display:flex;flex-wrap:wrap;gap:6px}
body.ap .dl-chips button{height:28px;padding:0 11px;border-radius:14px;border:1px solid var(--line-strong);background:var(--card);color:var(--text);font:inherit;font-size:12px;cursor:pointer}
body.ap .dl-chips button:hover{border-color:var(--focus);color:var(--link)}
body.ap .dl-form textarea{width:100%!important;box-sizing:border-box;min-height:80px;resize:vertical;margin:0!important}
body.ap .dl-warn{font-size:12.5px;color:var(--muted)}
body.ap .dl-acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
body.ap button.dl-del{height:40px;padding:0 20px;border-radius:var(--radius-sm);border:0;background:var(--danger);color:#fff;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
body.ap button.dl-del:hover{filter:brightness(1.07)}
body.ap .dl-wrap,body.ap .dl-wrap .dl-grid div,body.ap .dl-wrap .dl-t,body.ap .dl-wrap .dl-warn,body.ap .dl-desc-b{text-align:right}body.ap .dl-form label{display:block;margin:0}
/* torrent details: subtitle button under the download button */
body.ap a.td-sub{display:flex;align-items:center;gap:10px;padding:9px 14px;border-radius:12px;border:1.5px solid color-mix(in srgb,var(--seed) 55%,var(--line));background:color-mix(in srgb,var(--seed) 9%,var(--card));color:var(--text)!important;text-decoration:none;text-align:right;transition:background .15s,border-color .15s,transform .15s}
body.ap a.td-sub:hover{background:color-mix(in srgb,var(--seed) 16%,var(--card));border-color:var(--seed);transform:translateY(-1px)}
body.ap a.td-sub svg{width:26px;height:26px;flex-shrink:0;fill:none;stroke:var(--seed);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.ap a.td-sub span{display:flex;flex-direction:column;min-width:0;line-height:1.35}
body.ap a.td-sub b{font-size:14px;font-weight:700;color:var(--seed)}
body.ap a.td-sub small{font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* tickets (modules m_tickets + Contact_Us) */
body.ap .tk-wrap{text-align:right}
body.ap .tk-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.ap .tk-t{display:flex;flex-direction:column;gap:3px;min-width:0}
body.ap .tk-t span{font-size:12.5px;color:var(--muted)}
body.ap .tk-t b{font-size:16px;color:var(--head);overflow-wrap:anywhere}
body.ap .tk-st{display:inline-block;padding:2px 10px;border-radius:10px;font-size:12px;font-weight:600;white-space:nowrap}
body.ap .tk-wait{background:color-mix(in srgb,var(--danger) 12%,var(--card));color:var(--danger)}
body.ap .tk-open{background:color-mix(in srgb,var(--seed) 13%,var(--card));color:var(--seed)}
body.ap .tk-closed{background:var(--sunk);color:var(--muted);border:1px solid var(--line)}
body.ap .tk-gone{color:var(--muted);font-style:italic}
body.ap .tk-no{color:var(--muted);font-weight:400;font-size:12px}
body.ap .tk-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
body.ap .tk-facts div{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--sunk)}
body.ap .tk-facts span{font-size:11.5px;color:var(--muted)}
body.ap .tk-facts b{font-size:13.5px} body.ap b.tk-g{color:var(--seed)} body.ap b.tk-r{color:var(--danger)}
body.ap .tk-thread{display:flex;flex-direction:column;gap:12px}
body.ap .tk-msg{max-width:780px;padding:10px 14px;border-radius:14px;border:1px solid var(--line)}
body.ap .tk-member{align-self:flex-start;background:var(--card);border-top-right-radius:4px}
body.ap .tk-staff{align-self:flex-end;background:color-mix(in srgb,var(--accent) 7%,var(--card));border-color:color-mix(in srgb,var(--accent) 30%,var(--line));border-top-left-radius:4px}
body.ap .tk-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px;font-size:13px;font-weight:600}
body.ap .tk-role{font-size:11px;font-weight:600;padding:0 8px;border-radius:8px;background:color-mix(in srgb,var(--accent) 15%,var(--card));color:var(--link)}
body.ap .tk-time{margin-right:auto;font-size:11.5px;font-weight:400;color:var(--muted)}
body.ap .tk-body{font-size:14px;line-height:1.75;overflow-wrap:anywhere;color:var(--text)}
body.ap .tk-body img{max-width:100%;height:auto}
body.ap form.tk-form{display:flex;flex-direction:column;gap:8px;margin:0!important;padding:14px!important;border:1px solid var(--line)!important;border-radius:var(--radius);background:var(--card)!important;max-width:none!important;width:auto!important;text-align:right}
body.ap .tk-form label{display:block;margin:0;font-size:13.5px;font-weight:700;color:var(--head)}
body.ap .tk-form input[type=text],body.ap .tk-form textarea{width:100%!important;box-sizing:border-box;margin:0!important}
body.ap .tk-form textarea{min-height:100px;resize:vertical}
body.ap .tk-acts{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.ap button.tk-send{height:40px;padding:0 22px;border:0;border-radius:var(--radius-sm);background:var(--accent);color:var(--on-accent);font:inherit;font-weight:700;cursor:pointer}
body.ap button.tk-send:hover{filter:brightness(1.07)}
body.ap .tk-hint{font-size:12.5px;color:var(--muted)}
body.ap form.tk-close{margin:0!important;padding:0!important;background:none!important;border:0!important;width:auto!important}
body.ap form.tk-close button{height:34px;padding:0 14px;border-radius:var(--radius-sm);border:1px solid color-mix(in srgb,var(--danger) 40%,var(--line));background:var(--card);color:var(--danger);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
body.ap .nl-filters a.nl-f b{font-weight:700;margin-right:4px;opacity:.8}
body.ap table.tk-table td.up-name a{font-weight:600}
@media (max-width:700px){body.ap .tk-msg{max-width:none;align-self:stretch}}
body.ap .tk-wrap div,body.ap .tk-wrap p{text-align:inherit}
/* tickets: quick replies + minimum bubble width */
body.ap .tk-msg{min-width:min(420px,100%);box-sizing:border-box}
body.ap .tk-quick{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
body.ap .tk-quick span{font-size:12.5px;color:var(--muted);margin-left:4px}
body.ap .tk-quick button{height:30px;padding:0 12px;border-radius:15px;border:1px solid var(--line-strong);background:var(--sunk);color:var(--text);font:inherit;font-size:12.5px;cursor:pointer}
body.ap .tk-quick button:hover{border-color:var(--focus);color:var(--link);background:color-mix(in srgb,var(--focus) 7%,var(--card))}
/* admin: delete member confirmation (reuses the delete-torrent look) */
body.ap .ud-del .ud-del-mail{overflow-wrap:anywhere;font-size:12.5px}
body.ap label.ud-del-ban{display:flex!important;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--text);cursor:pointer}
body.ap label.ud-del-ban input{width:16px;height:16px;margin:0}
body.ap .ud-del .dl-grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr))}body.ap .ud-del .ud-del-mail{word-break:break-all}
/* members list (users.php, admin only) */
body.ap .us-form .up-search-r{flex-wrap:wrap}
body.ap .us-form select{height:40px!important;margin:0!important;width:auto!important}
body.ap .us-count{font-size:13px;color:var(--muted)} body.ap .us-count b{color:var(--head)}
body.ap a.us-sort{color:inherit!important;text-decoration:none} body.ap a.us-sort.is-on{color:var(--link)!important}
body.ap .us-user{display:inline-flex;align-items:center;gap:9px}
body.ap .us-user>img{width:20px;height:auto;border-radius:2px}
body.ap .us-user>span{display:flex;flex-direction:column;line-height:1.35}
body.ap .us-user small{font-size:11.5px;color:var(--muted);font-weight:400}
body.ap td.us-acts{white-space:nowrap;width:1%}
body.ap td.us-acts a{display:inline-flex;margin:0 3px;opacity:.7} body.ap td.us-acts a:hover{opacity:1}
body.ap td.us-acts img{width:18px;height:18px}
@media (max-width:700px){body.ap .us-table tr.fm-row td.us-acts{grid-column:1 / -1;width:auto}}
body.ap table.us-table td.us-acts{min-width:96px;width:96px!important}body.ap .us-wrap .us-count{text-align:right}body.ap table.us-table td:first-child{width:auto}

/* ===== visitors: home landing (gl-*) + login / signup / recover (au-*) — 2026-11-06 ===== */
body.ap .gl{display:flex;flex-direction:column;gap:18px;margin-bottom:22px}
body.ap .gl-hero{display:grid;grid-template-columns:1.35fr 1fr;gap:22px;align-items:stretch;padding:28px;border-radius:22px;border:1px solid var(--line);
  background:radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--accent) 16%,var(--card)) 0%,var(--card) 55%),var(--card)}
body.ap .gl-intro{display:flex;flex-direction:column;justify-content:center;gap:12px;text-align:right}
body.ap .gl-kicker{display:inline-block;align-self:flex-start;padding:3px 12px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,var(--card));color:var(--link);font-size:12.5px;font-weight:700}
body.ap .gl-intro h1{margin:0;padding:0;border:0;background:none;font-size:clamp(24px,3.2vw,36px);line-height:1.25;color:var(--head);font-weight:800;text-align:right}
body.ap .gl-intro p{margin:0;font-size:15.5px;line-height:1.85;color:var(--text2,var(--muted));max-width:560px}
body.ap .gl-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
body.ap .gl-big{height:46px!important;padding:0 22px!important;font-size:15px!important;border-radius:12px!important}
body.ap .gl-stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
body.ap .gl-stats div{display:flex;flex-direction:column;padding:10px 16px;border-radius:14px;background:var(--card);border:1px solid var(--line);min-width:110px}
body.ap .gl-stats b{font-size:21px;font-weight:800;color:var(--head);direction:ltr;text-align:right}
body.ap .gl-stats span{font-size:12px;color:var(--muted)}
body.ap form.gl-login,body.ap form.au-form{display:flex;flex-direction:column;gap:8px;margin:0!important;padding:24px!important;border-radius:18px;border:1px solid var(--line)!important;background:var(--card)!important;
  box-shadow:0 10px 30px -18px rgba(15,23,42,.35);max-width:none!important;width:auto!important;text-align:right}
body.ap .gl-login h2,body.ap .au-form h1{margin:0 0 6px!important;padding:0!important;border:0!important;background:none!important;font-size:20px!important;color:var(--head);font-weight:800;text-align:right}
body.ap .gl-login label,body.ap .au-form>label{display:block;margin:6px 0 0;font-size:13px;font-weight:700;color:var(--text)}
body.ap .gl-login input[type=text],body.ap .gl-login input[type=password],body.ap .au-form input[type=text],body.ap .au-form input[type=password],body.ap .au-form input[type=email],body.ap .au-sel select{
  width:100%!important;max-width:none!important;height:44px!important;margin:0!important;padding:0 12px!important;font-size:15px!important;border-radius:11px!important;box-sizing:border-box}
body.ap .au-pw{position:relative}
body.ap .au-pw input{padding-left:46px!important}
body.ap button.au-eye{position:absolute;left:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:9px;background:transparent;cursor:pointer;opacity:.6;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");background-size:20px;background-repeat:no-repeat;background-position:center}
body.ap button.au-eye.on{opacity:1}
body.ap button.au-eye:hover{opacity:1;background-color:var(--sunk)}
body.ap .gl-submit,body.ap .au-submit{height:46px!important;margin-top:10px!important;font-size:15.5px!important;font-weight:800!important;border-radius:12px!important;width:100%}
body.ap .gl-links,body.ap .au-row{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;margin-top:4px}
body.ap .au-row{justify-content:flex-start;margin-top:2px}
body.ap .gl-feats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
body.ap .gl-feat{display:flex;flex-direction:column;gap:5px;padding:16px;border-radius:16px;border:1px solid var(--line);background:var(--card);text-align:right}
body.ap .gl-feat i{font-style:normal;font-size:22px;line-height:1}
body.ap .gl-feat b{font-size:15px;color:var(--head)}
body.ap .gl-feat span{font-size:13px;color:var(--muted);line-height:1.7}

body.ap .au{display:grid;grid-template-columns:1fr 1.05fr;gap:22px;max-width:920px;margin:6px auto 10px;align-items:stretch}
body.ap .au.au-wide{grid-template-columns:.9fr 1.2fr;max-width:1000px}
body.ap .au-side{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:28px;border-radius:18px;border:1px solid var(--line);text-align:right;
  background:radial-gradient(130% 120% at 100% 0%,color-mix(in srgb,var(--accent) 18%,var(--card)) 0%,var(--card) 60%)}
body.ap .au-side h2{margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:22px;line-height:1.35;color:var(--head);font-weight:800;text-align:right}
body.ap .au-side ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px}
body.ap .au-side li{position:relative;padding-right:28px;font-size:14.5px;color:var(--text)}
body.ap .au-side li::before{content:"✓";position:absolute;right:0;top:1px;width:20px;height:20px;border-radius:50%;background:color-mix(in srgb,var(--seed) 16%,var(--card));color:var(--seed);font-size:12px;font-weight:800;display:grid;place-items:center}
body.ap .au-note{margin:4px 0 0;font-size:12.5px;color:var(--muted);line-height:1.8}
body.ap a.au-guide{align-self:flex-start;font-size:13.5px;font-weight:700;color:var(--link)!important}
body.ap .au-alert{padding:10px 12px;border-radius:10px;border:1px solid color-mix(in srgb,var(--danger) 40%,var(--line));background:color-mix(in srgb,var(--danger) 9%,var(--card));color:var(--text);font-size:13.5px}
body.ap .au-alert.au-warn{border-color:color-mix(in srgb,var(--leech) 45%,var(--line));background:color-mix(in srgb,var(--leech) 9%,var(--card))}
body.ap .au-alert.au-ok{border-color:color-mix(in srgb,var(--seed) 45%,var(--line));background:color-mix(in srgb,var(--seed) 9%,var(--card))}
body.ap .au-hint{font-size:11.5px;color:var(--muted)}
body.ap .au-alt{margin-top:6px;text-align:center!important;font-size:13.5px;color:var(--muted)}
body.ap .au-cap{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.ap .au-cap input{flex:1;min-width:120px;width:auto!important;letter-spacing:2px}
body.ap .au-cap img{border-radius:9px;cursor:pointer;border:1px solid var(--line)}
body.ap .au-cap a{font-size:12.5px}
body.ap label.au-check{display:flex!important;align-items:flex-start;gap:8px;margin-top:10px!important;font-weight:400!important;font-size:13px!important;line-height:1.7}
body.ap label.au-check input{width:17px;height:17px;margin:3px 0 0!important;flex-shrink:0}
body.ap .au-meter{display:flex;align-items:center;gap:10px;font-size:11.5px;color:var(--muted)}
body.ap .au-meter i{flex:1;height:6px;border-radius:3px;background:var(--line);position:relative;overflow:hidden}
body.ap .au-meter i::after{content:"";position:absolute;inset:0 auto 0 0;width:0;border-radius:3px;transition:width .2s,background .2s}
body.ap .au-meter.s1 i::after{width:25%;background:var(--danger)} body.ap .au-meter.s2 i::after{width:50%;background:var(--leech)}
body.ap .au-meter.s3 i::after{width:75%;background:#3b82f6} body.ap .au-meter.s4 i::after{width:100%;background:var(--seed)}
@media (max-width:900px){
  body.ap .gl-hero{grid-template-columns:1fr;padding:20px}
  body.ap .gl-feats{grid-template-columns:repeat(2,1fr)}
  body.ap .au,body.ap .au.au-wide{grid-template-columns:1fr}
  body.ap .au-side{order:2;padding:20px}
}
@media (max-width:520px){
  body.ap .gl-feats{grid-template-columns:1fr}
  body.ap .gl-stats div{flex:1;min-width:0;padding:8px 10px}
  body.ap form.gl-login,body.ap form.au-form{padding:18px!important}
}
body.ap .gl{margin-top:16px}
body.ap .au.au-wide .au-side{justify-content:flex-start;padding-top:40px}
/* visitors from Saudi Arabia: login / signup only */
body.ap .glm{display:flex;justify-content:center;padding:40px 0 30px}
body.ap form.glm-card{width:100%!important;max-width:420px!important}
body.ap .glm-or{display:flex;align-items:center;gap:10px;margin:10px 0 2px;color:var(--muted);font-size:12.5px}
body.ap .glm-or::before,body.ap .glm-or::after{content:"";flex:1;height:1px;background:var(--line)}
body.ap a.glm-signup{height:46px!important;font-size:15px!important;font-weight:800!important;border-radius:12px!important;display:flex!important;align-items:center;justify-content:center}
body.ap .glm .gl-links{justify-content:center}

/* [2026] DB-IP attribution (CC BY 4.0) - small, low contrast */
.ap-foot-geo{font-size:11px;opacity:.55;color:inherit;text-decoration:none;direction:ltr}
.ap-foot-geo:hover{opacity:.9;text-decoration:underline}

/* [2026] signup closed (invitations only) */
.gl-big-off{opacity:.6;cursor:default;pointer-events:none}
.gl-inv{opacity:.75;font-size:13px}
.gl-inv-box{margin:14px 0 0;padding:10px 12px;border-radius:10px;background:var(--ap-soft,rgba(127,127,127,.12));font-size:13px;line-height:1.7;text-align:center}

/* [2026] torrent details: notices (seedbox / other copies / indexed) */
body.ap .td-links{gap:10px;align-items:stretch;max-width:760px;margin:0 auto 16px;width:100%}
body.ap .td-note{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap;width:100%!important;min-width:0!important;margin:0!important;
  padding:12px 14px!important;border-radius:var(--radius-sm)!important;background:var(--raise)!important;border:1px solid var(--line);
  border-inline-start:4px solid var(--accent);font-size:13px!important;text-align:start!important;line-height:1.6;color:var(--text)}
body.ap .td-note-ic{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--card);color:var(--accent)}
body.ap .td-note-tx{flex:1 1 220px;display:flex;flex-direction:column;min-width:0}
body.ap .td-note-tx b{color:var(--head);font-size:14px}
body.ap .td-note-tx span{color:var(--muted);font-size:12.5px}
body.ap .td-note-btn{flex:0 0 auto;display:inline-flex;align-items:center;padding:7px 16px;border-radius:999px;background:var(--accent);color:var(--on-accent)!important;font-weight:700;font-size:13px;white-space:nowrap}
body.ap .td-note-btn:hover{background:var(--accent-h);color:var(--on-accent)!important}
body.ap .td-note-sb{border-inline-start-color:var(--seed)}
body.ap .td-note-sb .td-note-ic{color:var(--seed)}
body.ap .td-note-idx{border-inline-start-color:var(--gold)}
body.ap .td-note-idx .td-note-ic{color:var(--gold)}
body.ap .td-note-idx .td-note-btn{background:var(--gold);color:var(--bg)!important}
body.ap .td-sb-old{display:none!important}
body.ap .td-sb-list{display:flex;flex-wrap:wrap;gap:6px;flex:0 1 auto}
body.ap .td-sb-u{display:inline-flex;align-items:center;gap:3px;padding:3px 10px;border-radius:999px;background:var(--card);border:1px solid var(--line);font-weight:700;font-size:12.5px}
body.ap .td-sb-u sup{font-size:10px;color:var(--muted);top:0}
body.ap .td-pr{display:inline-flex;gap:10px}
body.ap .td-cat .td-v{white-space:normal;overflow:visible;line-height:1.5}/* parent » sub-category: both names visible (was cut with …) */
@media (max-width:560px){
  body.ap .td-note{padding:10px 12px!important}
  body.ap .td-note-btn{width:100%;justify-content:center}
  body.ap .td-sb-list{width:100%}
}
/* [2026] "عرض النسخ": outline button (less blue on blue) */
body.ap .td-note-ver .td-note-btn{background:var(--card);color:var(--text)!important;border:1px solid var(--line-strong);font-weight:600}
body.ap .td-note-ver .td-note-btn:hover{background:var(--raise-h);border-color:var(--on-line);color:var(--head)!important}

/* [2026] torrent details: work links (IMDb / elCinema / TMDB / MAL / ANN) as chips in the facts box */
body.ap .td-xls{grid-column:1/-1}
body.ap .td-xls .td-v{display:flex;flex-wrap:wrap;gap:8px;white-space:normal;overflow:visible;margin-top:4px}
body.ap .td-xl{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:800;
  letter-spacing:.2px;direction:ltr;background:var(--raise);border:1px solid var(--line-strong);color:var(--head)!important;transition:background .15s,border-color .15s,transform .15s}
body.ap .td-xl:hover{transform:translateY(-1px);background:var(--raise-h)}
body.ap .td-xl svg{opacity:.55}
body.ap .td-xl-dot{width:10px;height:10px;border-radius:3px;background:currentColor;flex:0 0 auto}
body.ap .td-xl-imdb{background:#F5C518;border-color:#E2B000;color:#111!important}
body.ap .td-xl-imdb:hover{background:#FFD43B}
body.ap .td-xl-imdb .td-xl-dot{display:none}
body.ap .td-xl-tmdb .td-xl-dot{background:linear-gradient(135deg,#90CEA1,#01B4E4);border-radius:50%}
body.ap .td-xl-tmdb{border-color:rgba(1,180,228,.45)}
body.ap .td-xl-elc .td-xl-dot{background:#1BA6F0;transform:rotate(45deg);border-radius:2px 6px}
body.ap .td-xl-elc{border-color:rgba(27,166,240,.45)}
body.ap .td-xl-mal{background:#2E51A2;border-color:#2E51A2;color:#fff!important}
body.ap .td-xl-mal:hover{background:#3A62BE}
body.ap .td-xl-mal .td-xl-dot{display:none}
body.ap .td-xl-ann .td-xl-dot{background:#E8572A;border-radius:50%}
body.ap .td-xl-link{direction:rtl}
body.ap .td-xl-link .td-xl-dot{background:var(--muted);border-radius:50%}

/* [2026] usercp invitations */
body.ap .inv-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.ap .inv-stat{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--sunk)}
body.ap .inv-stat b{font-size:22px;font-weight:800;color:var(--head)}
body.ap .inv-stat span{font-size:12.5px;color:var(--muted)}
body.ap .inv-list{list-style:none;margin:0;padding:0}
body.ap .inv-row{display:flex;align-items:center;gap:12px;padding:12px 18px;border-top:1px solid var(--line)}
body.ap .inv-row:first-child{border-top:0}
body.ap .inv-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
body.ap .inv-main b{font-size:14px;color:var(--head);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ap .inv-main span{font-size:12.5px;color:var(--muted)}
body.ap .inv-acts{display:flex;gap:8px;align-items:center;flex-shrink:0}
body.ap .inv-acts form{margin:0}
body.ap .inv-acts .ap-btn{height:34px;padding:0 12px;font-size:13px}
body.ap .inv-st{flex-shrink:0;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px}
body.ap .inv-ok{color:var(--seed);background:color-mix(in srgb,var(--seed) 14%,transparent)}
body.ap .inv-wait{color:var(--gold);background:var(--gold-bg)}
body.ap .inv-pager{padding:8px 18px}
body.ap .inv-pager:empty{display:none}
body.ap .inv-wrap textarea{width:100%!important;min-height:110px;resize:vertical}
body.ap .inv-wrap input[type=email]{width:100%!important;height:42px!important}
@media (max-width:600px){
  body.ap .inv-row{flex-wrap:wrap;padding:12px 14px}
  body.ap .inv-acts{width:100%}
  body.ap .inv-acts .ap-btn,body.ap .inv-acts form{flex:1}
  body.ap .inv-acts form .ap-btn{width:100%}
  body.ap .inv-stat b{font-size:18px}
}
body.ap .inv-flash>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
body.ap .inv-flink input{font-size:12.5px!important}
body.ap .inv-flink .ap-btn{height:42px;flex-shrink:0}

/* [2026] module=stats (أفضل الملفات) */
body.ap .st-page{display:flex;flex-direction:column;gap:18px}
body.ap .st-nav{display:flex;flex-wrap:wrap;gap:8px}
body.ap .st-nav a{padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--raise);color:var(--text);font-size:13px;font-weight:600}
body.ap .st-nav a:hover{border-color:var(--accent);color:var(--head)}
body.ap .st-sec{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:16px;scroll-margin-top:80px}
body.ap .st-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
body.ap .st-head h2{margin:0;font-size:17px;color:var(--head)}
body.ap .st-head p{margin:2px 0 0;font-size:12.5px;color:var(--muted)}
body.ap .st-ico{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--raise);color:var(--accent)}
body.ap #st-awards .st-ico{color:var(--gold)}
body.ap .st-sec .file-list{display:flex;flex-direction:column;gap:10px}
body.ap .st-rank{flex:0 0 auto;display:grid;place-items:center;min-width:28px;height:28px;border-radius:8px;background:var(--raise);color:var(--muted);font-weight:800;font-size:13px}
body.ap .st-item:first-child .st-rank{background:var(--gold-bg);color:var(--gold)}
body.ap #st-bycat .st-rank{display:none}
body.ap .st-sec .download-btn{display:inline-flex;align-items:center;background:var(--accent);color:var(--on-accent)!important}
body.ap .st-sec .download-btn:hover{background:var(--accent-h)}
body.ap .st-dl{color:var(--muted)}
body.ap .st-empty{margin:0;padding:14px;border-radius:10px;background:var(--sunk);color:var(--muted);font-size:13px;text-align:center}
@media (max-width:600px){ body.ap .st-sec{padding:12px} body.ap .st-nav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px} body.ap .st-nav a{white-space:nowrap} }
body.ap .st-sec .file-header{display:flex;align-items:center}
body.ap .st-sec .file-header .filename{flex:1}
body.ap .st-sec .file-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 16px;font-size:13px;color:var(--muted)}
body.ap .st-sec .meta-group{display:flex;flex-wrap:wrap;gap:4px 14px}
body.ap .st-sec .stats-group{display:flex}
body.ap .st-sec .file-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
body.ap .st-sec .file-tags:empty{display:none}
body.ap .st-page,body.ap .st-page>*{min-width:0;max-width:100%}

/* [2026] admin: site log / staff log */
body.ap .lg-wrap{display:flex;flex-direction:column;gap:14px}
body.ap .lg-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
body.ap .lg-head h2{margin:0;font-size:18px;color:var(--head)}
body.ap .lg-n{font-size:14px;color:var(--muted);font-weight:600}
body.ap .lg-head p{margin:4px 0 0;font-size:13px;color:var(--muted)}
body.ap .lg-switch a{font-size:13px;font-weight:700}
body.ap .lg-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:0}
body.ap .lg-chips{display:flex;gap:6px;flex-wrap:wrap}
body.ap .lg-chip{padding:5px 12px;border-radius:999px;border:1px solid var(--line);background:var(--raise);color:var(--text);font-size:13px;font-weight:600}
body.ap .lg-chip.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
body.ap .lg-search{display:flex;gap:8px;flex:1 1 260px;max-width:420px}
body.ap .lg-search input{flex:1;height:38px!important}
body.ap .lg-search .ap-btn{height:38px}
body.ap .lg-list{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden;background:var(--card)}
body.ap .lg-row{display:flex;gap:12px;align-items:flex-start;padding:10px 14px;border-top:1px solid var(--line)}
body.ap .lg-row:first-child{border-top:0}
body.ap .lg-type{flex:0 0 auto;min-width:52px;text-align:center;font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:999px;margin-top:2px}
body.ap .lg-add{color:var(--seed);background:color-mix(in srgb,var(--seed) 14%,transparent)}
body.ap .lg-modify{color:var(--gold);background:var(--gold-bg)}
body.ap .lg-delete{color:var(--danger);background:color-mix(in srgb,var(--danger) 14%,transparent)}
body.ap .lg-type.lg-other{color:var(--muted)}
body.ap span.lg-other{background:var(--raise)}
body.ap .lg-chip.lg-add.on,body.ap .lg-chip.lg-modify.on,body.ap .lg-chip.lg-delete.on,body.ap .lg-chip.lg-other.on{color:var(--on-accent)}
body.ap .lg-body{flex:1;min-width:0}
body.ap .lg-txt{font-size:13.5px;line-height:1.7;color:var(--text);overflow-wrap:anywhere;unicode-bidi:plaintext;text-align:start}
body.ap .lg-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:3px;font-size:12px;color:var(--muted)}
body.ap .lg-meta b{color:var(--head)}
body.ap .lg-date{direction:ltr;opacity:.7}
body.ap .lg-empty{margin:0;padding:18px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:var(--radius-sm)}
body.ap .lg-pager:empty{display:none}
@media (max-width:600px){ body.ap .lg-date{display:none} body.ap .lg-search{max-width:none} }

/* [2026] admin: seedbox IPs */
body.ap .sbx-wrap{display:flex;flex-direction:column;gap:14px;max-width:820px}
body.ap .sbx-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);overflow:hidden}
body.ap .sbx-head{display:flex;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line)}
body.ap .sbx-head h2{margin:0;font-size:16px;color:var(--head)}
body.ap .sbx-head p{margin:3px 0 0;font-size:12.5px;color:var(--muted);line-height:1.7}
body.ap .sbx-head-l{justify-content:space-between;flex-wrap:wrap}
body.ap .sbx-ico{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--raise);color:var(--seed)}
body.ap .sbx-add{display:flex;flex-direction:column;gap:8px;padding:14px 16px;margin:0}
body.ap .sbx-add label{font-weight:700;font-size:13px;color:var(--head)}
body.ap .sbx-add textarea{width:100%!important;min-height:76px;font-family:ui-monospace,Consolas,monospace;resize:vertical}
body.ap .sbx-add-f{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
body.ap .sbx-filter{height:36px!important;width:220px!important;max-width:100%}
body.ap .sbx-list{list-style:none;margin:0;padding:0}
body.ap .sbx-row{display:flex;align-items:center;gap:12px;padding:10px 16px;border-top:1px solid var(--line)}
body.ap .sbx-row:first-child{border-top:0}
body.ap .sbx-ip{font-family:ui-monospace,Consolas,monospace;font-weight:700;font-size:14px;min-width:140px;color:var(--head)}
body.ap .sbx-meta{flex:1;font-size:12.5px;color:var(--muted)}
body.ap .sbx-row form{margin:0}
body.ap .sbx-del{height:32px;padding:0 12px;font-size:13px}
body.ap .sbx-empty{margin:0;padding:18px;text-align:center;color:var(--muted)}
@media (max-width:600px){ body.ap .sbx-row{flex-wrap:wrap} body.ap .sbx-meta{flex-basis:100%;order:3} body.ap .sbx-filter{width:100%!important} }
body.ap .sbx-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0}
body.ap .sbx-search .ap-btn{height:36px}
body.ap .sbx-clear{font-size:12.5px}
body.ap .sbx-pager{padding:8px 16px}
body.ap .sbx-pager:empty{display:none}

/* [2026] admin: categories */
body.ap .ct-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);overflow:hidden;margin-bottom:14px}
body.ap .ct-head{display:flex;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line)}
body.ap .ct-head-l{justify-content:space-between;flex-wrap:wrap}
body.ap .ct-head h2{margin:0;font-size:16px;color:var(--head)}
body.ap .ct-head p{margin:3px 0 0;font-size:12.5px;color:var(--muted)}
body.ap .ct-list{list-style:none;margin:0;padding:0}
body.ap .ct-row{display:flex;align-items:center;gap:12px;padding:9px 16px;border-top:1px solid var(--line)}
body.ap .ct-row:first-child{border-top:0}
body.ap .ct-main{background:var(--raise)}
body.ap .ct-sub{padding-inline-start:44px}
body.ap .ct-img{flex:0 0 auto;width:36px;height:36px;border-radius:8px;overflow:hidden;background:var(--sunk);display:grid;place-items:center}
body.ap .ct-img img{max-width:100%;max-height:100%;object-fit:contain}
body.ap .ct-body{flex:1;min-width:0;display:flex;flex-direction:column}
body.ap .ct-body b{color:var(--head);font-size:14px}
body.ap .ct-main .ct-body b{font-size:15px}
body.ap .ct-meta{font-size:12px;color:var(--muted)}
body.ap .ct-meta em{font-style:normal;font-weight:700}
body.ap .ct-on{color:var(--seed)} body.ap .ct-off{color:var(--muted)}
body.ap .ct-acts{display:flex;gap:6px;align-items:center;flex-shrink:0}
body.ap .ct-acts form{margin:0}
body.ap .ct-acts .ap-btn{height:32px;padding:0 12px;font-size:13px}
body.ap .ct-nodel{opacity:.4;cursor:not-allowed;background:var(--raise)!important;color:var(--muted)!important}
body.ap .ct-form{margin:0}
body.ap .ct-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px}
body.ap .ct-f{display:flex;flex-direction:column;gap:6px;font-size:13px}
body.ap .ct-f>span{font-weight:700;color:var(--head)}
body.ap .ct-f em{font-style:normal;font-weight:400;color:var(--muted)}
body.ap .ct-wide{grid-column:1/-1}
body.ap .ct-f input,body.ap .ct-f select,body.ap .ct-f textarea{width:100%!important}
body.ap .ct-radio{display:flex;gap:16px;align-items:center;height:42px}
body.ap .ct-radio label{display:flex;gap:6px;align-items:center;font-weight:600}
body.ap .ct-imgsel{display:flex;gap:12px;align-items:center}
body.ap .ct-imgsel select{flex:1}
body.ap .ct-imgsel img{width:48px;height:48px;object-fit:contain;border-radius:8px;background:var(--sunk);border:1px solid var(--line)}
body.ap .ct-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--line);background:var(--raise)}
@media (max-width:600px){ body.ap .ct-grid{grid-template-columns:1fr} body.ap .ct-sub{padding-inline-start:24px} body.ap .ct-row{flex-wrap:wrap} body.ap .ct-acts{width:100%;justify-content:flex-end} }
body.ap .ct-l2{padding-inline-start:72px}
body.ap .ct-l3{padding-inline-start:100px}
body.ap .ct-l2 .ct-body b::before,body.ap .ct-l3 .ct-body b::before{content:"↳ ";color:var(--muted);font-weight:400}
@media (max-width:600px){ body.ap .ct-l2{padding-inline-start:40px} body.ap .ct-l3{padding-inline-start:56px} }

/* [2026] admin: seed bonus settings */
body.ap .bn-wrap{display:flex;flex-direction:column;gap:14px;max-width:960px}
body.ap .bn-wrap form{display:flex;flex-direction:column;gap:14px;margin:0}
body.ap .bn-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:14px 16px}
body.ap .bn-card header h3{margin:0;font-size:16px;color:var(--head)}
body.ap .bn-card header p{margin:3px 0 12px;font-size:12.5px;color:var(--muted)}
body.ap .bn-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
body.ap .bn-f{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--text)}
body.ap .bn-f>span{font-weight:600;line-height:1.5}
body.ap .bn-in{display:flex;align-items:center;border:1px solid var(--line-strong);border-radius:10px;background:var(--sunk);overflow:hidden}
body.ap .bn-in input{flex:1;min-width:0;border:0!important;background:transparent!important;height:40px!important;box-shadow:none!important;direction:ltr;text-align:right}
body.ap .bn-in em{font-style:normal;font-size:12px;color:var(--muted);padding:0 12px;border-inline-start:1px solid var(--line);height:40px;display:flex;align-items:center;background:var(--raise)}
body.ap .bn-in:focus-within{border-color:var(--accent)}
body.ap .bn-sub{margin:16px 0 10px;font-size:14px;color:var(--head)}
body.ap .bn-packs{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
body.ap .bn-pack{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--raise)}
body.ap .bn-pack b{color:var(--head)}
body.ap .bn-pack small{color:var(--muted);font-size:12px}
body.ap .bn-save{position:sticky;bottom:12px;display:flex;justify-content:flex-end;padding:10px;border-radius:12px;background:color-mix(in srgb,var(--card) 88%,transparent);border:1px solid var(--line);backdrop-filter:blur(6px)}


/* ===== 2026-11-08: UI review fixes ===== */
/* mixed Arabic / English torrent names: direction from the first letter (no "?Ali G: Who Iz I") */
body.ap a[href*="page=torrent-details"],body.ap .tor_link,body.ap .file-item .filename,body.ap .td-fname,body.ap .ap-card-t{unicode-bidi:plaintext;text-align:right}
/* old fonts left in tables / <font> / inline styles */
body.ap table,body.ap td,body.ap th,body.ap font,body.ap input,body.ap select,body.ap textarea,body.ap button{font-family:inherit}
body.ap font[face],body.ap [style*="font-family"]:not(pre):not(code){font-family:inherit!important}
/* buttons: readable text */
body.ap input[type=submit],body.ap input[type=button],body.ap .download-btn,body.ap .send-btn{font-size:14px}
/* section titles in the torrent list (day / pinned) */
body.ap td.tl-sec{background:transparent!important;color:var(--head)!important;font-weight:800;font-size:15px;padding:8px 4px 4px!important;border-bottom:1px solid var(--line)}
body.ap td.tl-pin::before{content:"\1F4CC";margin-inline-end:6px;font-size:13px}
/* "full size" link under the big pictures of the description */
body.ap a.img-full{display:inline-block;font-size:12px;color:var(--muted);text-decoration:none;margin:2px 0 6px}
body.ap a.img-full:hover{color:var(--accent);text-decoration:underline}

/* ===== 2026-11-08: UI review batch 2 ===== */
/* pager: page X of N */
body.ap .pager-info{display:inline-block;margin-inline-start:8px;font-size:12.5px;color:var(--muted);white-space:nowrap}
/* sort links in the torrent list: words instead of emoji */
body.ap .tl-sort{display:inline-flex;gap:6px;align-items:center;font-size:13px;color:var(--muted)}
body.ap .tl-sort a{display:inline-flex;align-items:center;height:28px;padding:0 10px;border:1px solid var(--line);border-radius:8px;color:var(--text2);text-decoration:none}
body.ap .tl-sort a:hover{border-color:var(--focus);color:var(--head)}
/* side blocks in two columns (tablets): each card its own height */
@media (max-width:1040px){ .ap-side{align-items:start} }
@media (max-width:640px){
  /* "most active": name gets the room, two lines at most */
  body.ap table.topseeded td:first-child{width:28px;padding-inline:4px}
  body.ap table.topseeded td{padding:9px 6px}
  body.ap table.topseeded td:nth-child(2) a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  /* rows you can swipe: fade at the edge so it is clear there is more */
  .ap-stats-row,.ap-cats-strip,body.ap #chatForm>div,body.ap ul.tabs{-webkit-mask-image:linear-gradient(to left,#000 85%,transparent);mask-image:linear-gradient(to left,#000 85%,transparent)}
  /* finger-size targets */
  body.ap .ap-card-h a,.ap-cats-strip a,body.ap ul.tabs a,body.ap .pager a,body.ap .pagercurrent,body.ap .tl-sort a{min-height:32px;display:inline-flex;align-items:center;justify-content:center}
  body.ap .pager a,body.ap .pagercurrent{min-width:32px}
}

/* ===== 2026-11-08: UI review batch 3 ===== */
/* old coloured PNG icons -> line icons in the text colour (dark mode too); browsers without :has() keep the PNG */
body.ap a:has(> img[src$="edit.png"]){--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L18.5 9.5a2.1 2.1 0 0 0-3-3L5 17v3z'/%3E%3Cpath d='m13.5 6.5 3 3'/%3E%3C/svg%3E")}
body.ap a:has(> img[src$="delete.png"]){--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M5 7l1 13h12l1-13M9 7V4h6v3'/%3E%3C/svg%3E")}
body.ap a:has(> img[src$="quote.png"]){--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M8 9h8M8 12h5'/%3E%3C/svg%3E")}
body.ap a:has(> img[src$="uptoserver.png"]){--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M4 20h16'/%3E%3C/svg%3E")}
body.ap a:has(> img[src$="rss-filter.png"]){--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6 8v6l-4-2v-4z'/%3E%3C/svg%3E")}
body.ap a:has(> img[src$="/rss.png"]),body.ap a:has(> img[src="rss.png"]){--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='18' r='1.5'/%3E%3Cpath d='M5 11a8 8 0 0 1 8 8M5 5a14 14 0 0 1 14 14'/%3E%3C/svg%3E")}
body.ap a:has(> img[src$="edit.png"]) > img,body.ap a:has(> img[src$="delete.png"]) > img,body.ap a:has(> img[src$="quote.png"]) > img,body.ap a:has(> img[src$="uptoserver.png"]) > img,body.ap a:has(> img[src$="rss-filter.png"]) > img,body.ap a:has(> img[src$="/rss.png"]) > img,body.ap a:has(> img[src="rss.png"]) > img{display:none!important}
body.ap a:has(> img[src$="edit.png"]),body.ap a:has(> img[src$="delete.png"]),body.ap a:has(> img[src$="quote.png"]),body.ap a:has(> img[src$="uptoserver.png"]),body.ap a:has(> img[src$="rss-filter.png"]),body.ap a:has(> img[src$="/rss.png"]),body.ap a:has(> img[src="rss.png"]){display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;color:var(--text2);vertical-align:middle}
body.ap a:has(> img[src$="edit.png"])::before,body.ap a:has(> img[src$="delete.png"])::before,body.ap a:has(> img[src$="quote.png"])::before,body.ap a:has(> img[src$="uptoserver.png"])::before,body.ap a:has(> img[src$="rss-filter.png"])::before,body.ap a:has(> img[src$="/rss.png"])::before,body.ap a:has(> img[src="rss.png"])::before{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
body.ap a:has(> img[src$="edit.png"]):hover,body.ap a:has(> img[src$="delete.png"]):hover,body.ap a:has(> img[src$="quote.png"]):hover,body.ap a:has(> img[src$="uptoserver.png"]):hover,body.ap a:has(> img[src$="rss-filter.png"]):hover,body.ap a:has(> img[src$="/rss.png"]):hover,body.ap a:has(> img[src="rss.png"]):hover{color:var(--head)}
body.ap a:has(> img[src$="delete.png"]):hover{color:var(--danger)}
/* admin tools on the torrent page: same look as the other icon buttons, no dashed box */
body.ap .td-mod{border:1px solid var(--line)!important;background:var(--sunk)}
body.ap .td-mod a{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--text2)}
/* chat: grey lines until the messages arrive (no "BTIT SHOUT" flash) */
body.ap li.chat-skel{list-style:none;display:flex;flex-direction:column;gap:10px;padding:14px 4px}
body.ap li.chat-skel .sk{display:block;height:12px;width:80%;border-radius:6px;background:linear-gradient(90deg,var(--raise),var(--line),var(--raise));background-size:200% 100%;animation:apSk 1.2s linear infinite}
body.ap li.chat-skel .sk2{width:60%} body.ap li.chat-skel .sk3{width:70%}
body.ap li.chat-skel .loader{display:none}
@keyframes apSk{from{background-position:200% 0}to{background-position:0 0}}
@media (prefers-reduced-motion:reduce){body.ap li.chat-skel .sk{animation:none}}
/* latest comments: name + comment + torrent */
body.ap table.lc26{display:block}
body.ap table.lc26 tbody{display:block}
body.ap table.lc26 tr{display:block;border-inline-start:0;border-bottom:1px solid var(--line-soft)}
body.ap table.lc26 tr:last-child{border-bottom:0}
body.ap table.lc26 td{display:block;padding:10px 16px;line-height:1.7}
body.ap table.lc26 .lc-who{font-weight:700;color:var(--head)}
body.ap table.lc26 .lc-sep{color:var(--muted)}
body.ap table.lc26 a.lc-text{color:var(--text2)}
body.ap table.lc26 a.lc-tor{display:block;font-size:12px;color:var(--muted);unicode-bidi:plaintext;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ap table.lc26 a.lc-tor::before{content:"\21B3  ";}
body.ap table.lc26 a:hover{color:var(--accent);text-decoration:underline}
/* profile: the second row (my settings) as small buttons, not a second row of tabs */
body.ap ul.ud-cp-tabs{background:transparent!important;border:0!important;box-shadow:none!important;padding:0 0 12px!important;gap:8px;display:flex;flex-wrap:wrap;align-items:center}
body.ap ul.ud-cp-tabs::before{content:"\2699\FE0F  إعدادات حسابي:";font-size:12.5px;color:var(--muted);margin-inline-end:4px}
body.ap ul.ud-cp-tabs li{margin:0!important}
body.ap ul.ud-cp-tabs li a{height:30px!important;padding:0 12px!important;border:1px solid var(--line)!important;border-radius:999px!important;background:var(--card)!important;font-size:12.5px!important;color:var(--text2)!important;display:inline-flex;align-items:center}
body.ap ul.ud-cp-tabs li a:hover{border-color:var(--focus)!important;color:var(--head)!important}

/* ===== 2026-11-08: UI review 2 — batch A ===== */
/* cards: no vertical scrollbar from a 1px difference (overflow-x:auto also turned on y) */
body.ap .ap-card-b{overflow-y:hidden}
/* "latest additions": grey poster cards until the first load */
body.ap .mgz-sk{aspect-ratio:2/3;border-radius:10px;background:linear-gradient(90deg,var(--raise),var(--line),var(--raise));background-size:200% 100%;animation:apSk 1.2s linear infinite}
@media (prefers-reduced-motion:reduce){body.ap .mgz-sk{animation:none}}
/* seed bonus page: section titles like the other section titles; balance line instead of <h1> */
body.ap .sb26-h{background:transparent!important;color:var(--head)!important;font-weight:800;font-size:15px!important;padding:6px 2px 6px!important;margin:22px 0 8px!important;border-bottom:1px solid var(--line)}
body.ap .sb26-top{display:flex;flex-direction:column;gap:4px;padding:14px 16px;margin:0 0 6px;border:1px solid var(--line);border-radius:var(--radius);background:var(--sunk)}
body.ap .sb26-bal{font-size:15px;color:var(--text)}
body.ap .sb26-bal b{font-size:20px;color:var(--head);margin:0 4px}
body.ap .sb26-hint{font-size:12.5px;color:var(--muted)}
/* ranks page */
body.ap .lv26{display:flex;flex-direction:column;gap:22px}
body.ap .lv-h{margin:0 0 8px;font-size:15px;font-weight:800;color:var(--head);padding-bottom:6px;border-bottom:1px solid var(--line)}
body.ap .lv-scroll{overflow-x:auto}
body.ap table.lv-t{width:100%;border-collapse:collapse;font-size:13px}
body.ap table.lv-t th{font-size:12px;font-weight:700;color:var(--muted);background:var(--sunk);padding:8px;text-align:center;vertical-align:bottom}
body.ap table.lv-t td{padding:8px;border-top:1px solid var(--line);text-align:center;white-space:nowrap}
body.ap table.lv-t td:first-child,body.ap table.lv-t th:first-child{text-align:right}
body.ap .lv-note{font-size:12.5px;color:var(--text2);line-height:1.8;margin-top:8px}
body.ap .lv-note ul{margin:0;padding-inline-start:18px}
@media (max-width:700px){
  body.ap table.lv-t thead{display:none}
  body.ap table.lv-t,body.ap table.lv-t tbody,body.ap table.lv-t tr,body.ap table.lv-t td{display:block;width:100%}
  body.ap table.lv-t tr{border:1px solid var(--line);border-radius:12px;margin:0 0 10px;padding:6px 10px;background:var(--card)}
  body.ap table.lv-t td{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line-soft);padding:7px 0;white-space:normal;text-align:left}
  body.ap table.lv-t td:first-child{border-top:0;font-size:14.5px;justify-content:flex-start}
  body.ap table.lv-t td:not(:first-child)::before{content:attr(data-label);color:var(--muted);font-size:12px;text-align:right}
  body.ap table.lv-t td:first-child::before{content:none}
}
/* peers: Owner's "immunity" button (fake-seed reports) */
body.ap form.pr-imm{display:inline-block;margin:0 6px 0 0!important}
body.ap form.pr-imm button{height:26px;padding:0 10px;border-radius:13px;border:1px solid var(--line);background:none;color:var(--text2);font:inherit;font-size:12px;cursor:pointer}
body.ap form.pr-imm button:hover{border-color:var(--focus);color:var(--head)}
body.ap form.pr-imm.is-on button{border-color:color-mix(in srgb,var(--seed) 55%,var(--line));color:var(--seed);background:color-mix(in srgb,var(--seed) 10%,transparent)}
body.ap table.pr-table td.pr-acts{min-width:150px;width:auto!important}
/* anime magazine: a small title over each row of buttons */
body.ap .al-row-t{display:block;font-size:12.5px;font-weight:700;color:var(--muted);margin:10px 0 4px}
body.ap .al-row{display:flex!important;flex-wrap:wrap;gap:6px;margin:0 0 6px}
/* reports (module=reports): same table / counters / tabs as the other member pages */
body.ap .rp-wrap .up-nums .rp-n1{color:var(--danger)} body.ap .rp-wrap .up-nums .rp-n2{color:var(--leech)}
body.ap .rp-wrap .pr-title span{font-size:16px;font-weight:800;color:var(--head)}
body.ap .rp-tabs{padding:0!important}
body.ap table.rp-table td{white-space:normal!important;vertical-align:top}
body.ap table.rp-table td.up-name{text-align:right!important;min-width:260px}
body.ap .rp-id{font-size:12px;color:var(--muted);margin-inline-end:4px}
body.ap a.rp-tor{font-weight:700;unicode-bidi:plaintext}
body.ap .rp-del{color:var(--muted);font-style:italic}
body.ap .rp-cat{font-size:12px;margin-top:2px} body.ap .rp-cat a{color:var(--text2)!important;font-weight:400}
body.ap .rp-det{margin-top:6px;padding:6px 10px;border-radius:8px;background:var(--sunk);font-size:12.5px;color:var(--text2)}
body.ap .rp-st{display:inline-block;padding:2px 10px;border-radius:10px;font-size:12px;font-weight:700;white-space:nowrap}
body.ap .rp-st1{background:color-mix(in srgb,var(--danger) 13%,var(--card));color:color-mix(in srgb,var(--danger) 65%,var(--head))}
body.ap .rp-st2{background:color-mix(in srgb,var(--leech) 15%,var(--card));color:color-mix(in srgb,var(--leech) 65%,var(--head))}
body.ap .rp-st3{background:color-mix(in srgb,var(--seed) 14%,var(--card));color:color-mix(in srgb,var(--seed) 65%,var(--head))}
body.ap td.rp-hd{text-align:right!important;font-size:12.5px;min-width:160px}
body.ap .rp-k{color:var(--muted)} body.ap .rp-why{color:var(--text2);margin:2px 0 4px}
body.ap .rp-none{color:var(--muted)}
body.ap tr.rp-act-row td{border-top:0!important;padding-top:0!important}
body.ap table.up-table tr.rp-act-row:hover td{background:none!important}
body.ap form.rp-form{display:flex!important;flex-wrap:wrap;gap:8px;align-items:center}
body.ap form.rp-form input[type=text]{flex:1 1 260px;height:36px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--input-bg,var(--card));color:var(--text);font:inherit}
body.ap button.rp-b{height:36px;padding:0 16px;border-radius:18px;border:1px solid var(--line-strong);background:var(--card);color:var(--text);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
body.ap button.rp-b:hover{border-color:var(--focus)}
body.ap button.rp-b-ok{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
@media (max-width:700px){body.ap table.rp-table td.up-name{min-width:0} body.ap table.fm-table tr.rp-act-row{border-top:0}}
body.ap .rp-wrap .up-head{flex-wrap:wrap}

/* comment like / dislike: line icons in the text colour (the PNGs were dark on the dark theme) */
body.ap .comment_voting{display:inline-flex;align-items:center;gap:4px}
body.ap .comment_voting button.upvote,body.ap .comment_voting button.downvote,body.ap .comment_voting button.upvoted,body.ap .comment_voting button.downvoted{width:30px;height:30px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--card)!important;background-image:none!important;color:var(--text2);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
body.ap .comment_voting button::before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
body.ap .comment_voting button[name=upVote]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v11H4V10z'/%3E%3Cpath d='M7 10l4-7a2 2 0 0 1 3 2l-1 5h6a2 2 0 0 1 2 2.3l-1.4 7A2 2 0 0 1 17.6 21H7'/%3E%3C/svg%3E")}
body.ap .comment_voting button[name=downVote]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 14V3H4v11z'/%3E%3Cpath d='M7 14l4 7a2 2 0 0 0 3-2l-1-5h6a2 2 0 0 0 2-2.3l-1.4-7A2 2 0 0 0 17.6 3H7'/%3E%3C/svg%3E")}
body.ap .comment_voting button.upvote:hover{color:var(--seed);border-color:var(--seed)}
body.ap .comment_voting button.downvote:hover{color:var(--danger);border-color:var(--danger)}
body.ap .comment_voting button.upvoted{color:var(--seed);border-color:var(--seed);background:color-mix(in srgb,var(--seed) 14%,var(--card))!important}
body.ap .comment_voting button.downvoted{color:var(--danger);border-color:var(--danger);background:color-mix(in srgb,var(--danger) 12%,var(--card))!important}
body.ap .comment_voting .vote-count{min-width:18px;text-align:center;font-size:13px;font-weight:700;color:var(--head)}
/* BBCode editor (txtbbcode.tpl): tools in one row, the 4 lists in one row, icons visible in dark mode */
body.ap .bb26{display:flex!important;flex-wrap:wrap;gap:6px;align-items:center;width:100%}
body.ap .bb26>div{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
body.ap .bb26>div:first-of-type{flex-basis:100%}
body.ap .bb26 img{cursor:pointer;padding:3px;border-radius:6px;border:1px solid transparent}
body.ap .bb26 img:hover,body.ap .bb26 img:focus-visible{border-color:var(--line-strong);background:var(--raise)}
html[data-theme="dark"] body.ap .bb26 img{filter:invert(1) hue-rotate(180deg)}
body.ap .bb26 select{width:auto!important;min-width:0;max-width:200px;height:34px;font-size:13px}
/* news page (viewnews.tpl) */
body.ap .nw26{display:flex;flex-direction:column;gap:14px;text-align:right}
body.ap .nw-item{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);overflow:hidden}
body.ap .nw-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--sunk)}
body.ap .nw-title{margin:0;font-size:16px;font-weight:800;color:var(--head);flex:1 1 auto}
body.ap .nw-tools{display:flex;gap:6px}
body.ap a.nw-btn{display:inline-flex;align-items:center;height:30px;padding:0 12px;border:1px solid var(--line-strong);border-radius:15px;font-size:12.5px;font-weight:700;color:var(--text2)!important;text-decoration:none!important;background:var(--card)}
body.ap a.nw-btn:hover{border-color:var(--focus);color:var(--head)!important}
body.ap a.nw-del:hover{border-color:var(--danger);color:var(--danger)!important}
body.ap .nw-body{padding:14px 16px;line-height:1.9;color:var(--text)}
body.ap .nw-foot{display:flex;gap:14px;padding:8px 16px;border-top:1px solid var(--line-soft);font-size:12.5px;color:var(--muted)}
@media (max-width:700px){
  /* download history cards: a small title over each number */
  body.ap table.ac-table td[data-label]::before{content:attr(data-label);display:block;font-size:10.5px;font-weight:400;color:var(--muted);direction:rtl;margin-bottom:1px}
}
/* ===== upload form (upload.tpl / upload.movies.tpl) ===== */
body.ap .up26-rules{border:1px solid var(--line);border-radius:var(--radius);background:var(--sunk);padding:12px 16px;margin:0 0 14px;text-align:right;line-height:1.9;font-size:13.5px;color:var(--text2)}
body.ap .up26-rules b{display:block;font-size:14.5px;color:var(--head);margin-bottom:2px}
body.ap .up26-rules ul{margin:0;padding-inline-start:20px}
body.ap .upload_fom{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:6px 16px 16px}
body.ap table.up26-tbl{width:100%!important;border-collapse:collapse;border:0!important;background:none!important}
body.ap table.up26-tbl>tbody>tr>td{padding:12px 0!important;border:0!important;border-bottom:1px solid var(--line-soft)!important;vertical-align:top;background:none!important;text-align:right}
body.ap table.up26-tbl>tbody>tr>td:first-child:not([colspan]){width:170px;padding-inline-end:14px!important;padding-top:20px!important;font-weight:700;font-size:13.5px;color:var(--head)}
body.ap table.up26-tbl>tbody>tr:last-child>td{border-bottom:0!important}
body.ap table.up26-tbl input[type=text],body.ap table.up26-tbl input[type=file],body.ap table.up26-tbl select{width:100%!important;max-width:620px;box-sizing:border-box}
body.ap table.up26-tbl input[type=file]{padding:8px;border:1px dashed var(--line-strong);border-radius:10px;background:var(--sunk);cursor:pointer}
body.ap table.up26-tbl td>a img{vertical-align:middle;margin-inline-start:6px}
body.ap table.up26-tbl textarea{width:100%!important;box-sizing:border-box;min-height:220px}
body.ap .movies_qly{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
body.ap .movies_qly>div{flex-basis:100%}
body.ap #resDIV{display:flex!important;flex-wrap:wrap;gap:6px;margin-top:6px;padding:0!important;background:none!important}
body.ap label.up26-chip{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:1px solid var(--line);border-radius:16px;background:var(--card);font-size:13px;cursor:pointer;direction:ltr}
body.ap label.up26-chip:has(input:checked){border-color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,var(--card));color:var(--head);font-weight:700}
body.ap label.up26-chip input{margin:0;accent-color:var(--accent)}
body.ap table.up26-tbl input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent);vertical-align:middle}
body.ap table.up26-tbl td[colspan]{text-align:center!important;padding-top:18px!important}
body.ap input.up26-send,body.ap input.up26-prev{height:42px!important;padding:0 26px!important;border-radius:21px!important;font-size:14.5px!important;font-weight:800!important;cursor:pointer;margin:0 4px}
body.ap input.up26-send{background:var(--accent)!important;border:1px solid var(--accent)!important;color:var(--on-accent)!important}
body.ap input.up26-prev{background:var(--card)!important;border:1px solid var(--line-strong)!important;color:var(--text)!important}
body.ap .upload_fom .tag-container{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--input-bg,var(--card));max-width:620px}
body.ap .upload_fom .tag-container input{border:0!important;background:none!important;flex:1 1 160px;width:auto!important}
body.ap .upload_fom .tag{display:inline-flex;gap:6px;align-items:center;padding:2px 10px;border-radius:12px;background:var(--raise);font-size:12.5px}
body.ap .upload_fom .remove-tag{cursor:pointer;color:var(--muted)}
@media (max-width:700px){
  body.ap table.up26-tbl>tbody>tr{display:block;border-bottom:1px solid var(--line-soft)}
  body.ap table.up26-tbl>tbody>tr>td{display:block;width:auto!important;border-bottom:0!important;padding:6px 0!important}
  body.ap table.up26-tbl>tbody>tr>td:first-child:not([colspan]){padding-top:12px!important}
}
body.ap .up26-hint{margin-top:6px;font-size:12.5px;color:var(--muted);line-height:1.7}
body.ap .up26-coll{flex-basis:100%;display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:4px}
body.ap .up26-count{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--text2)}
body.ap table.up26-tbl .up26-count input[type=number]{width:80px!important;height:32px;padding:0 8px;text-align:center;border:1px solid var(--line-strong);border-radius:8px;background:var(--input-bg,var(--card));color:var(--text);font:inherit}
body.ap .up26-rules li{margin:2px 0}
/* upload: announce URL box with copy */
body.ap .up26-annbox{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:12px 16px;margin:0 0 14px;text-align:right}
body.ap .up26-annbox b{display:block;font-size:14.5px;color:var(--head)}
body.ap .up26-annbox p{margin:2px 0 8px;font-size:13px;color:var(--muted)}
body.ap .up26-ann{display:flex;align-items:center;gap:8px;margin:0 0 6px}
body.ap .up26-ann code{flex:1 1 auto;min-width:0;overflow-x:auto;white-space:nowrap;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--sunk);font-size:13px;color:var(--head);text-align:left}
body.ap button.up26-copy{flex:0 0 auto;height:36px;padding:0 14px;border-radius:18px;border:1px solid var(--line-strong);background:var(--card);color:var(--text);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
body.ap button.up26-copy:hover{border-color:var(--focus)}
/* 116 upload: hint aligned right, text links instead of icons */
body.ap table.up26-tbl .up26-hint{display:block;text-align:right!important;direction:rtl}
body.ap .up26-hint a.up26-ext{color:var(--accent);font-weight:700;text-decoration:none;border-bottom:1px dashed currentColor;unicode-bidi:isolate}
body.ap .up26-hint a.up26-ext:hover{border-bottom-style:solid}
body.ap .up26-hint a.up26-ext::after{content:" ↗";font-size:11px}

/* 117 bbcode colours: legacy text colours remapped to a palette readable in light+dark */
body.ap span[style*="color: #000000;" i],body.ap span[style*="color: #000;" i],body.ap span[style*="color:black;" i],body.ap span[style*="color: #333333;" i],body.ap span[style*="color: #ffffff;" i],body.ap span[style*="color: #fff;" i],body.ap span[style*="color:white;" i],body.ap span[style*="color:ffffff;" i],body.ap span[style*="color:fff;" i]{color:var(--text)!important}
body.ap span[style*="color: #2f4f4f;" i],body.ap span[style*="color: #c0c0c0;" i],body.ap span[style*="color:silver;" i],body.ap span[style*="color: #808080;" i],body.ap span[style*="color:gray;" i]{color:#7D8A99!important}
body.ap span[style*="color: #191970;" i],body.ap span[style*="color:navy;" i],body.ap span[style*="color: #0000ff;" i],body.ap span[style*="color:blue;" i]{color:#3B82F6!important}
body.ap span[style*="color: #4b0082;" i],body.ap span[style*="color: #800080;" i],body.ap span[style*="color:purple;" i],body.ap span[style*="color: #e6e6fa;" i],body.ap span[style*="color: #6a5acd;" i]{color:#9B6BF2!important}
body.ap span[style*="color: #8b0000;" i],body.ap span[style*="color:maroon;" i],body.ap span[style*="color: #ff0000;" i],body.ap span[style*="color:red;" i],body.ap span[style*="color: #ff6b6b;" i]{color:#E5484D!important}
body.ap span[style*="color: #006400;" i],body.ap span[style*="color:green;" i],body.ap span[style*="color: #00ff00;" i],body.ap span[style*="color:lime;" i],body.ap span[style*="color: #98fb98;" i]{color:#2F9E44!important}
body.ap span[style*="color: #ffa500;" i]{color:#E8590C!important}
body.ap span[style*="color: #ffd700;" i],body.ap span[style*="color:yellow;" i],body.ap span[style*="color:olive;" i]{color:#BF8200!important}
body.ap span[style*="color:fuchsia;" i],body.ap span[style*="color: #ffc0cb;" i],body.ap span[style*="color: #ffb6c1;" i]{color:#E64980!important}
body.ap span[style*="color: #87ceeb;" i],body.ap span[style*="color: #40e0d0;" i],body.ap span[style*="color: #20b2aa;" i],body.ap span[style*="color:teal;" i],body.ap span[style*="color:aqua;" i]{color:#0C9AA6!important}
body.ap span[style^="background: #" i],body.ap span[style^="background: black" i],body.ap span[style^="background: gray" i],body.ap span[style^="background: red" i],body.ap span[style^="background: blue" i],body.ap span[style^="background: purple" i],body.ap span[style^="background: navy" i],body.ap span[style^="background: maroon" i],body.ap span[style^="background: green" i],body.ap span[style^="background: teal" i],body.ap span[style^="background: olive" i],body.ap span[style^="background: fuchsia" i]{color:#fff;padding:1px 6px;border-radius:5px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
body.ap span[style^="background: yellow" i],body.ap span[style^="background: white" i],body.ap span[style^="background: silver" i],body.ap span[style^="background: lime" i],body.ap span[style^="background: aqua" i]{color:#111;padding:1px 6px;border-radius:5px}
body.ap span[style^="background: #"] span[style*="color:"]{color:inherit!important}
body.ap .bb26 select option{background:var(--card);color:var(--text)}
/* 120 comment form */
body.ap .cm26{padding:14px 18px 20px;text-align:right;display:flex;flex-direction:column;gap:14px}
body.ap .cm26-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--line-soft)}
body.ap .cm26-title{margin:0 0 4px;font-size:18px;color:var(--head)}
body.ap .cm26-tor{display:block;font-size:13px;color:var(--muted)!important;text-decoration:none;unicode-bidi:plaintext;max-width:640px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ap .cm26-tor:hover{color:var(--accent)!important}
body.ap .cm26-back{height:36px;font-size:13px;flex:none}
body.ap .cm26-preview{border:1px solid var(--line);border-radius:var(--radius,12px);background:var(--sunk);overflow:hidden}
body.ap .cm26-label{padding:8px 14px;font-size:12.5px;font-weight:700;color:var(--muted);border-bottom:1px solid var(--line-soft)}
body.ap .cm26-preview-body{display:block;margin:0!important;padding:14px!important;color:var(--text);line-height:1.8;overflow-wrap:anywhere}
body.ap .cm26-preview-body img{max-width:100%;height:auto}
body.ap #comment_div{display:flex;flex-direction:column;gap:12px;margin:0;background:none!important;color:inherit!important;padding:0!important}
body.ap .cm26-editor textarea{width:100%!important;max-width:100%!important;box-sizing:border-box;min-height:200px;resize:vertical}
body.ap .cm26-mod{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--sunk);cursor:pointer;font-size:13.5px;color:var(--text)}
body.ap .cm26-mod input{width:18px;height:18px;accent-color:var(--danger);margin:0}
body.ap .cm26-mod b{color:var(--danger);margin-inline-start:4px}
body.ap .cm26-actions{display:flex;gap:10px;flex-wrap:wrap}
body.ap .cm26-actions input{height:42px;padding:0 22px;border-radius:10px;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
body.ap .cm26-send{background:var(--accent)!important;color:var(--on-accent,#fff)!important;border:0!important;min-width:120px}
body.ap .cm26-prev{background:var(--raise)!important;color:var(--text)!important;border:1px solid var(--line)!important}
body.ap .cm26-send:hover{filter:brightness(1.08)}
body.ap .cm26-prev:hover{border-color:var(--line-strong)!important}
@media (max-width:600px){
  body.ap .cm26{padding:12px}
  body.ap .cm26-actions input{flex:1}
  body.ap .cm26-back{width:100%;justify-content:center}
}
/* 121 rank badges (classes added to xbtit_users_level.prefixcolor; old style ignores them) */
body.ap .rk-c1{--rk:#868E96}body.ap .rk-c3{--rk:#868E96}body.ap .rk-c13{--rk:#868E96}
body.ap .rk-c4{--rk:#4DABF7}body.ap .rk-c14{--rk:#845EF7}body.ap .rk-c15{--rk:#22B8CF}
body.ap .rk-c5{--rk:#FD7E14}body.ap .rk-c26{--rk:#FA5252}body.ap .rk-c27{--rk:#E64980}body.ap .rk-c28{--rk:#F59F00}
body.ap .rk-c29{--rk:#2F9E44}
body.ap .rk-c17{--rk:#0C9AA6}body.ap .rk-c6{--rk:#3B82F6}body.ap .rk-c7{--rk:#E5484D}body.ap .rk-c8{--rk:#E5484D}
body.ap .rk-dot,body.ap .rk-ring{color:var(--text)!important}
body.ap .rk-dot::before,body.ap .rk-ring::before{content:"";display:inline-block;width:.55em;height:.55em;border-radius:50%;margin-inline-end:.38em;vertical-align:.1em;flex:none}
body.ap .rk-dot::before{background:var(--rk)}
body.ap .rk-ring::before{box-shadow:inset 0 0 0 2px var(--rk)}
body.ap .rk-full{color:var(--rk)!important;font-weight:700}
body.ap .rk-ban{color:var(--muted)!important;text-decoration:line-through}
body.ap .rk-gold{color:#F5C542!important;font-weight:700}
:root[data-theme="light"] body.ap .rk-gold{color:#B7791F!important}
body.ap .rk-gold img{display:none!important}
body.ap .rk-gold::before{content:"";display:inline-block;width:1em;height:1em;margin-inline-end:.25em;vertical-align:-.12em;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7l4.5 4L12 4l4.5 7L21 7l-2 11H5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7l4.5 4L12 4l4.5 7L21 7l-2 11H5z'/%3E%3C/svg%3E") center/contain no-repeat}
/* 122 ranks: plain member without dot */
body.ap .rk-c3::before{display:none}
/* 126 best torrent of the month (module=best_torrent) */
body.ap .bt26{padding:14px 18px 20px;display:flex;flex-direction:column;gap:16px;text-align:right}
body.ap .bt26-intro{font-size:13.5px;color:var(--muted);line-height:1.7}
body.ap .bt26-card{border:1px solid var(--line);border-radius:var(--radius,12px);background:var(--card);overflow:hidden}
body.ap .bt26-head{display:flex;align-items:center;gap:14px;padding:14px 16px;border-bottom:1px solid var(--line-soft);background:var(--sunk);flex-wrap:wrap}
body.ap .bt26-trophy{width:40px;height:40px;flex:none;border-radius:12px;background:color-mix(in srgb,#F5C542 18%,transparent);position:relative}
body.ap .bt26-trophy::after{content:"";position:absolute;inset:9px;background:#D99A00;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E") center/contain no-repeat}
body.ap .bt26-ttl{flex:1;min-width:200px;text-align:right}
body.ap .bt26-ttl h3{margin:0 0 3px;font-size:16.5px;color:var(--head)}
body.ap .bt26-ttl small{font-size:12.5px;color:var(--muted);line-height:1.6}
body.ap .bt26-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
body.ap .bt26-st{font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap}
body.ap .bt26-st-on{color:var(--seed);background:color-mix(in srgb,var(--seed) 14%,transparent)}
body.ap .bt26-st-wait{color:#D97706;background:color-mix(in srgb,#F59F00 15%,transparent)}
body.ap .bt26-st-off{color:var(--muted);background:var(--raise)}
body.ap .bt26-award{font-size:12px;color:var(--text2);white-space:nowrap}
body.ap .bt26-empty{padding:26px 16px;text-align:center;color:var(--muted);font-size:13.5px}
body.ap .bt26-scroll{overflow-x:auto}
body.ap table.bt26-t{width:100%;border-collapse:collapse;font-size:13.5px}
body.ap table.bt26-t th{padding:10px 12px;font-size:12px;font-weight:700;color:var(--muted);text-align:right;border-bottom:1px solid var(--line);white-space:nowrap;background:none}
body.ap table.bt26-t td{padding:11px 12px;border-bottom:1px solid var(--line-soft);vertical-align:middle;color:var(--text);text-align:right;background:none}
body.ap table.bt26-t tbody tr:last-child td{border-bottom:0}
body.ap table.bt26-t tbody tr:hover td{background:var(--raise)}
body.ap .bt26-rank{width:44px}
body.ap .bt26-rank span{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:50%;font-weight:800;font-size:13px;color:var(--muted);background:var(--raise)}
body.ap .bt26-p1 .bt26-rank span{background:#F5C542;color:#5C3D00}
body.ap .bt26-p2 .bt26-rank span{background:#C9D1DB;color:#2B3440}
body.ap .bt26-p3 .bt26-rank span{background:#D9A066;color:#4A2A0A}
body.ap .bt26-name a{font-weight:700;color:var(--head);unicode-bidi:plaintext;overflow-wrap:anywhere}
body.ap .bt26-name .free{font-size:11px;margin-inline-start:6px;vertical-align:middle}
body.ap .bt26-lead{display:inline-block;margin-inline-start:6px;font-size:11px;font-weight:700;padding:1px 8px;border-radius:999px;color:#5C3D00;background:#F5C542;vertical-align:middle}
body.ap .bt26-sub{margin-top:4px;font-size:12px}
body.ap .bt26-open{color:var(--seed)}
body.ap .bt26-closed{color:var(--muted)}
body.ap .bt26-votes{width:80px;white-space:nowrap}
body.ap .bt26-votes b{display:inline-flex;align-items:center;gap:5px;font-size:15px;color:var(--accent)}
body.ap .bt26-votes b::before{content:"";width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7 .7-5.3 4.7 1.6 7L12 17.3 5.7 21l1.6-7L2 9.3l7-.7z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7 .7-5.3 4.7 1.6 7L12 17.3 5.7 21l1.6-7L2 9.3l7-.7z'/%3E%3C/svg%3E") center/contain no-repeat}
body.ap .bt26-peers{white-space:nowrap;direction:rtl;text-align:right;color:var(--muted);width:100px}
body.ap .bt26-s{color:var(--seed);font-weight:700}body.ap .bt26-l{color:var(--leech);font-weight:700}
body.ap .bt26-up{white-space:nowrap;width:140px}
body.ap .bt26-muted{color:var(--muted)}
@media (max-width:700px){
  body.ap .bt26{padding:10px}
  body.ap .bt26-meta{flex-direction:row;align-items:center;width:100%}
  body.ap table.bt26-t thead{display:none}
  body.ap table.bt26-t,body.ap table.bt26-t tbody,body.ap table.bt26-t tr,body.ap table.bt26-t td{display:block;width:auto}
  body.ap table.bt26-t tr{display:grid;grid-template-columns:auto auto auto 1fr;gap:6px 14px;padding:12px;border-bottom:1px solid var(--line-soft);align-items:center}
  body.ap table.bt26-t td.bt26-name{grid-column:2 / -1}
  body.ap table.bt26-t td{border:0;padding:0}
  body.ap table.bt26-t td.bt26-rank{grid-row:span 2;width:auto;align-self:start}
  body.ap table.bt26-t td.bt26-votes,body.ap table.bt26-t td.bt26-peers,body.ap table.bt26-t td.bt26-up{display:inline-block;width:auto;font-size:12.5px}
  body.ap table.bt26-t td.bt26-votes::after,body.ap table.bt26-t td.bt26-peers::after{content:none}
  body.ap .bt26-votes b{font-size:13.5px}
}
/* 128 small pages without header (no_header_1_column): shout history, more smilies */
body.ap.ap-mini{display:block;min-height:100vh;background:var(--bg);color:var(--text)}
body.ap .ap-mini-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px;background:var(--hdr);border-bottom:1px solid var(--line)}
body.ap .ap-mini-logo{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--head)!important;font-weight:800;font-size:16px;direction:ltr}
body.ap .ap-mini-logo b{color:var(--accent)}
body.ap .ap-mini-close{height:34px;padding:0 14px;border-radius:9px;border:1px solid var(--line);background:var(--raise);color:var(--text);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
body.ap .ap-mini-close:hover{border-color:var(--line-strong)}
body.ap .ap-mini-main{max-width:900px;margin:16px auto;padding:0 12px}
/* shout history */
body.ap .sh26{display:flex;flex-direction:column;gap:8px;padding:12px}
body.ap .sh26-msg{border:1px solid var(--line-soft);border-radius:12px;background:var(--sunk);padding:10px 14px}
body.ap .sh26-is-priv{border-color:color-mix(in srgb,var(--danger) 45%,transparent)}
body.ap .sh26-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
body.ap .sh26-user{font-weight:700;font-size:13.5px;text-decoration:none;color:var(--head)}
body.ap .sh26-priv{font-size:11px;font-weight:700;color:var(--danger);background:color-mix(in srgb,var(--danger) 12%,transparent);padding:1px 7px;border-radius:999px}
body.ap .sh26-time{font-size:12px;color:var(--muted);margin-inline-start:auto}
body.ap .sh26-acts{display:inline-flex;gap:4px}
body.ap .sh26-acts a{width:28px;height:28px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);border:1px solid transparent}
body.ap .sh26-acts a:hover{background:var(--raise);border-color:var(--line)}
body.ap .sh26-acts a.sh26-del:hover{color:var(--danger)}
body.ap .sh26-acts a::before{content:"";width:15px;height:15px;background:currentColor}
body.ap .sh26-edit::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E") center/contain no-repeat}
body.ap .sh26-del::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M5 7l1 13h12l1-13M9 7V4h6v3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M5 7l1 13h12l1-13M9 7V4h6v3'/%3E%3C/svg%3E") center/contain no-repeat}
body.ap .sh26-text{font-size:14px;line-height:1.75;color:var(--text);unicode-bidi:plaintext;text-align:start;overflow-wrap:anywhere}
body.ap .sh26-text img{max-width:100%;height:auto;vertical-align:middle}
body.ap .sh26-text a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
body.ap .sh26-editbox{margin:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
body.ap .sh26-edit-ttl{font-weight:800;color:var(--head);margin-bottom:8px}
body.ap .sh26-editbox .chatoutput{margin:6px 0 10px;padding:10px;border-radius:10px;background:var(--sunk);unicode-bidi:plaintext;text-align:start}
body.ap .sh26-editbox div[style*="margin-top:-1"]{margin:0!important}
body.ap .sh26-editbox img.DeleteSwap{display:none}
body.ap .sh26-editbox a:has(img.DeleteSwap)::before{content:"حذف الرسالة";color:var(--danger);font-size:12.5px;font-weight:700}
body.ap .sh26-editbox textarea{width:100%!important;box-sizing:border-box;min-height:80px}
body.ap .sh26-editbox input[type=submit]{height:36px;padding:0 16px;border-radius:9px;margin-inline-end:6px;font:inherit;font-weight:700;cursor:pointer;background:var(--raise);color:var(--text);border:1px solid var(--line)}
body.ap .sh26-editbox input[type=submit]:first-of-type{background:var(--accent);color:#fff;border:0}
/* more smilies */
body.ap .ms26{display:grid;grid-template-columns:repeat(auto-fill,40px);gap:4px;justify-content:center;padding:12px}
body.ap .ms26 a{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid transparent}
body.ap .ms26 a:hover,body.ap .ms26 a:focus-visible{background:var(--raise);border-color:var(--line)}
body.ap .ms26 img{max-width:34px;max-height:34px}
/* 130 chat composer: smilies button + panel, history link (style 2026 only) */
body.ap #chatForm>div.cb26{flex-basis:100%;overflow:visible;position:relative}
body.ap .cb26-row{display:flex;gap:8px;align-items:center}
body.ap .cb26-field{flex:1;position:relative;display:flex;align-items:center;min-width:0}
body.ap .cb26 #chatbarText{flex:1;width:100%!important;height:44px;padding-inline-start:12px;padding-inline-end:46px;border-radius:10px;box-sizing:border-box}
body.ap .cb26-emo{position:absolute;inset-inline-end:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:8px;border:1px solid transparent;background:none;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
body.ap .cb26-emo::before{content:"";width:21px;height:21px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 10h.01M15 10h.01M8.5 14.5a4.5 4.5 0 0 0 7 0'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 10h.01M15 10h.01M8.5 14.5a4.5 4.5 0 0 0 7 0'/%3E%3C/svg%3E") center/contain no-repeat}
body.ap .cb26-emo:hover,body.ap .cb26-emo[aria-expanded=true]{color:var(--accent);background:var(--raise);border-color:var(--line)}
body.ap .cb26 .cb26-send{height:44px;padding:0 18px;border-radius:10px;border:0;background:var(--accent);color:var(--on-accent,#fff);font:inherit;font-weight:700;font-size:14px;cursor:pointer;display:inline-flex;align-items:center;gap:7px;flex:none}
body.ap .cb26 .cb26-send::before{content:"";width:16px;height:16px;background:currentColor;transform:scaleX(-1);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14L21 3M21 3l-6.5 18a.55.55 0 0 1-1 0L10 14l-7-3.5a.55.55 0 0 1 0-1z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14L21 3M21 3l-6.5 18a.55.55 0 0 1-1 0L10 14l-7-3.5a.55.55 0 0 1 0-1z'/%3E%3C/svg%3E") center/contain no-repeat}
body.ap .cb26 .cb26-send:hover{filter:brightness(1.08)}
body.ap .cb26 .cb26-send:disabled{opacity:.55;cursor:default;filter:none}
body.ap .cb26-pop{position:absolute;bottom:calc(100% + 8px);inset-inline-end:0;z-index:40;width:min(360px,100%);max-height:220px;overflow-y:auto;padding:8px 10px;border:1px solid var(--line-strong);border-radius:12px;background:var(--card);box-shadow:0 12px 32px rgba(0,0,0,.28)}
body.ap .cb26-pop[hidden],body.ap .cb26-pop [hidden]{display:none!important}
body.ap .cb26-pt{text-align:right;font-size:11.5px;font-weight:700;color:var(--muted);margin:2px 2px 6px}
body.ap .cb26-recent{margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid var(--line-soft)}
body.ap .cb26-grid{display:grid;grid-template-columns:repeat(auto-fill,40px);gap:2px}
body.ap .cb26-sm{width:40px;height:40px;padding:0;border:1px solid transparent;border-radius:8px;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center}
body.ap .cb26-sm:hover,body.ap .cb26-sm:focus-visible{background:var(--raise);border-color:var(--line);outline:none}
body.ap .cb26-sm img{max-width:32px;max-height:32px}
body.ap .cb26-meta{display:flex;gap:16px;margin-top:8px;font-size:12.5px}
body.ap .cb26-meta a{display:inline-flex;align-items:center;gap:5px;color:var(--muted);text-decoration:none}
body.ap .cb26-meta a:hover{color:var(--text)}
body.ap .cb26-hist::before{content:"";width:15px;height:15px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v4l2 2'/%3E%3Cpath d='M3.05 11a9 9 0 1 1 .5 4M3 4v5h5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v4l2 2'/%3E%3Cpath d='M3.05 11a9 9 0 1 1 .5 4M3 4v5h5'/%3E%3C/svg%3E") center/contain no-repeat}
@media (max-width:600px){
  body.ap .cb26 .cb26-send{padding:0 14px}
  body.ap .cb26-pop{width:100%}
}
/* 136 friendly empty states (empty_state() in include/security.php) */
body.ap .es26{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:34px 18px 30px;border:1px dashed var(--line-strong);border-radius:var(--radius,12px);background:var(--sunk);margin:6px 0}
body.ap .es26-ic{width:54px;height:54px;border-radius:16px;background:color-mix(in srgb,var(--accent) 13%,transparent);position:relative;margin-bottom:6px}
body.ap .es26-ic::after{content:"";position:absolute;inset:13px;background:var(--accent)}
body.ap .es26-t{font-size:15.5px;color:var(--head);font-weight:800}
body.ap .es26-p{margin:0;max-width:420px;font-size:13.5px;line-height:1.7;color:var(--muted)}
body.ap .es26-btn{margin-top:10px;display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 18px;border-radius:10px;background:var(--accent);color:var(--on-accent,#fff)!important;font-weight:700;font-size:13.5px;text-decoration:none!important}
body.ap .es26-btn:hover{filter:brightness(1.08)}
body.ap .es26-btn span{transition:transform .15s}
body.ap .es26-btn:hover span{transform:translateX(-3px)}
body.ap .es26-dl::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat}
body.ap .es26-up::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V9M7 14l5-5 5 5'/%3E%3Cpath d='M5 4h14'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V9M7 14l5-5 5 5'/%3E%3Cpath d='M5 4h14'/%3E%3C/svg%3E") center/contain no-repeat}
body.ap .es26-star::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9 6.8 19.6l1-5.8-4.3-4.1 5.9-.9z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9 6.8 19.6l1-5.8-4.3-4.1 5.9-.9z'/%3E%3C/svg%3E") center/contain no-repeat}
body.ap .es26-req::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 1 3.5 10.9V16h-7v-2.1A6 6 0 0 1 12 3z'/%3E%3Cpath d='M9.5 20h5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 1 3.5 10.9V16h-7v-2.1A6 6 0 0 1 12 3z'/%3E%3Cpath d='M9.5 20h5'/%3E%3C/svg%3E") center/contain no-repeat}
body.ap .es26-search::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat}
body.ap .es26-star{background:color-mix(in srgb,#F5C542 18%,transparent)}body.ap .es26-star::after{background:#D99A00}
/* 138 small fixes */
body.ap .free,body.ap .seedbox{font-size:12px;font-weight:700;font-style:normal;line-height:1.6;padding:1px 7px}
body.ap span.imgtext{z-index:2}   /* "عرض بالحجم الكامل" stayed above the mobile bottom bar (z-index:100 in main.css) */
body.ap .sz26{unicode-bidi:isolate;white-space:nowrap}
/* 139 seedbox: text badge only (the magazine blocks print both the image and the badge) */
body.ap .Mitemsize img[src="SEEDBOX.png"],body.ap .mgz_peers img[src="SEEDBOX.png"]{display:none!important}
body.ap .seedbox{display:inline-block!important;font-style:normal;background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent);white-space:nowrap}
body.ap .es26-pic::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2.5'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M20.5 16l-5-5-8.5 8.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2.5'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M20.5 16l-5-5-8.5 8.5'/%3E%3C/svg%3E") center/contain no-repeat}
/* 141 broken covers (module=Bad_Poster) */
body.ap .bp26{padding:14px 18px 20px;display:flex;flex-direction:column;gap:14px;text-align:right}
body.ap .bp-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
body.ap .bp-intro{margin:0;font-size:13.5px;color:var(--muted)}
body.ap .bp-links{display:flex;gap:8px}
body.ap .bp-lnk{height:34px;display:inline-flex;align-items:center;padding:0 14px;border-radius:9px;border:1px solid var(--line);background:var(--raise);color:var(--text)!important;font-size:13px;font-weight:700;text-decoration:none}
body.ap .bp-lnk:hover{border-color:var(--line-strong)}
body.ap .bp-note{padding:10px 14px;border-radius:10px;font-size:13.5px;font-weight:700}
body.ap .bp-note.bp-ok{color:var(--seed);background:color-mix(in srgb,var(--seed) 12%,transparent)}
body.ap .bp-note.bp-err{color:var(--danger);background:color-mix(in srgb,var(--danger) 12%,transparent)}
body.ap .bp-card{border:1px solid var(--line);border-radius:var(--radius,12px);background:var(--card);overflow:hidden}
body.ap .bp-ch{display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--sunk);border-bottom:1px solid var(--line-soft)}
body.ap .bp-ch h3{margin:0;font-size:15px;color:var(--head);flex:1;text-align:right}
body.ap .bp-n{min-width:26px;height:24px;padding:0 8px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;background:var(--raise);color:var(--muted)}
body.ap .bp-hint{margin:0;padding:10px 16px 0;font-size:12.5px;line-height:1.7;color:var(--muted)}
body.ap .bp-empty{margin:0;padding:16px;font-size:13px;color:var(--muted);text-align:center}
body.ap .bp-list{list-style:none;margin:0;padding:6px 16px 12px}
body.ap .bp-list li{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--line-soft)}
body.ap .bp-list li:last-child{border-bottom:0}
body.ap .bp-list a:first-child,body.ap table.bp-t td a[dir=auto]{font-weight:700;color:var(--head);unicode-bidi:plaintext;overflow-wrap:anywhere}
body.ap .bp-go{margin-inline-start:auto;font-size:12.5px;color:var(--accent);font-weight:700}
body.ap table.bp-t{width:100%;border-collapse:collapse;font-size:13.5px;margin-top:6px}
body.ap table.bp-t th{padding:9px 12px;font-size:12px;font-weight:700;color:var(--muted);text-align:right;border-bottom:1px solid var(--line);background:none}
body.ap table.bp-t td{padding:10px 12px;border-bottom:1px solid var(--line-soft);vertical-align:middle;text-align:right;background:none;color:var(--text)}
body.ap table.bp-t tbody tr:last-child td{border-bottom:0}
body.ap .bp-cv{width:64px}
body.ap .bp-cover img{width:56px;height:56px;object-fit:cover;border-radius:8px;border:1px solid var(--line);background:var(--sunk);display:block}
body.ap .bp-nocover{font-size:11.5px;color:var(--muted)}
body.ap .bp-cat{margin-top:3px;font-size:12px}
body.ap .bp-cat a{color:var(--muted)!important}
body.ap .bp-acts{white-space:nowrap;width:1%}
body.ap form.bp-f{display:inline-block;margin:0 0 0 6px}
body.ap .bp-b{height:32px;padding:0 12px;border-radius:8px;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;border:1px solid var(--line);background:var(--raise);color:var(--text);display:inline-flex;align-items:center;text-decoration:none}
body.ap .bp-b.bp-ok{background:color-mix(in srgb,var(--seed) 14%,transparent);color:var(--seed);border-color:transparent}
body.ap .bp-b.bp-no{background:color-mix(in srgb,var(--danger) 12%,transparent);color:var(--danger);border-color:transparent}
body.ap .bp-b.bp-pri{background:var(--accent);color:var(--on-accent,#fff)!important;border:0;margin-inline-start:auto}
body.ap .bp-b:hover{filter:brightness(1.08)}
body.ap .bp-act{font-weight:700;font-size:12.5px}
body.ap .bp-act.bp-ok{color:var(--seed)}body.ap .bp-act.bp-err{color:var(--danger)}body.ap .bp-act.bp-info{color:var(--accent)}body.ap .bp-act.bp-mut{color:var(--muted)}
body.ap .bp-when{white-space:nowrap;color:var(--muted);font-size:12.5px}
@media (max-width:640px){
  body.ap .bp26{padding:10px}
  body.ap table.bp-t thead{display:none}
  body.ap table.bp-t,body.ap table.bp-t tbody,body.ap table.bp-t tr{display:block}
  body.ap table.bp-t tr{padding:10px 12px;border-bottom:1px solid var(--line-soft)}
  body.ap table.bp-t td{display:block;border:0;padding:3px 0;width:auto!important}
  body.ap .bp-acts{white-space:normal;padding-top:8px!important}
  body.ap form.bp-f{margin:0 0 6px 6px}
}
body.ap .up26-hint{text-align:right;direction:rtl}
/* 143 upload/edit forms: checkboxes aligned with their label, edit forms use the same table style */
body.ap table.up26-tbl input[type=checkbox]{width:18px;height:18px;margin:9px 0 0;accent-color:var(--accent);vertical-align:top}
body.ap table.up26-tbl input[type=text][size]{width:auto!important;max-width:110px}
/* 144 editor: font / size / colour selects on one line (the upload table forced selects to 100%) */
body.ap table.up26-tbl .bb26 select,body.ap .bb26 select{width:auto!important;max-width:160px!important;flex:0 1 auto;height:34px;padding-inline:8px}
body.ap .bb26>div:has(> select){flex-wrap:wrap;gap:6px}
/* 145 add_poster */
body.ap .ap-body{display:flex;gap:18px;padding:16px;align-items:flex-start;flex-wrap:wrap}
body.ap .ap-cur{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none}
body.ap .ap-cur img{width:140px;height:200px;object-fit:cover;border-radius:10px;border:1px solid var(--line);background:var(--sunk)}
body.ap .ap-cur .bp-nocover{width:140px;height:200px;display:flex;align-items:center;justify-content:center;border:1px dashed var(--line-strong);border-radius:10px}
body.ap .ap-cur small{font-size:12px;color:var(--muted)}
body.ap .ap-main{flex:1;min-width:240px;display:flex;flex-direction:column;gap:12px}
body.ap .ap-tor{font-weight:800;font-size:15px;color:var(--head)!important;unicode-bidi:plaintext;overflow-wrap:anywhere}
body.ap .ap-form{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
body.ap .ap-form input[type=file]{width:100%;max-width:460px;padding:8px;border:1px dashed var(--line-strong);border-radius:10px;background:var(--sunk);cursor:pointer;box-sizing:border-box}
body.ap .ap-form .bp-b.bp-pri{height:38px;padding:0 20px;margin:0}
body.ap .pr-rk-imm{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:700;color:var(--seed);background:color-mix(in srgb,var(--seed) 12%,transparent);padding:2px 8px;border-radius:999px;white-space:nowrap}
/* 148 tooltips: long text wraps (max 240px) instead of running off the screen; vote tooltip opens to the right */
body.ap .td-tip::after{white-space:normal;width:max-content;max-width:240px;text-align:center}
body.ap #vote_btn .td-tip::after{left:0;right:auto;transform:translate(0,-4px)}
body.ap #vote_btn .td-tip:hover::after,body.ap #vote_btn .td-tip:focus-visible::after{transform:translate(0,0)}
body.ap .listing_div>.es26{margin:12px}
body.ap table.up26-tbl label.up26-chip input[type=checkbox]{margin:0;width:16px;height:16px;vertical-align:middle}
/* 155 chat text colours: old purchased colours and staff colours -> palette readable in light and dark (#E5484D…) */
body.ap div.chatoutput font[color="#fe4a67" i]{color:#E5484D!important}
body.ap div.chatoutput font[color="#0099cc" i]{color:#0C9AA6!important}
body.ap div.chatoutput font[color="#685765" i]{color:#7D8A99!important}
body.ap div.chatoutput font[color="#566ca9" i]{color:#3B82F6!important}
body.ap div.chatoutput font[color="#4d4f4f" i]{color:#7D8A99!important}
body.ap div.chatoutput font[color="#c6a000" i]{color:#BF8200!important}
body.ap div.chatoutput font[color="#800080" i]{color:#9B6BF2!important}
body.ap div.chatoutput font[color="#794044" i]{color:#E8590C!important}
body.ap div.chatoutput font[color="#228b22" i]{color:#2F9E44!important}
body.ap div.chatoutput font[color="red" i]{color:#E5484D!important}
body.ap div.chatoutput font[color="#333cfe" i]{color:#3B82F6!important}
body.ap div.chatoutput font[color="#ff8000" i]{color:#0C9AA6!important}
body.ap div.chatoutput font[color="#6959cd" i]{color:#F5C542!important}
:root[data-theme="light"] body.ap div.chatoutput font[color="#6959cd" i]{color:#B7791F!important}
body.ap .au.au-solo{grid-template-columns:1fr;max-width:560px}
