/**
 * Custom Music Player Styles
 * Estilos para o player de áudio personalizado
 */

.custom-music-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border-radius: 12px;
    border: 1px solid #333;
    min-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.custom-music-player:hover {
    border-color: #0066ff;
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.2);
}

.custom-music-player.error {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
    justify-content: center;
    gap: 8px;
}

/* Botões do player */
.player-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.player-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.5);
}

.player-btn:active {
    transform: scale(0.95);
}

.player-btn.play-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
}

.player-btn.volume-btn {
    background: #2a2a2a;
    box-shadow: none;
}

.player-btn.volume-btn:hover {
    background: #333;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Tempo */
.player-time {
    font-size: 13px;
    color: #999;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    min-width: 45px;
    text-align: center;
    flex-shrink: 0;
}

.player-time.time-current {
    color: #0066ff;
}

/* Barra de progresso */
.player-progress-container {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0 4px;
}

.player-progress-bar {
    width: 100%;
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    position: relative;
    overflow: visible;
}

.player-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066ff 0%, #00aaff 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.player-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 102, 255, 0.6);
}

.player-progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    left: 0%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.player-progress-handle:hover {
    transform: translate(-50%, -50%) scale(1.3);
}

.player-progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.5);
}

/* Volume slider */
.player-volume-slider {
    position: absolute;
    bottom: 100%;
    right: 10px;
    margin-bottom: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.volume-range {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #2a2a2a;
    border-radius: 2px;
    outline: none;
}

.volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #0066ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 102, 255, 0.4);
}

.volume-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #0066ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 102, 255, 0.4);
}

/* Badge de variantes */
.variants-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 102, 255, 0.15);
    border: 1px solid #0066ff;
    border-radius: 20px;
    color: #0066ff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.variants-badge:hover {
    background: rgba(0, 102, 255, 0.25);
    transform: scale(1.05);
}

.variants-badge i {
    font-size: 10px;
}

/* Lista de variantes */
.variants-list {
    margin-top: 12px;
    padding: 12px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    display: none;
}

.variants-list.expanded {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.variant-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #222;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.variant-item:last-child {
    margin-bottom: 0;
}

.variant-item:hover {
    background: #2a2a2a;
    transform: translateX(5px);
}

.variant-info {
    flex: 1;
}

.variant-title {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 4px;
}

.variant-meta {
    font-size: 12px;
    color: #666;
}

.variant-duration {
    color: #0066ff;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 768px) {
    .custom-music-player {
        min-width: 280px;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .player-btn.play-btn {
        width: 38px;
        height: 38px;
    }
    
    .player-time {
        font-size: 11px;
        min-width: 40px;
    }
    
    .player-volume-slider {
        right: 0;
    }
}
