body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

#player-container {
    width: 350px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

#track-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#album-art {
    width: 80px;
    height: 80px;
    background-color: #e0e0e0;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-right: 15px;
}

#track-details {
    font-size: 16px;
}

#track-title {
    font-weight: bold;
}

#track-artist {
    color: #888;
}

#controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#controls button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin: 0 15px;
    color: #333;
}

.playlist-controls {
    margin-bottom: 15px;
}

#dir-select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#playlist {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

#playlist li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

#playlist li:hover {
    background-color: #f5f5f5;
}

#playlist li.active {
    background-color: #d1e7ff;
    font-weight: bold;
}

/* Додайте до вашого файлу style.css */
#track-time {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Додайте до вашого файлу style.css */

#progress-bar-container {
    width: 90%; /* Або інша ширина, наприклад 100% */
    height: 8px; /* Висота бару */
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 15px auto 10px auto; /* Центруємо, додаємо відступи */
    cursor: pointer; /* Показуємо, що це клікабельно */
    overflow: hidden; /* Щоб progress-bar не виходив за межі */
}

#progress-bar {
    height: 100%;
    width: 0%; /* Початкова ширина */
    background-color: #007bff; /* Колір заповнення */
    border-radius: 4px;
    transition: width 0.1s linear; /* Плавний перехід для анімації */
}

/* Додаємо також для кращого вигляду: */
#track-info {
    display: flex;
    flex-direction: column; /* Щоб елементи йшли зверху вниз */
    align-items: center; /* Центруємо по горизонталі */
    padding: 15px;
}
#track-details {
    text-align: center; /* Центруємо текст */
    margin-bottom: 10px; /* Відступ від прогрес-бару */
}

/* Стилі для регулювання гучності */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#volume-slider {
    width: 150px; /* Ширина повзунка */
    margin: 0 10px;
    -webkit-appearance: none; /* Видалити стандартні стилі WebKit */
    background: #ddd;
    border-radius: 5px;
    height: 5px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

.volume-icon {
    font-size: 20px;
    color: #555;
}
