:root {
    --primary-color: #4568dc;
    --secondary-color: #b06ab3;
    --player-bg: #f8f9fa;
    --track-active: #e9f0ff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
}
.player-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    /*max-width: 800px;*/
    margin: 30px auto;
}

.player-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.player-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.player-cover.playing {
    animation: rotateCover 15s linear infinite;
}

@keyframes rotateCover {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.track-artist {
    font-size: 0.9em;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    cursor: pointer;
    margin: 10px 0;
}

.progress-bar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    height: 6px;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time {
    font-size: 0.8em;
    color: var(--text-secondary);
}

.player-controls .btn {
    color: var(--primary-color);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-controls .btn:hover {
    background-color: rgba(69, 104, 220, 0.1);
}

.btn-play {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-play:hover {
    background-color: #3a5bc7 !important;
}

.volume-control {
    width: 100px;
}

.playlist {
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid #e9ecef;
}

.playlist-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-item:hover {
    background-color: #f8f9fa;
}

.playlist-item.active {
    background-color: var(--track-active);
}

.playlist-item .bi {
    color: var(--primary-color);
    margin-right: 10px;
}

.playlist-item .track-duration {
    color: var(--text-secondary);
    font-size: 0.8em;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}