/* Модалка выбора чтения */
.reading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ac-modal-overlay, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reading-modal.active {
    opacity: 1;
}

.reading-modal-content {
    background: var(--ac-surface-bg, #ffffff);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px var(--ac-shadow-color-strong, rgba(0, 0, 0, 0.3));
}

.reading-modal.active .reading-modal-content {
    transform: scale(1);
}

.reading-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.reading-modal-title {
    font-size: 28px;
    color: var(--ac-text-heading, #2c3e50);
    margin: 0 0 15px 0;
    font-weight: 700;
}

.reading-modal-text {
    font-size: 16px;
    color: var(--ac-text-muted, #7f8c8d);
    margin: 0 0 30px 0;
}

.reading-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.reading-modal-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.reading-modal-btn-continue {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.reading-modal-btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

.reading-modal-btn-restart {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.reading-modal-btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.reading-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ac-text-muted, #95a5a6);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.reading-modal-close:hover {
    background: var(--ac-surface-bg-raised, #ecf0f1);
    color: var(--ac-text-primary, #2c3e50);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .reading-modal-content {
        padding: 28px 18px;
    }

    .reading-modal-title {
        font-size: 1.35rem;
    }

    .reading-modal-text {
        font-size: 0.92rem;
    }

    .reading-modal-buttons {
        flex-direction: column;
    }

    .reading-modal-btn {
        max-width: 100%;
        padding: 13px 22px;
        font-size: 0.92rem;
    }

    .reading-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

