/* ====================
   АУДИОПЛЕЕР (как в экзамене)
   ==================== */
.audio-exam-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 20px;
}

.audio-exam-icon {
    background: #800020;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.audio-exam-icon:hover {
    background: #600018;
}
.audio-exam-icon svg {
    fill: white;
    width: 18px;
    height: 18px;
}

.audio-exam-progress-container {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}
.audio-exam-progress-fill {
    height: 100%;
    width: 0%;
    background: #800020;
    transition: width 0.1s linear;
}

.audio-exam-time {
    font-size: 11px;
    color: #64748b;
    font-family: monospace;
    min-width: 35px;
    text-align: right;
}

.audio-exam-element {
    display: none;
}

.hidden {
    display: none !important;
}

/* ====================
   ИНСТРУКЦИЯ К АУДИО (как в экзамене)
   ==================== */
.audio-instruction-exam {
    background: #f0f4ff;
    border-left: 4px solid #5b7fff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-icon {
    font-size: 18px;
}

.instruction-text {
    flex: 1;
}

/* ====================
   ПРОГРЕСС-БАР ОБУЧЕНИЯ (sticky, как в экзамене)
   ==================== */
.exam-progress {
    position: sticky;
    top: 158px;
    z-index: 100;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar-wrapper {
    flex: 1;
}

.progress-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.progress-bar {
    background: #e2e8f0;
    border-radius: 10px;
    height: 16px;
    overflow: hidden;
    display: flex;
}

.progress-fill-green {
    background: #22c55e;
    height: 100%;
    transition: width 0.4s ease;
}

.progress-fill-red {
    background: #ef4444;
    height: 100%;
    transition: width 0.4s ease;
}

/* Кнопки в шкале */
.progress-result-btn,
.progress-reset-btn,
.progress-info-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-result-btn:hover,
.progress-reset-btn:hover,
.progress-info-btn:hover {
    border-color: #800020;
    color: #800020;
    box-shadow: 0 2px 8px rgba(128,0,32,0.15);
}

/* Тултип как в экзамене */
.progress-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #1a1a1a;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 280px;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: none;
}

.progress-tooltip.visible {
    display: block;
}

.progress-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: #1a1a1a;
    transform: rotate(45deg);
}

/* ====================
   КАРТОЧКИ ВОПРОСОВ
   ==================== */
.question-card-exam {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card-join-bottom {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    border-bottom: none;
}
.card-join-top {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 1px solid #e5e7eb;
}
.card-join-both {
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    margin-bottom: 0;
}

.question-card-exam.correct-answer {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.question-card-exam.wrong-answer {
    background: #fef2f2;
    border-color: #fecaca;
}

.question-text-exam {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.5;
}
.question-sub-exam {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

/* ====================
   ВАРИАНТЫ ОТВЕТОВ
   ==================== */
.options-list-exam {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.option-item-exam {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.option-item-exam:hover {
    border-color: #800020;
    background: rgba(128, 0, 32, 0.02);
}
.option-item-exam.correct {
    background: #f0fdf4;
    border-color: #22c55e;
}
.option-item-exam.wrong {
    background: #fef2f2;
    border-color: #ef4444;
}
.option-radio-exam {
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.option-item-exam.correct .option-radio-exam {
    border-color: #22c55e;
    background: #22c55e;
}
.option-item-exam.wrong .option-radio-exam {
    border-color: #ef4444;
    background: #ef4444;
}
.radio-inner {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    display: block;
}
.option-text-exam {
    font-size: 16px;
    color: #1f2937;
    flex: 1;
}

/* Кнопка перехода к экзамену */
.btn-exam-link {
    display: inline-block;
    padding: 12px 24px;
    background: #800020;
    color: white;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-exam-link:hover {
    background: #600018;
}

/* Кнопка сброса в поздравлении */
.btn-reset-audio {
    background: #fff;
    color: #800020;
    border: 2px solid #800020;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-reset-audio:hover {
    background: rgba(128, 0, 32, 0.05);
}

/* ====================
   АДАПТИВ
   ==================== */
@media (max-width: 700px) {
    .question-card-exam {
        padding: 16px;
    }
    .question-text-exam {
        font-size: 15px;
    }
    .option-text-exam {
        font-size: 14px;
    }
    .exam-progress {
        top: 145px;
        padding: 10px 14px;
    }
    .progress-result-btn,
    .progress-reset-btn,
    .progress-info-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}
.ad-countdown {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-close-btn {
    
    color: white;
    border: 1px;
    border-color: black;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
}

.ad-container {
    position: relative;
}