/* ========================================
   Listen PDF - Audio Settings
======================================== */

.voice-settings-panel{
    margin-top:20px;
    padding:24px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    box-shadow:0 4px 20px rgba(15,23,42,.04);
}

.voice-settings-panel h4{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0 0 20px;
    font-size:18px;
    font-weight:700;
    color:#1e293b;
}

.voice-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:18px;
}

.voice-field label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    font-weight:600;
    color:#64748b;
}

.voice-field select{
    width:100%;
    height:44px;
    padding:0 12px;
    border:1px solid #dbe2ea;
    border-radius:10px;
    background:#fff;
    color:#0f172a;
}

.voice-field select:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.1);
}

/* ========================================
   Sliders
======================================== */

.slider-group{
    margin-top:5px;
}

.slider-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
}

.slider-header label{
    margin:0;
}

.slider-value{
    font-size:12px;
    font-weight:700;
    color:#2563eb;
    background:#eff6ff;
    padding:3px 10px;
    border-radius:999px;
}

.voice-settings-panel input[type="range"]{
    width:100%;
    height:5px;
    appearance:none;
    border-radius:999px;
    background:#dbeafe;
    cursor:pointer;
}

.voice-settings-panel input[type="range"]::-webkit-slider-thumb{
    appearance:none;
    width:16px;
    height:16px;
    border-radius:50%;
    background:#2563eb;
    border:2px solid #fff;
    box-shadow:0 2px 8px rgba(37,99,235,.3);
}

.voice-settings-panel input[type="range"]::-moz-range-thumb{
    width:16px;
    height:16px;
    border-radius:50%;
    background:#2563eb;
    border:none;
}

/* ========================================
   OCR Section
======================================== */

.ocr-section{
    margin-top:20px;
    padding-top:20px;
    border-top:1px solid #e5e7eb;
}

.ocr-toggle{
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
}

.ocr-toggle span{
    font-size:14px;
    color:#334155;
    font-weight:500;
}

.ocr-settings{
    margin-top:15px;
    padding:15px;
    background:#f8fafc;
    border-radius:12px;
}

.ocr-settings label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    font-weight:600;
    color:#64748b;
}

.ocr-settings select{
    width:100%;
    max-width:280px;
    height:42px;
    padding:0 12px;
    border:1px solid #dbe2ea;
    border-radius:10px;
    background:#fff;
}

/* ========================================
   Player Section
======================================== */

.player-section{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:24px;
    margin-top:20px;
    box-shadow:0 4px 20px rgba(15,23,42,.04);
}

.player-controls{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-bottom:20px;
}

.player-btn{
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    color:#fff;
    cursor:pointer;
    transition:.25s;
}

.player-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(37,99,235,.25);
}

.progress-bar{
    height:8px;
    border-radius:999px;
    background:#e2e8f0;
    overflow:hidden;
}

.progress{
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    height:100%;
}

/* ========================================
   Mobile
======================================== */

@media(max-width:768px){

    .voice-settings-panel{
        padding:16px;
    }

    .voice-grid{
        grid-template-columns:1fr;
    }

    .player-btn{
        width:42px;
        height:42px;
    }

    .ocr-settings select{
        max-width:100%;
    }
}