/* WINAMP STYLE BOX */
.winamp-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    background: #2b2d30;
    border: 2px solid #3e4045;
    border-radius: 8px;
    font-family: 'Courier New', 'Segoe UI', monospace;
    z-index: 99999;
    box-shadow: 0px 0px 0px 0px #1e1f22;
}

.winamp-titlebar {
    background: linear-gradient(90deg, #52545b, #52545b);
    padding: 4px 8px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    display: flex;
    justify-content: space-between;
    cursor: move;
}

.winamp-titlebar span:first-child {
    letter-spacing: 1px;
}

.winamp-titlebar span:last-child {
    cursor: pointer;
    background: #2b2d30;
    padding: 0 6px;
    border-radius: 4px;
}

.winamp-display {
    background: #0a0c0e;
    margin: 12px;
    padding: 8px;
    border-radius: 4px;
    border: 1px inset #555;
    font-size: 12px;
    color: #0f0;
    text-shadow: 0 0 2px #0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winamp-seek-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 12px;
}

.winamp-seek-area input {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: #444;
    border-radius: 5px;
}

.winamp-seek-area input:focus {
    outline: none;
}

.winamp-time {
    color: #ccc;
    font-size: 10px;
    font-family: monospace;
    min-width: 70px;
    text-align: right;
}

.winamp-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 12px 12px 12px;
    gap: 4px;
    flex-wrap: wrap;
}

.winamp-buttons button {
    background: #3c3f45;
    border: 1px solid #585c64;
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.1s linear;
    min-width: 35px;
}

.winamp-buttons button:active {
    background: #1f2125;
    transform: translateY(1px);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #2b2d30;
    padding: 2px 5px;
    border-radius: 12px;
}

.volume-control span {
    font-size: 12px;
}

.volume-control input {
    width: 45px;
    height: 3px;
}

/* Sembunyikan Winamp di HP biar gak numpuk sama floating button */
@media (max-width: 768px) {
    .winamp-box {
        display: none !important;
    }
}

/* Style untuk tombol info */
#winampInfo {
    font-weight: bold;
    cursor: pointer !important;
    font-size: 16px !important;
    background: transparent !important;
    padding: 3 4px !important; 
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

#winampInfo:hover {
    background: #1e1f22 !important;
    transform: scale(1.05);
}

/* Popup info */
.winamp-info-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    background: #2b2d30;
    border: 2px solid #3e4045;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    z-index: 100000;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: fadeIn 0.2s ease;
}

.winamp-info-header {
    background: linear-gradient(90deg, #52545b, #52545b);
    padding: 8px 12px;
    font-weight: bold;
    color: white;
    display: flex;
    justify-content: space-between;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.winamp-info-body {
    padding: 15px;
    color: #f6f5f4; 
    text-shadow: 0 0 2px #0f0;
    font-size: 12px;
    line-height: 1.6;
}

.winamp-info-body kbd {
    background: #1e1f22;
    border: 1px solid #3e4045;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-weight: bold;
    color: #0f0;
    margin: 0 2px;
}

/* Benerin tombol close biar center */ 
#winampClose {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    height: auto !important;
    padding: 0 6px !important;
}

.winamp-info-close {
    cursor: pointer;
    background: #2b2d30;
    padding: 0 5px;
    border-radius: 4px;
}

.winamp-info-close:hover {
    background: #1e1f22;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}