/* ==========================================================================
   LinguaPremia Exam Audio Player (Single-Play Enforcement UI)
   ========================================================================== */

.lp-exam-audio {
    margin: 16px 0 24px 0;
    max-width: 620px;
    font-family: inherit;
    user-select: none;
    -webkit-user-select: none;
}

.lp-exam-audio audio {
    display: none !important;
}

.lp-exam-audio-card {
    background: #0F172A; /* Deep dark slate */
    border: 1px solid #1E293B;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-exam-audio.lp-is-playing .lp-exam-audio-card {
    border-color: #3B82F6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.lp-exam-audio.lp-is-finished .lp-exam-audio-card {
    border-color: #334155;
    background: #090D16;
    opacity: 0.85;
}

/* Header: Badge & Timer */
.lp-exam-audio-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lp-exam-audio-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.15);
    color: #93C5FD;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.lp-exam-audio-badge.lp-badge-locked {
    background: rgba(100, 116, 139, 0.15);
    color: #94A3B8;
    border-color: #334155;
}

.lp-exam-audio-timer {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #CBD5E1;
}

.lp-time-current {
    color: #38BDF8;
}

/* Progress Track (strictly display-only, no scrubbing) */
.lp-exam-audio-progress-wrap {
    margin-bottom: 14px;
}

.lp-exam-audio-progress-track {
    width: 100%;
    height: 8px;
    background: #1E293B;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    pointer-events: none; /* DISABLE scrub / drag completely */
}

.lp-exam-audio-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563EB, #38BDF8);
    border-radius: 999px;
    transition: width 0.15s linear;
}

.lp-is-finished .lp-exam-audio-progress-bar {
    background: #64748B;
}

.lp-exam-audio-lock-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #64748B;
    letter-spacing: 0.01em;
}

/* Bottom Controls */
.lp-exam-audio-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.lp-exam-audio-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    background: #2563EB;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.lp-exam-audio-play-btn:hover:not(:disabled) {
    background: #1D4ED8;
    transform: translateY(-1px);
}

.lp-exam-audio-play-btn:active:not(:disabled) {
    transform: translateY(0);
}

.lp-exam-audio-play-btn.lp-btn-active {
    background: #0284C7;
}

.lp-exam-audio-play-btn:disabled {
    background: #334155 !important;
    color: #94A3B8 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.8;
}

.lp-exam-audio-status {
    font-size: 12px;
    color: #94A3B8;
}

.lp-status-live {
    color: #38BDF8;
    font-weight: 600;
}

.lp-status-done {
    color: #10B981;
    font-weight: 600;
}

/* Pulse animation */
@keyframes lp-pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

.lp-pulse {
    display: inline-block;
    animation: lp-pulse-anim 1.2s infinite ease-in-out;
}
