/* Paste your entire CSS code here. Example: */

.manga-details-header {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.manga-details-cover {
    flex-shrink: 0;
}

.manga-details-cover img {
    width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

.manga-details-info {
    flex: 1;
    min-width: 300px;
}

.manga-details-info h1 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 32px;
}

.manga-meta p {
    margin: 5px 0;
    color: #6c757d;
}

.manga-genres {
    margin: 20px 0;
}

.genre-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 15px;
    font-size: .85rem;
    margin: 0 5px 5px 0;
}

.manga-description h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.manga-description p {
    line-height: 1.7;
    color: #495057;
}

.manga-chapters-section h2 {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.manga-chapters-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.manga-chapters-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    transition: background-color .2s;
}

.manga-chapters-list li:hover {
    background-color: #f8f9fa;
}

.manga-chapters-list li a {
    font-weight: 500;
    font-size: 1.05rem;
}

.chapter-date {
    font-size: .9rem;
    color: #6c757d;
    flex-shrink: 0;
    margin-left: 20px;
}

.comick-reader-container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

.reader-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    max-width: 850px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    position: sticky;
    top: 50px;
    z-index: 100;
}

.reader-navigation.top-nav {
    margin-bottom: 20px;
    margin-left: 23px;
    backdrop-filter: blur(3px);
    background-color: #ffffff57;
}

.reader-navigation.bottom-nav {
    margin-top: 30px;
    justify-content: center;
    gap: 20px;
}

.chapter-nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reader-navigation .nav-button {
    text-decoration: none;
    font-weight: 600;
    padding: 5px 15px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background-color .2s, color .2s, border-color .2s;
    white-space: nowrap;
}

.reader-navigation .nav-button.back-button {
    background-color: #6c757d;
    color: #fff;
}

.reader-navigation .nav-button.back-button:hover {
    background-color: #5a6268;
}

.reader-navigation .nav-button.prev-chap,
.reader-navigation .nav-button.next-chap {
    background-color: #007bff;
    color: #fff;
}

.reader-navigation .nav-button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.reader-navigation .nav-disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
}

.reader-navigation .current-chapter-title {
    font-size: 1.1em;
    font-weight: 500;
    color: #495057;
    text-align: center;
    padding: 0 10px;
}

.reader-images .manga-image-container {
    margin-bottom: 5px;
}

.reader-images img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    background-color: #f8f9fa;
    min-height: 400px;
}

.comick-ad-spot {
    margin: 15px auto;
    text-align: center;
    min-height: 90px;
    width: 100%;
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.comick-ad-spot > * {
    max-width: 100%;
}

@media (max-width: 768px) {
    .reader-navigation .current-chapter-title {
        display: none;
    }

    .reader-navigation .nav-button.back-button {
        background-color: #6c757d;
        color: #fff;
        font-size: 10px;
    }

    .chapter-nav-buttons {
        font-size: 10px;
    }

    .reader-navigation.bottom-nav {
        font-size: 10px;
    }

    .reader-navigation {
        top: 5px;
    }

    .manga-details-info h1 {
        font-size: 25px;
    }

    .reader-navigation.top-nav {
        margin-left: 0;
    }
}

.reader-navigation .nav-button.prev-chap, .reader-navigation .nav-button.next-chap {
    font-size: 12px;
}
