.player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #343a40;
    color: white;
    z-index: 1000;
    padding: 10px;
    box-sizing: border-box;
    min-height: 60px; /* Ensure minimum height for all controls */
}

.progress {
    width: 100%; /* Make sure it stretches full width on mobile */
    margin: 10px 0;
    height: 8px; /* Ensure there's a height */
    background-color: #e9ecef;
}

.progress-bar {
    height: 8px; /* Ensure a fixed height for the progress bar */
    background-color: #007bff;
    transition: width 0.2s ease;
}

.controls {
    display: flex;
    flex-wrap: wrap; /* Allows content to wrap to the next line if needed */
    justify-content: space-between;
    align-items: center;
}

.playlist {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.playlist li {
    padding: 10px;
    background-color: #f8f9fa;
    margin-bottom: 5px;
    cursor: pointer;
}

.playlist li.active {
    background-color: #007bff;
    color: white;
}

.track-info {
    padding-left: 1em;
    padding-right: 1em;
    flex: 1;
}

@media (max-width: 600px) {
    .controls {
        flex-direction: column; /* Stack elements vertically on mobile */
        align-items: flex-start; /* Align items to the left */
    }

    .progress {
        width: 100%; /* Ensure the progress bar takes the full width */
        margin: 10px 0;
        height: 8px;
    }

    .player-buttons {
        margin-bottom: 10px; /* Add margin to prevent overlap */
    }

    .track-info {
        font-size: 18px; /* Adjust font size on mobile */
        margin-bottom: 10px;
    }

    #currentTime, #totalTime {
        font-size: 16px;
    }
}
