  /* Animation de l'anneau de chargement */
.rpc-play.loading::after {
    content: "";
    position: absolute;
    width: 54px; /* Ajuste selon la taille de ton bouton */
    height: 54px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rpc-spin 0.8s linear infinite;
}
@keyframes rpc-spin {
    to { transform: rotate(360deg); }
}
/* Optionnel : masquer l'icône pendant le chargement */
.rpc-play.loading i {
    opacity: 0.3;
}
/* Import de la police originale (Outfit) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700&display=swap');
/* --- TYPOGRAPHIE --- */
.player-card-modern .rpc-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 4px;
    
    /* 1. Propriété standard (Pérennité du code) */
    line-clamp: 2;

    /* 2. Support Moteur Webkit (Chrome, Safari, Edge) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    
    /* 3. Sécurité de débordement */
    overflow: hidden;
    text-overflow: ellipsis;

    /* 4. Astuce Bunker : assure une hauteur minimale cohérente */
    min-height: 2.6em; /* 2 lignes * 1.3 line-height */
    word-break: break-word;
    overflow-wrap: anywhere;
}
.player-card-modern .rpc-artist {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--bs-secondary, #6c757d);
}
/* --- BOUTON POP-UP SUR LA COVER --- */
.player-card-modern .rpc-cover {
    position: relative;
}
.player-card-modern .rpc-cover-img {
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.player-card-modern .rpc-cover-img:hover {
    filter: grayscale(100%);
    transform: rotate(-8deg);
}
.player-card-modern .rpc-popup-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.player-card-modern .rpc-popup-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: scale(1.1);
}
/* --- BARRE DE VOLUME --- */
.player-card-modern .rpc-volume-slider {
    width: 60%;
    height: 6px;
    accent-color: #d946ef; /* Ta couleur rose Masira (modifiable) */
    cursor: pointer;
}
/* --- LABELS DE TEMPS --- */
.player-card-modern .rpc-time-labels {
    font-size: 0.75rem;
    color: var(--bs-secondary, #6c757d);
    font-family: monospace;
    margin-bottom: 4px;
}
/* --- WIDGETS QUALITÉ & LATENCE --- */
.player-card-modern .rpc-stat-widget {
    background-color: var(--bs-light, #f8f9fa); /* S'adapte au thème clair/sombre si configuré */
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1; /* Permet aux deux widgets de prendre la même largeur */
}
/* Adaptation pour les thèmes sombres (si Bootstrap data-bs-theme est utilisé) */
[data-bs-theme="dark"] .player-card-modern .rpc-stat-widget {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
.player-card-modern .stat-icon {
    font-size: 1.4rem;
}
.player-card-modern .stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}
.player-card-modern .stat-val {
    font-size: 0.85rem;
    line-height: 1.2;
}
/* Garder l'arrondi du bas de la carte propre */
.player-card-modern .rpc-body {
    padding: 1.25rem;
    flex-grow: 1;
}



/* Le design de la tooltip (inversé vers le bas) */
.custom-tooltip-wrap .custom-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%; /* On positionne en dessous */
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-5px); /* Départ de l'animation */
    margin-top: 10px; /* Espace par rapport au texte */
    
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
}

/* La petite flèche (inversée pour pointer vers le haut) */
.custom-tooltip-wrap .custom-tooltip-content::after {
    content: '';
    position: absolute;
    bottom: 100%; /* Positionnée en haut de la bulle */
    top: auto;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    /* Les couleurs de la flèche (le transparent change de place) */
    border-color: transparent transparent rgba(15, 23, 42, 0.95) transparent;
}

/* Apparition au survol (glisse vers le bas) */
.custom-tooltip-wrap:hover .custom-tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.custom-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
    opacity: 0.7;
}

.custom-link-icon:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Joli fond au survol pour les thèmes sombres/glass */
    opacity: 1;
    transform: scale(1.05); /* Léger grossissement */
}


/* Container des états vides */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin: 15px;
}

.empty-state-container.sm {
    padding: 20px;
    border: none;
}

/* Icônes */
.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.1);
}

