/* =================================
   AUDIO PLAYER
   ================================= */

.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000ab;
    z-index: 90;
    animation: slideUp 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.player-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

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

.player-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--cor-texto);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.5px;
}

.player-time {
    font-size: 18px;
    color: var(--cor-texto-sec);
    font-weight: 500;
    margin: 0;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-player-control {
    background: var(--gradient-play);
    border: none;
    border-radius: 100px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.btn-player-control:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(139, 123, 255, 0.5);
}

.btn-player-control:active {
    transform: scale(0.95);
}

.btn-player-control#btn-close-player {
    background: var(--cor-neutro-bg);
    border: none;
    width: 40px;
    height: 40px;
    box-shadow: none;
    position: absolute;
    top: 20px;
    right: 20px;
}

.btn-player-control#btn-close-player:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.btn-player-control .icon {
    width: 32px;
    height: 32px;
}

.btn-player-control#btn-close-player .icon {
    width: 24px;
    height: 24px;
}

#btn-play-pause .icon {
    margin-left: 3px;
}

.player-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.1s linear;
    position: relative;
    border-radius: 100px;
}

/* Playing state animation */
.player-title.playing::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--cor-sucesso);
    border-radius: 100px;
    margin-left: 8px;
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 480px) {


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

    .player-time {
        font-size: 12px;
    }

    .btn-player-control {
        width: 80px;
        height: 80px;
    }

    .btn-player-control .icon {
        width: 18px;
        height: 18px;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .audio-player {
        border-left: 1px solid var(--cor-border);
        border-right: 1px solid var(--cor-border);
    }
}
