/* ── Winamp MIN-AMP widget ── */

#wa-wrap {
    position: fixed;
    bottom: 90px;
    left: 20px;
    overflow: hidden;
    display: none;
    z-index: 400;
    box-shadow: 6px 6px 40px rgba(0,0,0,0.95);
}
#wa-wrap.open { display: block; }

#wa-inner {
    position: relative;
    transform-origin: top left;
    user-select: none;
    -webkit-user-select: none;
}

#wa-bg {
    display: block;
    width: 100%;
    height: 100%;
    -webkit-user-drag: none;
    pointer-events: none;
    image-rendering: pixelated;
}

/* ── Drag handles (title bars) — positioned by JS ── */
#wa-drag1, #wa-drag2 {
    position: absolute;
    left: 0;
    width: 100%;
    cursor: grab;
    z-index: 10;
}
#wa-drag1:active, #wa-drag2:active { cursor: grabbing; }

/* ── Track name marquee ── */
#wa-track-txt {
    position: absolute;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
}
#wa-track-inner {
    display: inline-block;
    color: #00dd00;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
#wa-track-inner.scrolling {
    animation: wa-marquee var(--scroll-dur, 8s) linear infinite;
}
@keyframes wa-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Time display ── */
#wa-time-txt {
    position: absolute;
    color: #00dd00;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 3px;
    pointer-events: none;
    z-index: 5;
}

/* ── Visualizer canvas ── */
#wa-viz {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

/* ── Seekbar ── */
#wa-seek {
    position: absolute;
    cursor: pointer;
    z-index: 5;
}

/* ── Volume slider (orange bar) ── */
#wa-vol {
    position: absolute;
    cursor: pointer;
    z-index: 6;
    border-radius: 1px;
    overflow: hidden;
}
#wa-vol-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #a05018 0%, #d07828 50%, #e09030 100%);
    pointer-events: none;
    transition: width 0.05s;
}

/* ── Transport button zones (transparent, hover/active glow) ── */
.wa-btn {
    position: absolute;
    cursor: pointer;
    z-index: 5;
    border-radius: 2px;
}
.wa-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    mix-blend-mode: screen;
    background: rgba(60, 255, 60, 0);
    transition: background 0.04s;
    pointer-events: none;
    border-radius: 2px;
}
.wa-btn:hover::after  { background: rgba(60, 255, 60, 0.10); }
.wa-btn:active::after { background: rgba(60, 255, 60, 0.40); }

/* Playing state: faint green LED on the play button */
#wa-play.playing::before {
    content: '';
    position: absolute;
    right: 5px; top: 5px;
    width: 6px; height: 6px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 6px #00ff00;
    mix-blend-mode: screen;
}

/* ── EQ fader handles — size set by JS ── */
.wa-fader {
    position: absolute;
    background: linear-gradient(180deg,
        #f0d060 0%, #c8a030 40%, #a07018 60%, #c8a030 100%);
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.6);
    pointer-events: none;
    z-index: 6;
}

/* ── MIN-AMP button in player bar ── */
.minamp-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
    transition: color 0.2s, border-color 0.2s;
}
.minamp-btn:hover,
.minamp-btn.active { color: #00cc00; border-color: #00cc00; }
