.mp3player {
    font-family: Arial, sans-serif;
    font-size: 14px;
    max-width: 360px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
}

/* Titre */
.mp3player-title {
    background: #444;
    color: #fff;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: bold;
}

/* Piste en cours */
.mp3player-track {
    padding: 8px 12px 4px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Barre de progression */
.mp3player-bar-wrap {
    margin: 4px 12px;
    height: 5px;
    background: #ddd;
    border-radius: 3px;
    cursor: pointer;
}
.mp3player-bar {
    height: 100%;
    width: 0%;
    background: #555;
    border-radius: 3px;
    transition: width 0.2s linear;
}

/* Temps */
.mp3player-time {
    display: flex;
    justify-content: space-between;
    padding: 2px 12px 6px;
    font-size: 11px;
    color: #888;
}

/* Contrôles */
.mp3player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 8px;
    border-top: 1px solid #eee;
}

.mp3player-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}
.mp3player-btn:hover {
    background: #eee;
}
.mp3player-btn svg {
    display: block;
    width: 12px;
    height: 12px;
    fill: #444;
    flex-shrink: 0;
}

.mp3player-btn-play {
    width: 36px;
    height: 36px;
    background: #444;
    border-color: #444;
    border-radius: 50%;
}
.mp3player-btn-play:hover {
    background: #222;
    border-color: #222;
}
.mp3player-btn-play svg {
    fill: #fff;
    width: 14px;
    height: 14px;
}

/* Volume */
.mp3player-vol {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    accent-color: #555;
}

/* Liste des pistes */
.mp3player-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
    border-top: 1px solid #eee;
}
.mp3player-list::-webkit-scrollbar { width: 4px; }
.mp3player-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.mp3player-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #f0f0f0;
}
.mp3player-item:last-child { border-bottom: none; }
.mp3player-item:hover { background: #f0f0f0; }
.mp3player-item.active {
    background: #444;
    color: #fff;
}
.mp3player-num {
    font-size: 11px;
    color: #aaa;
    flex-shrink: 0;
    min-width: 18px;
}
.mp3player-item.active .mp3player-num { color: #ccc; }

.mp3player-empty {
    font-style: italic;
    color: #c00;
    font-size: 13px;
}
