/* ============================================================
   eVazo — Base CSS
   ============================================================ */

:root {
    --primary:       #667eea;
    --primary-dark:  #764ba2;
    --bg-main:       #0f0f1a;
    --bg-card:       rgba(30, 30, 47, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.10);
    --text-muted:    rgba(255, 255, 255, 0.50);
    --nav-bg:        rgba(10, 10, 20, 0.96);
}

/* ── Reset / Body ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
    padding-top: 62px; /* compense la navbar fixe */
    display: flex;
    flex-direction: column;
}

/* ── Navbar ──────────────────────────────────────────────── */
.evazoNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background: var(--nav-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    transition: transform 0.3s ease;
}

/* Masquer la navbar en scrollant vers le bas (mobile) */
.evazoNav.nav-hidden {
    transform: translateY(-100%);
}

.navbar-brand {
    font-family: 'Satisfy', cursive;
    font-size: 1.5rem;
    color: var(--primary) !important;
    transition: opacity 0.2s;
}
.navbar-brand:hover { opacity: 0.85; }

.nav-link {
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 0.45rem 0.75rem !important;
}
.nav-link:hover, .nav-link.active { color: #fff !important; }

.nav-search {
    background: rgba(255,255,255,0.08) !important;
    border-color: var(--border-subtle) !important;
    color: #fff !important;
    border-radius: 8px 0 0 8px !important;
}
.nav-search:focus {
    background: rgba(255,255,255,0.12) !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
    color: #fff !important;
}
.nav-search::placeholder { color: rgba(255,255,255,0.35); }

/* ── Cards / Panels ─────────────────────────────────────── */
.modern-card,
.panel,
.panel-default {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle) !important;
    border-radius: 14px !important;
    color: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.panel-body,
.modern-card-body {
    padding: 1.5rem;
}

.panel-footer {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--border-subtle);
    border-radius: 0 0 14px 14px !important;
    padding: 0.85rem 1.5rem;
    color: var(--text-muted);
}

/* ── Form controls (dark theme) ─────────────────────────── */
.form-control,
.form-select {
    background: rgba(0,0,0,0.30) !important;
    border: 1px solid var(--border-subtle) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 0.6rem 1rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.20) !important;
    outline: none;
    color: #fff !important;
}
.form-control::placeholder { color: rgba(255,255,255,0.30); }

label,
.form-label {
    color: rgba(255,255,255,0.70) !important;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gradient:hover, .btn-gradient:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.40);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: none !important;
    border-radius: 8px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.40) !important;
}

/* ── Tables ─────────────────────────────────────────────── */
.table {
    color: #fff;
    border-color: var(--border-subtle);
}
.table thead th {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom-color: var(--border-subtle) !important;
    font-weight: 500;
}
.table > :not(caption) > * > * {
    border-bottom-color: var(--border-subtle);
    background: transparent;
    color: #fff;
}
.table tbody tr {
    transition: background 0.15s;
}
.table tbody tr:hover {
    background: rgba(255,255,255,0.05) !important;
}
.song-row.active-song {
    background: rgba(102,126,234,0.15) !important;
    border-left: 3px solid var(--primary);
}

/* ── Stars (favorites) ──────────────────────────────────── */
.glyphicon-star.active,
.fas.fa-star.active,
.fa-star.active {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255,215,0,0.50);
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 6px;
}

/* ── Alerts (dark) ───────────────────────────────────────── */
.alert-danger {
    background: rgba(220,53,69,0.2);
    border-color: rgba(220,53,69,0.4);
    color: #ff8b96;
}

/* ── Utility ─────────────────────────────────────────────── */
.text-primary-custom { color: var(--primary) !important; }

/* ══════════════════════════════════════════════════════════
   MINI PLAYER PERSISTANT — #evazoBar
   Fixé en bas, toujours visible dès qu'une chanson joue.
   Desktop : barre large centrée.
   Mobile  : barre compacte pleine largeur.
══════════════════════════════════════════════════════════ */

/* Espace réservé en bas pour ne pas que le contenu passe sous la barre */
body.evazo-playing {
    padding-bottom: 86px;
}

.evazoBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(10, 10, 22, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-top: none;
    box-shadow: 0 -12px 48px rgba(0,0,0,0.65), 0 -1px 0 rgba(255,255,255,0.06);
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
/* Bordure top en dégradé */
.evazoBar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(102,126,234,0.35) 20%,
        rgba(167,139,250,0.65) 50%,
        rgba(102,126,234,0.35) 80%,
        transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.evazoBar.visible {
    transform: translateY(0);
    pointer-events: all;
}

/* Canvas EQ — fond du player bar (derrière les contrôles) */
.tb-eq-canvas {
    position: absolute;
    left: 0;
    right: 0;
    top: 3px;        /* sous la barre de progression */
    bottom: 0;
    width: 100%;
    height: calc(100% - 3px);
    pointer-events: none;
    z-index: 0;
}
/* Barre de progression (tout en haut de la bar) */
.tb-progress-rail {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    transition: height 0.18s ease;
    overflow: visible;
    z-index: 3;
}
.tb-progress-rail:hover { height: 6px; }
.tb-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
    transition: width 0.25s linear;
    pointer-events: none;
    position: relative;
    overflow: visible;
}
/* Thumb (petit rond) visible au hover */
.tb-progress-fill::after {
    content: '';
    position: absolute;
    right: -7px; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(102,126,234,0.5), 0 2px 8px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}
.tb-progress-rail:hover .tb-progress-fill::after { opacity: 1; }

/* Layout interne — position: relative pour rester au-dessus du canvas EQ */
.tb-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 24px 10px;
    max-width: 1200px;
    margin: 0 auto;
    height: 74px;
    position: relative;
    z-index: 1;
}

/* Bloc info (pochette + textes) */
.tb-info-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    max-width: 280px;
}

.tb-cover-wrap {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a2e;
    box-shadow: 0 4px 18px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08);
    transition: box-shadow 0.4s ease;
}
/* Glow pulsant pendant la lecture */
@keyframes tbCoverGlow {
    0%, 100% { box-shadow: 0 4px 18px rgba(0,0,0,0.55), 0 0 0 1px rgba(102,126,234,0.25); }
    50%       { box-shadow: 0 4px 24px rgba(0,0,0,0.55), 0 0 0 2px rgba(102,126,234,0.55), 0 0 24px rgba(102,126,234,0.18); }
}
.evazoBar.tb-playing .tb-cover-wrap {
    animation: tbCoverGlow 2.8s ease-in-out infinite;
}
.tb-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Shimmer quand pas d'image */
.tb-cover-wrap:not(:has(img[src])) .tb-cover-shimmer,
.tb-cover-wrap:has(img[src=""]) .tb-cover-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.3), rgba(118,75,162,0.3));
    animation: tbShimmer 1.5s infinite alternate;
}
@keyframes tbShimmer {
    from { opacity: 0.4; }
    to   { opacity: 0.8; }
}
/* Icône par défaut pour les chansons sans pochette d'album */
.tb-cover-wrap.tb-cover-default {
    background: linear-gradient(135deg, #2a1f5e 0%, #1a1033 100%);
    display: flex; align-items: center; justify-content: center;
}
.tb-cover-wrap.tb-cover-default .tb-cover-shimmer {
    position: absolute; inset: 0; animation: none;
    background: transparent;
    display: flex; align-items: center; justify-content: center;
}
.tb-cover-wrap.tb-cover-default .tb-cover-shimmer::after {
    content: 'music_note';
    font-family: 'Material Symbols Rounded';
    font-size: 22px;
    color: rgba(165, 180, 252, 0.7);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.tb-texts { min-width: 0; }
.tb-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(139,160,255,0.80);
    text-transform: uppercase;
    margin-bottom: 2px;
}
/* Indicateur vivant (dot pulsant) */
.tb-live-dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #667eea;
    flex-shrink: 0;
    animation: tbLivePulse 1.8s ease-in-out infinite;
}
@keyframes tbLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.65); }
}
.tb-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    letter-spacing: 0.01em;
}
/* Marquee quand titre déborde */
@keyframes tbMarquee {
    0%, 18%  { transform: translateX(0); }
    82%, 100%{ transform: translateX(var(--tb-marquee-dist, -60px)); }
}
.tb-title.tb-marquee {
    animation: tbMarquee 9s ease-in-out 1s infinite alternate;
    text-overflow: clip;
}
.tb-artist {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Contrôles */
.tb-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.tb-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.70);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s, transform 0.15s;
    line-height: 1;
    text-decoration: none;
}
.tb-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.10);
    transform: scale(1.08);
}
.tb-btn .material-symbols-rounded {
    font-size: 22px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.tb-btn-play .material-symbols-rounded {
    font-size: 40px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
    color: #fff;
    filter: drop-shadow(0 0 0px rgba(102,126,234,0));
    transition: filter 0.3s ease;
}
.tb-btn-play:hover { background: none; transform: scale(1.12); }
.tb-btn-play:hover .material-symbols-rounded {
    filter: drop-shadow(0 0 10px rgba(102,126,234,0.7));
}
/* Glow pulsant quand en lecture */
@keyframes tbPlayGlow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(102,126,234,0.2)); }
    50%       { filter: drop-shadow(0 0 12px rgba(167,139,250,0.75)); }
}
.evazoBar.tb-playing #tb-play .material-symbols-rounded {
    animation: tbPlayGlow 2.2s ease-in-out infinite;
}
.tb-btn-sm .material-symbols-rounded { font-size: 18px; }

