* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #1a1a1a;
    color: white;
}

.reader-container {
    max-width: 100%;
    margin: 0 auto;
}

.reader-header {
    position: sticky;
    top: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

.comic-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.page-counter {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.reader-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.comic-page {
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.comic-page.loading {
    background: rgba(255, 255, 255, 0.05);
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reader-navigation {
    position: sticky;
    bottom: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav {
    flex: 1;
    max-width: 300px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nav:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-nav:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.5;
}

.error-message {
    text-align: center;
    padding: 3rem;
}

.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-message p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .reader-header {
        padding: 1rem;
    }
    
    .comic-title {
        font-size: 0.875rem;
    }
    
    .page-counter {
        font-size: 0.75rem;
    }
    
    .reader-navigation {
        padding: 1rem;
    }
    
    .btn-nav {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}
