/* TuneGrizzy Advanced Player 1.0 — isolated with #tg-ap prefix */
body.tg-ap-active #playerlayer{visibility:hidden !important;pointer-events:none !important}
#tg-ap{--ap-red:#f32242;--ap-red2:#be1027;--ap-ink:#0c0a0e;--ap-panel:#19151b;--ap-muted:#aa9fa8;position:fixed;z-index:45000;left:0;right:0;bottom:0;color:#fff;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;box-sizing:border-box;background:linear-gradient(120deg,#120d12 0%,#1c1018 62%,#120e11 100%);border-top:1px solid rgba(250,58,78,.65);box-shadow:0 -12px 42px rgba(0,0,0,.7)}
#tg-ap *{box-sizing:border-box}#tg-ap .tg-ap-inner{max-width:1530px;margin:auto;min-height:92px;display:grid;grid-template-columns:minmax(165px,230px) minmax(110px,190px) minmax(150px,1fr) minmax(176px,250px);align-items:center;gap:16px;padding:11px 20px}#tg-ap button{font:inherit;touch-action:manipulation;cursor:pointer}#tg-ap button:focus-visible,#tg-ap input:focus-visible{outline:2px solid #ff7381;outline-offset:3px}#tg-ap button[disabled]{opacity:.38;cursor:not-allowed}#tg-ap .tg-ap-track{display:flex;align-items:center;gap:10px;min-width:0}#tg-ap .tg-ap-cover{width:58px;height:58px;flex:none;object-fit:cover;border-radius:9px;border:1px solid #53303c;background:linear-gradient(145deg,#271e26,#090909);box-shadow:0 5px 13px #0009}#tg-ap .tg-ap-info{min-width:0}#tg-ap .tg-ap-brand{font-size:10px;letter-spacing:.15em;font-weight:750;color:#f74b63}#tg-ap .tg-ap-title{display:block;font-size:14px;font-weight:800;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}#tg-ap .tg-ap-artist{display:block;color:#aca0a8;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#tg-ap .tg-ap-controls{display:flex;align-items:center;justify-content:center;gap:5px}#tg-ap .tg-ap-icon{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#e9e3e8;border-radius:50%;line-height:1;font-size:20px}#tg-ap .tg-ap-icon:hover{background:#38202a;color:#fff}#tg-ap .tg-ap-toggle{height:48px;width:48px;background:linear-gradient(140deg,#f6334c,#a40620);border-radius:50%;color:white;box-shadow:0 0 0 3px #e9e5e5;display:inline-flex;justify-content:center;align-items:center;border:0;font-size:19px}#tg-ap .tg-ap-toggle:hover{filter:brightness(1.14)}#tg-ap .tg-ap-wave-wrap{min-width:0;display:flex;align-items:center;gap:9px}#tg-ap .tg-ap-time{font-variant-numeric:tabular-nums;font-size:11px;color:#b9aeb8;min-width:34px;text-align:center}#tg-ap .tg-ap-wave{height:51px;min-width:70px;flex:1;position:relative;border-radius:9px;overflow:hidden;background:#110b11;box-shadow:inset 0 0 0 1px #42232d;cursor:pointer}#tg-ap .tg-ap-wave:hover{box-shadow:inset 0 0 0 1px #b42b42}#tg-ap .tg-ap-wave canvas{display:block;width:100%;height:100%}#tg-ap .tg-ap-wave:focus-visible{outline:2px solid #ff7381;outline-offset:2px}#tg-ap .tg-ap-wave .tg-ap-playhead{position:absolute;top:0;bottom:0;width:1px;background:#fff;left:0;pointer-events:none;opacity:.78}#tg-ap .tg-ap-actions{display:flex;justify-content:flex-end;gap:8px;align-items:center}#tg-ap .tg-ap-volume{width:64px;max-width:64px;accent-color:#f32848;cursor:pointer}#tg-ap .tg-ap-buy{background:linear-gradient(130deg,#f02340,#bf0c2b);color:#fff;font-weight:850;white-space:nowrap;border:0;border-radius:9px;padding:11px 13px;font-size:12px;box-shadow:0 4px 12px #0006}#tg-ap .tg-ap-buy:hover{filter:brightness(1.15)}#tg-ap .tg-ap-queue{position:absolute;bottom:100%;right:max(12px,calc((100vw - 1530px)/2));width:min(380px,calc(100vw - 24px));max-height:min(480px,65vh);overflow:auto;background:#171016;border:1px solid #6c2332;border-bottom:0;box-shadow:0 -16px 45px #000b;border-radius:14px 14px 0 0;padding:14px;display:none}#tg-ap.tg-ap-queue-open .tg-ap-queue{display:block}#tg-ap .tg-ap-queue-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 1px 12px}#tg-ap .tg-ap-queue-head h3{font-size:15px;margin:0;color:#fff}#tg-ap .tg-ap-queue-head span{font-size:12px;color:#ae9da6}#tg-ap .tg-ap-queue-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}#tg-ap .tg-ap-queue-item{width:100%;padding:10px;text-align:left;border:1px solid #35212a;border-radius:9px;background:#251820;color:white;display:flex;align-items:center;justify-content:space-between;gap:12px}#tg-ap .tg-ap-queue-item:hover,#tg-ap .tg-ap-queue-item[aria-current='true']{background:#48202f;border-color:#de2b49}#tg-ap .tg-ap-q-title{font-size:12px;font-weight:750;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#tg-ap .tg-ap-q-sub{font-size:10px;color:#b2a0aa}#tg-ap .tg-ap-queue-empty{font-size:12px;color:#c8abb6;padding:15px 8px}#tg-ap .tg-ap-queue-count{display:inline-flex;background:#cf1737;color:white;font-size:10px;min-width:17px;height:17px;align-items:center;justify-content:center;border-radius:50%;margin-left:-10px;margin-top:-24px}#tg-ap .tg-ap-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
@media(max-width:950px){#tg-ap .tg-ap-inner{grid-template-columns:minmax(135px,200px) auto minmax(100px,1fr);gap:12px;padding:10px 12px}#tg-ap .tg-ap-actions{grid-column:1/-1;justify-content:space-between;margin-top:-5px}#tg-ap .tg-ap-volume{width:95px;max-width:100px}#tg-ap .tg-ap-wave{height:42px}#tg-ap .tg-ap-brand{display:none}}
@media(max-width:560px){#tg-ap .tg-ap-inner{min-height:106px;padding:8px 9px max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 6px}#tg-ap .tg-ap-cover{width:42px;height:42px}#tg-ap .tg-ap-title{font-size:12px;max-width:160px}#tg-ap .tg-ap-artist{font-size:10px}#tg-ap .tg-ap-controls{justify-content:flex-end}#tg-ap .tg-ap-icon{width:28px;height:29px;font-size:16px}#tg-ap .tg-ap-toggle{width:34px;height:34px;box-shadow:0 0 0 2px #e9e5e5;font-size:15px}#tg-ap .tg-ap-wave-wrap{grid-column:1 / 2;grid-row:2;gap:5px}#tg-ap .tg-ap-wave{height:33px;min-width:45px}#tg-ap .tg-ap-time{font-size:9px;min-width:28px}#tg-ap .tg-ap-actions{grid-column:2;grid-row:2;display:flex;justify-content:flex-end;gap:4px;margin:0}#tg-ap .tg-ap-volume{display:none}#tg-ap .tg-ap-actions .tg-ap-icon{width:27px}#tg-ap .tg-ap-buy{font-size:10px;padding:9px 8px}#tg-ap .tg-ap-queue{bottom:100%;right:0;width:100%;max-height:48vh}#tg-ap .tg-ap-queue-item{padding:9px}}
@media(prefers-reduced-motion:reduce){#tg-ap *{animation:none!important;transition:none!important}}

/* V1.2: adaptive clearance after #cont. Reuses existing theme spacing,
   avoiding the empty strip introduced by V1.1's full-height spacer. */
#tg-ap-clearance {
  display:block !important;
  position:relative !important;
  clear:both !important;
  width:100% !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  pointer-events:none !important;
  overflow:hidden !important;
}