/* Droite : temps + expand + mini EQ */
.tb-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Contrôle volume mini lecteur ───────────────────────── */
.tb-volume-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.tb-volume-range {
    -webkit-appearance: none;
    appearance: none;
    width: 72px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.18);
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}
.tb-volume-range:hover {
    background: rgba(255,255,255,0.3);
}
.tb-volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(99,102,241,0.6);
    transition: transform 0.15s;
}
.tb-volume-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.tb-volume-range::-moz-range-thumb {
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #6366f1;
    border: none;
    cursor: pointer;
}
@media (max-width: 768px) { .tb-volume-wrap { display: none; } }

/* Mini EQ visualizer */
.tb-mini-eq {
    width: 72px;
    height: 28px;
    border-radius: 6px;
    display: block;
    flex-shrink: 0;
    opacity: 0.85;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 768px) { .tb-mini-eq { display: none; } }

/* ── Bouton queue + badge ───────────────────────────────── */
.tb-queue-toggle { position: relative; }
.tb-queue-badge {
    position: absolute; top: -3px; right: -3px;
    min-width: 16px; height: 16px; padding: 0 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    font-size: 0.60rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    color: #fff; pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.tb-queue-badge.pulse { transform: scale(1.5); }

/* ── Queue panel ────────────────────────────────────────── */
.evazo-queue-panel {
    position: fixed;
    bottom: 76px; right: 12px;
    width: 300px;
    max-height: 430px;
    background: rgba(13,13,24,0.97);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    display: flex; flex-direction: column;
    z-index: 1100;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s cubic-bezier(0.4,0,0.2,1),
                opacity  0.22s ease;
    backdrop-filter: blur(24px);
    box-shadow: 0 -4px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(102,126,234,0.08);
    overflow: hidden;
}
.evazo-queue-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}
/* Ajustement si bottom nav présente */
@media (max-width: 768px) {
    .evazo-queue-panel { bottom: 140px; right: 0; left: 0; width: 100%; border-radius: 14px 14px 0 0; }
}

