.litres-reader-container {
    max-width: 1200px;
    margin: 50px auto;
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
}

.litres-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.litres-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.litres-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 8px;
}

.litres-btn:active {
    transform: translateY(0);
}

.litres-btn:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 8px;
}

.litres-page-info {
    color: white;
    font-weight: bold;
    margin: 0 15px;
    min-width: 150px;
    text-align: center;
}

.litres-font-controls {
    display: flex;
    gap: 5px;
    margin-right: 20px;
}

.litres-content-wrapper {
    min-height: 400px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.litres-content {
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in;
}

.litres-content p {
    margin-bottom: 1em;
    text-align: justify;
    font-size: inherit !important;
}


.litres-content .book-chapter {
    font-size: inherit !important;
}

.litres-content .book-subtitle {
    font-size: inherit !important;
}


.litres-loading {
    text-align: center;
    padding: 50px;
    color: #666;
    font-style: italic;
}

.litres-pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.litres-page-numbers {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.litres-page-number {
    padding: 8px 12px;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #667eea;
    font-weight: bold;
}

.litres-page-number:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.litres-page-number.active {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.litres-page-number.ellipsis {
    border: none;
    cursor: default;
    background: transparent;
}

.litres-page-number.ellipsis:hover {
    transform: none;
    background: transparent;
    color: #667eea;
}

.litres-debug {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
}

.litres-debug h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.litres-debug-output {
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    color: #6c757d;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.litres-content {
    animation: fadeIn 0.5s ease-out;
}

.litres-btn {
    animation: slideIn 0.3s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .litres-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .litres-page-info {
        order: -1;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .litres-content-wrapper {
        padding: 20px;
        min-height: 300px;
    }
    
    .litres-page-numbers {
        gap: 3px;
    }
    
    .litres-page-number {
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .litres-controls {
        padding: 10px;
    }
    
    .litres-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .litres-content-wrapper {
        padding: 15px;
        min-height: 250px;
    }
}