.audio-file-browser {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: transparent;
    border: 4px solid #C7B629;
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
}

.browser-header {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.back-btn {
    background: #C7B629;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #d4c333;
    transform: translateX(-3px);
}

.browser-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.95;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.browser-content {
    padding: 30px;
    min-height: 300px;
    background: transparent;
    position: relative;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 0 0 8px 8px;
}

.spinner {
    background: rgba(199, 182, 41, 0.9);
    color: #000;
    padding: 20px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.folders-section,
.files-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.2s;
    gap: 12px;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.audio-item {
    cursor: pointer;
}

.audio-item:hover .play-btn {
    background: #d4c333;
    transform: scale(1.05);
}

.folder-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    flex: 1;
}

.file-item .icon {
    font-size: 24px;
    flex-shrink: 0;
}

.file-item .name {
    flex: 1;
    font-weight: 500;
    color: white;
}

.play-btn {
    background: #C7B629;
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(199, 182, 41, 0.4);
    background: #d4c333;
}

.empty-folder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px;
    font-style: italic;
}

.audio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.5);
    padding: 20px;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

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

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.now-playing {
    font-weight: 600;
    color: #C7B629;
    font-size: 16px;
}

.close-player {
    background: #dc3545;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s;
}

.close-player:hover {
    background: #c82333;
    transform: rotate(90deg);
}

#audio-player {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    outline: none;
}

/* Protection anti-téléchargement */
.audio-file-browser * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    .browser-header {
        padding: 15px;
    }
    
    .browser-header h3 {
        font-size: 20px;
    }
    
    .browser-content {
        padding: 15px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .play-btn {
        width: 100%;
        margin-top: 8px;
    }
    
    .audio-player-container {
        padding: 15px;
    }
}