/* OneManga responsive fixes. Metadata stays in document flow at every width. */
.shortcode-manga-chapter .list-chapter .onemanga-chapter-item {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px 12px;
    height: auto;
    min-width: 0;
    margin-bottom: 16px;
}
.shortcode-manga-chapter .list-chapter .onemanga-chapter-item .chapter,
.shortcode-manga-chapter .list-chapter .onemanga-chapter-item .vol {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.shortcode-manga-chapter .list-chapter .onemanga-chapter-item .chapter a {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
    padding: 10px 8px;
    min-height: 44px;
    box-sizing: border-box;
}
.shortcode-manga-chapter .list-chapter .onemanga-chapter-item .post-on.font-meta,
.shortcode-manga-chapter .list-chapter .onemanga-chapter-item span.view {
    position: static;
    float: none;
    width: auto;
    max-width: 100%;
    margin: 0;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}
@media (max-width: 767px) {
    body.manga-page .profile-manga .tab-summary {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        box-sizing: border-box;
        padding: 16px 12px;
    }
    body.manga-page .profile-manga .tab-summary .summary_image {
        display: block;
        position: static;
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 16px;
        padding: 0;
        text-align: center;
        box-sizing: border-box;
    }
    body.manga-page .profile-manga .tab-summary .summary_image a { display: block; }
    body.manga-page .profile-manga .tab-summary .summary_image img,
    body.manga-page .profile-manga .tab-summary .summary_image img:hover {
        display: block;
        width: auto;
        max-width: min(100%, 280px);
        height: auto;
        margin: 0 auto;
        transform: none;
    }
    body.manga-page .profile-manga .tab-summary .summary_content_wrap,
    body.manga-page .profile-manga .tab-summary .summary_content_wrap .summary_content {
        display: block;
        float: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    body.manga-page .profile-manga .post-content_item {
        display: flex;
        flex-wrap: wrap;
        min-width: 0;
    }
    body.manga-page .profile-manga .post-content_item .summary-heading,
    body.manga-page .profile-manga .post-content_item .summary-content {
        position: static;
        float: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }
    body.manga-page .profile-manga .post-title h1,
    .manga-excerpt { overflow-wrap: anywhere; }
    body.manga-page .genres-content a {
        display: inline-block;
        margin: 3px 2px;
        padding: 6px 10px !important;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }
    #init-links { display: flex; flex-wrap: wrap; gap: 10px; }
    #init-links .c-btn.c-btn_style-1,
    #init-links .c-btn.c-btn_style-1:hover,
    #init-links .c-btn.c-btn_style-1:not(:hover) {
        flex: 1 1 140px;
        width: auto;
        min-width: 0;
        height: auto;
        min-height: 44px;
        margin: 0;
        padding: 12px;
        font-size: 16px;
        white-space: normal;
        overflow-wrap: anywhere;
        box-sizing: border-box;
        transform: none;
    }
    .shortcode-manga-chapter .list-chapter .chapter-item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
    body.manga-page .page-content-listing.single-page .listing-chapters_wrap > ul.main.version-chap li.wp-manga-chapter {
        display: block;
        height: auto;
        max-height: none !important;
        min-width: 0;
        padding: 12px !important;
    }
    body.manga-page .page-content-listing.single-page .listing-chapters_wrap > ul li.wp-manga-chapter a {
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.5;
        min-height: 44px;
        box-sizing: border-box;
    }
    body.manga-page .page-content-listing.single-page .listing-chapters_wrap > ul.main.version-chap li .chapter-release-date,
    .listing-chapters_wrap .wp-manga-chapter .view {
        display: block;
        position: static !important;
        float: none;
        width: auto;
        margin: 4px 0 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.5;
    }
    .listing-chapters_wrap .wp-manga-chapter .chapter-thumbnail {
        position: static;
        float: none;
        display: block;
        margin: 0 0 8px;
    }
    .listing-chapters_wrap .wp-manga-chapter .chapter-thumbnail img.thumb {
        max-width: 100%;
        height: auto;
    }
    .textwidget .c-blog__heading.style-2 h4 { padding: 12px !important; overflow-wrap: anywhere; }
    .related-reading-wrap .related-reading-content h5 { font-size: 16px; overflow-wrap: anywhere; }
    .related-reading-wrap .c-image-hover img { max-width: 100%; height: auto; }
    body.reading-manga .reading-content img { max-width: 100%; height: auto; }
    body.reading-manga .select-pagination { display: flex; flex-wrap: wrap; gap: 8px; }
    body.reading-manga .select-pagination > * { max-width: 100%; min-width: 0; }
    body.reading-manga .select-pagination select { max-width: 100%; min-height: 44px; }
    body.reading-manga .select-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
    body.reading-manga .select-pagination .nav-links a { min-height: 44px; box-sizing: border-box; }
    body.reading-manga .select-pagination .nav-links .nav-previous a { right: 0; }
}

/* v1.0.3: override parent chapter positioning on desktops AND phones.
   Match all chapter items so cached/alternate parent markup is covered too. */
body .shortcode-manga-chapter .list-chapter .chapter-item {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
    gap: 8px 12px;
    height: auto !important;
    min-width: 0;
    margin-bottom: 20px !important;
}
body .shortcode-manga-chapter .list-chapter .chapter-item > .chapter,
body .shortcode-manga-chapter .list-chapter .chapter-item > .vol {
    position: static !important;
    float: none !important;
    display: block !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-width: 0;
    white-space: normal !important;
    box-sizing: border-box;
}
body .shortcode-manga-chapter .list-chapter .chapter-item .chapter a {
    display: block !important;
    width: 100%;
    height: auto !important;
    min-height: 44px;
    padding: 12px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}
body .shortcode-manga-chapter .list-chapter .chapter-item .onemanga-chapter-meta {
    position: static !important;
    display: flex !important;
    flex: 0 0 100%;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    width: 100%;
    min-width: 0;
    padding: 0 4px;
    box-sizing: border-box;
}
body .shortcode-manga-chapter .list-chapter .chapter-item .post-on.font-meta,
body .shortcode-manga-chapter .list-chapter .chapter-item span.view {
    position: static !important;
    inset: auto !important;
    float: none !important;
    display: block !important;
    flex: 0 1 auto;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    line-height: 1.6 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
/* The standard manga chapter list also uses parent absolute date rules. */
body.manga-page .page-content-listing.single-page .listing-chapters_wrap > ul.main.version-chap li.wp-manga-chapter {
    height: auto !important;
    max-height: none !important;
}
body.manga-page .page-content-listing.single-page .listing-chapters_wrap > ul.main.version-chap li.wp-manga-chapter .chapter-release-date,
body.manga-page .listing-chapters_wrap .wp-manga-chapter .view {
    position: static !important;
    inset: auto !important;
    float: none !important;
    display: block !important;
    margin: 6px 0 0 !important;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}
