﻿/* eqWinamp.css - compact WinAmp-style update */

.eqw-root {
    background: #1a1a1a;
    background-image: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    width: fit-content;
    min-width: 590px;
    max-width: 100%;
    user-select: none;
    padding-bottom: 4px;
}

/* Main layout: left controls + 10-band EQ */
.eqw-main {
    display: flex;
    gap: 8px;
    padding: 0 4px;
    align-items: stretch;
}

.eqw-bank-left {
    flex: 0 0 auto;
    padding-left: 8px;
    padding-right: 8px;
}

.eqw-bank-bands {
    flex: 1 1 auto;
    padding-left: 8px;
    padding-right: 8px;
}

.eqw-bank {
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    align-items: flex-end;
    min-height: 130px; /* Reduced from 250px */
    background: #111;
    margin: 0;
    border-radius: 4px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}

.eqw-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    height: 100%;
    flex: 0 0 26px; /* a bit wider to avoid label collisions */
}

.eqw-v {
    height: 90px; /* Reduced from 180px */
    width: 12px;
    /* Slider props */
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    transform: rotate(0deg);
    orientation: vertical;
    touch-action: none;
    background: transparent;
    padding: 0;
    margin: 0;
    outline: none;
    border: none;
    cursor: grab;
}

    .eqw-v:active {
        cursor: grabbing;
    }

    /* WebKit Thumb Style */
    .eqw-v::-webkit-slider-runnable-track {
        width: 4px;
        background: #000;
        border: 1px solid #333;
        border-radius: 2px;
    }

    .eqw-v::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 18px;
        height: 10px;
        background: linear-gradient(180deg, #ccc, #888);
        border: 1px solid #444;
        border-radius: 2px;
        box-shadow: 0 1px 2px black;
        margin-left: -8px; /* Center on track */
    }

    /* Firefox */
    .eqw-v::-moz-range-track {
        width: 4px;
        background: #000;
        border: 1px solid #333;
        border-radius: 2px;
    }

    .eqw-v::-moz-range-thumb {
        width: 18px;
        height: 10px;
        background: linear-gradient(180deg, #ccc, #888);
        border: 1px solid #444;
        border-radius: 2px;
        cursor: pointer;
    }

.eqw-freq {
    font-size: 9px;
    color: #888;
    text-align: center;
    width: 36px;
    overflow: hidden;
    white-space: nowrap;
}

/* Left bank labels are longer (Bass/Preamp/Amplifier/Volume) */
.eqw-bank-left .eqw-freq {
    width: 58px;
    font-size: 8px;
    white-space: normal;
    line-height: 1.05;
    height: 18px;
}

.eqw-bank-left .eqw-band {
    flex: 0 0 58px;
}

.eqw-bank-left .eqw-v {
    width: 14px;
}

/* Header area */
.eqw-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    background: #252525;
    border-bottom: 1px solid #000;
    border-radius: 6px 6px 0 0;
}

.eqw-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.5px;
}

/* LED styles */
.eqw-led {
    width: 6px;
    height: 6px;
    background: #330000;
    border: 1px solid #444;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

.eqw-led.on {
    background: #00ff00;
    box-shadow: 0 0 4px #00ff00;
}

/* Buttons */
.eqw-btn, .eqw-ledbtn {
    background: linear-gradient(180deg, #3a3a3a, #2a2a2a);
    border: 1px solid #111;
    border-top-color: #444;
    color: #ccc;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    cursor: pointer;
    text-transform: uppercase;
}

.eqw-btn:hover, .eqw-ledbtn:hover {
    background: #444;
    color: #fff;
}

.eqw-btn:active {
    background: #222;
    border-top-color: #111;
}

.eqw-ledbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Row controls (preset + bassboost) */
.eqw-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px;
}

.eqw-select {
    background: #111;
    border: 1px solid #333;
    color: #0f0;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 10px;
    font-family: monospace;
    outline: none;
    max-width: 120px;
}

/* Bottom knobs area */
.eqw-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px; /* spacing between knobs */
    padding: 8px;
    background: #1a1a1a;
}

/* Knob styling */
.eqw-knob {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    width: 40px;
}

.eqw-knob-face {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #444, #222);
    border: 1px solid #111;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    position: relative;
}

/* Knob indicator */
.eqw-knob-face::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 2px; height: 12px;
    background: #fff;
    transform-origin: 50% 100%; /* Pivot at center */
    transform: translate(-50%, -100%) rotate(var(--eqknob-angle, 0deg));
    border-radius: 1px;
}

.eqw-knob-input {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 0; left: 0; right: 0;
    margin: 0 auto;
    opacity: 0;
    cursor: pointer;
}

.eqw-lbl {
    font-size: 9px;
    color: #888;
    text-align: center;
}

.eqw-read {
    font-size: 9px;
    color: #0f0; /* LCD Green */
    font-family: monospace;
    height: 12px;
}

.eqw-foot {
    font-size: 9px;
    color: #555;
    padding: 4px;
    text-align: center;
    display: none; /* Hide footer to save space */
}

/* Media query for very small screens if needed */
@media (max-width: 400px) {
    .eqw-knob {
        width: 32px;
    }
    .eqw-bottom {
        gap: 8px;
    }
}
