/* HeLl-Amp (Winamp) skin – used by player and playlist windows */
* { box-sizing: border-box; }

.winamp-window .window-content {
    background: #1a1a2e;
    font-family: "Arial", "Helvetica", sans-serif;
    font-size: 11px;
    color: #00ff00;
    user-select: none;
    overflow: hidden;
    padding: 0;
    border: none;
}

.winamp-window .xp-header {
    background: linear-gradient(180deg, #404060 0%, #2a2a40 100%) !important;
    color: #ccc !important;
    font-size: 10px;
    font-weight: bold;
    height: 20px;
    padding: 0 6px;
    border: none;
    border-bottom: 1px solid #1a1a28;
}
.winamp-window .xp-header .close-btn {
    background: #5a5a7a !important;
    color: #ccc !important;
    border: 1px solid #333 !important;
    font-size: 10px;
    width: 16px;
    height: 16px;
}

/* ========== MAIN PLAYER (Winamp style) ========== */
.main-player {
    width: 100%;
    min-width: 275px;
    background: linear-gradient(180deg, #2a2a3e 0%, #1e1e2e 40%, #16162a 100%);
    border: none;
    border-radius: 0 0 4px 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 2px 2px 8px rgba(0,0,0,0.5);
    padding: 6px 8px 8px;
}
.main-display {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    min-height: 52px;
}
.time-big {
    font-size: 22px;
    font-weight: bold;
    color: #00ff00;
    letter-spacing: 1px;
    line-height: 1.1;
    min-width: 42px;
}
.main-info {
    flex: 1;
    min-width: 0;
}
.main-info .winamp-label {
    font-size: 9px;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 1px;
}
.main-info .song-title {
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    unicode-bidi: embed;
}
.main-info .meta {
    font-size: 9px;
    color: #00ff00;
    margin-top: 2px;
}
.main-info .kbps-row {
    font-size: 9px;
    color: #666;
    margin-top: 1px;
}
.main-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}
.main-controls .btn {
    width: 22px;
    height: 18px;
    background: linear-gradient(180deg, #3a3a4e 0%, #2a2a3a 100%);
    border: 1px solid #0a0a14;
    border-radius: 2px;
    color: #00ff00;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.main-controls .btn:hover { background: linear-gradient(180deg, #4a4a5e 0%, #3a3a4a 100%); color: #fff; }
.main-controls .btn:active { background: #1a1a2a; }
.main-controls .btn.play { width: 26px; font-weight: bold; }
.shuffle-repeat {
    display: flex;
    gap: 2px;
    margin-left: 6px;
}
.shuffle-repeat .btn { width: 36px; font-size: 8px; }
.progress-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.progress-bar {
    flex: 1;
    height: 8px;
    background: #0a0a14;
    border: 1px solid #333;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, #006600, #00cc00);
    width: 0%;
    transition: width 0.2s;
}
.vol-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.vol-row input[type="range"] {
    -webkit-appearance: none;
    width: 70px;
    height: 6px;
    background: #0a0a14;
    border-radius: 2px;
}
.vol-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #00cc00;
    border: 1px solid #000;
    border-radius: 2px;
    cursor: pointer;
}
.eq-ppl {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.eq-ppl .btn { width: 28px; height: 14px; font-size: 9px; cursor: pointer; }

/* ========== EQ WINDOW (Winamp-style) ========== */
.eq-panel {
    width: 100%;
    min-height: 120px;
    background: linear-gradient(180deg, #252538 0%, #1a1a28 100%);
    padding: 6px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.eq-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.eq-on-auto {
    display: flex;
    gap: 4px;
}
.eq-toggle {
    padding: 2px 8px;
    font-size: 9px;
    background: linear-gradient(180deg, #3a3a4e 0%, #2a2a3a 100%);
    border: 1px solid #333;
    border-radius: 2px;
    color: #00ff00;
    cursor: pointer;
    font-family: inherit;
}
.eq-toggle:hover { color: #fff; background: #3a3a5e; }
.eq-toggle.active { background: #2a4a2a; color: #fff; border-color: #00aa00; }
.eq-presets-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.eq-preset-label {
    font-size: 9px;
    color: #00ff00;
}
.eq-preset-select {
    font-size: 9px;
    padding: 2px 4px;
    background: #1a1a28;
    border: 1px solid #333;
    border-radius: 2px;
    color: #00ff00;
    font-family: inherit;
    cursor: pointer;
    min-width: 80px;
}
.eq-preset-select option { background: #1a1a28; color: #00ff00; }
.eq-sliders-row {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}
.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.eq-band .eq-freq {
    font-size: 7px;
    color: #666;
    line-height: 1;
}
.eq-band.eq-preamp .eq-freq { color: #00aa00; }
.eq-sliders {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
}
/* Vertical sliders: rotated horizontal range for cross-browser -12 to +12 dB */
.eq-slider-v-wrap {
    width: 14px;
    height: 56px;
    transform: rotate(-90deg);
    transform-origin: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eq-slider-v-wrap input {
    flex-shrink: 0;
}
.eq-band input.eq-slider-v {
    -webkit-appearance: none;
    appearance: none;
    width: 56px;
    height: 8px;
    background: #0a0a14;
    border: 1px solid #333;
    border-radius: 2px;
}
.eq-band input.eq-slider-v::-webkit-slider-runnable-track {
    height: 8px;
    background: #0a0a14;
    border-radius: 2px;
}
.eq-band input.eq-slider-v::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 12px;
    background: #00cc00;
    border: 1px solid #000;
    border-radius: 2px;
    cursor: pointer;
    margin-top: -2px;
}
.eq-band input.eq-slider-v::-moz-range-track {
    height: 8px;
    background: #0a0a14;
    border-radius: 2px;
}
.eq-band input.eq-slider-v::-moz-range-thumb {
    width: 8px;
    height: 12px;
    background: #00cc00;
    border: 1px solid #000;
    border-radius: 2px;
    cursor: pointer;
}
.winamp-window.skin-classic .eq-panel { background: #0a0a0a; }
.winamp-window.skin-classic .eq-toggle { color: #00ff00; border-color: #00aa00; }
.winamp-window.skin-classic .eq-toggle.active { background: #003300; }
.winamp-window.skin-classic .eq-preset-select { border-color: #00aa00; color: #00ff00; }
.winamp-window.skin-classic .eq-preset-label { color: #00ff00; }
.winamp-window.skin-classic .eq-band .eq-freq { color: #00aa00; }

/* ========== PLAYLIST WINDOW ========== */
.playlist-panel {
    width: 100%;
    min-width: 320px;
    min-height: 220px;
    background: linear-gradient(180deg, #252538 0%, #1a1a28 100%);
    border: none;
    border-radius: 0 0 4px 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 2px 2px 8px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.playlist-default-hint {
    font-size: 9px;
    color: #888;
    padding: 4px 8px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid #333;
}
.playlist-panel .playlist-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding: 2px 0;
    min-height: 140px;
}
.playlist-list.pl-virtual {
    position: relative;
}
.playlist-list .pl-spacer {
    flex-shrink: 0;
    pointer-events: none;
}
.pl-item {
    display: flex;
    align-items: center;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 11px;
    color: #00cc00;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.pl-item:hover { background: #2a2a40; color: #fff; }
.pl-item.active { background: #2a4a8a; color: #fff; }
.pl-item .num { min-width: 22px; color: #00aa00; }
.pl-item.active .num { color: #fff; }
.pl-item .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; unicode-bidi: embed; }
.pl-item .dur { color: #00aa00; margin-left: 8px; flex-shrink: 0; }
.pl-item.active .dur { color: #aad0ff; }
.playlist-footer {
    background: #1a1a28;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    border-top: 1px solid #0a0a14;
}
.playlist-footer .btn {
    padding: 2px 8px;
    font-size: 9px;
    background: linear-gradient(180deg, #3a3a4e 0%, #2a2a3a 100%);
    border: 1px solid #333;
    border-radius: 2px;
    color: #00ff00;
    cursor: pointer;
}
.playlist-footer .btn:hover { color: #fff; background: #3a3a5e; }
.playlist-footer .time-total {
    margin-left: auto;
    font-size: 9px;
    color: #666;
}
.playlist-footer .track-count {
    font-size: 9px;
    color: #555;
    margin-left: 6px;
}
.playlist-footer .mini-controls { display: flex; gap: 2px; }
.playlist-footer .mini-controls .btn { padding: 2px 4px; }

.winamp-window ::-webkit-scrollbar { width: 12px; height: 12px; }
.winamp-window ::-webkit-scrollbar-track { background: #1a1a28; }
.winamp-window ::-webkit-scrollbar-thumb { background: #3a3a5e; border-radius: 2px; }
.winamp-window ::-webkit-scrollbar-thumb:hover { background: #4a4a6e; }

#m3u-input { display: none; }

/* Classic Winamp 2.x green/black skin */
.winamp-window.skin-classic .window-content { background: #0a0a0a; }
.winamp-window.skin-classic .xp-header { background: linear-gradient(180deg, #003300 0%, #001a00 100%) !important; color: #00ff00 !important; border-bottom: 1px solid #00aa00 !important; }
.winamp-window.skin-classic .xp-header .close-btn { background: #002200 !important; color: #00ff00 !important; border: 1px solid #00aa00 !important; }
.winamp-window.skin-classic .main-player { background: #0a0a0a; border: 1px solid #00aa00; }
.winamp-window.skin-classic .time-big { color: #00ff00; }
.winamp-window.skin-classic .main-info .meta { color: #00ff00; }
.winamp-window.skin-classic .main-info .song-title { color: #00ff00; }
.winamp-window.skin-classic .btn { color: #00ff00; border-color: #00aa00; }
.winamp-window.skin-classic .btn:hover { background: #003300; color: #fff; }
.winamp-window.skin-classic .playlist-panel { background: #0a0a0a; border-color: #00aa00; }
.winamp-window.skin-classic .playlist-footer .btn { color: #00ff00; border-color: #00aa00; }
.winamp-window.skin-classic .playlist-footer .btn:hover { background: #003300; }
