/* ============================================
   JUBU FLOATING MINI-PLAYER - STYLES
   ============================================ */

.jubu-mini-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 160px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(10, 10, 10, 0.98));
    border: 2px solid #d4af37;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 60px rgba(212, 175, 55, 0.3);
    z-index: 9999;
    clip-path: polygon(
        15px 0, 
        100% 0, 
        100% calc(100% - 15px), 
        calc(100% - 15px) 100%, 
        0 100%, 
        0 15px
    );
    animation: slideInFromBottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jubu-mini-player-inner {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================================
   COVER AVEC PLAY/PAUSE
   ============================================ */
.jubu-mini-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.jubu-mini-cover:hover {
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.jubu-mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.jubu-mini-cover:hover img {
    transform: scale(1.05);
}

.jubu-mini-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jubu-mini-cover:hover .jubu-mini-play-overlay {
    opacity: 1;
}

.jubu-mini-play-btn {
    width: 50px;
    height: 50px;
    background: rgba(10, 10, 10, 0.8);
    border: 3px solid #d4af37;
    color: #d4af37;
    font-size: 18px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jubu-mini-play-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    transform: scale(1.1);
}

.jubu-mini-play-btn .pause-icon {
    font-size: 16px;
}

/* ============================================
   INFORMATIONS
   ============================================ */
.jubu-mini-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jubu-mini-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #d4af37;
    letter-spacing: 0.05em;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.jubu-mini-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.jubu-mini-era,
.jubu-mini-collection {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jubu-mini-separator {
    color: #d4af37;
}

/* ============================================
   VISUALISEUR D'ONDES
   ============================================ */
.jubu-mini-wave-container {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    padding: 8px;
}

.jubu-mini-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    width: 100%;
}

.wave-bar {
    flex: 1;
    background: linear-gradient(180deg, #f4d03f, #d4af37, #b8941e);
    border-radius: 2px;
    height: 30%;
    transition: height 0.15s ease-in-out;
    min-width: 3px;
    max-width: 8px;
}

/* Animation automatique des barres quand inactif */
.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; }
.wave-bar:nth-child(10) { animation-delay: 0.9s; }

/* ============================================
   CONTRÔLES
   ============================================ */
.jubu-mini-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.jubu-mini-prev,
.jubu-mini-next,
.jubu-mini-close {
    width: 28px;
    height: 28px;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(
        6px 0, 
        100% 0, 
        100% calc(100% - 6px), 
        calc(100% - 6px) 100%, 
        0 100%, 
        0 6px
    );
}

.jubu-mini-prev:hover,
.jubu-mini-next:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Volume Control */
.jubu-mini-volume {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    max-width: 60px;
}

.jubu-mini-volume-icon {
    color: #d4af37;
    font-size: 11px;
    flex-shrink: 0;
}

.jubu-mini-volume-slider {
    flex: 1;
    height: 3px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.jubu-mini-volume-slider-filled {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    border-radius: 2px;
    width: 100%;
    transition: width 0.1s linear;
    pointer-events: none;
}

.jubu-mini-close {
    margin-left: auto;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.jubu-mini-close:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
    transform: rotate(45deg);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .jubu-mini-player {
        width: 140px;
        bottom: 20px;
        right: 20px;
    }
    
    .jubu-mini-player-inner {
        padding: 8px;
        gap: 6px;
    }
    
    .jubu-mini-title {
        font-size: 0.9rem;
    }
    
    .jubu-mini-meta {
        font-size: 0.6rem;
    }
    
    .jubu-mini-wave-container {
        height: 35px;
    }
    
    .jubu-mini-play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .jubu-mini-volume {
        display: none;
    }
}

@media (max-width: 480px) {
    .jubu-mini-player {
        width: 140px;
        left: auto;
        right: 10px;
        bottom: 10px;
    }
    
    .jubu-mini-cover {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* ============================================
   DÉCORATIONS ART DÉCO
   ============================================ */
.jubu-mini-player::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    border-top: 2px solid rgba(212, 175, 55, 0.4);
    border-left: 2px solid rgba(212, 175, 55, 0.4);
    pointer-events: none;
}

.jubu-mini-player::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    border-right: 2px solid rgba(212, 175, 55, 0.4);
    pointer-events: none;
}
