.player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 1000;
}

.player-track-info {
    display: flex;
    align-items: center;
    width: 25%;
    min-width: 200px;
}

.track-cover {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-details {
    flex-grow: 1;
    min-width: 0;
}

.track-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-actions {
    display: flex;
    margin-left: 1rem;
}

.track-actions .btn-link {
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
}

.track-actions .btn-link:hover {
    color: var(--light);
}

.track-actions .btn-link.active {
    color: var(--primary);
}

.player-controls {
    flex-grow: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-buttons {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.player-buttons .btn-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    padding: 0.5rem;
}

.player-buttons .btn-link:hover {
    color: var(--light);
}

.player-buttons .play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

.player-progress {
    width: 100%;
    display: flex;
    align-items: center;
}

.current-time, .duration {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    width: 40px;
}

.progress-bar-container {
    flex-grow: 1;
    margin: 0 0.5rem;
}

.progress {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
}

.progress-bar {
    background-color: var(--primary);
    transition: width 0.1s linear;
}

.player-extra {
    width: 25%;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.volume-control {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.volume-btn {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    padding: 0.5rem;
}

.volume-btn:hover {
    color: var(--light);
}

.volume-slider {
    width: 100px;
}

.volume-slider input {
    height: 4px;
    cursor: pointer;
}

.queue-btn, .device-btn {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    padding: 0.5rem;
}

.queue-btn:hover, .device-btn:hover {
    color: var(--light);
}

/* Notification system */
#notificationContainer {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1100;
}

.notification {
    background-color: var(--dark);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid var(--primary);
}

.notification i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification.info {
    border-left-color: var(--info);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .player-track-info {
        width: 30%;
    }
    
    .player-extra {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .player-container {
        padding: 0 0.5rem;
    }
    
    .player-track-info {
        min-width: 160px;
    }
    
    .track-cover {
        width: 48px;
        height: 48px;
        margin-right: 0.5rem;
    }
    
    .track-title {
        font-size: 0.8rem;
    }
    
    .track-artist {
        font-size: 0.7rem;
    }
    
    .player-buttons .btn-link {
        font-size: 1.6rem;
        padding: 0.25rem;
    }
    
    .player-buttons .play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .volume-slider {
        width: 80px;
    }
    
    .player-controls {
    flex-direction: column; /* Now progress bar comes on top */
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.25rem 0;
}

.player-progress {
    order: -1; /* Force progress bar to appear first */
    width: 100%;
    padding: 0 0.5rem;
}

.player-buttons {
    justify-content: center;
}

}

@media (max-width: 576px) {
    .player-track-info {
        width: auto;
        min-width: 0;
    }
    
    .track-title {
        font-size: 0.7rem;
    }
    
    .track-artist {
        font-size: 0.6rem;
    }
    
    .track-actions {
        display: none;
    }
    
    .player-extra {
        display: none;
    }
    
    .player-controls {
        max-width: none;
    }
}
@media (max-width: 768px) {
    .current-time, .duration {
        width: 36px;
        font-size: 0.65rem;
    }
    .progress-bar-container {
        margin: 0 0.25rem;
    }
}
