*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html, body { width:100%; height:100%; background:#000; overflow:hidden; }
canvas { display:block; }
.dg.ac   { z-index:999!important; }
.dg.main { margin-right:4px; margin-top:4px; }
.dg .cr.function .property-name { width:100%!important; }

#player {
position:fixed; top:44px; left:50%; transform:translateX(-50%);
display:flex; flex-direction:column; align-items:center; gap:7px; z-index:20;
}
.prow { display:flex; align-items:center; gap:9px; }
.abtn {
    display:inline-flex; align-items:center; gap:4px;
    background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.18);
    color:rgba(255,255,255,.45); font:9px/1 Georgia,serif;
    letter-spacing:2px; text-transform:uppercase;
    padding:5px 11px; cursor:pointer; user-select:none; white-space:nowrap;
    transition:background .2s,color .2s,border-color .2s;
}
.abtn:hover { background:rgba(255,255,255,.11); color:rgba(255,255,255,.9); border-color:rgba(255,255,255,.4); }
.abtn.on    { border-color:rgba(255,255,255,.5); color:#fff; background:rgba(255,255,255,.10); }
#file-in { display:none; }
#spectrum {
display:flex; align-items:flex-end; gap:2px; height:22px; padding:2px 4px;
border:1px solid rgba(255,255,255,.10); border-radius:2px; transition:opacity .4s;
}
#spectrum.dim { opacity:.25; }
.sb { width:9px; border-radius:1px; min-height:1px; transition:height .05s linear; }
#sb-b{background:#f97;height:1px;} #sb-m{background:#7d9;height:1px;} #sb-t{background:#79f;height:1px;}
#audio-lbl {
color:rgba(255,255,255,.20); font:9px/1 Georgia,serif;
letter-spacing:2px; text-transform:uppercase;
max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
#seek-bar {
-webkit-appearance:none; appearance:none;
width:220px; height:2px; border-radius:1px;
background:rgba(255,255,255,.18); outline:none; cursor:pointer;
}
#seek-bar::-webkit-slider-thumb {
-webkit-appearance:none; width:12px; height:12px; border-radius:50%;
background:rgba(255,255,255,.72); cursor:pointer; border:none; transition:transform .15s;
}
#seek-bar::-webkit-slider-thumb:hover { transform:scale(1.3); }
#seek-bar::-moz-range-thumb {
width:12px; height:12px; border-radius:50%;
background:rgba(255,255,255,.72); cursor:pointer; border:none;
}
#player-time {
color:rgba(255,255,255,.28); font:9px/1 Georgia,serif;
letter-spacing:1px; white-space:nowrap; min-width:76px; text-align:right;
}
.cbtn {
    background:none; border:1px solid rgba(255,255,255,.18);
    color:rgba(255,255,255,.45); cursor:pointer; user-select:none;
    border-radius:50%; display:flex; align-items:center; justify-content:center;
    transition:background .2s,color .2s,border-color .2s; padding:0;
}
.cbtn:hover:not(:disabled){ background:rgba(255,255,255,.10); color:rgba(255,255,255,.9); border-color:rgba(255,255,255,.45); }
.cbtn:disabled { opacity:.22; cursor:default; }
.cbtn.on { color:rgba(255,255,255,.9); border-color:rgba(255,255,255,.45); }
#btn-restart{width:24px;height:24px;font-size:11px;}
#btn-play   {width:32px;height:32px;font-size:15px;}
#btn-stop-pl{width:24px;height:24px;font-size:11px;}

#hud {
position:fixed; inset:0; display:flex; flex-direction:column;
align-items:center; justify-content:flex-end;
padding-bottom:26px; gap:10px; pointer-events:none;
}
#fname { color:rgba(255,255,255,.28); font:11px/1 Georgia,serif; letter-spacing:6px; text-transform:uppercase; }
#mat-btn {
pointer-events:all; cursor:pointer; user-select:none;
color:rgba(255,255,255,.38); font:10px/1 Georgia,serif;
letter-spacing:5px; text-transform:uppercase;
padding:8px 22px; border:1px solid rgba(255,255,255,.20); background:transparent;
transition:color .3s,border-color .3s,background .3s,letter-spacing .3s;
}
#mat-btn:hover  { color:rgba(255,255,255,.85); border-color:rgba(255,255,255,.45); background:rgba(255,255,255,.06); letter-spacing:7px; }
#mat-btn.active { color:rgba(255,255,255,.50); border-color:rgba(255,255,255,.25); }
#dots { display:flex; gap:8px; pointer-events:all; align-items:center; flex-wrap:wrap; justify-content:center; max-width:220px; }
.dot {
    width:7px; height:7px; border-radius:50%; flex-shrink:0;
    background:rgba(255,255,255,.15); border:1.5px solid rgba(255,255,255,.28);
    cursor:pointer; transition:background .3s,transform .22s,border-color .3s;
}
.dot.on    { background:#fff; border-color:#fff; transform:scale(1.45); }
.dot:hover { background:rgba(255,255,255,.5); }
#title {
position:fixed; top:20px; left:50%; transform:translateX(-50%);
color:rgba(255,255,255,.12); font:10px/1 Georgia,serif;
letter-spacing:9px; text-transform:uppercase; white-space:nowrap;
}
#hint {
position:fixed; bottom:16px; left:20px; color:rgba(255,255,255,.09);
font:9px/1.8 Georgia,serif; letter-spacing:2px; text-transform:uppercase;
}
#bld {
position:fixed; top:50%; left:50%; transform:translate(-50%,-50%);
color:rgba(255,255,255,.38); font:11px/1 Georgia,serif;
letter-spacing:4px; text-transform:uppercase;
pointer-events:none; opacity:0; transition:opacity .15s;
}
#bld.show { opacity:1; }
#anim-bar { position:fixed; bottom:0; left:0; height:1px; background:rgba(255,255,255,.25); width:0%; transition:width .05s; pointer-events:none; }
#drop-ov {
position:fixed; inset:0; display:none; align-items:center; justify-content:center;
background:rgba(0,0,0,.65); color:rgba(255,255,255,.6);
font:13px/1 Georgia,serif; letter-spacing:8px; text-transform:uppercase;
z-index:100; pointer-events:none;
}
#drop-ov.show { display:flex; }
/* Language toggle: TOP LEFT (nie zasłonięty przez GUI który jest po prawej) */
#lang-toggle {
position:fixed; top:20px; left:16px;
color:rgba(255,255,255,.28); font:9px/1 Georgia,serif;
letter-spacing:3px; text-transform:uppercase; cursor:pointer;
padding:5px 9px; border:1px solid rgba(255,255,255,.15);
background:rgba(0,0,0,.3); transition:color .2s,border-color .2s;
user-select:none; z-index:30;
}
#lang-toggle:hover { color:rgba(255,255,255,.75); border-color:rgba(255,255,255,.38); }
