﻿/* Chỉ để style cho READ COMIC, không đụng vào cd-* để khỏi phá UI */
.chapter-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.chapter-select {
    min-width: 260px;
    max-width: 520px;
}

.chapter-select {
    min-width: 260px;
    max-width: 520px;
}

.chapter-title {
    width: 100%;
    text-align: center;
    font-weight: 800;
    margin-top: 6px;
    margin-bottom: 0;
    color: #0f172a;
}

.chapter-image {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    height: auto;
}

.rc-divider {
    margin: 30px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.10);
}

/* ===== READ NAV BUTTON ===== */

.rc-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14px;
    transition: all .2s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.rc-btn-prev {
    background: #f1f5f9;
    color: #0f172a;
}

.rc-btn-next {
    background: #2563eb;
    color: white;
}

.rc-btn:hover {
    transform: translateY(-2px);
}

.rc-btn-prev:hover {
    background: #e2e8f0;
}

.rc-btn-next:hover {
    background: #1d4ed8;
}

@media (max-width:768px) {

    .chapter-nav {
        gap: 6px;
    }

    .chapter-select {
        order: 3;
        width: 100%;
        max-width: none;
    }

    .chapter-nav .btn {
        flex: 1;
    }

    .chapter-title {
        font-size: 18px;
        padding: 0 10px;
    }

    .chapter-image {
        max-width: 100%;
    }
}

/* ===== SCROLL TO TOP ===== */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 9999;
}

    .scroll-top-btn.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .scroll-top-btn:hover {
        background: #1d4ed8;
    }