.empty-state-container h6 {
    margin: 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state-container p {
    font-size: 0.85rem;
    margin: 5px 0 0;
}

/* Animation de rotation pour le disque */
.rotation-slow {
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}












/* ==========================================================================
   PLANNER & LIBRARY CARDS - MODERN DESIGN
   ========================================================================== */

/* --- Cartes Neo Glass --- */
.card-neo {
    border-radius: 1.25rem !important;
    backdrop-filter: blur(12px) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="dark"] .card-neo {
    background: rgba(30, 30, 30, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* --- En-têtes --- */
.lib-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 1.25rem 1.5rem !important;
}
[data-bs-theme="dark"] .lib-header { border-bottom-color: rgba(255,255,255,0.05) !important; }

.st-title { font-weight: 700; font-size: 1.1rem; color: var(--bs-heading-color); }
.st-subtitle { font-size: 0.8rem; color: #6c757d; }

/* --- Inputs & Search --- */
.card-neo .input-group-text, 
.card-neo .form-control {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
}
.card-neo .form-control:focus {
    background: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}
[data-bs-theme="dark"] .card-neo .input-group-text, 
[data-bs-theme="dark"] .card-neo .form-control {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- Pill Filters (Musique, Jingle, VT) --- */
.pill-filter {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.pill-filter:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.pill-filter.active {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}
.pill-filter .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* --- Navigation Moderne (Onglets) --- */
.modern-pills {
    background: transparent;
    padding: 0.3rem;
    border-radius: 0.8rem;
    display: inline-flex;
    width: 100%;
}
.modern-pills .nav-item { flex: 1; text-align: center; }
.modern-pills .nav-link {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0.6rem;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.modern-pills .nav-link:hover { color: #212529; }
.modern-pills .nav-link.active {
    background: #fff;
    color: #0d6efd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
[data-bs-theme="dark"] .modern-pills { background: rgba(0,0,0,0.2); }
[data-bs-theme="dark"] .modern-pills .nav-link.active { background: #2b2b2b; color: #fff; }

/* --- Upload Zone --- */
.upload-zone {
    border: 2px dashed rgba(13, 110, 253, 0.4);
    background: rgba(13, 110, 253, 0.02);
    border-radius: 1rem;
    padding: 3rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
    background: rgba(13, 110, 253, 0.08);
    border-color: #0d6efd;
    transform: scale(0.99);
}
.upload-zone i { color: #0d6efd; }

/* --- Badges & Scroll --- */
.badge-chip {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }
































/* ==========================================================================
   TEAM & TIMELINE WIDGETS
   ========================================================================== */

/* --- Listes "Découvrez Masira" --- */
.news-item {
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}
.news-item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(4px);
}
[data-bs-theme="dark"] .news-item { background: rgba(255, 255, 255, 0.02); border-color: rgba(255, 255, 255, 0.05); }

/* --- Avatars Équipe --- */
.avatar-sm {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 600;
    font-size: 0.9rem;
}
.team-item {
    padding: 0.6rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}
.team-item:hover { background: rgba(0, 0, 0, 0.03); }
[data-bs-theme="dark"] .team-item:hover { background: rgba(255, 255, 255, 0.05); }

/* --- Timeline Verticale --- */
.events-timeline {
    position: relative;
    padding-left: 1.5rem;
    margin-left: 0.5rem;
    border-left: 2px dashed rgba(0, 0, 0, 0.1);
}
[data-bs-theme="dark"] .events-timeline { border-left-color: rgba(255, 255, 255, 0.1); }

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-node {
    position: absolute;
    left: -1.5rem;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.5); /* Effet d'anneau transparent */
    font-size: 1rem;
    z-index: 1;
}
[data-bs-theme="dark"] .timeline-node { background: #1e1e1e; box-shadow: 0 0 0 4px rgba(30,30,30,0.5); }










/* =========================================================================================
   ███████╗██╗██╗     ███████╗    ███╗   ███╗ █████╗ ███╗   ██╗ █████╗  ██████╗ ███████╗██████╗ 
   ██╔════╝██║██║     ██╔════╝    ████╗ ████║██╔══██╗████╗  ██║██╔══██╗██╔════╝ ██╔════╝██╔══██╗
   █████╗  ██║██║     █████╗      ██╔████╔██║███████║██╔██╗ ██║███████║██║  ███╗█████╗  ██████╔╝
   ██╔══╝  ██║██║     ██╔══╝      ██║╚██╔╝██║██╔══██║██║╚██╗██║██╔══██║██║   ██║██╔══╝  ██╔══██╗
   ██║     ██║███████╗███████╗    ██║ ╚═╝ ██║██║  ██║██║ ╚████║██║  ██║╚██████╔╝███████╗██║  ██║
   ╚═╝     ╚═╝╚══════╝╚══════╝    ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝  ╚═╝ ╚═════╝ ╚══════╝╚═╝  ╚═╝
   
   =========================================================================================
   MODULE      : RADIO FILE MANAGER
   DESCRIPTION : Styles spécifiques à l'explorateur de médias et à la gestion des dossiers
   PAGE        : radio-filemanager.php
   ========================================================================================= */

     /* ══════════════════════════════════════════════════════════════
   TOKENS & THEME SYSTEM
   ══════════════════════════════════════════════════════════════ */
  @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');
  :root,
  [data-bs-theme="light"] {
    --fm-font: 'Outfit', -apple-system, sans-serif;
    --fm-mono: 'JetBrains Mono', monospace;
    --fm-bg-0: #f0f2f7;
    --fm-bg-1: #ffffff;
    --fm-bg-2: #f7f8fb;
    --fm-bg-3: #eef0f6;
    --fm-bg-raised: #ffffff;
    --fm-bg-overlay: rgba(15, 18, 35, 0.45);
    --fm-bg-glass: rgba(255, 255, 255, 0.72);
    --fm-border: #e2e5ef;
    --fm-border-subtle: #eef0f6;
    --fm-text-0: #0f1223;
    --fm-text-1: #3a3f5c;
    --fm-text-2: #6b7194;
    --fm-text-3: #9ca1bd;
    --fm-text-inv: #ffffff;
    --fm-primary: #5046e5;
    --fm-primary-h: #3f35d4;
    --fm-primary-soft: #eeecfd;
    --fm-primary-glow: rgba(80, 70, 229, 0.15);
    --fm-emerald: #10b981;
    --fm-emerald-soft: #ecfdf5;
    --fm-cyan: #06b6d4;
    --fm-cyan-soft: #ecfeff;
    --fm-amber: #f59e0b;
    --fm-amber-soft: #fffbeb;
    --fm-rose: #f43f5e;
    --fm-rose-soft: #fff1f2;
    --fm-slate: #64748b;
    --fm-slate-soft: #f1f5f9;
    --fm-shadow-xs: 0 1px 2px rgba(15, 18, 35, 0.04);
    --fm-shadow-sm: 0 2px 8px rgba(15, 18, 35, 0.06);
    --fm-shadow-md: 0 8px 24px rgba(15, 18, 35, 0.08);
    --fm-shadow-lg: 0 16px 48px rgba(15, 18, 35, 0.1);
    --fm-shadow-glow: 0 0 0 3px var(--fm-primary-glow);
    --fm-radius-xs: 6px;
    --fm-radius-sm: 10px;
    --fm-radius: 14px;
    --fm-radius-lg: 20px;
    --fm-radius-xl: 28px;
    --fm-sidebar-w: 260px;
    --fm-ease: cubic-bezier(0.22, 0.68, 0, 1);
    --fm-dur: 0.25s;
    --mood-energique: #ff4d4d;
    --mood-festif: #ff9f43;
    --mood-euphorique: #ff9ff3;
    --mood-joyeux: #feca57;
    --mood-romantique: #ff6b6b;
    --mood-sensuel: #a55eea;
    --mood-chill: #1dd1a1;
    --mood-relaxant: #48dbfb;
    --mood-melancolique: #00d2ff;
    /* Bleu ciel demandé */
    --mood-nostalgique: #54a0ff;
    --mood-triste: #576574;
    --mood-dramatique: #222f3e;
    --mood-agressif: #ee5253;
    --mood-motivant: #10ac84;
    --mood-mysterieux: #5f27cd;
    --mood-groovy: #0fbcf9;
    --mood-funky: #ffdd59;
    --mood-epique: #ffffff;
    --mood-doux: #ffcccc;
  }
  [data-bs-theme="dark"] {
    --fm-bg-0: #0c0e1a;
    --fm-bg-1: #141726;
    --fm-bg-2: #1a1e32;
    --fm-bg-3: #22263e;
    --fm-bg-raised: #1a1e32;
    --fm-bg-overlay: rgba(0, 0, 0, 0.6);
    --fm-bg-glass: rgba(20, 23, 38, 0.8);
    --fm-border: #2a2f4a;
    --fm-border-subtle: #1f2340;
    --fm-text-0: #eef0f8;
    --fm-text-1: #c4c8de;
    --fm-text-2: #8b90b0;
    --fm-text-3: #5c6184;
    --fm-text-inv: #ffffff;
    --fm-primary: #7c73fa;
    --fm-primary-h: #6d63f0;
    --fm-primary-soft: #1e1b3a;
    --fm-primary-glow: rgba(124, 115, 250, 0.2);
    --fm-emerald-soft: #052e16;
    --fm-cyan-soft: #083344;
    --fm-amber-soft: #451a03;
    --fm-rose-soft: #4c0519;
    --fm-slate-soft: #1e293b;
    --fm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --fm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --fm-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --fm-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  }
  /* ══════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════ */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  body {
    background: var(--fm-bg-0);
    font-family: var(--fm-font);
    color: var(--fm-text-0);
    -webkit-font-smoothing: antialiased;
    transition: background var(--fm-dur) var(--fm-ease), color var(--fm-dur) var(--fm-ease);
  }
  a {
    text-decoration: none;
    color: inherit;
  }
  a:hover {
    color: inherit;
  }
  /* ══════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════ */
  .fm-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    gap: 0;
  }
  /* ══════════════════════════════════════════════════════════════
   SIDEBAR — collée au bord, sticky, scroll interne
   ══════════════════════════════════════════════════════════════ */
  .fm-sidebar {
    width: var(--fm-sidebar-w);
    min-width: var(--fm-sidebar-w);
    background: var(--fm-bg-1);
    border-right: 1px solid var(--fm-border);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--fm-border) transparent;
    transition: background var(--fm-dur) var(--fm-ease), border-color var(--fm-dur) var(--fm-ease);
    z-index: 40;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
  }
  .fm-sidebar::-webkit-scrollbar {
    width: 3px;
  }
  .fm-sidebar::-webkit-scrollbar-thumb {
    background: var(--fm-border);
    border-radius: 10px;
  }
  /* Sidebar header */
  .fm-side-head {
    padding: 1.25rem 1rem 1rem;
    border-bottom: 1px solid var(--fm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .fm-side-head h5 {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fm-text-3);
  }
  /* Theme toggle */
  .fm-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--fm-radius-sm);
    border: 1px solid var(--fm-border);
    background: var(--fm-bg-2);
    color: var(--fm-text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--fm-dur) var(--fm-ease);
  }
  .fm-theme-toggle:hover {
    background: var(--fm-primary-soft);
    color: var(--fm-primary);
    border-color: var(--fm-primary);
  }
  /* Nav */
  .fm-nav {
    padding: 0.65rem 0;
    flex: 1;
  }
  .fm-nav-group {
    margin-bottom: 0.15rem;
  }
  .fm-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--fm-text-1);
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all var(--fm-dur) var(--fm-ease);
    border-radius: 0;
  }
  .fm-nav-link:hover {
    background: var(--fm-bg-2);
    color: var(--fm-primary);
  }
  .fm-nav-link.active {
    background: var(--fm-primary-soft);
    color: var(--fm-primary);
    font-weight: 600;
  }
  .fm-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12%;
    height: 76%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--fm-primary);
  }
  .fm-nav-link i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    opacity: 0.85;
  }
  .fm-nav-count {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    min-width: 24px;
    text-align: center;
    line-height: 1.5;
  }
  .fm-nav-count.c-primary {
    background: var(--fm-primary-soft);
    color: var(--fm-primary);
  }
  .fm-nav-count.c-emerald {
    background: var(--fm-emerald-soft);
    color: var(--fm-emerald);
  }
  .fm-nav-count.c-cyan {
    background: var(--fm-cyan-soft);
    color: var(--fm-cyan);
  }
  .fm-nav-count.c-amber {
    background: var(--fm-amber-soft);
    color: var(--fm-amber);
  }
  .fm-nav-count.c-rose {
    background: var(--fm-rose-soft);
    color: var(--fm-rose);
  }
  .fm-nav-count.c-slate {
    background: var(--fm-slate-soft);
    color: var(--fm-slate);
  }
  .fm-subfolder-list {
    padding: 0 0 0.25rem;
  }
  .fm-sub-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 1rem 0.35rem 2.5rem;
    font-size: 0.78rem;
    color: var(--fm-text-3);
    cursor: pointer;
    transition: color var(--fm-dur) var(--fm-ease);
  }
  .fm-sub-link:hover {
    color: var(--fm-primary);
  }
  .fm-sub-link i {
    font-size: 0.7rem;
  }

  /* ── Nested Subfolder Hierarchy ── */
  /* Level 2 (nested inside level 1) */
  .fm-subfolder-list .fm-subfolder-list .fm-sub-link {
    padding-left: 4rem;
  }

  /* Level 3 (nested inside level 2) */
  .fm-subfolder-list .fm-subfolder-list .fm-subfolder-list .fm-sub-link {
    padding-left: 5.5rem;
  }

  /* Level 4 (nested inside level 3) */
  .fm-subfolder-list .fm-subfolder-list .fm-subfolder-list .fm-subfolder-list .fm-sub-link {
    padding-left: 7rem;
  }

  /* Level 5+ (deeply nested) */
  .fm-subfolder-list .fm-subfolder-list .fm-subfolder-list .fm-subfolder-list .fm-subfolder-list .fm-sub-link {
    padding-left: 8.5rem;
  }

  /* Corbeille section */
  .fm-nav-separator {
    margin: 0.5rem 1rem;
    border-top: 1px solid var(--fm-border);
  }
  .fm-nav-link.trash-link {
    color: var(--fm-text-3);
  }
  .fm-nav-link.trash-link:hover {
    color: var(--fm-rose);
    background: var(--fm-rose-soft);
  }
  .fm-nav-link.trash-link.active {
    background: var(--fm-rose-soft);
    color: var(--fm-rose);
  }
  .fm-nav-link.trash-link.active::before {
    background: var(--fm-rose);
  }
  /* ══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════════════════ */
  .fm-content {
    flex: 1;
    min-width: 0;
    padding: 1.75rem 2rem;
    position: relative;
  }

  /* Masquer le contenu du dossier pendant la recherche */
  #fmMainArea.hidden {
    display: none !important;
  }
  /* ══════════════════════════════════════════════════════════════
   SEC-HERO (unified header — matches rotations, playlists, etc.)
   ══════════════════════════════════════════════════════════════ */
  .sec-hero {
    background: radial-gradient(circle at top left, rgba(217,70,239,.15), transparent 55%),
                radial-gradient(circle at top right, rgba(168,85,247,.15), transparent 55%);
    border-radius: 1rem;
    padding: 1.3rem 1.5rem;
    border: 1px solid rgba(148,163,184,.35);
  }
  .sec-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.7);
  }
  .btn-ghost {
    background: rgba(255,255,255,.05);
    color: #94a3b8 !important;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: .35rem .85rem;
    font-size: .82rem;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none;
    cursor: pointer;
  }
  .btn-ghost:hover {
    background: rgba(217,70,239,.12);
    border-color: rgba(217,70,239,.3);
    color: #d946ef !important;
    text-decoration: none;
  }
  .fm-storage-pill {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(15,23,42,.5);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: .45rem .85rem;
  }
  .fm-storage-ring {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .fm-storage-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    font-weight: 800;
    color: #e2e8f0;
  }
  @media (max-width: 768px) {
    .sec-hero { padding: .85rem 1rem; }
    .fm-storage-pill { padding: .35rem .6rem; }
  }

  /* ══════════════════════════════════════════════════════════════
   HERO HEADER (legacy)
   ══════════════════════════════════════════════════════════════ */
  .fm-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.5rem;
    border-radius: var(--fm-radius-lg);
    background: var(--fm-bg-1);
    border: 1px solid var(--fm-border);
  }
  .fm-hero-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }
  .fm-hero-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .7);
    flex-shrink: 0;
  }
  .fm-hero-icon i {
    font-size: 1.5rem;
    color: #d946ef;
  }
  .fm-hero h4 {
    margin: 0 0 0.15rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fm-text-0);
  }
  .fm-hero-meta {
    font-size: 0.8rem;
    color: var(--fm-text-3);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .fm-hero-meta a {
    color: var(--fm-primary);
    font-weight: 600;
    text-decoration: none;
  }
  .fm-hero-meta a:hover {
    text-decoration: underline;
  }
  .fm-hero-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .fm-hero-storage {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    min-width: 180px;
  }
  .fm-hero-storage-label {
    font-size: 0.73rem;
    color: var(--fm-text-3);
    font-weight: 500;
  }
  .fm-hero-storage-track {
    height: 6px;
    width: 100%;
    background: var(--fm-bg-3);
    border-radius: 100px;
    overflow: hidden;
  }
  .fm-hero-storage-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--fm-primary), var(--fm-emerald));
    transition: width 0.8s var(--fm-ease);
  }
  /* ══════════════════════════════════════════════════════════════
   SEARCH BAR (in content area)
   ══════════════════════════════════════════════════════════════ */
  .fm-search-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }
  .fm-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--fm-bg-1);
    border: 1.5px solid var(--fm-border);
    border-radius: var(--fm-radius-sm);
    padding: 0.5rem 0.85rem;
    flex: 1;
    max-width: 460px;
    transition: all var(--fm-dur) var(--fm-ease);
  }
  .fm-search-input-wrap:focus-within {
    border-color: var(--fm-primary);
    box-shadow: var(--fm-shadow-glow);
  }
  .fm-search-input-wrap i {
    color: var(--fm-text-3);
    font-size: 0.95rem;
    flex-shrink: 0;
  }
  .fm-search-input-wrap input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.84rem;
    font-family: var(--fm-font);
    color: var(--fm-text-0);
    width: 100%;
  }
  .fm-search-input-wrap input::placeholder {
    color: var(--fm-text-3);
  }
  .fm-search-scope {
    background: var(--fm-bg-1);
    border: 1.5px solid var(--fm-border);
    border-radius: var(--fm-radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    font-family: var(--fm-font);
    color: var(--fm-text-0);
    cursor: pointer;
    min-width: 170px;
  }
  .fm-search-scope:focus {
    border-color: var(--fm-primary);
    box-shadow: var(--fm-shadow-glow);
    outline: none;
  }
  /* ── Inline Filters ── */
  .fm-filter-select {
    background: var(--fm-bg-2);
    color: var(--fm-text-1);
    border: 1px solid var(--fm-border);
    border-radius: 8px;
    padding: 5px 28px 5px 10px;
    font-size: .78rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    transition: border-color .2s, box-shadow .2s;
  }
  .fm-filter-select:focus {
    border-color: var(--fm-primary);
    box-shadow: 0 0 0 3px rgba(217,70,239,.12);
  }
  .fm-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--fm-text-3);
    background: var(--fm-bg-2);
    border: 1px solid var(--fm-border);
    cursor: pointer;
    transition: all .2s;
    user-select: none;
  }
  .fm-filter-chip input { display: none; }
  .fm-filter-chip:hover,
  .fm-filter-chip.active {
    background: rgba(217,70,239,.12);
    border-color: rgba(217,70,239,.3);
    color: var(--fm-primary);
  }
  .fm-filter-reset {
    background: none;
    border: none;
    color: var(--fm-rose);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: transform .2s;
  }
  .fm-filter-reset:hover { transform: scale(1.2); }

  /* Search results */
  .fm-search-results {
    display: none;
    background: var(--fm-bg-1);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-lg);
    padding: 0;
    overflow: hidden;
    animation: fm-fadeIn 0.2s var(--fm-ease);
    margin-bottom: 2rem;
  }
  .fm-search-results.visible {
    display: block;
  }
  @keyframes fm-fadeIn {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .fm-search-results table {
    margin: 0;
    width: 100%;
  }
  .fm-search-results thead th {
    background: var(--fm-bg-2);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--fm-text-3);
    border-bottom: 1px solid var(--fm-border);
    padding: 0.75rem 1rem;
    white-space: nowrap;
  }
  .fm-search-results tbody tr {
    border-bottom: 1px solid var(--fm-border-subtle);
    transition: background var(--fm-dur) var(--fm-ease);
  }
  .fm-search-results tbody tr:last-child {
    border-bottom: none;
  }
  .fm-search-results tbody tr:hover {
    background: var(--fm-bg-2);
  }
  .fm-search-results tbody td {
    padding: 0.6rem 1rem;
    vertical-align: middle;
    font-size: 0.84rem;
  }
  .fm-search-results-header {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--fm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--fm-bg-2);
  }
  .fm-search-results-header h6 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--fm-text-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .fm-search-close {
    border: none;
    background: none;
    color: var(--fm-text-3);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--fm-radius-xs);
    transition: all var(--fm-dur) var(--fm-ease);
  }
  .fm-search-close:hover {
    background: var(--fm-rose-soft);
    color: var(--fm-rose);
  }
  /* ══════════════════════════════════════════════════════════════
   TOOLBAR
   ══════════════════════════════════════════════════════════════ */
  .fm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .fm-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .fm-toolbar-left h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--fm-text-0);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .fm-toolbar-left .edit-pen {
    cursor: pointer;
    color: var(--fm-text-3);
    font-size: 0.75rem;
    transition: color var(--fm-dur) var(--fm-ease);
    padding: 4px;
  }
  .fm-toolbar-left .edit-pen:hover {
    color: var(--fm-primary);
  }
  .fm-toolbar-right {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  /* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
  .btn-fm {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--fm-font);
    border-radius: var(--fm-radius-sm);
    cursor: pointer;
    transition: all var(--fm-dur) var(--fm-ease);
    border: none;
    line-height: 1.4;
  }
  .btn-fm i {
    font-size: 0.95rem;
  }
  .btn-fm-primary {
    background: var(--fm-primary);
    color: var(--fm-text-inv);
  }
  .btn-fm-primary:hover {
    background: var(--fm-primary-h);
    color: var(--fm-text-inv);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--fm-primary-glow);
  }
  .btn-fm-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  .btn-fm-ghost {
    background: var(--fm-bg-2);
    color: var(--fm-text-1);
    border: 1px solid var(--fm-border);
  }
  .btn-fm-ghost:hover {
    background: var(--fm-primary-soft);
    color: var(--fm-primary);
    border-color: var(--fm-primary);
  }
  .btn-fm-danger {
    background: var(--fm-rose-soft);
    color: var(--fm-rose);
    border: 1px solid transparent;
  }
  .btn-fm-danger:hover {
    background: var(--fm-rose);
    color: white;
  }
  .btn-fm-trash-empty {
    background: var(--fm-rose);
    color: white;
  }
  .btn-fm-trash-empty:hover {
    background: #e11d48;
    color: white;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
  }
  /* Micro action buttons */
  .fm-btn-micro {
    width: 32px;
    height: 32px;
    border-radius: var(--fm-radius-xs);
    border: 1px solid var(--fm-border);
    background: var(--fm-bg-2);
    color: var(--fm-text-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    transition: all var(--fm-dur) var(--fm-ease);
  }
  .fm-btn-micro:hover {
    background: var(--fm-primary);
    color: white;
    border-color: var(--fm-primary);
    transform: translateY(-1px);
  }
  .fm-btn-micro.act-play:hover {
    background: var(--fm-emerald);
    border-color: var(--fm-emerald);
  }
  .fm-btn-micro.act-play.playing {
    background: var(--fm-emerald);
    border-color: var(--fm-emerald);
    color: white;
  }
  .fm-btn-micro.act-move:hover {
    background: var(--fm-amber);
    border-color: var(--fm-amber);
  }
  .fm-btn-micro.act-trash:hover {
    background: var(--fm-rose);
    border-color: var(--fm-rose);
  }
  .fm-btn-micro.act-info:hover {
    background: var(--fm-cyan);
    border-color: var(--fm-cyan);
  }
  .fm-btn-micro.act-download:hover {
    background: var(--fm-primary);
    border-color: var(--fm-primary);
  }
  /* ══════════════════════════════════════════════════════════════
   UPLOAD PANEL
   ══════════════════════════════════════════════════════════════ */
  .fm-upload-panel {
    background: var(--fm-bg-1);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-lg);
    overflow: hidden;
    margin-bottom: 1.75rem;
    transition: background var(--fm-dur) var(--fm-ease), border-color var(--fm-dur) var(--fm-ease);
  }
  .fm-panel-head {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--fm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .fm-panel-head h6 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fm-text-3);
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .fm-panel-body {
    padding: 1.25rem 1.5rem;
  }
  .fm-dropzone {
    border: 2px dashed var(--fm-border);
    border-radius: var(--fm-radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
background-color: var(--fm-bg-2) !important;
    transition: all 0.35s var(--fm-ease);
    position: relative;
    overflow: hidden;
    min-height: auto;
  }
  .fm-dropzone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--fm-primary-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s var(--fm-ease);
    pointer-events: none;
  }
  .fm-dropzone:hover,
  .fm-dropzone.dz-drag-hover {
    border-color: var(--fm-primary);
    background: var(--fm-primary-soft);
    transform: translateY(-2px);
    box-shadow: var(--fm-shadow-md), 0 0 0 4px var(--fm-primary-glow);
  }
  .fm-dropzone:hover::before,
  .fm-dropzone.dz-drag-hover::before {
    opacity: 1;
  }
  .fm-dropzone.dz-drag-hover {
    border-style: solid;
    animation: fm-dz-pulse 1.5s ease-in-out infinite;
  }
  @keyframes fm-dz-pulse {
    0%, 100% { box-shadow: var(--fm-shadow-md), 0 0 0 4px var(--fm-primary-glow); }
    50% { box-shadow: var(--fm-shadow-lg), 0 0 0 8px var(--fm-primary-glow); }
  }
  .fm-dropzone .dz-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fm-primary), var(--fm-emerald));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 16px var(--fm-primary-glow);
    transition: transform 0.3s var(--fm-ease);
  }
  .fm-dropzone:hover .dz-icon {
    transform: scale(1.1) translateY(-2px);
  }
  .fm-dropzone h6 {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
    color: var(--fm-text-0);
  }
  .fm-dropzone p {
    font-size: 0.78rem;
    color: var(--fm-text-3);
    margin: 0;
  }
  .fm-help-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fm-bg-2);
    color: var(--fm-text-3);
    border: 1px solid var(--fm-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: help;
    transition: all var(--fm-dur) var(--fm-ease);
  }
  .fm-help-btn:hover {
    background: var(--fm-primary-soft);
    color: var(--fm-primary);
    border-color: var(--fm-primary);
  }
  /* ══════════════════════════════════════════════════════════════
   FOLDER CARDS
   ══════════════════════════════════════════════════════════════ */
  .fm-folder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--fm-bg-1);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    padding: 1.5rem 1rem 1.15rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--fm-dur) var(--fm-ease);
    height: 100%;
  }
  .fm-folder-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fm-shadow-md);
    border-color: var(--fm-primary);
  }
  .fm-folder-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--fm-radius-sm);
    background: var(--fm-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
    transition: background var(--fm-dur) var(--fm-ease);
  }
  .fm-folder-card:hover .fm-folder-icon-wrap {
    background: var(--fm-primary);
  }
  .fm-folder-card:hover .fm-folder-icon-wrap i {
    color: white;
  }
  .fm-folder-icon-wrap i {
    color: var(--fm-primary);
    transition: color var(--fm-dur) var(--fm-ease);
  }
  .fm-folder-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fm-text-0);
    margin-bottom: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .fm-folder-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.73rem;
    color: var(--fm-text-3);
    border-top: 1px solid var(--fm-border);
    padding-top: 0.7rem;
    font-weight: 500;
  }
  /* ══════════════════════════════════════════════════════════════
   FILES TABLE — fix: no trailing empty row
   ══════════════════════════════════════════════════════════════ */
  .fm-table-card {
    background: var(--fm-bg-1);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-lg);
    overflow: hidden;
    transition: background var(--fm-dur) var(--fm-ease), border-color var(--fm-dur) var(--fm-ease);
  }
  .fm-table-card table {
    margin: 0;
    border-collapse: collapse;
    width: 100%;
  }
  .fm-table-card thead th {
    background: var(--fm-bg-2);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--fm-text-3);
    border-bottom: 1px solid var(--fm-border);
    padding: 0.85rem 1.15rem;
    white-space: nowrap;
  }
  .fm-table-card tbody tr {
    border-bottom: 1px solid var(--fm-border-subtle);
    transition: background var(--fm-dur) var(--fm-ease);
  }
  .fm-table-card tbody tr:last-child {
    border-bottom: none;
  }
  .fm-table-card tbody tr:hover {
    background: var(--fm-bg-2);
  }
  .fm-table-card tbody td {
    padding: 0.7rem 1.15rem;
    vertical-align: middle;
    font-size: 0.84rem;
  }
  /* Élimination de la ligne blanche fantôme */
  .fm-table-card table tbody tr:last-child td {
    border-bottom: 0 !important;
    padding-bottom: 0.7rem;
  }
  .fm-table-card table {
    border-spacing: 0;
  }
  .fm-table-card table tfoot {
    display: none;
  }
  .fm-cover-img {
    width: 44px;
    height: 44px;
    border-radius: var(--fm-radius-xs);
    object-fit: cover;
    background: var(--fm-bg-3);
  }
  .fm-track-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--fm-text-0);
    line-height: 1.35;
  }
  .fm-track-artist {
    font-size: 0.75rem;
    color: var(--fm-text-3);
  }
  .fm-track-folder {
    font-size: 0.72rem;
    color: var(--fm-primary);
    opacity: 0.7;
  }
  /* ══════════════════════════════════════════════════════════════
   BULK BAR
   ══════════════════════════════════════════════════════════════ */
  .fm-bulk-bar {
    background: var(--fm-primary-soft);
    border: 1px solid var(--fm-primary-glow);
    border-radius: var(--fm-radius-sm);
    padding: 0.6rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    animation: fm-slideDown 0.25s var(--fm-ease);
  }
  @keyframes fm-slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .fm-bulk-bar span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fm-primary);
    margin-right: auto;
  }
  /* ══════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════ */
  .fm-pagination .page-link {
    border-radius: var(--fm-radius-xs) !important;
    border: 1px solid var(--fm-border);
    color: var(--fm-text-1);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    margin: 0 2px;
    background: var(--fm-bg-1);
    transition: all var(--fm-dur) var(--fm-ease);
  }
  .fm-pagination .page-link:hover,
  .fm-pagination .page-item.active .page-link {
    background: var(--fm-primary);
    border-color: var(--fm-primary);
    color: white;
    box-shadow: 0 2px 8px var(--fm-primary-glow);
  }
  /* ══════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════ */
  .fm-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--fm-bg-1);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-lg);
  }
  .fm-empty-state .fm-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--fm-bg-2);
    color: var(--fm-text-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }
  .fm-empty-state h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fm-text-1);
    margin-bottom: 0.35rem;
  }
  .fm-empty-state p {
    font-size: 0.85rem;
    color: var(--fm-text-3);
    margin: 0;
  }
  /* ══════════════════════════════════════════════════════════════
   MODALS — cohérence des couleurs + dropdown fix
   ══════════════════════════════════════════════════════════════ */
  .modal-content {
    background: var(--fm-bg-1) !important;
    border: 1px solid var(--fm-border) !important;
    border-radius: var(--fm-radius-lg) !important;
  }
  .modal-header {
    border-bottom-color: var(--fm-border) !important;
  }
  .modal-body {
    color: var(--fm-text-1);
  }
  .form-control,
  .form-select {
    background: var(--fm-bg-2) !important;
    border-color: var(--fm-border) !important;
    color: var(--fm-text-0) !important;
    border-radius: var(--fm-radius-sm) !important;
    font-family: var(--fm-font) !important;
  }
  .form-control:focus,
  .form-select:focus {
    border-color: var(--fm-primary) !important;
    box-shadow: var(--fm-shadow-glow) !important;
  }
  .form-label {
    color: var(--fm-text-2);
    font-weight: 500;
    font-size: 0.82rem;
  }
  /* Fix dropdown noir sur noir */
  .form-select option {
    background: var(--fm-bg-2);
    color: var(--fm-text-0);
  }
  [data-bs-theme="dark"] .form-select option {
    background: #1a1e32;
    color: #eef0f8;
  }
  /* Hiérarchie dans les select (sous-dossiers indentés) */
  .form-select option[data-depth="1"] {
    padding-left: 1.5rem;
  }
  .form-select option[data-depth="2"] {
    padding-left: 3rem;
  }
  .form-select option[data-depth="3"] {
    padding-left: 4.5rem;
  }
  /* Addon cards */
  .fm-addon-item {
    border: 2px solid var(--fm-border);
    border-radius: var(--fm-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all var(--fm-dur) var(--fm-ease);
    background: var(--fm-bg-1);
  }
  .fm-addon-item:hover {
    border-color: var(--fm-primary);
    box-shadow: var(--fm-shadow-sm);
    transform: translateY(-3px);
  }
  .fm-addon-item .emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  .fm-addon-item h6 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--fm-text-0);
  }
  .fm-addon-item p {
    font-size: 0.8rem;
    color: var(--fm-text-3);
    margin-bottom: 0.85rem;
  }
  /* ══════════════════════════════════════════════════════════════
   FLOATING AUDIO PLAYER
   ══════════════════════════════════════════════════════════════ */
  .fm-player {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    /* Le player ne couvre ni la sidebar générale ni la sidebar médiathèque */
    left: calc(var(--vz-vertical-menu-width, 250px));
    z-index: 100;
    background: var(--fm-bg-1);
    border-top: 1px solid var(--fm-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0.75rem;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    overflow-y: auto;
    max-height: 150px;
  }
  .fm-player.visible {
    display: flex;
  }
  .fm-player-cover {
    width: 42px;
    height: 42px;
    border-radius: var(--fm-radius-xs);
    object-fit: cover;
    background: var(--fm-bg-3);
    flex-shrink: 0;
    cursor: pointer;
    transition: filter 0.3s ease, transform 0.3s ease;
  }
  .fm-player-cover:hover {
    filter: grayscale(100%);
    transform: rotate(-8deg);
  }
  .fm-player-info {
    flex: 0 0 auto;
    min-width: 120px;
    max-width: 200px;
  }
  .fm-player-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fm-text-0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fm-player-artist {
    font-size: 0.72rem;
    color: var(--fm-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fm-player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .fm-player-time {
    font-size: 0.7rem;
    font-family: var(--fm-mono);
    color: var(--fm-text-3);
    min-width: 38px;
    text-align: center;
  }
  .fm-player-bar {
    flex: 1;
    height: 5px;
    background: var(--fm-bg-3);
    border-radius: 100px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
  }
  .fm-player-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--fm-primary), var(--fm-emerald));
    border-radius: 100px;
    width: 0;
    transition: width 0.15s linear;
  }
  .fm-player-close {
    border: none;
    background: none;
    color: var(--fm-text-3);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--fm-radius-xs);
    transition: all var(--fm-dur) var(--fm-ease);
  }
  .fm-player-close:hover {
    background: var(--fm-rose-soft);
    color: var(--fm-rose);
  }
  /* ══════════════════════════════════════════════════════════════
   UPLOAD PROGRESS MODAL (bulk)
   ══════════════════════════════════════════════════════════════ */
  .fm-upload-progress {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
  }
  .fm-upload-progress.visible {
    display: flex;
    animation: fm-fade-in 0.3s ease-out;
  }
  @keyframes fm-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .fm-upload-progress-card {
    background: var(--fm-bg-1);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-xl);
    padding: 2.5rem 2.5rem 2rem;
    width: 480px;
    max-width: 94vw;
    text-align: center;
    box-shadow: var(--fm-shadow-lg);
    animation: fm-slide-up 0.35s var(--fm-ease);
  }
  @keyframes fm-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .fm-upload-progress-card h5 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--fm-text-0);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  .fm-upload-progress-card h5 i {
    animation: fm-spin 1.5s linear infinite;
  }
  @keyframes fm-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  .fm-upload-progress-card .fm-up-sub {
    font-size: 0.9rem;
    color: var(--fm-text-2);
    margin-bottom: 1.5rem;
    font-weight: 500;
  }
  .fm-up-bar-wrap {
    height: 20px;
    background: linear-gradient(135deg, var(--fm-bg-3) 0%, rgba(0, 0, 0, 0.05) 100%);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
    border: 1px solid var(--fm-border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .fm-up-bar-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--fm-primary), var(--fm-cyan), var(--fm-emerald));
    background-size: 300% 100%;
    animation: fm-bar-shimmer 3s ease-in-out infinite;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 0;
    position: relative;
    box-shadow: 0 0 20px rgba(var(--fm-primary-rgb), 0.6);
  }
  .fm-up-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    border-radius: 100px;
    animation: fm-bar-shine 2s ease infinite;
  }
  @keyframes fm-bar-shimmer {
    0% { background-position: 300% 0; }
    50% { background-position: 0% 0; }
    100% { background-position: -300% 0; }
  }
  @keyframes fm-bar-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
  }
  .fm-up-status {
    font-size: 0.78rem;
    color: var(--fm-text-2);
  }
  .fm-up-file-current {
    font-size: 0.75rem;
    color: var(--fm-primary);
    font-weight: 500;
    margin-top: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .fm-up-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fm-border-subtle);
  }
  .fm-up-stat {
    text-align: center;
  }
  .fm-up-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--fm-mono);
    line-height: 1;
  }
  .fm-up-stat-value.success { color: var(--fm-emerald); }
  .fm-up-stat-value.errors { color: var(--fm-rose); }
  .fm-up-stat-value.skipped { color: var(--fm-amber); }
  .fm-up-stat-label {
    font-size: 0.68rem;
    color: var(--fm-text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
  }
  /* ══════════════════════════════════════════════════════════════
   LOADING OVERLAY
   ══════════════════════════════════════════════════════════════ */
  .fm-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--fm-bg-overlay);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
  .fm-loading-overlay.visible {
    display: flex;
  }
  .fm-spinner-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: white;
    border-radius: 50%;
    animation: fm-spin 0.7s linear infinite;
  }
  @keyframes fm-spin {
    to {
      transform: rotate(360deg);
    }
  }
  .fm-loading-overlay p {
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0;
  }
  /* ══════════════════════════════════════════════════════════════
   TOOLTIP
   ══════════════════════════════════════════════════════════════ */
  .tooltip .tooltip-inner {
    background: var(--fm-bg-raised);
    color: var(--fm-text-0);
    box-shadow: var(--fm-shadow-md);
    border-radius: var(--fm-radius-sm);
    padding: 0.85rem 1rem;
    max-width: 280px;
    font-size: 0.78rem;
    text-align: left;
    border: 1px solid var(--fm-border);
  }
  .tooltip .tooltip-arrow::before {
    border-color: var(--fm-bg-raised) !important;
  }
  /* ══════════════════════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════════════════════ */
  .fm-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 50;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--fm-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 20px var(--fm-primary-glow);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform var(--fm-dur) var(--fm-ease);
  }
  .fm-mobile-toggle:hover {
    transform: scale(1.08);
  }
  .fm-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 39;
    background: var(--fm-bg-overlay);
    backdrop-filter: blur(2px);
  }
  @media (max-width: 1024px) {
    .fm-content {
      padding: 1.25rem 1.25rem;
    }
    .fm-player {
      left: 0;
    }
  }
  @media (max-width: 768px) {
    .fm-sidebar {
      position: fixed;
      left: -300px;
      top: 0;
      height: 100vh;
      z-index: 45;
      box-shadow: var(--fm-shadow-lg);
      transition: left 0.3s var(--fm-ease);
    }
    .fm-sidebar.open {
      left: 0;
    }
    .fm-sidebar-backdrop.open {
      display: block;
    }
    .fm-mobile-toggle {
      display: flex;
    }
    .fm-content {
      padding: 1rem;
    }
    .fm-toolbar {
      flex-direction: column;
      align-items: stretch;
    }
    .fm-toolbar-left,
    .fm-toolbar-right {
      width: 100%;
    }
    .fm-toolbar-right {
      justify-content: flex-end;
    }
    .fm-player {
      left: 0;
    }
    .fm-search-area {
      flex-direction: column;
    }
    .fm-search-input-wrap {
      max-width: 100%;
    }
    .fm-search-scope {
      min-width: auto;
      width: 100%;
    }
  }
  @media (max-width: 480px) {
    .fm-content {
      padding: 0.75rem;
    }
    .fm-toolbar-left h2 {
      font-size: 1.1rem;
    }
    .btn-fm {
      font-size: 0.78rem;
      padding: 0.4rem 0.75rem;
    }
    .fm-upload-progress-card {
      padding: 1.5rem 1.25rem 1.25rem;
      border-radius: var(--fm-radius);
    }
    .fm-up-stats-grid {
      gap: 0.5rem;
    }
    .fm-up-stat-value {
      font-size: 1.1rem;
    }
    .fm-dropzone {
      padding: 1.5rem 1rem;
    }
    .fm-dropzone .dz-icon {
      width: 48px;
      height: 48px;
      font-size: 1.3rem;
    }
  }
  /* Form check styling */
  .form-check-input {
    border-color: var(--fm-border) !important;
    background-color: var(--fm-bg-2) !important;
  }
  .form-check-input:checked {
    background-color: var(--fm-primary) !important;
    border-color: var(--fm-primary) !important;
  }
  /* ══════════════════════════════════════════════════════════════
   SWEETALERT2 — ADAPTATION THÈME SOMBRE
   ══════════════════════════════════════════════════════════════ */
  [data-bs-theme="dark"] .swal2-popup {
    background-color: var(--fm-bg-1);
    color: var(--fm-text-0);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-lg);
    box-shadow: var(--fm-shadow-lg);
  }
  [data-bs-theme="dark"] .swal2-title {
    color: var(--fm-text-0);
  }
  [data-bs-theme="dark"] .swal2-html-container {
    color: var(--fm-text-1);
  }
  [data-bs-theme="dark"] .swal2-input,
  [data-bs-theme="dark"] .swal2-textarea {
    background: var(--fm-bg-2);
    color: var(--fm-text-0);
    border: 1px solid var(--fm-border);
  }
  [data-bs-theme="dark"] .swal2-input:focus,
  [data-bs-theme="dark"] .swal2-textarea:focus {
    border-color: var(--fm-primary);
    box-shadow: var(--fm-shadow-glow);
  }
  [data-bs-theme="dark"] .swal2-validation-message {
    background: var(--fm-bg-2);
    color: var(--fm-text-0);
    border: 1px solid var(--fm-border);
  }
  [data-bs-theme="dark"] .swal2-close:focus {
    box-shadow: none;
  }
  [data-bs-theme="dark"] .swal2-close:hover {
    color: var(--fm-rose);
  }
  .fm-search-results tbody td {
    border-bottom: 1px solid var(--fm-border-subtle) !important;
  }
  /* Optionnel : Enlever la bordure du <tr> pour éviter les doublons */
  .fm-search-results tbody tr {
    border-bottom: none;
  }
  /* ══════════════════════════════════════════════════════════════
   ALERTE STOCKAGE (Clignotement Rouge)
   ══════════════════════════════════════════════════════════════ */
  @keyframes fm-pulse-danger {
    0% {
      opacity: 1;
      box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4);
    }
    50% {
      opacity: 0.7;
      box-shadow: 0 0 0 6px rgba(244, 63, 94, 0);
    }
    100% {
      opacity: 1;
      box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
    }
  }
  .fm-hero-storage-fill.is-danger {
    background: linear-gradient(90deg, #e11d48, var(--fm-rose)) !important;
    animation: fm-pulse-danger 1.5s infinite;
  }
  .fm-hero-storage-label.is-danger {
    color: var(--fm-rose) !important;
    font-weight: 700;
  }
  /* ══════════════════════════════════════════════════════════════
   PLAYER VOLUME SLIDER
   ══════════════════════════════════════════════════════════════ */
  .fm-player-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 110px;
    margin: 0 0.5rem;
  }
  .fm-player-volume i {
    color: var(--fm-text-2);
    cursor: pointer;
    font-size: 1.15rem;
    transition: color var(--fm-dur) var(--fm-ease);
  }
  .fm-player-volume i:hover {
    color: var(--fm-primary);
  }
  /* Style Custom pour la jauge range */
 .fm-player-volume input[type=range] {
    /* 1. Reset de l'apparence native (Standard + Préfixes) */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* 2. Structure de base */
    width: 100%;
    background: transparent;
    cursor: pointer;
    /* 3. Sécurité Bunker : Supprime le contour bleu par défaut au focus */
    outline: none;
}
/* 4. Correction pour Firefox (obligatoire pour masquer la barre native) */
.fm-player-volume input[type=range]::-moz-range-track {
    background: transparent;
    border: none;
}
/* 5. Correction pour IE/Edge Legacy (pour éviter les bordures blanches) */
.fm-player-volume input[type=range]::-ms-track {
    width: 100%;
    cursor: pointer;
    background: transparent; 
    border-color: transparent;
    color: transparent;
}
  .fm-player-volume input[type=range]:focus {
    outline: none;
  }
  .fm-player-volume input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: var(--fm-bg-3);
    border-radius: 2px;
  }
  .fm-player-volume input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--fm-primary);
    margin-top: -4px;
    box-shadow: var(--fm-shadow-sm);
    transition: transform 0.1s;
  }
  .fm-player-volume input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
  }
  /* Metadata Lab & RDS Styles */
  .td-field-tools {
    position: absolute;
    right: 8px;
    top: 28px;
    display: flex;
    gap: 4px;
  }
  .btn-field-tool {
    background: var(--fm-bg-1);
    border: 1px solid var(--fm-border);
    color: var(--fm-text-3);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
  }
  .btn-field-tool:hover {
    color: var(--fm-primary);
    border-color: var(--fm-primary);
    background: var(--fm-primary-soft);
  }
  .rds-counter {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    margin-top: 4px;
    display: inline-block;
  }
  .rds-ok {
    background: var(--fm-emerald-soft);
    color: var(--fm-emerald);
  }
  .rds-warn {
    background: var(--fm-amber-soft);
    color: var(--fm-amber);
  }
  .rds-danger {
    background: var(--fm-rose-soft);
    color: var(--fm-rose);
    animation: fm-pulse-danger 1s infinite;
  }
  .sanitizer-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    text-align: left;
    background: var(--fm-bg-2);
  }
  .sanitizer-option:hover {
    border-color: var(--fm-primary);
    background: var(--fm-primary-soft);
  }
  .sanitizer-option i {
    font-size: 1.2rem;
    color: var(--fm-primary);
  }
  .sanitizer-desc {
    font-size: 0.75rem;
    color: var(--fm-text-3);
    display: block;
  }
  /* Le Halo autour de la cover */
  .fm-cover-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    z-index: 1;
  }
  .fm-cover-img {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mood-halo {
    position: absolute;
    top: 50%;
    left: 10px;
    /* Débordement vers la droite */
    transform: translateY(-50%);
    width: 50px;
    height: 40px;
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.6;
    z-index: 1;
    transition: all 0.3s ease;
  }
  /* Classes dynamiques de Mood */
  .mood-Energique {
    background: var(--mood-energique);
  }
  .mood-Festif {
    background: var(--mood-festif);
  }
  .mood-Euphorique {
    background: var(--mood-euphorique);
  }
  .mood-Joyeux {
    background: var(--mood-joyeux);
  }
  .mood-Romantique {
    background: var(--mood-romantique);
  }
  .mood-Sensuel {
    background: var(--mood-sensuel);
  }
  .mood-Chill {
    background: var(--mood-chill);
  }
  .mood-Relaxant {
    background: var(--mood-relaxant);
  }
  .mood-Melancolique {
    background: var(--mood-melancolique);
  }
  .mood-Nostalgique {
    background: var(--mood-nostalgique);
  }
  .mood-Triste {
    background: var(--mood-triste);
  }
  .mood-Dramatique {
    background: var(--mood-dramatique);
  }
  .mood-Agressif {
    background: var(--mood-agressif);
  }
  .mood-Motivant {
    background: var(--mood-motivant);
  }
  .mood-Mysterieux {
    background: var(--mood-mysterieux);
  }
  .mood-Groovy {
    background: var(--mood-groovy);
  }
  .mood-Funky {
    background: var(--mood-funky);
  }
  .mood-Epique {
    background: var(--mood-epique);
  }
  .mood-Doux {
    background: var(--mood-doux);
  }
  /* --- STYLE DE LA FENETRE FLOTTANTE (TOOLTIP) --- */
  .track-tooltip {
    position: fixed;
    z-index: 1000;
    width: 280px;
    background: rgba(15, 18, 35, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    color: white;
  }
  .track-tooltip.visible {
    opacity: 1;
    transform: scale(1);
  }
  .tt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 0.75rem;
  }
  .tt-item {
    display: flex;
    flex-direction: column;
  }
  .tt-label {
    color: var(--fm-text-3);
    text-transform: uppercase;
    font-size: 0.6rem;
    font-weight: 700;
    margin-bottom: 2px;
  }
  .tt-val {
    color: var(--fm-text-0);
    font-weight: 600;
  }
  .tt-status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
  }
  /* --- CINEMATIC TRACK PREVIEW --- */
  .tp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .tp-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }
  .tp-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.9);
    width: 380px;
    background: rgba(20, 24, 45, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
  }
  .tp-card.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }
  .tp-header {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .tp-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    filter: blur(40px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 0;
  }
  .tp-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .tp-cover-mini {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  }
  .tp-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tp-header p {
    margin: 0;
    font-size: 0.85rem;
    color: #9ca1bd;
  }
  .tp-close-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
  }
  .tp-close-btn:hover {
    background: #f43f5e;
  }
  .tp-body {
    padding: 20px;
  }
  .tp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .tp-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .tt-label {
    font-size: 0.65rem;
    color: #5c6184;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .tt-label i {
    font-size: 0.9rem;
    opacity: 0.7;
  }
  .tt-val {
    font-size: 0.88rem;
    color: #eef0f8;
    font-weight: 500;
  }
  .tt-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
  }
  .tp-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  /* Badge de statut dynamiques */
  .st-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
  }
  .st-inactive {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
  }
  .st-locked {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
  }
  /* Badges de Quotas dans la liste */
  .badge-quota {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 4px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }
  .badge-fr {
    background: rgba(80, 70, 229, 0.15);
    color: var(--fm-primary);
    border: 1px solid rgba(80, 70, 229, 0.3);
  }
  .badge-talent {
    background: rgba(16, 185, 129, 0.15);
    color: var(--fm-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
  }
  /* On ajuste le conteneur du titre pour qu'il accepte les badges en ligne */
  .fm-track-title-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }
  /* ══ SKELETON LOADING (Shimmer Effect) ══ */
  .skeleton {
    background: var(--fm-bg-3);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
  }
  @keyframes shimmer {
    to {
      background-position: -200% 0;
    }
  }
  .sk-text {
    height: 12px;
    margin-bottom: 8px;
    width: 80%;
  }
  .sk-text.sm {
    width: 50%;
  }
  .sk-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }
  /* ══ STAGGERED ENTRANCE ══ */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .fm-stagger-item {
    opacity: 0;
    animation: fadeInUp 0.5s var(--fm-ease) forwards;
  }
  /* ══ RIPPLE EFFECT ══ */
  .ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
  }
  @keyframes ripple-animation {
    to {
      transform: scale(4);
      opacity: 0;
    }
  }
  .btn-fm {
    position: relative;
    overflow: hidden;
  }
  /* ══ PROGRESS RING (Storage) ══ */
  .storage-ring-container {
    position: relative;
    width: 50px;
    height: 50px;
  }
  .storage-ring-svg {
    transform: rotate(-90deg);
  }
  .storage-ring-bg {
    fill: none;
    stroke: var(--fm-bg-3);
    stroke-width: 4;
  }
  .storage-ring-fill {
    fill: none;
    stroke: var(--fm-primary);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
  }
  /* ══ PAGE TRANSITION ══ */
  .fm-content-fade {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .fm-content-fade.fade-out {
    opacity: 0;
    transform: scale(0.98);
  }
  /* ══ AFFICHAGE RECHERCHE VIDE ══ */
  .fm-search-empty-state {
    padding: 5rem 2rem;
    text-align: center;
    animation: fm-fadeIn 0.4s ease-out;
  }
.fm-search-empty-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    opacity: 0.8;
    /* 1. Dégradé de base */
    background: linear-gradient(135deg, var(--fm-primary-glow), transparent);
    /* 2. Propriété standard (Indispensable pour la pérennité) */
    background-clip: text;
    /* 3. Compatibilité Moteurs Webkit (Chrome, Safari, Edge) */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* 4. Optimisation du rendu du filtre */
    /* On utilise drop-shadow plutôt que box-shadow pour suivre la forme de l'icône */
    filter: drop-shadow(0 10px 15px var(--fm-primary-glow));
    /* 5. Astuce Bunker : Empêche l'icône de clignoter ou de se couper */
    line-height: 1;
    vertical-align: middle;
    pointer-events: none; /* L'icône décorative ne doit pas bloquer les clics */
}
  .fm-search-empty-state h4 {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--fm-text-0);
    margin-bottom: 0.75rem;
  }
  .fm-search-empty-state p {
    color: var(--fm-text-3);
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
  }
  .fm-search-empty-state strong {
    color: var(--fm-primary);
    background: var(--fm-primary-soft);
    padding: 2px 6px;
    border-radius: 4px;
  }
  /* ══ STYLE POUR LES LIGNES DÉSACTIVÉES ══ */
  .fm-row-disabled {
    opacity: 0.55;
    /* Effet grisé */
    transition: opacity 0.3s ease;
    background: rgba(244, 63, 94, 0.02) !important;
    /* Teinte très légère de rouge */
  }
  .fm-row-disabled:hover {
    opacity: 0.8;
    /* On remonte un peu l'opacité au survol pour la lisibilité */
  }
  /* La barre rouge latérale sur la première cellule */
  .fm-row-disabled td:first-child {
    border-left: 4px solid var(--fm-rose);
    padding-left: calc(1.15rem - 4px);
    /* On ajuste le padding pour compenser l'épaisseur */
  }
  /* On barre le titre pour renforcer le message */
  .fm-row-disabled .fm-track-title {
    text-decoration: line-through;
    color: var(--fm-text-3);
  }
  /* Style de l'icône de statut "Interdit" */
  .status-disabled-icon {
    color: var(--fm-rose);
    font-size: 1rem;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
  }
  /* ══ FOLDER STATS STRIP ══ */
  .fm-folder-stats-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
  }
  .fm-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--fm-bg-2);
    border: 1px solid var(--fm-border);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--fm-text-2);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }
  .fm-stat-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 10px 0 0 10px;
  }
  .fm-stat-badge i {
    font-size: 0.85rem;
  }
  .fm-stat-badge.b-files::before {
    background: var(--fm-primary);
  }
  .fm-stat-badge.b-files i { color: var(--fm-primary); }
  .fm-stat-badge.b-duration::before {
    background: var(--fm-cyan);
  }
  .fm-stat-badge.b-duration i { color: var(--fm-cyan); }
  .fm-stat-badge.b-size::before {
    background: var(--fm-emerald);
  }
  .fm-stat-badge.b-size i { color: var(--fm-emerald); }
  .fm-stat-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(217,70,239,.25);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .folder-weight-pill {
    font-size: 0.65rem;
    background: var(--fm-primary-soft);
    color: var(--fm-primary);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 800;
  }
  /* ══ DRAG & DROP SIDEBAR ══ */
  /* Style du dossier cible quand on survole avec un fichier */
  .fm-nav-link.drag-over,
  .fm-sub-link.drag-over {
    background: var(--fm-primary-soft) !important;
    color: var(--fm-primary) !important;
    border-right: 3px solid var(--fm-primary);
    transform: translateX(5px);
    transition: all 0.2s ease;
  }
  /* Style de la ligne du tableau pendant qu'on la déplace */
  .track-row-hover.dragging {
    opacity: 0.4;
    background: var(--fm-bg-2) !important;
    cursor: grabbing !important;
  }
  /* ══ DRAG & DROP PREMIUM ══ */
  .drag-handle {
    cursor: grab;
    color: var(--fm-text-3);
    padding: 0 5px;
    opacity: 0.5;
    transition: opacity 0.2s;
  }
  .track-row-hover:hover .drag-handle {
    opacity: 1;
  }
  .drag-handle:active {
    cursor: grabbing;
  }
  /* Dossier cible dans la sidebar */
  .fm-nav-link.drag-over,
  .fm-sub-link.drag-over {
    background: var(--fm-primary) !important;
    color: white !important;
    transform: scale(1.05) translateX(10px);
    box-shadow: var(--fm-shadow-md);
    z-index: 10;
  }
  .fm-nav-link.drag-over i,
  .fm-nav-link.drag-over .fm-nav-count {
    color: white !important;
  }
  /* Drop refusé : View non-target */
  .fm-nav-link.drag-over-denied,
  .fm-sub-link.drag-over-denied {
    background: var(--fm-rose-soft) !important;
    color: var(--fm-rose) !important;
    border-right: 3px dashed var(--fm-rose);
    cursor: not-allowed !important;
  }
  .fm-nav-link.drag-over-denied i,
  .fm-sub-link.drag-over-denied i {
    opacity: 0.6;
  }
  /* État de la ligne pendant le déplacement */
  .track-row-hover.dragging {
    opacity: 0.2;
    border: 2px dashed var(--fm-primary);
  }
  /* ══════════════════════════════════════════════════════════════
   CONTEXT MENU (Clic droit) & KEYBOARD FOCUS
   ══════════════════════════════════════════════════════════════ */
  .fm-context-menu {
    position: fixed;
    z-index: 1050;
    background: var(--fm-bg-1);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-sm);
    box-shadow: var(--fm-shadow-md);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px) scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
  }
  .fm-context-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .fm-context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    color: var(--fm-text-1);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .fm-context-menu-item i {
    font-size: 1.1rem;
    color: var(--fm-text-2);
  }
  .fm-context-menu-item:hover {
    background: var(--fm-primary-soft);
    color: var(--fm-primary);
  }
  .fm-context-menu-item:hover i {
    color: var(--fm-primary);
  }
  .fm-context-menu-item.danger:hover {
    background: var(--fm-rose-soft);
    color: var(--fm-rose);
  }
  .fm-context-menu-item.danger:hover i {
    color: var(--fm-rose);
  }
  .fm-context-divider {
    height: 1px;
    background: var(--fm-border-subtle);
    margin: 0.4rem 0;
  }
  /* Ligne "Active" (clic droit ou focus clavier) */
  .track-row-hover.row-active {
    background: var(--fm-primary-soft) !important;
    outline: 1px solid var(--fm-primary);
  }
  /* Le conteneur du dossier */
  .fm-folder-icon-layer {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
  }
  /* L'icône de dossier en arrière-plan */
  .folder-bg {
    font-size: 3.2rem;
    /* Plus grand */
    position: absolute;
    z-index: 1;
    transition: transform 0.2s ease;
  }
  /* L'icône spécifique par-dessus (ex: musique) */
  .folder-glyph {
    position: absolute;
    z-index: 2;
    font-size: 1.2rem;
    /* Plus petit */
    color: white !important;
    /* Toujours blanc pour trancher sur la couleur du dossier */
    margin-top: 5px;
    /* Ajustement visuel pour le centre du dossier */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }
  .fm-folder-card:hover .folder-bg {
    transform: scale(1.1);
  }
  /* Animation de scan de recherche */
  .search-scanning-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fm-primary), transparent);
    position: absolute;
    top: 0;
    left: 0;
    animation: scanning 1.5s infinite linear;
  }
  @keyframes scanning {
    0% {
      transform: translateY(0);
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      transform: translateY(200px);
      opacity: 0;
    }
  }
  .search-placeholder-card {
    padding: 2rem;
    border-radius: var(--fm-radius);
    background: var(--fm-bg-1);
    border: 1px solid var(--fm-border-subtle);
    position: relative;
    overflow: hidden;
  }
