/* Mini Player Persistente - Diseño Premium Flotante */
.mini-player {
    position: fixed;
    bottom: 110px; /* Sobre el pie de página */
    left: 20px;
    z-index: 10000;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(227, 64, 40, 0.35);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.4s ease;
    will-change: transform, opacity;
    width: 320px;
    transform: translateX(-120%);
}

.mini-player.is-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.mini-player__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.mini-player__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-player__icon {
    font-size: 26px;
    color: #e34028; /* Rojo corporativo */
    filter: drop-shadow(0 0 5px rgba(227, 64, 40, 0.4));
    animation: pulse-audio 2s infinite ease-in-out;
}

.mini-player__text {
    flex: 1;
    overflow: hidden;
}

.mini-player__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player__artist {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.mini-player__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 4px 0;
}

.mini-player__btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-player__btn:hover {
    background: #e34028;
    border-color: #e34028;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(227, 64, 40, 0.4);
}

.mini-player__btn:active {
    transform: scale(0.95);
}

.mini-player__btn i {
    font-size: 0.85rem;
}

/* Timeline / Línea de tiempo interactiva */
.mini-player__progress-container {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 6px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: height 0.2s ease;
}

.mini-player__progress-container:hover {
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
}

.mini-player__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e34028, #ff6b57);
    border-radius: 3px;
    transition: width 0.1s linear;
}

@keyframes pulse-audio {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px rgba(227, 64, 40, 0.6)); }
    100% { transform: scale(1); opacity: 0.9; }
}

@media (max-width: 480px) {
    .mini-player {
        width: calc(100% - 40px) !important;
        bottom: 80px;
        left: 20px !important;
        right: auto !important;
        transform: translateY(120%) !important;
    }
    
    .mini-player.is-visible {
        transform: translateY(0) !important;
    }
}
