/* ============================================================
   DEMUCS — CSS local
   Importer design-system.css AVANT ce fichier.
   Refait dans le style FFMPEG — frère de la suite A2B.
   ============================================================ */

/* Dropzone */
.dropzone {
    border: 2px dashed #677de8;
    border-radius: var(--ds-radius, 0.5rem);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    margin-bottom: 20px;
    position: relative;
    background: transparent;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.dropzone:hover,
.dropzone.drag-over {
    border-color: #fafafa;
    background:   rgba(102, 126, 234, 0.06);
}

.dropzone input {
    position: absolute;
    inset:    0;
    opacity:  0;
    cursor:   pointer;
    width:    100%;
    height:   100%;
}

.dropzone-icon {
    font-size:     44px;
    margin-bottom: 12px;
}

.dropzone-text {
    color:     #aaa;
    font-size: 15px;
}

.dropzone-hint {
    color:      #747474;
    font-size:  12px;
    margin-top: 6px;
}

.dropzone.has-file {
    border-color: #fafafa;
    background:   rgba(5, 150, 105, 0.06);
}

.file-name {
    color:       #ffa516;
    font-weight: 600;
    font-size:   14px;
    margin-top:  8px;
    word-break:  break-all;
}

/* Steps de progression */
.steps {
    display:        none;
    gap:            8px;
    margin:         16px 0;
    flex-direction: column;
}

.steps.visible { display: flex; }

.step {
    display:      flex;
    align-items:  center;
    gap:          10px;
    padding:      10px 14px;
    border-radius: var(--ds-radius, 0.5rem);
    background:   #1a1a2e;
    font-size:    13px;
    color:        #666;
    transition:   all 0.3s;
}

.step.active {
    color:      #ffa516;
    background: rgba(102, 126, 234, 0.12);
}

.step.done {
    color:      #ffa516;
    background: rgba(5, 150, 105, 0.1);
}

.dot {
    width:        8px;
    height:       8px;
    border-radius: 50%;
    background:   #333;
    flex-shrink:  0;
    transition:   background 0.3s;
}

.step.active .dot {
    background: #667eea;
    animation:  pulse 1.2s infinite;
}

.step.done .dot { background: #ffa516; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 4px #667eea; }
    50%       { box-shadow: 0 0 12px #667eea; }
}

/* Barre de progression */
.progress-wrap          { display: none; }
.progress-wrap.visible  { display: block; }

.progress-bg {
    background:    #ffa516;
    border-radius: 99px;
    height:        8px;
    overflow:      hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height:           100%;
    border-radius:    99px;
    width:            0%;
    transition:       width 0.4s ease;
    background:       var(--ds-gradient-accent, linear-gradient(135deg,#667eea,#764ba2));
}

.progress-label {
    color:      #888;
    font-size:  13px;
    text-align: center;
}

/* Résultats */
.results         { display: none; margin-top: 24px; }
.results.visible { display: block; }

.results-title {
    text-align:    center;
    font-size:     18px;
    font-weight:   700;
    margin-bottom: 16px;
    color:         #ffa516;
}

.track {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    background:      #1a1a2e;
    border-radius:   var(--ds-radius, 0.5rem);
    padding:         14px 18px;
    border:          1px solid #444;
    flex-wrap:       wrap;
    gap:             10px;
}

.track-info {
    display:     flex;
    align-items: center;
    gap:         12px;
}

.track-icon  { font-size: 28px; }
.track-name  { font-weight: 700; font-size: 15px; }
.track-desc  { color: #666; font-size: 12px; margin-top: 2px; }

.track-btns {
    display:     flex;
    gap:         8px;
    align-items: center;
}

.dl-btn {
    background:      #059669;
    color:           #fff;
    text-decoration: none;
    padding:         9px 18px;
    border-radius:   var(--ds-radius, 0.5rem);
    font-size:       13px;
    font-weight:     700;
}

.listen-btn {
    background:    transparent;
    color:         #667eea;
    border:        1px solid #667eea;
    padding:       9px 14px;
    border-radius: var(--ds-radius, 0.5rem);
    font-size:     13px;
    font-weight:   600;
    cursor:        pointer;
}

.listen-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

audio            { width: 100%; margin-top: 8px; display: none; }
audio.visible    { display: block; }

/* Erreur */
.error-box {
    display:       none;
    background:    rgba(244, 67, 54, 0.1);
    border:        1px solid rgba(244, 67, 54, 0.3);
    border-radius: var(--ds-radius, 0.5rem);
    padding:       14px 16px;
    color:         #fca5a5;
    font-size:     14px;
    margin-top:    16px;
    text-align:    center;
}

.error-box.visible { display: block; }

/* Reset */
.reset-btn {
    width:         100%;
    margin-top:    16px;
    padding:       12px;
    background:    transparent;
    color:         #667eea;
    border:        1px solid #667eea;
    border-radius: var(--ds-radius, 0.5rem);
    font-size:     14px;
    cursor:        pointer;
    transition:    border-color 0.2s, color 0.2s;
}

.reset-btn:hover {
    border-color: #fafafa;
    color:        #fafafa;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 28px;
    color:      #444;
    font-size:  12px;
}