/**
 * Hulyx UI - Audio Matrix Styles
 */



/* --- BILATERAL FLOW BTN --- */
.h-flow-btn {
    grid-column: span 2;
    background: linear-gradient(90deg, rgba(0, 234, 255, 0.05), rgba(0, 234, 255, 0.1));
    border: 1px solid rgba(0, 234, 255, 0.3) !important;
    color: #00eaff !important;
    font-weight: 900 !important;
}

.h-flow-btn.active {
    background: #00eaff !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.4);
}

/* Feedback Master OFF */
.h-shake { animation: h-audio-shake 0.4s ease-in-out; }
@keyframes h-audio-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}




.h-audio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.h-audio-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.h-audio-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* État Actif */
.h-audio-toggle.active {
    background: #ffffff !important;
    color: #000000 !important;
    font-weight: 700;
    border-color: transparent !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.h-audio-toggle.active:hover {
    background: #f0f0f0 !important;
}

.h-audio-toggle:active {
    transform: scale(0.95);
}



/* --- FICHIER : assets/css/hulyx-audio.css --- */

/* Grille de la Matrix Audio */
.h-audio-matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.h-matrix-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
}

.h-matrix-btn.active {
    background: #00eaff;
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.3);
}

/* Bouton Musique Large */
.h-music-main-btn {
    width: 100%;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.h-music-main-btn:hover { background: rgba(255, 255, 255, 0.15); }
.h-music-main-btn.active { border-color: #00eaff; color: #00eaff; }

/* Lecteur Musique */
.h-player-box {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px;
    display: none; /* Masqué par défaut */
    border: 1px solid rgba(255,255,255,0.05);
}

.h-player-info {
    text-align: center;
    margin-bottom: 15px;
}

.h-player-status {
    display: block;
    font-size: 8px;
    color: #00eaff;
    letter-spacing: 2px;
    font-weight: 900;
    margin-bottom: 4px;
}

.h-player-title {
    font-size: 12px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.h-player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.h-player-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #fff;
    opacity: 0.6;
    transition: 0.2s;
}

.h-player-btn:hover { opacity: 1; transform: scale(1.1); }
.h-player-btn svg { width: 20px; height: 20px; fill: currentColor; }

.h-player-btn.play-main svg { width: 34px; height: 34px; color: #00eaff; }

/* Header Master Audio fix */
.h-audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}


/* --- MATRIX ENGINE CORE --- */
.hulyx-audio-menu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.98);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 260px;
    z-index: 100001;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hulyx-audio-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    right: 80px;
}

.h-audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.h-audio-header span {
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

/* --- MATRIX GRID --- */
.h-audio-matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.h-matrix-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    padding: 12px 5px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.h-matrix-btn.active {
    background: rgba(0, 234, 255, 0.1);
    border-color: #00eaff;
    color: #00eaff;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.2);
}

.h-matrix-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}



/* --- MUSIC PLAYER --- */
.h-music-main-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 10px;
}

.h-music-main-btn.active {
    border-style: solid;
    border-color: #00eaff;
    color: #00eaff;
}

.h-player-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 15px;
    display: none;
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: 10px;
}

.h-player-info { text-align: center; margin-bottom: 15px; }
.h-player-status { display: block; font-size: 7px; color: #00eaff; letter-spacing: 2px; font-weight: 900; margin-bottom: 5px; }
.h-player-title { color: #fff; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.h-player-controls { display: flex; justify-content: center; align-items: center; gap: 20px; }
.h-player-btn { background: none; border: none; color: #fff; opacity: 0.5; cursor: pointer; transition: 0.2s; padding: 5px; }
.h-player-btn:hover { opacity: 1; transform: scale(1.1); }
.h-player-btn svg { width: 18px; height: 18px; fill: currentColor; }
.h-player-btn.play-main svg { width: 30px; height: 30px; color: #00eaff; }

/* --- SLIDERS & SWITCHES --- */
#h-master-volume { width: 100%; margin-bottom: 15px; height: 4px; accent-color: #00eaff; }

.h-switch { position: relative; display: inline-block; width: 34px; height: 18px; }
.h-switch input { opacity: 0; width: 0; height: 0; }
.h-slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,0.1); transition: .4s; border-radius: 20px; }
.h-slider:before { position: absolute; content: ""; height: 12px; width: 12px; left: 3px; bottom: 3px; background: white; transition: .4s; border-radius: 50%; }
input:checked + .h-slider { background: #00eaff; }
input:checked + .h-slider:before { transform: translateX(16px); }

/* Animation pour le rappel d'activation Master */
.h-shake { animation: h-shake 0.4s ease-in-out; }
@keyframes h-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}