/* Audio Player Dialog Styles */
.audio-player-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #1a1a2e, #16213e);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.audio-player-dialog.active {
    transform: translateY(0);
}

.audio-player-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.audio-player-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Album Art */
.audio-player-artwork {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.audio-player-artwork svg {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.audio-player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Track Info */
.audio-player-info {
    flex: 1;
    min-width: 0;
}

.audio-player-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-player-artist {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls */
.audio-player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-player-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.audio-player-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.audio-player-btn svg {
    width: 20px;
    height: 20px;
}

.audio-player-btn.play-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.audio-player-btn.play-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.audio-player-btn.play-btn svg {
    width: 24px;
    height: 24px;
}

/* Progress Bar */
.audio-player-progress {
    width: 100%;
    margin-top: 15px;
}

.audio-player-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.audio-player-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-player-progress-bar:hover .audio-player-progress-fill {
    background: linear-gradient(to right, #764ba2, #667eea);
}

.audio-player-time {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 5px;
}

/* Volume Control */
.audio-player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.audio-player-volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.audio-player-volume-fill {
    height: 100%;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 2px;
    width: 70%;
}

/* Close Button */
.audio-player-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.audio-player-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.audio-player-close svg {
    width: 20px;
    height: 20px;
}

/* Minimize Button */
.audio-player-minimize {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin-right: 8px;
}

.audio-player-minimize:hover {
    background: rgba(255, 255, 255, 0.2);
}

.audio-player-minimize svg {
    width: 20px;
    height: 20px;
}

/* Mini Player for PC Sidebar */
.audio-mini-player {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: none;
}

.audio-mini-player.active {
    display: block;
}

.audio-mini-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.audio-mini-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-mini-artwork {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.audio-mini-artwork svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.9);
}

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

.audio-mini-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.audio-mini-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.audio-mini-controls {
    display: flex;
    gap: 5px;
}

.audio-mini-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.audio-mini-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.audio-mini-btn svg {
    width: 14px;
    height: 14px;
}

/* Floating Audio Button for Mobile */
.audio-floating-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    transition: transform 0.3s;
}

.audio-floating-btn.active {
    display: flex;
}

.audio-floating-btn:hover {
    transform: scale(1.1);
}

.audio-floating-btn svg {
    width: 24px;
    height: 24px;
}

.audio-floating-btn.playing svg {
    animation: audioRotate 3s linear infinite;
}

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

/* Loading State */
.audio-player-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.audio-player-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .audio-player-container {
        padding: 15px;
    }

    .audio-player-artwork {
        width: 60px;
        height: 60px;
    }

    .audio-player-artwork svg {
        width: 30px;
        height: 30px;
    }

    .audio-player-title {
        font-size: 14px;
    }

    .audio-player-artist {
        font-size: 12px;
    }

    .audio-player-btn {
        width: 36px;
        height: 36px;
    }

    .audio-player-btn.play-btn {
        width: 44px;
        height: 44px;
    }

    .audio-player-volume-slider {
        width: 60px;
    }
}