/* Header */
.evazo-queue-hdr {
    display: flex; align-items: center;
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.evazo-queue-title {
    flex: 1;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.09em; text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.evazo-queue-hdr-btns { display: flex; align-items: center; gap: 2px; }

.evazo-queue-clear, .evazo-queue-save-btn {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.25);
    padding: 5px 7px; border-radius: 6px;
    display: flex; align-items: center;
    transition: color 0.15s, background 0.15s;
}
.evazo-queue-clear:hover  { color: rgba(220,80,80,0.75); background: rgba(220,80,80,0.08); }
.evazo-queue-save-btn:hover { color: #667eea; background: rgba(102,126,234,0.12); }

/* Formulaire de nommage */
.evazo-queue-save-form {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(102,126,234,0.06);
    flex-shrink: 0;
}
.evazo-queue-name-input {
    flex: 1; min-width: 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(102,126,234,0.35);
    border-radius: 6px; color: #fff;
    font-size: 0.78rem; padding: 5px 9px;
    outline: none;
    transition: border-color 0.15s;
}
.evazo-queue-name-input:focus { border-color: #667eea; }
.evazo-queue-name-confirm {
    background: linear-gradient(135deg,#667eea,#764ba2);
    border: none; border-radius: 6px; cursor: pointer;
    color: #fff; padding: 5px 8px;
    display: flex; align-items: center;
    transition: opacity 0.15s;
}
.evazo-queue-name-confirm:hover { opacity: 0.85; }
.evazo-queue-name-cancel {
    background: none; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px; cursor: pointer;
    color: rgba(255,255,255,0.4); padding: 5px 8px;
    display: flex; align-items: center;
    transition: background 0.15s;
}
.evazo-queue-name-cancel:hover { background: rgba(255,255,255,0.06); }

/* Message de confirmation après sauvegarde */
.evazo-queue-saved-msg {
    padding: 8px 14px;
    font-size: 0.74rem;
    color: #a3e635;
    display: flex; align-items: center; gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.evazo-queue-saved-msg a { color: #667eea; text-decoration: none; }
.evazo-queue-saved-msg a:hover { text-decoration: underline; }

/* Drop hint */
.evazo-queue-drop-hint {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px 8px;
    font-size: 0.70rem; color: rgba(255,255,255,0.22);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.evazo-queue-drop-hint .material-symbols-rounded { font-size: 14px; opacity: 0.5; }

/* List */
.evazo-queue-list {
    overflow-y: auto; overflow-x: hidden;
    flex: 1;
    padding: 6px 8px 8px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.evazo-queue-list::-webkit-scrollbar { width: 3px; }
.evazo-queue-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 2px; }

/* Queue item */
.evazo-qi {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 8px; border-radius: 9px;
    border: 1px solid transparent; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    position: relative; user-select: none;
}
.evazo-qi:hover { background: rgba(255,255,255,0.055); border-color: rgba(255,255,255,0.07); }
.evazo-qi.qi-playing {
    background: rgba(102,126,234,0.12);
    border-color: rgba(102,126,234,0.28);
}
.evazo-qi.qi-drag-over { border-color: rgba(102,126,234,0.5); background: rgba(102,126,234,0.08); }

.evazo-qi-handle {
    color: rgba(255,255,255,0.18); cursor: grab; flex-shrink: 0;
    display: flex; align-items: center;
}
.evazo-qi-handle .material-symbols-rounded { font-size: 14px; }
.evazo-qi-handle:active { cursor: grabbing; }

.evazo-qi-cover {
    width: 36px; height: 36px; border-radius: 7px;
    overflow: hidden; flex-shrink: 0;
    background: rgba(102,126,234,0.15);
    display: flex; align-items: center; justify-content: center;
}
.evazo-qi-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evazo-qi-cover .material-symbols-rounded { font-size: 16px; color: rgba(102,126,234,0.45); }

.evazo-qi-info { flex: 1; min-width: 0; }
.evazo-qi-title {
    font-size: 0.77rem; font-weight: 500; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.evazo-qi.qi-playing .evazo-qi-title { color: rgba(167,139,250,1); }
.evazo-qi-artist {
    font-size: 0.67rem; color: rgba(255,255,255,0.35);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px;
}

.evazo-qi-num {
    font-size: 0.65rem; color: rgba(255,255,255,0.2);
    width: 16px; text-align: center; flex-shrink: 0;
}
.evazo-qi.qi-playing .evazo-qi-num { display: none; }
.evazo-qi-eq {
    display: none; width: 16px; flex-shrink: 0;
    align-items: flex-end; justify-content: center; gap: 2px; height: 14px;
}
.evazo-qi.qi-playing .evazo-qi-eq { display: flex; }
.evazo-qi-eq span {
    display: block; width: 3px; background: #a78bfa; border-radius: 1px;
    animation: qiEqBounce 0.8s ease-in-out infinite alternate;
}
.evazo-qi-eq span:nth-child(1) { height: 6px;  animation-delay: 0s; }
.evazo-qi-eq span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.evazo-qi-eq span:nth-child(3) { height: 8px;  animation-delay: 0.3s; }
@keyframes qiEqBounce { to { height: 4px; opacity: 0.5; } }

.evazo-qi-rm {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.18); padding: 4px; border-radius: 5px;
    display: flex; align-items: center; flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
    opacity: 0;
}
.evazo-qi:hover .evazo-qi-rm { opacity: 1; }
.evazo-qi-rm:hover { color: rgba(220,80,80,0.8); background: rgba(220,80,80,0.1); }
.evazo-qi-rm .material-symbols-rounded { font-size: 14px; }

/* Empty state */
.evazo-queue-empty {
    text-align: center; padding: 28px 16px 20px;
    color: rgba(255,255,255,0.2); font-size: 0.78rem; line-height: 1.5;
}
.evazo-queue-empty .material-symbols-rounded {
    font-size: 2.2rem; display: block; margin-bottom: 8px; opacity: 0.4;
}

/* Drop highlight on mini player bar */
.evazoBar.drag-over {
    box-shadow: 0 0 0 2px rgba(102,126,234,0.7) inset,
                0 0 28px rgba(102,126,234,0.2);
}
.evazoBar.drag-over::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(102,126,234,0.07);
    pointer-events: none; z-index: 0; border-radius: inherit;
}
.evazo-drop-label {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(167,139,250,0.9); font-size: 0.8rem; font-weight: 600;
    gap: 8px; pointer-events: none; z-index: 20;
    background: rgba(15,15,26,0.55); backdrop-filter: blur(4px);
    border-radius: inherit; opacity: 0;
    transition: opacity 0.15s;
}
.evazoBar.drag-over .evazo-drop-label { opacity: 1; }

/* Song rows : curseur grab quand draggable */
.song-row[draggable="true"] { cursor: grab; }
.song-row.dragging { opacity: 0.45; }

.tb-time {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ── Barre de chargement AJAX (#tb-nav-bar) ──────────────── */
#tb-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    z-index: 9999;
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}
#tb-nav-bar.loading {
    animation: tbNavLoad 1.2s ease-in-out infinite;
}
@keyframes tbNavLoad {
    0%   { width: 0%; opacity: 1; }
    60%  { width: 80%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

/* ── Transition de contenu de page ──────────────────────── */
#page-content {
    transition: opacity 0.12s ease;
    flex: 1; /* pousse le footer en bas */
    overflow-x: hidden; /* bloque tout débordement horizontal */
    min-width: 0;       /* nécessaire dans un flex-column pour que le contenu puisse rétrécir */
}
#page-content.page-leaving {
    opacity: 0;
}

/* Masquer l'ancien mini player mobile de detail.html
   quand le nouveau #evazoBar global est actif */
body.evazo-playing #mobileMiniPlayer,
body.evazo-playing .mobile-mini-player {
    display: none !important;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tb-inner {
        padding: 8px 14px;
        gap: 10px;
        height: 66px;
    }
    .tb-info-area { max-width: 150px; }
    .tb-title     { max-width: 120px; font-size: 0.84rem; }
    .tb-artist    { max-width: 120px; }
    .tb-time      { display: none; }
    .tb-btn-sm    { display: none; } /* cacher shuffle/repeat sur mobile */
    .tb-right .tb-btn { display: none; }
    .tb-cover-wrap { width: 44px; height: 44px; border-radius: 10px; }
    .tb-label      { display: none; }
    .tb-btn-play .material-symbols-rounded { font-size: 36px; }
}

/* Sur mobile, le lecteur fullscreen est un conteneur fixe qui scrolle
   indépendamment du body. On lui ajoute un padding-bottom quand le mini
   bar est visible pour que les dernières lignes ne soient pas cachées.  */
body.evazo-playing .player-card.fullscreen {
    padding-bottom: 72px;
}


.nav-pills .nav-link {
    color: var(--text-muted) !important;
    border-radius: 8px;
    padding: 0.4rem 1rem;
}
.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background: rgba(102,126,234,0.20) !important;
    color: #fff !important;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.evazo-footer {
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 14px 24px;
    margin-bottom: 72px; /* espace pour le mini player fixe */
    text-align: center;
}
.evazo-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}
.evazo-footer-brand {
    color: rgba(255,255,255,0.70);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.evazo-footer-sep {
    color: rgba(255,255,255,0.25);
}
.evazo-footer-contact {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color .2s;
}
.evazo-footer-contact:hover {
    color: #a78bfa;
    text-decoration: underline;
}
.evazo-footer-legal {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: .78rem;
    transition: color .2s;
}
.evazo-footer-legal:hover {
    color: #a78bfa;
    text-decoration: underline;
}
.evazo-footer-copy {
    color: rgba(255,255,255,0.30);
}

/* ── Bannière mode visiteur ──────────────────────────────────────────────── */
.visitor-banner {
    background: linear-gradient(90deg, rgba(245,158,11,0.15), rgba(234,88,12,0.10));
    border-bottom: 1px solid rgba(245,158,11,0.30);
    padding: 8px 20px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
}
.visitor-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1300px;
    margin: 0 auto;
}
.visitor-banner-inner i { color: #f59e0b; }
.visitor-banner-actions { display: flex; gap: 8px; }
.visitor-btn-reg {
    padding: 4px 14px; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
    background: rgba(245,158,11,0.20); border: 1px solid rgba(245,158,11,0.40);
    color: #fbbf24; text-decoration: none; transition: all 0.2s;
}
.visitor-btn-reg:hover { background: rgba(245,158,11,0.35); color: #fde68a; }
.visitor-btn-login {
    padding: 4px 14px; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
    background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.80); text-decoration: none; transition: all 0.2s;
}
.visitor-btn-login:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ── Genre dropdown navbar ─────────────────────────────────── */
.evazo-genre-dropdown {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 6px 0;
    min-width: 220px;
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
}

/* Lien "Tous les genres" */
.evazo-genre-all {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.55) !important;
    font-size: .78rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 8px 16px !important;
}
.evazo-genre-all:hover { color: #c4b5fd !important; }

/* Item genre standard */
.evazo-genre-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.80) !important;
    font-size: .875rem;
    padding: 7px 16px !important;
    transition: background .15s, color .15s;
}
.evazo-genre-item:hover,
.evazo-genre-item:focus {
    background: rgba(102,126,234,.18) !important;
    color: #c4b5fd !important;
}
.evazo-genre-icon {
    width: 16px;
    text-align: center;
    font-size: .85rem;
    color: var(--primary);
    flex-shrink: 0;
    opacity: .85;
}
.evazo-genre-label { flex: 1; }

/* Genre sans chansons — légèrement atténué */
.evazo-genre-empty {
    color: rgba(255,255,255,.38) !important;
}
.evazo-genre-empty .evazo-genre-icon { opacity: .4; }
.evazo-genre-badge {
    font-size: .65rem;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.3);
    border-radius: 8px;
    padding: 1px 6px;
    font-weight: 600;
}

.evazo-genre-dropdown .dropdown-divider { margin: 4px 0; }

/* ══ AVATAR PROFIL — navbar droite ══════════════════════════ */
.evazo-profile-btn {
    text-decoration: none !important;
    padding: 4px 6px !important;
    border-radius: 20px;
    transition: background .2s;
}
.evazo-profile-btn:hover { background: rgba(255,255,255,.08); }

.evazo-avatar {
    width: 32px; height: 32px; min-width: 32px; min-height: 32px;
    max-width: 32px; max-height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.18);
    transition: border-color .2s;
}
.evazo-profile-btn:hover .evazo-avatar { border-color: rgba(102,126,234,.7); }
.evazo-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.evazo-avatar-initials {
    font-size: .85rem; font-weight: 700; color: #fff;
    line-height: 1; user-select: none;
}

.evazo-profile-name {
    font-size: .83rem; font-weight: 600;
    color: rgba(255,255,255,.85);
    max-width: 110px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.evazo-profile-caret {
    font-size: .65rem; color: rgba(255,255,255,.4);
    margin-left: -2px;
}

/* Dropdown profil */
.evazo-profile-dropdown {
    min-width: 200px;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    background: #1c1c2e !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.5) !important;
    padding: 6px 0 !important;
    margin-top: 8px !important;
}
.evazo-profile-header {
    padding: 10px 16px 8px;
}
.evazo-profile-dd-name {
    font-size: .88rem; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.evazo-profile-dd-user {
    font-size: .74rem; color: rgba(255,255,255,.4);
    margin-top: 1px;
}
.evazo-profile-dropdown .dropdown-item {
    font-size: .83rem; padding: 7px 16px;
    color: rgba(255,255,255,.75);
    border-radius: 8px; margin: 1px 6px;
    width: calc(100% - 12px);
    transition: background .15s, color .15s;
}
.evazo-profile-dropdown .dropdown-item:hover {
    background: rgba(102,126,234,.18) !important;
    color: #fff !important;
}
.evazo-dd-logout { color: rgba(255,100,100,.75) !important; }
.evazo-dd-logout:hover { background: rgba(220,80,80,.12) !important; color: #f87171 !important; }

/* ══ MOBILE TOP BAR ═════════════════════════════════════════ */
.evazo-mob-icon-btn {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,.75); font-size: 1rem;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
}
.evazo-mob-icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

.evazo-mob-avatar-btn { text-decoration: none; display: flex; align-items: center; }

/* ══ MOBILE HAMBURGER MENU ══════════════════════════════════ */
.evazo-mob-menu {
    padding: 12px 4px 6px;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 6px;
}
.evazo-mob-search-form {
    margin-bottom: 14px;
}
.evazo-mob-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.evazo-mob-menu-item {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 6px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; padding: 14px 8px;
    color: rgba(255,255,255,.8); text-decoration: none;
    font-size: .78rem; font-weight: 500;
    transition: background .2s, color .2s;
    cursor: pointer;
}
.evazo-mob-menu-item:hover,
.evazo-mob-menu-item:focus { background: rgba(102,126,234,.18); color: #fff; border-color: rgba(102,126,234,.3); }
.evazo-mob-menu-item i { font-size: 1.2rem; }
.evazo-mob-menu-btn { border: 1px solid rgba(255,255,255,.08); width: 100%; font-family: inherit; }
.evazo-mob-menu-logout { color: rgba(255,120,120,.8) !important; }
.evazo-mob-menu-logout:hover { background: rgba(220,80,80,.12) !important; color: #f87171 !important; }
.evazo-mob-menu-login { color: rgba(102,200,130,.85) !important; }

/* ══ BOTTOM NAV MOBILE ══════════════════════════════════════ */
.evazo-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 7500;
    background: rgba(14, 14, 26, 0.97);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,255,255,.09);
    display: flex; align-items: stretch;
    height: 62px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.35);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.evazo-bn-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    text-decoration: none; color: rgba(255,255,255,.45);
    font-size: .62rem; font-weight: 600; letter-spacing: .02em;
    transition: color .2s;
    position: relative; padding: 6px 2px;
    -webkit-tap-highlight-color: transparent;
}
.evazo-bn-item:hover,
.evazo-bn-item.active { color: #667eea; }
.evazo-bn-item.active::after {
    content: '';
    position: absolute; top: 0; left: 25%; right: 25%;
    height: 2px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.evazo-bn-icon { font-size: 1.15rem; }
.evazo-bn-label { line-height: 1; }

/* Bouton + (Ajouter) */
.evazo-bn-add { }
.evazo-bn-add-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 12px rgba(102,126,234,.45);
    transition: transform .2s, box-shadow .2s;
    margin-bottom: -2px;
}
.evazo-bn-add:hover .evazo-bn-add-circle {
    transform: scale(1.1);
    box-shadow: 0 5px 18px rgba(102,126,234,.6);
}
.evazo-bn-add .evazo-bn-icon { font-size: .9rem; color: #fff; }

/* Avatar dans la bottom nav */
.evazo-bn-avatar {
    width: 26px; height: 26px; min-width: 26px; max-width: 26px;
    min-height: 26px; max-height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; font-size: .72rem; font-weight: 700; color: #fff;
    border: 1.5px solid rgba(255,255,255,.2);
    margin-bottom: -2px;
}
.evazo-bn-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.evazo-bn-item:hover .evazo-bn-avatar,
.evazo-bn-item.active .evazo-bn-avatar { border-color: #667eea; }

/* Compenser la hauteur de la bottom nav sur mobile */
@media (max-width: 991.98px) {
    body { padding-bottom: 62px; }
    /* Le mini player eVazo descend au-dessus de la bottom nav */
    .evazoBar { bottom: 62px; }
}

/* Active state via JS (optionnel) */
