/* MP3 Player Container */
#mp3-player {
    max-width: 100%;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 20px auto;
}

/* Song Title Display */
#current-song-info {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

#current-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
    display: block;
}

/* Loading Icon */
#loading-icon {
    font-size: 14px;
    color: #666;
}

/* Lyrics Box (Hidden by Default) */
#lyrics-box {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
}

/* Align Controls in a Row */
#controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

/* Make All Control Icons Bigger */
#controls div {
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#controls div:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

#controls div.active {
    background: #e0e0e0;
    transform: scale(0.95);
}

/* List Styling */
#mp3-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#mp3-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
}

#mp3-list li:last-child {
    border-bottom: none;
}

#mp3-list li:hover {
    background: #f8f8f8;
}

#mp3-list li.active {
    background: #e8f0fe;
    color: #1a73e8;
}

#progress-container {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    cursor: pointer;
}

/* Disabled Progress Bar */
#progress-bar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress Bar Thumb */
#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    margin-top: -5px;
}

#progress-bar::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

/* Current Time and Total Time */
#current-time, #total-time {
    font-size: 14px;
    color: #666;
    min-width: 45px;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    #mp3-player {
        padding: 15px;
        margin: 10px;
    }

    #current-title {
        font-size: 16px;
    }

    #controls {
        gap: 8px;
    }

    #controls div {
        width: 36px;
        height: 36px;
        font-size: 18px;
        padding: 8px;
    }

    #progress-container {
        margin: 10px 0;
    }

    #current-time, #total-time {
        font-size: 12px;
        min-width: 40px;
    }

    #lyrics-box {
        max-height: 150px;
        font-size: 13px;
    }

    #mp3-list {
        max-height: 250px;
    }

    #mp3-list li {
        padding: 10px;
        font-size: 14px;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    #mp3-player {
        padding: 10px;
        margin: 5px;
    }

    #controls div {
        width: 32px;
        height: 32px;
        font-size: 16px;
        padding: 6px;
    }

    #controls {
        gap: 6px;
    }

    #current-title {
        font-size: 14px;
    }

    #mp3-list li {
        padding: 8px;
        font-size: 13px;
    }
}

/* Fix for iOS Safari */
input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
}

/* Tooltip Styles */
.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10000;
    transition: opacity 0.3s;
}