/* Windows Explorer / Win95 theme for copyparty */
html,body{background:#c0c0c0!important;color:#000!important;font:12px/1.3 Tahoma,"MS Sans Serif",Arial,sans-serif!important}
a{color:#000080!important;text-shadow:none!important}
#ops,#acc_info,#srv_info2,#srv_info{background:#c0c0c0!important;color:#000!important;border:0!important;box-shadow:none!important}
#ops{border-bottom:2px groove #fff!important;padding:3px 4px!important;margin:0!important}
#ops a{background:#c0c0c0!important;color:#000!important;border:2px outset #fff!important;border-radius:0!important;padding:2px 8px!important;margin:2px!important;box-shadow:none!important;text-shadow:none!important}
#ops a:active,#ops a.act{border-style:inset!important;background:#d8d8d8!important}
#ops a:hover{background:#dcdcdc!important}
#op_search,#op_player,#op_up2k,#op_bup,#op_mkdir,#op_new_md,#op_msg,#op_unpost,#op_cfg,#opdesc{background:#c0c0c0!important;color:#000!important;border:2px inset #fff!important;border-radius:0!important}
#path{background:#fff!important;border:2px inset #fff!important;border-radius:0!important;padding:2px 6px!important;box-shadow:none!important;font-size:12px!important}
#path a,#path i{color:#000!important;background:none!important;border:0!important;padding:0 2px!important;text-shadow:none!important}
#path a:hover{background:#000080!important;color:#fff!important}
#tree{background:#fff!important;border:2px inset #fff!important;border-radius:0!important;color:#000!important}
#treeh{background:#c0c0c0!important;border:0!important;border-bottom:2px groove #fff!important}
#treeh a,#treeh button{background:#c0c0c0!important;color:#000!important;border:2px outset #fff!important;border-radius:0!important;box-shadow:none!important}
#treeul a,#treeul li,#tree a{color:#000!important;background:none!important;border-radius:0!important;text-shadow:none!important}
#treeul a.hl,#tree a.hl,#tree .hl{background:#000080!important;color:#fff!important}
#tree a:hover{background:#d4d8f0!important}
#wrap{background:#fff!important;border:2px inset #fff!important;border-radius:0!important}
#files{background:#fff!important;border-collapse:collapse!important;border:0!important}
#files thead th{background:#c0c0c0!important;color:#000!important;border:2px outset #fff!important;border-radius:0!important;padding:3px 8px!important;font-weight:400!important;text-align:left!important}
#files thead th a,#files thead th span{color:#000!important}
#files tbody td{background:#fff!important;color:#000!important;border:0!important;border-bottom:0!important;padding:2px 8px!important;text-shadow:none!important}
#files tbody tr:hover td{background:#e8ecfa!important}
#files tbody tr.sel td,#files tbody tr.play td,#files tbody tr.hl td{background:#000080!important;color:#fff!important}
#files tbody tr.sel td a,#files tbody tr.play td a{color:#fff!important}
#files tbody td:first-child,#files tbody td:nth-child(2){font-weight:400!important}
#files td a{color:#000!important}
#files tbody td[class*="sz"]{text-align:right!important}
#ggrid a{background:#fff!important;border:2px inset #fff!important;border-radius:0!important;box-shadow:none!important;color:#000!important}
#ggrid a:hover{background:#d4d8f0!important}
#ggrid a.sel{background:#000080!important;color:#fff!important}
#ggrid a span{color:#000!important}
#widget,#wtoggle,#barpos,#barbuf,#pctl,#pvol{background:#c0c0c0!important;color:#000!important;border-radius:0!important}
#wtoggle{border:2px outset #fff!important;box-shadow:none!important}
#wtoggle a,#widget a,#pctl a{background:#c0c0c0!important;color:#000!important;border:2px outset #fff!important;border-radius:0!important;box-shadow:none!important}
input,textarea,select{background:#fff!important;color:#000!important;border:2px inset #fff!important;border-radius:0!important;box-shadow:none!important}
button,input[type=submit]{background:#c0c0c0!important;color:#000!important;border:2px outset #fff!important;border-radius:0!important;padding:2px 10px!important}
button:active{border-style:inset!important}
table td,table th{border-color:#808080!important}
h1,h2,h3{background:linear-gradient(90deg,#000080,#1084d0)!important;color:#fff!important;border-radius:0!important;padding:3px 8px!important;font-size:13px!important;text-shadow:none!important;margin:4px 0!important}
#epi,#srv_info2,#acc_info{font-size:11px!important}
#acc_info a,#srv_info2 *{color:#000080!important}
::-webkit-scrollbar{width:16px;height:16px}
::-webkit-scrollbar-track{background:repeating-conic-gradient(#c0c0c0 0 25%,#fff 0 50%) 50%/2px 2px}
::-webkit-scrollbar-thumb{background:#c0c0c0;border:2px outset #fff}

/* ===== explorer v2 ===== */
img.xi{width:16px!important;height:16px!important;vertical-align:-3px;margin-right:5px;object-fit:contain}
#ggrid a{background:transparent!important;border:2px solid transparent!important;box-shadow:none!important}
#ggrid a:hover{background:#e8ecfa!important;border-color:#9fb4e8!important}
#ggrid a.sel{background:#cce0ff!important;border-color:#000080!important}
#ggrid a span{color:#000!important;text-shadow:none!important}
#ggrid a img{background:transparent!important;object-fit:contain!important}
#ghead{background:#fff!important;color:#000!important;border:0!important;border-bottom:2px groove #fff!important;box-shadow:none!important}
#ghead,#ghead span,#ghead a,#ghead b,#ghead label{color:#000!important;text-shadow:none!important}
#ghead a.btn,#ghead .btn{background:#c0c0c0!important;border:2px outset #fff!important;border-radius:0!important;padding:1px 8px!important}
#ghead a.on,#ghead .btn.on{background:#fff2b0!important;border-style:inset!important}
#wfp,#wfp a,#wfp span,#wfp i,#wfp b{color:#fff!important}
#wfp a:hover{text-decoration:underline}
#srv_info{display:none!important}
#tree{display:flex!important;flex-direction:column}
#qa{border-bottom:2px groove #fff;padding:0 0 4px;flex:none}
#qa .qh{background:linear-gradient(90deg,#000080,#1084d0);color:#fff;font-weight:700;padding:2px 6px;margin:0}
#qa ul.ql{list-style:none;margin:0;padding:2px 0}
#qa ul.ql li{margin:0;padding:0}
#qa ul.ql a{display:flex;align-items:center;padding:3px 8px;color:#000!important;text-decoration:none;background:none!important}
#qa ul.ql a:hover{background:#000080!important;color:#fff!important}
#qa .qup{margin-left:auto;color:#2a8a2a;font-size:10px}
#qa .qb{display:flex;flex-wrap:wrap;gap:4px;padding:6px}
#qa .qbtn{background:#c0c0c0!important;border:2px outset #fff!important;color:#000!important;padding:2px 8px;text-decoration:none;font-size:11px}
#qa .qbtn:active{border-style:inset!important}
#qdisk{margin-top:auto;position:sticky;bottom:0;background:#c0c0c0;border-top:2px groove #fff;padding:6px 8px;flex:none}
#qdisk .dl{font-size:11px;color:#000;margin:2px 0}
#qdisk .db{height:16px;border:2px inset #fff;background:#fff;padding:1px}
#qdisk .df{height:100%;background:repeating-linear-gradient(90deg,#000080 0 8px,#fff 8px 10px)}
#ops{display:flex!important;flex-wrap:wrap;gap:3px;align-items:center;padding:4px!important}
#ops a{min-width:30px;height:26px;display:inline-flex!important;align-items:center;justify-content:center;padding:0 6px!important;margin:0!important}
#widget{display:flex!important;align-items:stretch}
#wtoggle,#wtoggle>span{display:flex!important;align-items:center;gap:4px}
#wtoggle a{min-width:34px;height:30px;display:inline-flex!important;align-items:center;justify-content:center;font-size:16px!important;line-height:1!important;margin:0!important;padding:0 6px!important;position:static!important}

#widget a,#wtoggle a{height:30px!important;box-sizing:border-box!important;white-space:nowrap!important;font-size:12px!important;line-height:1!important;display:inline-flex!important;align-items:center;justify-content:center;padding:0 8px!important;margin:0!important;min-width:34px}
#wtoggle a br{display:none}
#wtoggle a span{display:inline!important}
#widget{gap:2px;padding:3px!important;align-items:center!important}

#ggrid img.xi{display:none!important}
#widget a,#wtoggle a{font-size:13px!important;height:32px!important}

*{text-shadow:none!important}
#path{display:none!important}
#ggrid a::before,#ggrid a::after{display:none!important;content:none!important}
#ggrid a{background-image:none!important}
#rcm{background:#c0c0c0!important;border:2px outset #fff!important;border-radius:0!important;box-shadow:2px 2px 0 #000!important;padding:2px 0!important;min-width:190px}
#rcm a{display:block!important;color:#000!important;background:none!important;padding:3px 24px 3px 14px!important;text-decoration:none!important;font-size:13px!important;border:0!important;border-radius:0!important}
#rcm a:hover{background:#000080!important;color:#fff!important}
#rcm a.hide{display:none!important}
#rcm div,#rcm hr{border:0!important;border-top:1px solid #808080!important;border-bottom:1px solid #fff!important;margin:3px 3px!important;height:0!important;background:none!important}
#xbar{display:flex;align-items:center;gap:4px;padding:4px;background:#c0c0c0;border-bottom:2px groove #fff}
#xbar .xb{width:28px;height:24px;display:inline-flex;align-items:center;justify-content:center;background:#c0c0c0!important;border:2px outset #fff!important;color:#000!important;text-decoration:none;font-size:15px;cursor:pointer;user-select:none;box-sizing:border-box}
#xbar .xb:active{border-style:inset!important}
#xpath{flex:1;min-width:0;height:24px;display:flex;align-items:center;background:#fff;border:2px inset #fff;padding:0 6px;overflow:hidden;white-space:nowrap;box-sizing:border-box}
#xpath a{color:#000!important;padding:0 4px;text-decoration:none;background:none!important}
#xpath a:hover{background:#000080!important;color:#fff!important}
#xpath .xs{color:#666;font-size:11px}
#xq{width:220px;height:24px;box-sizing:border-box;padding:0 6px}

#qup{margin-bottom:6px;padding-bottom:4px;border-bottom:1px solid #808080}
#qdisk .uf{height:100%;background:repeating-linear-gradient(90deg,#00a000 0 8px,#c0c0c0 8px 10px)}
/* ===== mobile layer (Apple Music-style structure), append to explorer.css ===== */
@media (max-width:700px){
:root{--xa:#000080;--xsafe:env(safe-area-inset-bottom,0px)}
html,body{overflow-x:hidden!important;overscroll-behavior:none;-webkit-tap-highlight-color:transparent}

/* top: tools as a scrolling chip row, account line above them */
#acc_info{position:static!important;display:block;text-align:right;padding:4px 12px 0!important;font-size:11px!important}
#ops{flex-wrap:nowrap!important;overflow-x:auto;gap:6px!important;padding:6px 10px!important;scrollbar-width:none}
#ops::-webkit-scrollbar{display:none}
#ops a{flex:none;height:34px!important;min-width:40px!important;font-size:16px!important}
#opdesc{font-size:11px}

/* folder tree becomes a slide-over drawer */
#treepar{display:none!important}
#tree{position:fixed!important;top:0!important;bottom:0!important;left:0!important;width:min(84vw,320px)!important;max-height:none!important;margin:0!important;z-index:60;transform:translateX(-105%);transition:transform .25s ease;box-shadow:6px 0 24px rgba(0,0,0,.4)}
html.xdr #tree{transform:none}
#xscrim{position:fixed;inset:0;background:rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:opacity .25s;z-index:55}
html.xdr #xscrim{opacity:1;pointer-events:auto}

/* content: full width, large title, pill search */
#wrap{margin:0!important;width:auto!important;border-left:0!important;border-right:0!important;padding-bottom:calc(190px + var(--xsafe))!important}
#xbar{flex-wrap:wrap;gap:6px 8px;padding:8px 12px 6px}
#xbar .xb{width:38px;height:34px;font-size:18px}
#xfwd,#xpath{display:none!important}
#xmenu{order:0}
#xbar #xback{order:1}
#xbar #xup{order:2}
#xbar #xref{order:3;margin-left:auto}
#xtitle{order:4;flex:1 1 100%;font:700 28px/1.15 Tahoma,Arial,sans-serif;color:#000;padding:2px 2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#xq{order:5;flex:1 1 100%;width:100%!important;height:36px!important;border-radius:10px!important;font-size:16px!important;padding:0 12px!important}
#ghead{display:none!important}

/* rows: artwork, one title line, hairline separator (works for grid and list view) */
#ggrid{display:block!important;padding:0!important;margin:0!important}
#ggrid a{display:flex!important;align-items:center;gap:12px;width:auto!important;height:64px!important;margin:0!important;padding:0 14px!important;border:0!important;border-bottom:1px solid #a8a8a8!important;text-align:left!important;background:transparent!important}
#ggrid a img{width:48px!important;height:48px!important;flex:none;margin:0!important;border:1px solid #808080!important;border-radius:6px!important;object-fit:cover!important}
#ggrid a span{flex:1;min-width:0;display:block!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;font-size:16px!important;text-align:left!important}
#ggrid a.play,#ggrid a.sel{background:#000080!important}
#ggrid a.play span,#ggrid a.sel span{color:#fff!important}
#files thead{display:none!important}
#files tbody td{padding:12px 10px!important;font-size:16px!important}
#files tbody td:nth-child(1),#files tbody td:nth-child(n+3){display:none!important}
#files tbody td:nth-child(2){width:100%}
#files tbody tr.play td,#files tbody tr.play td a{background:#000080!important;box-shadow:none!important;border-color:#000080!important;color:#fff!important;text-decoration:none!important}

/* bottom tab bar = the file/zip/player toolbar, scrolls sideways */
#wtoggle{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:auto!important;height:calc(52px + var(--xsafe))!important;padding:2px 4px var(--xsafe)!important;overflow-x:auto;flex-wrap:nowrap!important;gap:0!important;border:0!important;border-top:1px solid #808080!important;z-index:41;scrollbar-width:none}
#wtoggle::-webkit-scrollbar{display:none}
#wtoggle span{display:flex!important;flex:none}
#wtoggle a{flex:none;flex-direction:column;min-width:60px!important;height:48px!important;font-size:18px!important;gap:2px;border:0!important;background:none!important}
#wtoggle a span{font-size:10px!important}

/* mini-player card above the tab bar; hidden until a track exists */
/* the widget box always exists (it hosts the tab bar); it only looks like a card once a track is loaded */
#widget{display:block!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:auto!important;height:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;overflow:visible!important;z-index:40}
#widgeti,#xnow{display:none!important}
html.xhas #widgeti{display:block!important}
html.xhas #xnow{display:flex!important}
html.xhas #widget{display:block!important;position:fixed!important;left:8px!important;right:8px!important;bottom:calc(58px + var(--xsafe))!important;width:auto!important;height:64px!important;padding:0!important;border:2px outset #fff!important;border-radius:14px!important;background:#c0c0c0!important;box-shadow:0 8px 22px rgba(0,0,0,.4);z-index:40;overflow:hidden}
#np_inf{display:none!important}
#xnow{position:absolute;left:0;top:0;right:140px;height:64px;display:flex;align-items:center;gap:10px;padding:0 10px}
#xnow.xnocov img{display:none}
#xnow.xnocov::before{content:"\266B";flex:none;width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:24px;border:1px solid #808080;border-radius:6px;background:#d4d0c8;color:#000080}
#xnow img{width:44px;height:44px;border-radius:6px;border:1px solid #808080;object-fit:cover;flex:none;background:#fff}
#xnow .xt{min-width:0}
#xnow b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#xnow i{display:block;font-size:12px;font-style:normal;color:#444;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#widgeti{position:absolute!important;left:0!important;right:0!important;top:0!important;bottom:0!important;height:auto!important;margin:0!important;padding:0!important;background:none!important;border:0!important;overflow:visible!important;pointer-events:none}
#widgeti #pctl,#widgeti #xseek,#widgeti #pvol{pointer-events:auto}
#wtico{order:-2}
#wtgrid{order:-1}
#pctl{position:absolute!important;right:6px!important;left:auto!important;top:10px!important;width:auto!important;display:flex!important;gap:4px}
#pctl a{width:40px!important;height:40px!important;font-size:17px!important;border-radius:20px!important;min-width:0!important;padding:0!important}
#pvol,#barbuf{display:none!important}
#barpos{display:none!important}

/* full-screen Now Playing (tap the mini card) */
#widget #xclose{display:none!important}
html.xnp.xhas #widget{position:fixed!important;top:0!important;inset:0!important;background:#c0c0c0!important;overflow:auto!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;border-radius:0!important;border:0!important;z-index:70;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:calc(20px + env(safe-area-inset-top,0px)) 26px calc(26px + var(--xsafe))!important}
html.xnp #widget #xclose{display:flex!important;position:absolute;top:calc(10px + env(safe-area-inset-top,0px));left:50%;width:44px;height:30px;margin-left:-22px;align-items:center;justify-content:center;font-size:22px;color:#000}
html.xnp #xnow{position:static;flex-direction:column;align-items:stretch;gap:16px;width:100%;height:auto;padding:0;right:auto}
html.xnp #xnow.xnocov::before{align-self:center;width:min(80vw,46vh);height:min(80vw,46vh);font-size:min(30vw,17vh);border:2px inset #fff;border-radius:10px}
html.xnp #xnow img{width:min(80vw,46vh);height:min(80vw,46vh);align-self:center;border-radius:10px;border:2px inset #fff}
html.xnp #xnow b{font-size:22px}
html.xnp #xnow i{font-size:16px}
#xlog{display:none;margin:0}
html.xnp #xlog{display:block;width:100%;font:10px/1.35 Consolas,monospace;color:#444;white-space:pre-wrap;text-align:left}
html.xnp #widgeti{position:static!important;inset:auto!important;height:auto!important;width:100%;display:flex!important;flex-direction:column;gap:18px;pointer-events:auto}
html.xnp #pctl{position:static;justify-content:center;align-items:center;gap:10px}
html.xnp #pctl a{width:64px!important;height:64px!important;font-size:26px!important;border-radius:32px!important}
html.xnp #widget #bprev{display:inline-flex!important}
html.xnp #pctl{position:static!important;width:auto!important}
html.xnp #pvol{display:block!important;position:static!important;width:100%!important;height:34px!important;margin:0!important}

/* v3: custom seek bar, shuffle/repeat, mini progress, open animation */
#xseek,#xmini,html #widget #pctl #xshuf,html #widget #pctl #xrep{display:none!important}
html.xnp #widget #xseek{display:block!important;width:100%;touch-action:none;-webkit-user-select:none;user-select:none}
#xseek .xtr{position:relative;height:30px;cursor:pointer}
#xseek .xtr::before{content:"";position:absolute;left:0;right:0;top:50%;height:8px;margin-top:-4px;background:#808080;border:1px inset #fff;border-radius:4px;box-sizing:border-box}
#xseek .xfl{position:absolute;left:0;top:50%;height:8px;margin-top:-4px;width:0;background:#000080;border-radius:4px}
#xseek .xfl::after{content:"";position:absolute;right:-11px;top:-8px;width:24px;height:24px;border-radius:12px;background:#c0c0c0;border:2px outset #fff;box-sizing:border-box}
#xseek .xtm{display:flex;justify-content:space-between;align-items:center;margin-top:4px;font:13px/16px Tahoma,Arial,sans-serif;color:#000}
html.xnp #widget #pctl #xshuf,html.xnp #widget #pctl #xrep{display:inline-flex!important;width:46px!important;height:46px!important;font-size:20px!important;border-radius:23px!important;opacity:.55}
html.xnp #widget #pctl #xshuf.xon,html.xnp #widget #pctl #xrep.xon{opacity:1;border-style:inset!important;background:#000080!important;color:#fff!important}
html.xhas:not(.xnp) #widget #xmini{display:block!important;position:absolute;left:12px;right:12px;bottom:3px;height:3px;background:#808080;border-radius:2px;overflow:hidden}
#xmini i{display:block;height:100%;width:0;background:#000080}
@keyframes xup{from{transform:translateY(100%)}to{transform:none}}
html.xnp.xhas #widget{animation:xup .25s ease-out}
}