/* ══ FILTRE A-Z ACTIF (ELEGANT TAG) ══ */
.fm-active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fm-primary-soft);
    border: 1px solid var(--fm-primary-glow);
    color: var(--fm-primary);
    padding: 4px 14px 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-family: var(--fm-font);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    vertical-align: middle;
    box-shadow: 0 2px 10px rgba(80, 70, 229, 0.1);
}
.fm-active-filter-tag strong {
    font-weight: 800;
    font-size: 0.85rem;
}
.fm-active-filter-tag i.ri-filter-3-fill {
    font-size: 1rem;
}
.fm-active-filter-tag .reset-btn {
    background: var(--fm-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    transition: all 0.3s ease;
}
/* Animation au survol */
.fm-active-filter-tag:hover {
    background: var(--fm-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(80, 70, 229, 0.3);
    transform: translateY(-1px);
}
.fm-active-filter-tag:hover .reset-btn {
    background: white;
    color: var(--fm-rose);
    transform: rotate(90deg); /* Rotation dynamique de la croix */
}
/* ══ SKELETON ANIMATION ══ */
.skeleton-loader {
    display: none; /* Caché par défaut */
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--fm-bg-0); /* Même couleur que le fond du site */
    padding: 2rem;
}
.skeleton-loader.visible {
    display: block;
}
.sk-item {
    background: var(--fm-bg-2);
    background: linear-gradient(90deg, var(--fm-bg-2) 25%, var(--fm-bg-3) 50%, var(--fm-bg-2) 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.5s infinite linear;
    border-radius: 8px;
    margin-bottom: 1rem;
}
@keyframes sk-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}
/* Simulation de structure */
.sk-header { height: 100px; width: 100%; border-radius: 20px; margin-bottom: 2rem; }
.sk-bar { height: 50px; width: 60%; border-radius: 12px; margin-bottom: 1.5rem; }
.sk-row { height: 60px; width: 100%; }
/* Style du bouton Hook */
.fm-btn-micro.act-hook:hover:not(:disabled) {
    background: var(--fm-amber);
    border-color: var(--fm-amber);
    color: white;
}
.fm-btn-micro.act-hook.is-playing {
    background: var(--fm-amber);
    border-color: var(--fm-amber);
    color: white;
    animation: pulse-hook 1.5s infinite;
}
.fm-btn-micro.act-hook:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(1);
}
@keyframes pulse-hook {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
#btnVoicePrompt.is-listening {
    color: var(--fm-rose) !important;
    animation: pulse-mic 1.5s infinite;
}
@keyframes pulse-mic {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
#magicPromptInput::placeholder { color: rgba(255,255,255,0.4); font-style: italic; }
.folder-pick-item:hover {
    background-color: var(--fm-primary-soft);
    transform: translateX(5px);
}
.folder-pick-item:active {
    transform: scale(0.98);
}
#folderPickerList::-webkit-scrollbar {
    width: 6px;
}
#folderPickerList::-webkit-scrollbar-thumb {
    background: var(--fm-border);
    border-radius: 10px;
}
/* Adaptation universelle des items de sélection de dossiers */
.folder-pick-item, .bulk-folder-item {
    background: transparent;
    border: 1px solid transparent;
    color: var(--fm-text-0) !important;
}
.folder-pick-item span, .bulk-folder-item span {
    color: var(--fm-text-0) !important;
}
/* État survolé - utilise ton token primary-soft qui change selon le thème */
.folder-pick-item:hover, .bulk-folder-item:hover {
    background-color: var(--fm-primary-soft) !important;
}
/* État sélectionné (pour le Bulk) */
.bulk-folder-item.bg-primary-soft {
    background-color: var(--fm-primary-soft) !important;
    border-color: var(--fm-primary) !important;
}
/* Correction de la barre de recherche interne aux modales */
#folderQuickSearch, #bulkFolderSearch {
    background-color: var(--fm-bg-1) !important;
    color: var(--fm-text-0) !important;
    border: 1px solid var(--fm-border) !important;
}
.input-group-text {
    background-color: var(--fm-bg-2) !important;
    border: 1px solid var(--fm-border) !important;
    color: var(--fm-text-3) !important;
}
.btn-xs { padding: 2px 4px; font-size: 10px; line-height: 1; border-radius: 4px; }
.filter-section { border-bottom: 1px solid var(--fm-border-subtle); padding-bottom: 15px; }
.camelot-grid .btn-outline-primary, .camelot-grid .btn-outline-info { 
    border-color: var(--fm-border); color: var(--fm-text-2); 
}
.camelot-grid .btn-check:checked + .btn {
    border-color: transparent !important;
    background: var(--fm-primary) !important;
    color: white !important;
}
.offcanvas-body::-webkit-scrollbar { width: 4px; }
.offcanvas-body::-webkit-scrollbar-thumb { background: var(--fm-border); border-radius: 10px; }
/* Conteneur de la cover en liste */
.fm-list-cover-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Le Halo de chaleur */
.list-heat-halo {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--heat-color);
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.3; /* Très discret par défaut */
    z-index: 1;
    transition: all 0.3s ease;
}
/* Effet d'éclat au survol de la LIGNE du tableau */
.track-row-hover:hover .list-heat-halo {
    opacity: 1;
    filter: blur(10px);
    transform: scale(1.4);
}
/* Animation optionnelle si c'est un énorme Hit (Rouge) */
.track-row-hover:hover .list-heat-halo[style*="#ff0000"] {
    animation: list-heat-pulse 1.5s infinite alternate;
}
@keyframes list-heat-pulse {
    from { opacity: 0.7; transform: scale(1.3); }
    to { opacity: 1; transform: scale(1.6); }
}
/* Sécurité sur l'image pour qu'elle reste nette au dessus */
.fm-cover-img {
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.list-heat-halo {
    position: absolute;
    width: 35px;
    height: 35px;
    background: var(--heat-color) !important; /* Ajoute !important pour tester */
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.8; /* Augmente l'opacité pour être sûr de le voir */
    z-index: 1;
}
.health-layout {
    background: #080a12;
        color: white;
    font-family: 'Outfit', sans-serif;
    overflow-y: auto;
    padding: 2rem;
}
.health-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}
/* Le Réacteur Central */
.reactor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
}
.main-pulse-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border: 4px solid var(--pulse-color);
    box-shadow: 0 0 50px var(--pulse-glow);
    transition: all 0.5s ease;
}
.main-pulse-circle::after {
    content: '';
    position: absolute;
    inset: -15px;
    border: 2px solid var(--pulse-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: reactor-ring 3s linear infinite;
}
@keyframes reactor-ring { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.pulse-value { font-size: 4rem; font-weight: 800; font-family: 'JetBrains Mono'; line-height: 1; }
.pulse-label { font-size: 0.7rem; letter-spacing: 3px; font-weight: 700; color: var(--pulse-color); }
/* Grid de Diagnostic */
.diag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.diag-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}
.diag-card h6 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--fm-text-3);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.stat-label { font-size: 0.9rem; color: #c4c8de; }
.stat-value { font-family: 'JetBrains Mono'; font-weight: 600; }
.stat-value.bad { color: var(--fm-rose); }
.stat-value.good { color: var(--fm-emerald); }
/* Progress Bars de Diagnostic */
.diag-bar-bg { height: 4px; background: rgba(255,255,255,0.05); border-radius: 10px; margin-top: 5px; overflow: hidden; }
.diag-bar-fill { height: 100%; border-radius: 10px; transition: width 1s ease; }
/* Themes de Pulse */
.p-excellent { --pulse-color: #00f2ff; --pulse-glow: rgba(0,242,255,0.3); }
.p-warning { --pulse-color: #f59e0b; --pulse-glow: rgba(245,158,11,0.3); }
.p-danger { --pulse-color: #f43f5e; --pulse-glow: rgba(244,63,94,0.3); }
.back-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s;
}
.back-btn:hover { background: white; color: black; }


/* Style de la modale Pulse */
.health-modal-dark {
    background: #0f111a !important; /* Couleur Dark Blue / Black */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
}

.pulse-icon-container {
    width: 45px;
    height: 45px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f43f5e;
    font-size: 1.5rem;
}

.badge-live {
    font-size: 0.6rem;
    padding: 2px 6px;
    border: 1px solid #f43f5e;
    color: #f43f5e;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    animation: blink 1.5s infinite;
}

@keyframes blink { 50% { opacity: 0.3; } }

/* Diagramme Circulaire Score */
.circular-chart { display: block; margin: 10px auto; max-width: 140px; }
.circle-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 2.8; }
.circle { fill: none; stroke-width: 2.8; stroke-linecap: round; transition: stroke-dasharray 1s ease; }

.circular-chart.excellent .circle { stroke: #10b981; }
.circular-chart.warning .circle { stroke: #fbbf24; }
.circular-chart.critical .circle { stroke: #f43f5e; }

.score-circle-container { position: relative; }
.score-text {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center;
}
.score-text .number { font-size: 2rem; font-weight: 800; color: #fff; }
.score-text .label { font-size: 0.6rem; color: #6366f1; letter-spacing: 2px; }

/* Items Diagnostic */
.diag-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.25rem;
    border-radius: 15px;
}

.data-row {
    display: flex; justify-content: space-between;
    padding-bottom: 10px; margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.cue-stat .val { display: block; font-size: 1.5rem; font-weight: 800; }
.cue-stat .lab { font-size: 0.7rem; color: #64748b; }
.cue-divider { width: 1px; height: 35px; background: rgba(255,255,255,0.1); }

.btn-magic {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white; border: none; padding: 8px 15px;
    border-radius: 8px; font-weight: 600; font-size: 0.8rem;
}



/* Style des Onglets Pulse */
.health-tabs {
    background: rgba(255,255,255,0.05);
    padding: 5px;
    border-radius: 12px;
    gap: 5px;
}

.health-tabs .nav-link {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.health-tabs .nav-link.active {
    background: var(--fm-rose) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

/* Table des Logs */
.log-table-container {
    max-height: 450px;
    overflow-y: auto;
}

.log-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.badge-action {
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Couleurs des actions */
.upload { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.delete { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.playlist { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.rotation { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

/* Indicateurs Trends */
.bpm-dot { width: 12px; height: 12px; border-radius: 50%; margin: 0 auto 5px; }
.bpm-dot.slow { background: #6366f1; box-shadow: 0 0 10px #6366f1; }
.bpm-dot.mid { background: #10b981; box-shadow: 0 0 10px #10b981; }
.bpm-dot.fast { background: #f43f5e; box-shadow: 0 0 10px #f43f5e; }

/* Container Général */
.health-dashboard-content {
    background: #0a0c14;
    min-height: 500px;
}

/* Reactor Core (Le cercle de score) */
.vital-hero-card {
    background: radial-gradient(circle at center, rgba(80, 70, 229, 0.08) 0%, transparent 70%);
    padding: 20px;
}

.reactor-core {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.reactor-info {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.v-number { font-size: 3rem; font-weight: 900; line-height: 1; display: block; letter-spacing: -2px; }
.v-label { font-size: 0.6rem; font-weight: 700; color: #6366f1; letter-spacing: 2px; }

/* Cards Pro */
.diag-card-pro {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.diag-card-pro:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(99, 102, 241, 0.2); }

.icon-box {
    width: 35px; height: 35px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #818cf8; font-size: 1.2rem;
}

/* Timeline des Logs */
.log-modern-container {
    max-height: 550px; overflow-y: auto; scrollbar-width: none;
}

.log-row {
    display: flex; gap: 20px; margin-bottom: 20px; position: relative;
}

.log-time { flex: 0 0 50px; text-align: right; padding-top: 5px; }

.log-avatar-container { position: relative; z-index: 2; }

.log-avatar-main {
    width: 40px; height: 40px; border-radius: 12px;
    background: #1e1b3a; border: 2px solid #2d2b55;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #818cf8;
}

.log-content-card {
    flex-grow: 1; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; padding: 12px 18px;
}

.log-content-card .user-name { font-weight: 700; color: #eef0f8; font-size: 0.9rem; }
.log-content-card .target-name { color: #8b90b0; font-size: 0.8rem; font-style: italic; margin-top: 4px; }

/* Badge Pro Actions */
.badge-action-pro {
    font-size: 0.6rem; font-weight: 800; padding: 2px 10px; border-radius: 6px; text-transform: uppercase;
}
.upload { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.delete { background: rgba(244, 63, 94, 0.1); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.2); }
.playlist { background: rgba(6, 182, 212, 0.1); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.2); }

/* Radar & Viz */
.radar-circle {
    width: 120px; height: 120px; border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%; margin: 0 auto; position: relative;
    display: flex; align-items: center; justify-content: center;
}

.radar-line {
    position: absolute; width: 50%; height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1);
    top: 50%; left: 50%; transform-origin: left center;
    animation: rotate-radar 4s linear infinite;
}

@keyframes rotate-radar { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.slow { background: #06b6d4; }
.dot.mid { background: #10b981; }
.dot.fast { background: #f43f5e; }

.shadow-glow { box-shadow: 0 0 15px rgba(80, 70, 229, 0.4); }

.btn-pro-fix {
    background: #6366f1; color: white; border: none;
    padding: 10px 20px; border-radius: 12px; font-weight: 700;
    font-size: 0.75rem; letter-spacing: 0.5px;
    transition: all 0.3s;
}
.btn-pro-fix:hover { background: #4f46e5; transform: scale(1.05); box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4); }

/* ══ CORRECTIF EMPTY STATE DARK MODE ══ */
.fm-empty-state {
    background: var(--fm-bg-1) !important;
    border-color: var(--fm-border) !important;
}
.fm-empty-state .fm-empty-icon {
    background: var(--fm-bg-3) !important;
    color: var(--fm-text-3) !important;
}
.fm-empty-state h4 { color: var(--fm-text-0) !important; }
.fm-empty-state p  { color: var(--fm-text-3) !important; }

/* ══ CORRECTIF BOUTON "VOIR TOUT" DU PICKER A-Z ══ */
.az-voir-tout {
    display: block;
    width: 100%;
    padding: 7px 12px;
    background: var(--fm-bg-2);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-sm);
    color: var(--fm-text-1);
    font-family: var(--fm-font);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-align: center;
    transition: all var(--fm-dur) var(--fm-ease);
}
.az-voir-tout:hover {
    background: var(--fm-primary-soft);
    color: var(--fm-primary);
    border-color: var(--fm-primary);
}

/* ══ BOUTONS TOOLBAR REDESIGN ══ */
.btn-fm-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--fm-font);
    border-radius: var(--fm-radius-sm);
    cursor: pointer;
    transition: all var(--fm-dur) var(--fm-ease);
    border: 1.5px solid var(--fm-border);
    background: var(--fm-bg-1);
    color: var(--fm-text-1);
    position: relative;
    overflow: hidden;
}
.btn-fm-back:hover {
    background: var(--fm-bg-3);
    border-color: var(--fm-text-3);
    color: var(--fm-text-0);
    transform: translateX(-2px);
}
.btn-fm-new-folder {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--fm-font);
    border-radius: var(--fm-radius-sm);
    cursor: pointer;
    transition: all var(--fm-dur) var(--fm-ease);
    border: none;
    background: var(--fm-primary);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--fm-primary-glow);
}
.btn-fm-new-folder:hover {
    background: var(--fm-primary-h);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px var(--fm-primary-glow);
}
.btn-fm-delete-folder {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--fm-font);
    border-radius: var(--fm-radius-sm);
    cursor: pointer;
    transition: all var(--fm-dur) var(--fm-ease);
    border: 1.5px solid var(--fm-rose);
    background: transparent;
    color: var(--fm-rose);
    position: relative;
    overflow: hidden;
}
.btn-fm-delete-folder:hover {
    background: var(--fm-rose);
    color: white;
    box-shadow: 0 4px 14px rgba(244,63,94,0.3);
}

/* ══ TOOLTIP PREMIUM (Custom, adapté au thème) ══ */
.fm-tooltip-wrap { position: relative; display: inline-flex; }
.fm-tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--fm-bg-raised);
    color: var(--fm-text-0);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-sm);
    padding: 7px 13px;
    font-size: 0.75rem;
    font-family: var(--fm-font);
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: var(--fm-shadow-md);
    z-index: 500;
}
.fm-tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--fm-border);
}
.fm-tooltip-bubble::before {
    content: '';
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--fm-bg-raised);
    z-index: 1;
}
.fm-tooltip-wrap:hover .fm-tooltip-bubble {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ══ BOUTONS D'ACTIONS — LISTE ET RÉSULTATS DE RECHERCHE ══ */
/* Activer / Désactiver */
.fm-btn-micro.act-enable { color: var(--fm-emerald); border-color: rgba(16,185,129,0.25); }
.fm-btn-micro.act-enable:hover {
    background: var(--fm-emerald);
    border-color: var(--fm-emerald);
    color: white;
}
.fm-btn-micro.act-disable { color: var(--fm-amber); border-color: rgba(245,158,11,0.25); }
.fm-btn-micro.act-disable:hover {
    background: var(--fm-amber);
    border-color: var(--fm-amber);
    color: white;
}
/* Hook preview */
.fm-btn-micro.act-hook-available {
    color: var(--fm-cyan);
    border-color: rgba(6,182,212,0.3);
}
.fm-btn-micro.act-hook-available:hover {
    background: var(--fm-cyan);
    border-color: var(--fm-cyan);
    color: white;
}
.fm-btn-micro.act-hook-available.is-playing {
    background: var(--fm-cyan);
    border-color: var(--fm-cyan);
    color: white;
    animation: pulse-hook-cyan 1.5s infinite;
}
.fm-btn-micro.act-hook-na {
    color: var(--fm-text-3);
    border-color: var(--fm-border-subtle);
    opacity: 0.4;
    cursor: not-allowed;
}
@keyframes pulse-hook-cyan {
    0%   { box-shadow: 0 0 0 0 rgba(6,182,212,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(6,182,212,0); }
    100% { box-shadow: 0 0 0 0 rgba(6,182,212,0); }
}

/* ══ MASIRA POOL — BADGE SIDEBAR ══ */
.masira-sidebar-tip {
    margin: 0 10px 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(80,70,229,0.08), rgba(124,115,250,0.05));
    border: 1px solid rgba(80,70,229,0.2);
    border-radius: var(--fm-radius-sm);
    font-size: 0.7rem;
    color: var(--fm-text-2);
    line-height: 1.5;
}
.masira-sidebar-tip strong { color: var(--fm-primary); }

/* ══ DRAG GHOST NOTIFICATION ══ */
.fm-drag-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--fm-bg-1);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fm-text-0);
    box-shadow: var(--fm-shadow-lg);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fm-drag-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.fm-drag-toast.toast-trash { border-color: var(--fm-rose); }
.fm-drag-toast.toast-trash i { color: var(--fm-rose); }
.fm-drag-toast.toast-pool { border-color: var(--fm-primary); }
.fm-drag-toast.toast-pool i { color: var(--fm-primary); }
.fm-drag-toast.toast-move { border-color: var(--fm-emerald); }
.fm-drag-toast.toast-move i { color: var(--fm-emerald); }

/* ══ MAP 3D — CONTEXT MENU & PLAYLIST LINE ══ */
.map-ctx-menu {
    position: fixed;
    z-index: 3000;
    background: rgba(14,17,30,0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 6px 0;
    min-width: 200px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.93);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.map-ctx-menu.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.map-ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}
.map-ctx-item:hover { background: rgba(255,255,255,0.06); color: white; }
.map-ctx-item i { font-size: 1.1rem; opacity: 0.7; }
.map-ctx-item.danger:hover { background: rgba(244,63,94,0.15); color: #f43f5e; }
.map-ctx-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 4px 0; }

/* Playlist line drawer */
.map-playlist-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14,17,30,0.9);
    border-top: 1px solid rgba(80,70,229,0.4);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 200;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.map-playlist-bar.visible { transform: translateY(0); }
.map-pl-tracks {
    display: flex;
    gap: 6px;
    flex: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.map-pl-chip {
    background: rgba(80,70,229,0.2);
    border: 1px solid rgba(80,70,229,0.4);
    border-radius: 100px;
    padding: 4px 10px;
    font-size: 0.7rem;
    color: #a5a0ff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.map-pl-chip:hover { background: rgba(244,63,94,0.2); border-color: rgba(244,63,94,0.4); color: #f87191; }






/* =========================================================================================
   =========================================================================================
   MODULE      : FILE LIST PARTIAL
    DESCRIPTION : Correctifs et améliorations visuelles pour la liste de fichiers (thème dark/light)
 /* ══════════════════════════════════════════════════════
   CORRECTIF EMPTY STATE — THÈME DARK/LIGHT
   ══════════════════════════════════════════════════════ */
  .fm-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--fm-bg-1) !important;
    border: 1px solid var(--fm-border) !important;
    border-radius: var(--fm-radius-lg);
  }
  .fm-empty-state .fm-empty-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--fm-bg-3) !important;
    color: var(--fm-text-3) !important;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 1.25rem;
  }
  .fm-empty-state h4 { font-size: 1rem; font-weight: 600; color: var(--fm-text-0) !important; margin-bottom: 0.35rem; }
  .fm-empty-state p  { font-size: 0.85rem; color: var(--fm-text-3) !important; margin: 0; }

  /* ══ BOUTON "VOIR TOUT" DU PICKER A-Z — THÈME ADAPTATIF ══ */
  .az-voir-tout {
    display: block; width: 100%;
    padding: 7px 12px;
    background: var(--fm-bg-2);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-sm);
    color: var(--fm-text-1);
    font-family: var(--fm-font); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.06em; cursor: pointer; text-align: center;
    transition: all var(--fm-dur) var(--fm-ease);
  }
  .az-voir-tout:hover {
    background: var(--fm-primary-soft); color: var(--fm-primary); border-color: var(--fm-primary);
  }

  /* ══ BOUTONS TOOLBAR REDESIGN ══ */
  .btn-fm-back {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.52rem 1.1rem; font-size: 0.82rem; font-weight: 600;
    font-family: var(--fm-font); border-radius: var(--fm-radius-sm); cursor: pointer;
    transition: all var(--fm-dur) var(--fm-ease);
    border: 1.5px solid var(--fm-border);
    background: var(--fm-bg-1); color: var(--fm-text-1);
    position: relative; overflow: hidden;
    text-decoration: none;
  }
  .btn-fm-back:hover {
    background: var(--fm-bg-3); border-color: var(--fm-text-3);
    color: var(--fm-text-0); transform: translateX(-2px);
  }
  .btn-fm-new-folder {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.52rem 1.1rem; font-size: 0.82rem; font-weight: 700;
    font-family: var(--fm-font); border-radius: var(--fm-radius-sm); cursor: pointer;
    transition: all var(--fm-dur) var(--fm-ease);
    border: none; background: var(--fm-primary); color: white;
    position: relative; overflow: hidden;
    box-shadow: 0 2px 8px var(--fm-primary-glow);
  }
  .btn-fm-new-folder:hover {
    background: var(--fm-primary-h); transform: translateY(-2px);
    box-shadow: 0 5px 16px var(--fm-primary-glow);
  }
  .btn-fm-delete-folder {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.52rem 1.1rem; font-size: 0.82rem; font-weight: 600;
    font-family: var(--fm-font); border-radius: var(--fm-radius-sm); cursor: pointer;
    transition: all var(--fm-dur) var(--fm-ease);
    border: 1.5px solid var(--fm-rose); background: transparent; color: var(--fm-rose);
    position: relative; overflow: hidden;
  }
  .btn-fm-delete-folder:hover {
    background: var(--fm-rose); color: white;
    box-shadow: 0 4px 14px rgba(244,63,94,0.3);
  }

  /* ══ TOOLTIP PREMIUM ══ */
  .fm-tooltip-wrap { position: relative; display: inline-flex; }
  .fm-tooltip-bubble {
    position: absolute; bottom: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--fm-bg-raised); color: var(--fm-text-0);
    border: 1px solid var(--fm-border); border-radius: var(--fm-radius-sm);
    padding: 6px 13px; font-size: 0.74rem; font-family: var(--fm-font);
    font-weight: 500; white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: var(--fm-shadow-md); z-index: 500;
  }
  .fm-tooltip-bubble::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%); border: 5px solid transparent;
    border-top-color: var(--fm-border);
  }
  .fm-tooltip-bubble::before {
    content: ''; position: absolute; top: calc(100% - 1px); left: 50%;
    transform: translateX(-50%); border: 5px solid transparent;
    border-top-color: var(--fm-bg-raised); z-index: 1;
  }
  .fm-tooltip-wrap:hover .fm-tooltip-bubble { opacity: 1; transform: translateX(-50%) scale(1); }

  /* ══ BOUTONS D'ACTIONS ENRICHIS ══ */
  .fm-btn-micro.act-enable { color: var(--fm-emerald); border-color: rgba(16,185,129,0.3); }
  .fm-btn-micro.act-enable:hover { background: var(--fm-emerald); border-color: var(--fm-emerald); color: white; }
  .fm-btn-micro.act-disable { color: var(--fm-amber); border-color: rgba(245,158,11,0.3); }
  .fm-btn-micro.act-disable:hover { background: var(--fm-amber); border-color: var(--fm-amber); color: white; }

  .fm-btn-micro.act-hook-available { color: var(--fm-cyan); border-color: rgba(6,182,212,0.3); }
  .fm-btn-micro.act-hook-available:hover { background: var(--fm-cyan); border-color: var(--fm-cyan); color: white; }
  .fm-btn-micro.act-hook-available.is-playing {
    background: var(--fm-cyan); border-color: var(--fm-cyan); color: white;
    animation: pulse-hook-cyan 1.5s infinite;
  }
  .fm-btn-micro.act-hook-na { color: var(--fm-text-3); border-color: var(--fm-border-subtle); opacity: 0.4; cursor: not-allowed; }
  @keyframes pulse-hook-cyan {
    0%   { box-shadow: 0 0 0 0 rgba(6,182,212,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(6,182,212,0); }
    100% { box-shadow: 0 0 0 0 rgba(6,182,212,0); }
  }

  /* ══ DRAG TOAST ══ */
  .fm-drag-toast {
    position: fixed; bottom: 80px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--fm-bg-1); border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius); padding: 10px 20px;
    font-size: 0.82rem; font-weight: 600; color: var(--fm-text-0);
    box-shadow: var(--fm-shadow-lg); opacity: 0; pointer-events: none; z-index: 1000;
    transition: all 0.3s ease; display: flex; align-items: center; gap: 8px;
  }
  .fm-drag-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
  .fm-drag-toast.toast-trash { border-color: var(--fm-rose); }
  .fm-drag-toast.toast-trash i { color: var(--fm-rose); }
  .fm-drag-toast.toast-pool { border-color: var(--fm-primary); }
  .fm-drag-toast.toast-pool i { color: var(--fm-primary); }
  .fm-drag-toast.toast-move { border-color: var(--fm-emerald); }
  .fm-drag-toast.toast-move i { color: var(--fm-emerald); }

  /* ══ MASIRA POOL SIDEBAR TIP ══ */
  .masira-sidebar-tip {
    margin: 0 10px 8px; padding: 8px 12px;
    background: linear-gradient(135deg, rgba(80,70,229,0.08), rgba(124,115,250,0.04));
    border: 1px solid rgba(80,70,229,0.2); border-radius: var(--fm-radius-sm);
    font-size: 0.7rem; color: var(--fm-text-2); line-height: 1.5;
  }
  .masira-sidebar-tip strong { color: var(--fm-primary); }

  /* Sortable table headers */
  th.sortable { cursor: pointer; user-select: none; }
  th.sortable:hover { color: var(--fm-primary); }
  .sort-indicator { opacity: 0.35; font-size: 0.75rem; vertical-align: middle; }
  .sort-indicator.active { opacity: 1; color: var(--fm-primary); }


  
/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  gap: 0.5rem;
  min-height: 180px;
}

.empty-state-icon {
  font-size: 2.5rem;
  color: var(--fm-text-2, #999);
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.empty-state-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fm-text-1, #e0e0e0);
  margin: 0.5rem 0 0.35rem;
}

.empty-state-text {
  font-size: 0.82rem;
  color: var(--fm-text-3, #666);
  line-height: 1.5;
  max-width: 250px;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   TRACK IDENTITY CARD STYLES
   ═══════════════════════════════════════════════════════════════ */

.td-identity-section {
  background: var(--fm-bg-2, #2a2a40);
  border: 1px solid var(--fm-border, #3d3d5c);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.td-identity-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fm-primary, #5046e5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.td-identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.td-identity-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.td-identity-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fm-text-3, #999);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.td-identity-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fm-text-0, #fff);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.td-identity-value-icon {
  font-size: 1.25rem;
  opacity: 0.8;
}

/* Info clés enrichies */
.td-info-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  background: var(--fm-bg-3);
  border-radius: 4px;
  font-size: 0.85rem;
}

.td-info-key-icon {
  font-size: 1rem;
  opacity: 0.8;
}

/* Traçabilité */
.td-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.td-history-entry {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--fm-bg-3, #1a1a2e);
  border-radius: 6px;
}

.td-history-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--fm-border);
  flex-shrink: 0;
}

.td-history-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--fm-text-1, #e0e0e0);
  line-height: 1.4;
}

.td-history-date {
  font-size: 0.75rem;
  color: var(--fm-text-3, #999);
  white-space: nowrap;
}

/* RDS Preview amélioration */
.td-rds-preview {
  background: linear-gradient(135deg, var(--fm-primary)11, var(--fm-cyan)11);
  border: 1px solid var(--fm-primary)44;
  border-radius: 8px;
  padding: 1rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--fm-text-0);
  font-weight: 500;
  font-family: 'Courier New', monospace;
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════
   RULE CARDS & INPUTS
   ═══════════════════════════════════════════════════════════════ */

.td-rule-time-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

.td-rule-time-input {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.td-rule-time-input label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fm-text-2);
  text-transform: uppercase;
}

.td-rule-time-input input {
  padding: 0.5rem 0.75rem;
  background: var(--fm-bg-1);
  border: 1px solid var(--fm-border);
  border-radius: 4px;
  color: var(--fm-text-0);
  font-family: monospace;
}

/* Day of week checkboxes */
.td-rule-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.td-rule-day-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: var(--fm-bg-3);
  border: 1px solid var(--fm-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fm-text-2);
}

.td-rule-day-label input {
  display: none;
}

.td-rule-day-label input:checked + span {
  color: var(--fm-primary);
}

.td-rule-day-label:has(input:checked) {
  background: var(--fm-primary)22;
  border-color: var(--fm-primary);
}


/* ═══════════════════════════════════════════════════════════════
   COMPACT INFOS ROW & HEADER TRACEABILITY
   ═══════════════════════════════════════════════════════════════ */

.td-infos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--fm-border, #3d3d5c);
}

.td-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--fm-bg-3, #1a1a2e);
  border: 1px solid var(--fm-border, #3d3d5c);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--fm-text-2, #999);
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.td-info-pill i {
  font-size: 0.9rem;
  opacity: 0.7;
}

.td-info-pill:hover {
  background: var(--fm-bg-2);
  border-color: var(--fm-primary);
  color: var(--fm-text-1);
}

/* Traçabilité dans le header (droite) */
.td-traceability-header {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  font-size: 0.75rem;
}

.td-trace-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.td-trace-label {
  color: var(--fm-text-3, #666);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.td-trace-date {
  color: var(--fm-text-1, #e0e0e0);
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .td-traceability-header {
    position: static;
    transform: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--fm-border);
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR Z-INDEX — Au-dessus du footer
═══════════════════════════════════════════════════════════ */
.app-sidebar {
  z-index: 1010 !important;
}

/* ═══════════════════════════════════════════════════════════
   BOUTON SCROLL TO TOP — Positionné au-dessus du footer
═══════════════════════════════════════════════════════════ */
.btn-scroll-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  cursor: pointer;
  font-size: 1.2rem;
}

.btn-scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
}

/* Mode light */
[data-bs-theme="light"] .btn-scroll-top {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

[data-bs-theme="light"] .btn-scroll-top:hover {
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

@media (max-width: 768px) {
  .btn-scroll-top {
    bottom: 20px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   AMÉLIORATIONS DASHBOARD RADIO — Couleurs vives et espacing
═══════════════════════════════════════════════════════════ */

/* Améliorer les couleurs et espacement des pills-filter */
.pill-filter {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.pill-filter:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.pill-filter.active {
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Badges de comptage - couleurs vives */
.pill-filter .badge-count {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  min-width: 20px;
  text-align: center;
}

.pill-filter.active .badge-count {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Badges natifs Bootstrap - couleurs plus vives pour les pills */
.pill-filter .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
}

.pill-filter[data-filter="music"] .badge {
  background: #28a745;
  color: #fff;
}

.pill-filter[data-filter="jingle"] .badge {
  background: #17a2b8;
  color: #fff;
}

.pill-filter[data-filter="vt"] .badge {
  background: #ffc107;
  color: #1a1a1a;
}

/* Rapprocher les pills - réduire l'écart */
.d-flex.flex-wrap.gap-2 {
  gap: 0.6rem !important;
}

/* Améliorer l'espacement des nav-pills (Diffusion en cours / Historique) */
.modern-pills {
  background: transparent;
  padding: 0.2rem;
  border-radius: 0.8rem;
  display: inline-flex;
  width: 100%;
  gap: 0.3rem;
}

.modern-pills .nav-item {
  flex: 1;
  text-align: center;
}

.modern-pills .nav-link {
  color: #6c757d;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0.6rem;
  padding: 0.5rem 0.8rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  gap: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modern-pills .nav-link:hover {
  color: #212529;
  background: rgba(13, 110, 253, 0.08);
}

.modern-pills .nav-link.active {
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

[data-bs-theme="dark"] .modern-pills {
  background: rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .modern-pills .nav-link.active {
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
  color: #fff;
}

/* ────────────────────────────────────────────────────────── */
/* PHASE 3: COMPOSANTS INTERACTIFS - COLONNES TRIABLES & PLAYER */
/* ────────────────────────────────────────────────────────── */

/* ── Colonnes Triables ── */
.fm-table-card table thead th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.fm-table-card table thead th.sortable:hover {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--fm-primary);
}

.fm-table-card table thead th.sortable .sort-indicator {
  opacity: 0.3;
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-left: 0.4rem;
  display: inline-block;
  transform: rotate(0deg);
}

.fm-table-card table thead th.sortable .sort-indicator.active {
  opacity: 1;
  color: var(--fm-primary);
}

/* Animer l'indicateur de tri au clic */
.fm-table-card table thead th.sortable .sort-indicator.active {
  animation: sortIconFlip 0.4s ease;
}

@keyframes sortIconFlip {
  0% {
    transform: rotate(0deg) scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}

/* ── Bouton Play Toggle ── */
.fm-btn-micro.play-file {
  position: relative;
  transition: all 0.2s ease;
}

.fm-btn-micro.play-file:hover {
  transform: scale(1.15);
}

.fm-btn-micro.play-file.playing {
  color: var(--fm-primary);
  background-color: rgba(99, 102, 241, 0.15);
}

.fm-btn-micro.play-file.playing:hover {
  background-color: rgba(99, 102, 241, 0.25);
}

/* Animation lors du swap d'icône */
.fm-btn-micro.play-file i {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.fm-btn-micro.play-file.playing i {
  color: var(--fm-primary);
}

/* ── Ligne en cours de lecture ── */
tr.fm-playing {
  background-color: rgba(99, 102, 241, 0.08) !important;
  border-left: 3px solid var(--fm-primary);
}

/* ── Badges KPI ── */
.fm-kpi-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.fm-kpi-badges .fm-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 12px;
  border: 1px solid;
  background: transparent;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--fm-text-1);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fm-kpi-badges .fm-badge i {
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Badge Primary (Fichiers) */
.fm-kpi-badges .fm-badge {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
}

.fm-kpi-badges .fm-badge:hover {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   HTML5 AUDIO FALLBACK - Lecteur Audio Stylisé
   ══════════════════════════════════════════════════════════════ */

.fm-audio-fallback {
  width: 100%;
  height: 50px;
  margin: 0;
  accent-color: var(--fm-primary, #5046e5);
  color: var(--fm-text-0);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
  border: 1px solid var(--fm-border);
  border-radius: 8px;
  padding: 8px;
  box-sizing: border-box;
  font-size: 0.9rem;
}

/* Styling des contrôles audio (Chrome, Safari, Edge) */
.fm-audio-fallback::-webkit-media-controls-panel {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
  border-radius: 6px;
}

.fm-audio-fallback::-webkit-media-controls-play-button {
  background-color: var(--fm-primary);
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fm-audio-fallback::-webkit-media-controls-play-button:hover {
  background-color: var(--fm-primary-dark, #4540d1);
  transform: scale(1.1);
}

.fm-audio-fallback::-webkit-media-controls-timeline {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 4px;
  height: 6px;
}

.fm-audio-fallback::-webkit-media-controls-time-remaining-display {
  color: var(--fm-text-2);
  font-size: 0.8rem;
}

.fm-audio-fallback::-webkit-media-controls-current-time-display {
  color: var(--fm-text-1);
  font-weight: 600;
  font-size: 0.8rem;
}

.fm-audio-fallback::-webkit-media-controls-volume-slider {
  accent-color: var(--fm-primary);
}

/* Firefox */
.fm-audio-fallback {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* ── Tooltips Bootstrap Améliorés ── */
.tooltip-inner {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-left .tooltip-arrow::before,
.bs-tooltip-right .tooltip-arrow::before {
  border-top-color: rgba(15, 23, 42, 0.95);
}

/* ── Drag-Over Denied State ── */
.drag-over-denied {
  cursor: not-allowed !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* ── Player Display Text ── */
.fm-now-playing-title {
  font-size: 0.85rem;
  color: var(--fm-text-1);
  opacity: 1;
  transition: opacity 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animation label swap */
@keyframes playerLabelSwap {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fm-now-playing-title.updating {
  animation: playerLabelSwap 0.2s ease;
}













/* Container discret */
#rs-shows-list {
    padding: 0;
    margin: 0;
    background: transparent;
}

/* Item ultra-compact */
.rs-timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 4px 0;
}

/* Bloc temps minimaliste */
.rs-time-block {
    width: 55px;
    text-align: right;
    line-height: 1.1;
}

.rs-time-main {
    font-weight: 700;
    font-size: 13px;
    color: #e2e8f0; /* Blanc cassé */
    display: block;
}

.rs-time-date {
    font-size: 9px;
    font-weight: 600;
    color: #64748b; /* Gris bleu */
    text-transform: uppercase;
}

/* La ligne de temps fine */
.rs-node-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.rs-node {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #334155;
    border: 2px solid #0f172a;
    z-index: 2;
}

.on-air .rs-node {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* La Card version "Glass Dark" */
.rs-show-card {
    flex-grow: 1;
    background: #1e293b; /* Bleu nuit profond */
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.rs-show-card:hover {
    background: #334155;
    border-color: #475569;
}

/* Icône compacte */
.rs-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Textes */
.rs-show-title {
    font-size: 13px;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-show-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.rs-host {
    font-size: 11px;
    color: #94a3b8;
}

/* Badges plats et vifs */
.badge-nature {
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
}











/* Point rouge pulsant style On-Air */
.pulse-red-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Carte du titre */
.current-track-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    padding: 12px;
    border-radius: 12px;
}

/* Style du compteur */
.countdown-main {
    font-family: 'JetBrains Mono', 'Monaco', monospace; /* Police monospace pour éviter que les chiffres bougent */
    font-size: 4.5rem;
    font-weight: 800;
    color: #3b82f6;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    line-height: 1;
    margin: 10px 0;
}

/* Spinner personnalisé pour le chargement */
.loader-studio {
    width: 48px;
    height: 48px;
    border: 3px solid #1e293b;
    border-bottom-color: #3b82f6;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}







