/*
Theme Name: Madara-Child (manhwa)
Description:  A child theme for Madara - WordPress Theme for Manga, Novel sites
Author:       Madara
Author URI:   https://mangabooth.com/
Template: madara
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Version: 1.1.9
*/

@media (max-width:480px) {
    .site-header .c-sub-header-nav .c-sub-nav_wrap .sub-nav_content .sub-nav_list {
        display: none;
    }
    body.search .c-search-header__wrapper {
        margin-bottom: -75px;
    }
    body.search .search-wrap .tab-content-wrap .c-tabs-item .c-tabs-item__content {
        display: grid;
    }
    body.search .search-wrap .tab-content-wrap .c-tabs-item .c-tabs-item__content > div {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    body.search .search-wrap .tab-content-wrap .c-tabs-item .c-tabs-item__content .tab-summary .post-content .post-content_item:not(.nofloat):last-child {
        margin-left: 0;
    }
    body.search .search-wrap .tab-content-wrap .c-tabs-item .c-tabs-item__content .tab-meta .latest-chap .chapter {
        margin-left: 0;
    }
    body.search .search-wrap .tab-content-wrap .c-tabs-item .c-tabs-item__content .tab-meta .meta-item + .meta-item {
        margin-left: 0;
    }
    body.search .c-search-header__wrapper #search-advanced .search-advanced-form .form-group.checkbox-group {
        margin-top: 0;
    }
    .search-advanced-form{
        padding: 0 .5rem;
    }
    .c-btn.c-btn_style-1 {
        width: 100% !important;
    }

    .profile-manga .post-title h1 {
        font-size: 16px !important;
    }

    .site-header .main-navigation.style-1 {
        padding: 1rem;
    }

    .site-header .main-navigation.style-1 .c-togle__menu {
        right: 18px !important;
        top: 0.4rem;
    }

    .site-header .main-navigation .main-navigation_wrap>* {
        display: block !important;
        margin-top: 0 !important;
    }

    /* Mobile search - show as icon button instead of hiding completely */
    .site-header .main-navigation .main-navigation_wrap>#search-sidebar {
        display: block !important;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        background: var(--accent, #6366f1);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    .site-header .main-navigation .main-navigation_wrap>#search-sidebar .search-toggle {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
    }

    /* Mobile sub-header nav - show compact version */
    .site-header .c-sub-header-nav {
        visibility: visible;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 8px 10px;
        background: rgba(0,0,0,0.05);
    }

    .site-header .c-sub-header-nav .menu {
        display: flex;
        gap: 8px;
    }

    .site-header .c-sub-header-nav .menu-item a {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 16px;
        background: rgba(255,255,255,0.9);
        white-space: nowrap;
    }

    /* Post title badges - hide on small mobile to save space */
    div.post-title .manga-title-badges {
        display: none !important;
    }

    body.manga-page .profile-manga .post-featured-image,
    body.manga-page .profile-manga .post-summary {
        flex-basis: 100% !important;
    }

    /* ============================================
       MOBILE MANGA DETAIL PAGE - STACKED LAYOUT (<=480px)
       Modern vertical layout with prominent cover art
       ============================================ */
    .profile-manga .tab-summary {
        margin-top: 0.5rem !important;
        padding: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        align-items: center !important;
    }

    /* Thumbnail: Large, centered hero element */
    .profile-manga .tab-summary .summary_image {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 220px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .profile-manga .tab-summary .summary_image a {
        display: block !important;
        width: 100% !important;
    }

    .profile-manga .tab-summary .summary_image a img {
        height: auto !important;
        width: 100% !important;
        max-height: 340px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        aspect-ratio: 2/3 !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
    }

    /* Content: Full width below thumbnail */
    .profile-manga .tab-summary .summary_content_wrap {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        overflow: visible !important;
    }

    body.manga-page .profile-manga .tab-summary .summary_content_wrap .summary_content {
        position: relative !important;
        top: 0 !important;
        padding: 0 !important;
    }

    /* Title: Centered, prominent */
    .profile-manga .tab-summary .post-summary .post-title {
        text-align: center !important;
    }

    .profile-manga .post-title .h1,
    .profile-manga .post-title h1 {
        font-size: 18px !important;
        line-height: 1.4 !important;
        margin: 0 0 8px 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
    }

    /* Alternative title - smaller, centered */
    .profile-manga .post-sub-title.alt-title {
        display: block !important;
        text-align: center !important;
        margin-bottom: 8px !important;
    }

    .profile-manga .post-sub-title.alt-title .h4 {
        font-size: 13px !important;
        opacity: 0.7 !important;
    }

    /* Post ID - centered */
    .profile-manga .post-id {
        font-size: 12px !important;
        margin: 6px 0 12px !important;
        opacity: 0.6 !important;
        text-align: center !important;
    }

    /* Meta info: Clean grid layout */
    body.manga-page .profile-manga .post-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    body.manga-page .profile-manga .post-content_item {
        text-align: left !important;
        margin-bottom: 0 !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 6px !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    body.manga-page .profile-manga .post-content_item:last-child {
        border-bottom: none !important;
    }

    body.manga-page .profile-manga .post-content_item .summary-heading {
        font-size: 12px !important;
        min-width: 70px !important;
        opacity: 0.7 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    body.manga-page .profile-manga .post-content_item .summary-content {
        flex: 1 !important;
    }

    /* Rating: centered */
    .profile-manga .tab-summary .post-rating {
        margin-bottom: 12px !important;
        display: flex !important;
        justify-content: center !important;
        transform: none !important;
    }

    /* Read Now button: Prominent CTA below thumbnail */
    .profile-manga .tab-summary .summary_image .btn-read-now {
        display: block !important;
        width: 100% !important;
        margin-top: 12px !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-align: center !important;
        border-radius: 10px !important;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
        transition: transform 0.2s, box-shadow 0.2s !important;
    }

    .profile-manga .tab-summary .summary_image .btn-read-now:active {
        transform: scale(0.98) !important;
    }

    /* Action buttons: Grid layout for easy tapping */
    .post-btns {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        width: 100% !important;
        gap: 8px !important;
        margin-top: 16px !important;
    }

    .post-btns .c-btn {
        flex: none !important;
        padding: 12px 8px !important;
        font-size: 12px !important;
        text-align: center !important;
        border-radius: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        min-height: 50px !important;
    }

    .post-btns .c-btn i {
        font-size: 16px !important;
        margin-right: 0 !important;
    }

    /* Show button text on mobile */
    .post-btns .c-btn .btn-txt {
        display: block !important;
        font-size: 10px !important;
    }

    .post-btns .c-btn .btn-sub-txt {
        display: none !important;
    }

    /* Add bookmark button - full width */
    .post-btns .add-bookmark {
        grid-column: span 1 !important;
    }

    body.page .c-page-content.style-1 .content-area {
        margin-top: 0;
    }

    body.page .c-page-content.style-1 .content-area .row {
        padding: 12px;
    }

    body.manga-page .profile-manga {
        margin: 0.5rem;
        background-image: none !important;
    }

    body.page .c-page-content.style-1 .content-area #widget {
        margin: 0 !important;
        padding: 5px;
        margin-bottom: 1rem !important;
    }

    body.page .c-page-content.style-1 .content-area #widget div[role=button] {
        display: none !important;
    }

    .modal-dialog {
        width: 100% !important;
    }

    .page-listing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    body.manga-page .profile-manga .tab-summary {
        display: flex !important;
        flex-direction: column !important;
    }

    .c-blog-post .entry-content {
        padding: 1.5rem;
    }

    .manga-tax-terms-listing .listing-type {
        margin-top: -2rem;
    }

    .manga-tax-terms-listing .terms-list ul {
        grid-template-rows: repeat(120, 1fr) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .manga-tax-terms-listing ul {
        list-style: none;
        text-align: center;
        padding: 0;
        margin-bottom: 0;
    }

    /* Removed conflicting width: auto rule - handled in 768px breakpoint below */

    div.chapters-preview.manga-post-chapters {
        margin: 1rem !important;
        border-radius: 5px;
        padding: 0 !important;
        background-color: #1f1f1f !important;
    }

    div.chapters-preview.manga-post-chapters p.truncate {
        line-height: 1.5 !important;
        margin: 0 !important;
    }

    div.chapters-preview.manga-post-chapters ul[role=list] a img {
        width: 100px;
        height: auto !important;
        max-width: none !important;
    }

    body.page .c-page-content.style-1 .content-area .row {
        padding: 0 !important;
        margin: 0 !important;
    }

    .c-blog-post .entry-content {
        padding: 0 !important;
    }

    .images-list {
        margin-top: 0 !important;
    }

    div.c-page-content.style-1.reading-content-wrap.chapter-type-manga>div>div>div>div.main-col {
        padding: 0 !important;
        margin-top: 3rem !important;
    }

    .main-col-inner {
        padding-bottom: 0 !important;
        row-gap: 1rem !important;
    }

    .c-blog-post .entry-content .entry-content_wrap .reading-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .reading-manga .reading-content {
        padding: 0;
    }

    .c-blog-post .entry-content .entry-content_wrap .read-container {
        margin-bottom: 0 !important;
    }

    .reading-nav .nav__wrapper {
        height: 45px !important;
    }

    div.images-list .single-page-mode {
        margin-top: 0 !important;
        height: 100vh !important;
        position: relative;
    }

    div.images-list .all-pages-mode {
        margin-top: 0 !important;
        height: 100%;
    }

    div.images-list .swiper .container img {
        height: 100%;
    }

    .c-blog-post .entry-content .entry-content_wrap .read-container img {
        height: calc(100% - 50px);
        object-fit: fill !important;
        position: relative;
    }

    /* #imagesList {
        height: 100vh;
        background-color: rebeccapurple;
        background-image: url('http://localhost/wp-content/uploads/WP-manga/data/manga_659707a49f83a/0e0fec467f4d003dee778d8871e30fd7/image-1.jpg');
        background-size: contain;
    } */

    .btn {
        font-size: 13px !important;
        line-height: 2rem !important;
    }

    div.chapters-preview.manga-post-chapters p.truncate {
        font-size: 11px !important;
    }

    div.chapters-preview.manga-post-chapters div.flex {
        column-gap: 1rem !important;
    }

    div.chapters-preview.manga-post-chapters div.chapter-wrapper div.chapter-thumb {
        height: 70px !important;
    }

    div.chapters-preview.manga-post-chapters ul[role=list] a img {
        height: 70px !important;
    }

    select.chapters-select {
        font-size: 11px;
    }

    .c-blog-post .entry-content .entry-content_wrap {
        padding: 1.5rem;
    }

    .manga-tax-terms-listing .terms-list {
        padding: 15px !important;
    }

    div.post-sub-title.alt-title h5 {
        font-size: 15px;
        color: #bcbcbcaf !important;
    }

    .c-page-content.profile-character {
        padding: 0 0rem !important;
    }

    .subNav {
        margin-bottom: 0 !important;
        column-gap: 1rem !important;
    }

    div.pure-g.entrySynopsis {
        grid-template-columns: none !important;
    }

    .pure-1.metadata {
        margin-top: 2rem !important;
    }

     .profile-character .post-tag .tag-name {
        font-size: 9px;
    }

    .cardGrid5 {
        grid-template-columns: 1fr 1fr !important;
    }

    section {
        padding: 1rem 1rem !important;
    }

}

.tiktok-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: scroll;
    height: 100vh;
    gap: 20px;
}

.tiktok-item {
    width: 100%;
    max-width: 500px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
}

.tiktok-item video, .tiktok-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.tiktok-item h3 {
    margin: 10px 0;
    font-size: 18px;
}

.tiktok-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.tiktok-button:hover {
    background: #005f8d;
}


@media (min-width:720px) {
    .profile-manga .tab-summary {
        padding: 50px !important;
    }

    body.page .c-page-content .content-area {
        margin-top: -40px;
    }

    .search-wrap .c-nav-tabs{
        display: flex;
    }

    .search-wrap .c-nav-tabs span {
        padding: 8px 10px 9px;
        text-transform: none;
        color: #ffff;
    }

    #imagesList {
        margin-top: 10px;
        height: 100% !important;
    }

    body.manga-page .profile-manga .tab-summary .summary_content_wrap .summary_content {
        padding: 0px 30px 30px !important;
    }

    .profile-manga .tab-summary .summary_image {
        width: 350px !important;
        padding: 0;
        margin: 0 auto;
        display: block;
        background: unset !important;
    }
}

.c-page-content.profile-character {
    padding: 0 9rem;
}

/* Profile page */
h1[itemprop='name'] {
    font-size: 2.4em !important;
    color: #fff !important;
    margin: 0 !important;
    margin-top: -.5rem !important;
}

.pure-1.metadata {
    display: grid;
    /* row-gap: .5rem !important; */
}

.pure-1.metadata .post-meta {
    display: flex;
    column-gap: 1rem;
}

.subNav {
    display: flex;
}

.subNav {
    list-style: none;
    padding: 0;
    text-transform: uppercase;
    font-size: smaller;
    background: #091f30;
    align-items: center;
}

.subNav li.selected {
    background: #fff;
    font-weight: bold;
    padding: .8rem;
}

.subNav li {
    display: inline-block;
    padding: 0.6em 1% 0.4em;
    transition: background-color 0.2s;
    text-align: center;
}

.selected,
.selected a {
    color: #000 !important;
    cursor: default;
    background-color: transparent;
}

.subNav li a:not(.selected) {
    color: #fff;
}

section.entryBar {
    margin: 1.5em 0 1.5em;
    list-style: none;
    display: flex;
    gap: 3rem;
    color: #fff !important;
    background-color: #091f30;
    padding: 1rem;
}

section.entryBar>div {
    /* border-left: var(--border-style); */
    text-align: center;
}

section.entryBar>div:first-child {
    border-left: none;
}

div.pure-g.entrySynopsis {
    display: grid;
    grid-template-columns: 0.5fr 2fr;
    column-gap: 2rem;
}


.pure-1 {
    color: #fff !important;
}

.myFeelings{
    width: fit-content;
}

.heartSwitch {
    margin: 0 0.3em;
    display: flex;
    gap: 1rem;
    white-space: nowrap;
    border-radius: 2px;
    border: 1px solid #353330;
    background: #1f1f1f;
}

.heartSwitch a {
    padding: 6px 8px !important;
    color: #fff;
    display: inline-block;
    margin: 0;
    font-size: 1em;
    transition: all 0.2s linear;
}

.heartSwitch a+a {
    border-left: 1px solid #353330;
    margin-left: -3px;
}

.heartSwitch a:hover {
    color: #cccccc;
}

.heartOn:after {
    content: "\f164";
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: var(--fa-display, inline-block);
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.heartOff:after {
    content: "\f165";
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: var(--fa-display, inline-block);
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.heartOn.active:after,
.heartOff.active:after {
    color: #f45c43 !important;
}

h3.manga-roles,
.castaff h3 {
    margin: 1em 0;
    color: #fff !important;
}

.pure-g .pure-1{
    display: grid;
}

.pure-table.noHeader {
    margin-top: -1.3em;
}

.pure-table {
    empty-cells: show;
    border: 1px solid #091f30;
    background-color: #091f30;
}

.pure-table,
table {
    border-collapse: collapse;
    border-spacing: 0;
}

.pure-table a:hover {
    color: #f37055;
}

.pure-table a {
    text-decoration: none;
    color: #fff;
    opacity: 1 !important;
}

.cardGrid5 {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-gap: 1.3vw;
    list-style: none;
    padding: 0;
}

.cardGrid6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 1.3vw;
    list-style: none;
    padding: 0;
}

.cardGrid>* {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto;
    margin: 0 0.8em 1.6em;
    overflow: hidden;
}

.card {
    display: inline-block;
    vertical-align: top;
    max-width: 200px;
    /* margin-bottom: 1.6em; */
    text-align: center;
    background-color: #091f30;
    border-radius: 7px;
}

.card>a {
    display: block;
    position: relative;
}

.card .crop {
    overflow: hidden;
    padding-bottom: 147%;
    position: relative;
    border-radius: 4px;
}

.card .crop img {
    position: absolute;
    display: block;
    min-width: 100%;
    object-fit: cover;
    object-position: 50% 0;
    height: 100%;
    border-radius: 4px;
}

.card h2,
.card h4,
.card .cardName {
    font-size: 0.9em;
}

.card h2,
.card h4,
.card .cardName {
    display: block;
    margin: 0.5em 0 0;
    text-align: center;
    font-size: 0.8em;
    color: #000;
    padding: .3rem;
}


body,
html,
.body-wrap {
    background-color: #000 !important;
}

h1,
h2,
h3,
h4,
h5,
.h1,
.h2,
.h3,
.h4,
.h5 {
    font-weight: 600;
    line-height: 1.2;
    color: #999 !important;
}

body.minimal-reading-layout .entry-header,
body.minimal-reading-layout .c-select-bottom {
    height: auto !important;
}

.container,
.container-lg,
.container-md,
.container-sm,
.container-xl {
    max-width: 1420px;
}

h2.heading {
    font-size: 1.5em;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

body.manga-page .profile-manga .tab-summary .post-content_item {
    display: none !important;
}

i {
    background: unset !important;
    color: #f45c43;
    width: auto;
    height: auto;
    font-size: 18px;
    margin: 0 5px 0 0;
    vertical-align: baseline;
}

.swiper-wrapper .item__badges,
.page-item-detail .item__badges {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 1rem;
    padding: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

/* .swiper-wrapper .item__badges div {
    background: linear-gradient(to right, #eb3349 40%, #f45c43);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
} */

/* .swiper-wrapper .item__badges div a {
    color: #fff;
}

.item__detail .item-tags span.item-tag {
    border-radius: 5px;
    display: inline-flex;
    align-items: stretch;
    margin: 2px;
    position: relative;
} */

.c-blog-post .entry-content .entry-content_wrap .read-container .page-link-hover {
    z-index: 999;
}

.swiper-wrapper .item_content {
    position: relative;
    background: #424242;
    height: 100%;
    display: flex;
    flex-flow: column;
    color: #fff;
    padding: 0 !important;
    border-radius: 5px;
    max-height: 420px;
    min-height: 420px;
}

.swiper-wrapper .item_content .item_thumb {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
    position: relative;
    height: 300px;
    transition: transform .2s;
    /* Animation */
}

.item-tags span {
    background-color: #f45c43 !important;
    padding: 4px;
}

.swiper-wrapper .item__detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    background-color: #181818bf;
    color: #fff;
    padding: 1.5em;
    font-size: 12px;
    font-weight: 400;
    transition: opacity .3s;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 5;
    row-gap: 0.5rem;
}

.swiper-wrapper .item__detail:hover,
.swiper-wrapper .item_thumb:hover .item__detail {
    opacity: 1;
    pointer-events: none; /* Keep none so clicks pass through to image link */
}

.c-btn.c-btn_style-1 {
    /* padding: 15px 40px; */
    border: none;
    color: #fff;
    -webkit-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
    background-color: #fff;
}

.max-2-lines {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3em;
    max-height: fit-content !important;
}

.item__detail .item-by-artist {
    display: flex;
    justify-content: center;
    align-items: center;
}

.item__detail .item-tags {
    padding: 0;
    max-height: fit-content;
    overflow-x: hidden;
    overflow-y: hidden;
}

.item__detail>.item-detail-group {
    z-index: 2;
    position: relative;
    max-width: 100%;
    margin-bottom: .5em;
    display: contents;
}


.swiper-wrapper .item_meta {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 6px 10px;
    background-color: #424242;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border: solid 1px #424242;
    border-top: none;
    width: 100%;
    margin-bottom: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.swiper-button-next,
.swiper-button-prev {
    background-image: none;
    background-color: #181818a8;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    color: var(--link-hover-color);
    opacity: .7;
}

.post_title h3 a {
    color: #fff !important;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    width: 100%;
    transition: bottom .2s;
    z-index: 5;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3em;
    max-height: 2.6em;
}

.item__meta__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 14px;
}

.item__meta__bottom i {
    color: #FFFFFF;
    font-size: 1rem;
}

.item__rating i.rating_current,
.page-item-detail .item__rating i.rating_current_half {
    color: #ffc107;
}

.swiper {
    width: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-manga .tab-summary {
    background-color: #1f1f1f;
    margin-top: 4rem;
    border-radius: 7px;
}

.tab-summary .summary_content_wrap .summary_content {
    background-color: transparent !important;
}

/* Customize single post thumbnail */
.profile-manga .tab-summary .summary_image {
    /* width: 300px !important; */
    overflow: hidden;
    position: relative !important;
    margin: 0 auto !important;
    background: unset !important;
    vertical-align: top !important;
}

@keyframes fadeForLazyload {
    0% {
        opacity: .3;
    }

    100% {
        opacity: 1;
    }
}

a {
    -webkit-transition: color .2s ease, background-color .2s ease;
    -moz-transition: color .2s ease, background-color .2s ease;
    -o-transition: color .2s ease, background-color .2s ease;
    transition: color .2s ease, background-color .2s ease;
}

.tab-summary .summary_content_wrap {
    overflow: hidden;
    display: block !important;
    padding-left: 30px;
    position: relative;
}

.profile-manga .tab-summary .summary_image:hover img {
    -webkit-transition: transform .5s, filter .5s;
    -moz-transition: transform .5s, filter .5s;
    -o-transition: transform .5s, filter .5s;
    transition: transform .5s, filter .5s;
    animation: fadeForLazyload .5s linear;
    -webkit-animation: fadeForLazyload .5s linear;
}

.profile-manga .tab-summary .summary_image a img {
    height: 425px;
    width: 100%;
    object-fit: contain;
}

/* Tablet (481px-768px): Side-by-side with larger thumbnail */
@media (max-width: 768px) and (min-width: 481px) {
    .profile-manga .tab-summary {
        margin-top: 1rem !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 20px !important;
        align-items: flex-start !important;
    }

    .profile-manga .tab-summary .summary_image {
        flex: 0 0 180px !important;
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .profile-manga .tab-summary .summary_image a img {
        height: auto !important;
        width: 100% !important;
        max-height: 280px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        aspect-ratio: 2/3 !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.35) !important;
    }

    .profile-manga .tab-summary .summary_content_wrap {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 200px) !important;
        padding-left: 0 !important;
        overflow: visible !important;
    }

    body.manga-page .profile-manga .tab-summary .summary_content_wrap .summary_content {
        position: relative !important;
        top: 0 !important;
        padding: 0 !important;
    }

    .profile-manga .post-title .h1,
    .profile-manga .post-title h1 {
        font-size: 20px !important;
        line-height: 1.4 !important;
        margin: 0 0 10px 0 !important;
    }

    body.manga-page .profile-manga .post-content_item {
        text-align: left !important;
        margin-bottom: 8px !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .profile-manga .tab-summary .post-rating {
        margin-bottom: 12px !important;
    }

    /* Read Now button styling for tablet */
    .profile-manga .tab-summary .summary_image .btn-read-now {
        display: block !important;
        width: 100% !important;
        margin-top: 12px !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: center !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
        color: #fff !important;
    }

    /* Buttons: horizontal flex on tablet */
    .post-btns {
        display: flex !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
        margin-top: 16px !important;
    }

    .post-btns .c-btn {
        flex: 1 1 auto !important;
        padding: 10px 16px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    .post-btns .c-btn .btn-txt {
        display: inline !important;
    }

    .post-btns .c-btn .btn-sub-txt {
        display: inline !important;
        font-size: 11px !important;
    }

    /* Hide less important elements on mobile to save space */
    .profile-manga .tab-summary .manga-title-badges {
        display: none !important;
    }
}

.profile-manga .post-title .h1 {
    margin-top: 14px;
    font-size: 20px;
    font-size: 22px;
    font-weight: 700 !important;
    line-height: 1.5em !important;
    color: #fff !important;
}

.post-id a:hover {
    color: #fc5844;
}

body.manga-page .profile-manga .post-id {
    margin: 1em 0;
    color: #666;
}

.post-id a {
    color: #fff;
}

.tab-summary .post-rating span {
    color: #fff !important;
}

.profile-manga .post-meta {
    column-gap: 2rem !important;
    margin-bottom: .5rem;
}

body.manga-page .profile-manga a.post-tag:hover {
    filter: brightness(1.1);
}

.profile-manga .post-meta span.post-meta-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.profile-manga .post-tag .tag-name,
.profile-character .post-tag .tag-name {
    padding: 1px 6px;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 5px;
}

.profile-manga .post-tag,
.profile-character .post-tag {
    border-radius: 5px;
    display: inline-flex;
    align-items: baseline !important;
    margin: 4px;
    position: relative;
}

.profile-character .post-tag {
    margin-left: 0 !important;
    color: #fff !important ;
}

.profile-character .tags .post-tag {
    margin-left: 0 !important;
    color: #fff !important ;
    align-items: stretch !important;
}

.profile-manga .post-tag .tag-name,
.profile-character .post-tag .tag-name {
    color: #fff;
    background-color: #4d4d4d;
    padding: 3px 10px;
    font-size: 12px !important;
    font-weight: 600;
    border-radius: 5px;
}

.profile-manga .post-status .post-content_item {
    display: grid !important;
    justify-items: center !important;
}

.tab-summary .post-rating {
    display: grid;
    justify-items: center;
}

.profile-manga .post-tag .tag-count,
.profile-character .post-tag .tag-count {
    color: #fff;
    background: #333;
    padding: 0 6px;
    border-radius: 0 5px 5px 0;
    font-size: 12px !important;
    display: flex;
    align-items: center;
}

.profile-manga .post-meta span.post-tags {
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-left: 4px;
}

.profile-manga .post-meta .tag-name,
.profile-character .post-meta .tag-name {
    color: #fff !important;
    border-radius: 5px 0 0 5px;
}

.c-btn.c-btn_style-1 {
    /* padding: 8px 15px; */
    margin: 0.5em 0;
    border: none;
    color: #fff;
    -webkit-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
    background-color: #f45c43 !important;
}

.profile-manga .post-btns .btn {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.c-btn.c-btn_style-1 i {
    color: #fff !important;
}

.btn-read-now {
    width: 350px;
}

.c-btn.c-btn_style-1 {
    padding: 8px 15px;
    border: none;
    color: #fff;
    -webkit-transition: all .2s ease;
    -moz-transition: all .2s ease;
    -o-transition: all .2s ease;
    transition: all .2s ease;
    background-color: #eb3349;
}

/*Single page chapter reviews section */
.section-rounded,
#widget {
    padding: 25px;
    border-radius: 7px;
    margin: 15px !important;
    overflow: hidden;
    width: -webkit-fill-available;
    background-color: #1f1f1f;
}

#widget-mini {
    padding: 0 0 0 0 !important;
    margin: 0 !important;
    overflow: hidden;
    width: -webkit-fill-available;
    background-color: transparent;
}

ul.chapter-images-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 6px;
    padding: 0;
}

ul.chapter-images-list a {
    color: #fff !important;
}

ul.chapter-images-list .image-wrapper {
    padding-top: 133%;
    position: relative;
    overflow: hidden;
}

ul.chapter-images-list li.chapter-image-item a>.image-wrapper>img {
    transition: filter .3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    object-fit: cover !important;
    height: -webkit-fill-available;
    animation: fadeForLazyload .5s linear;
    -webkit-animation: fadeForLazyload .5s linear;
}

.hidden {
    display: none !important;
}

.c-btn.c-btn_style-3 {
    padding: 12px 25px;
    border: 2px solid #fff;
    border-radius: 25px;
    font-weight: 600;
    color: #fff;
}

.c-btn.c-btn_style-3 i {
    color: #fff;
}

/* Comments */
.wpdiscuz_top_clearing,
.wpdiscuz_clear {
    clear: both;
}

#wpdcom,
#wpdcom .wpd-comment-text {
    color: #fff;
}

#comments {
    max-width: 1100px;
    margin: 50px auto;
    color: #fff;
    font-style: normal;
}

#wpdcom .wpd-form-wrap {
    padding-bottom: 10px;
}

#wpdcom .wpd-form-head {
    border-bottom: 1px solid #fff;
    padding: 7px 2px 9px;
    margin-top: 20px;
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

#wpdcom .wpdiscuz-subscribe-bar {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 0 5px;
    margin-bottom: 0;
}

#wpdcom .wpdiscuz-subscribe-bar form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
}

#wpdcom .wpdiscuz-subscribe-form-intro {
    font-size: 14px;
    display: block;
    padding: 3px 10px 3px 1px;
    line-height: 20px;
    box-sizing: border-box;
    white-space: nowrap;
}

#wpdcom .wpdiscuz-subscribe-form-option {
    flex-grow: 1;
    font-size: 13px;
    display: block;
    padding-right: 5px;
    box-sizing: border-box;
}

#wpdcom .wpdiscuz-subscribe-form-email {
    font-size: 14px;
    display: block;
    padding: 0 5px 0 0;
    box-sizing: border-box;
    width: 30%;
}

#wpdcom .wpdiscuz-subscribe-form-button {
    font-size: 14px;
    display: block;
    box-sizing: border-box;
}

#wpdcom .wpdiscuz-subscribe-bar #wpdiscuz_subscription_button {
    box-shadow: none;
    font-weight: 700;
    letter-spacing: 0;
}

#wpdcom .wpdiscuz-subscribe-form-button input[type=submit] {
    font-size: 16px !important;
    min-height: 29px !important;
    height: 29px !important;
    padding: 1px 3px 5px !important;
    min-width: 40px;
    line-height: 14px !important;
    box-sizing: border-box !important;
    border: 1px solid #ddd;
    clear: both;
    float: none;
    margin: 0;
}

.wpdiscuz_select {
    border-radius: 0;
    border: 1px solid #d3d3d3 !important;
    box-shadow: none !important;
    height: 28px !important;
    padding: 3px 22px 3px 8px !important;
    font-size: 13px !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    outline: 0 !important;
    text-indent: .01px;
    text-overflow: "" !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 20px !important;
    clear: both;
    float: none !important;
    margin: 0 !important;
    background-color: #fff;
}

#wpdcom .wpdiscuz-subscribe-form-email input[type=email] {
    font-size: 13px !important;
    padding: 3px !important;
    width: 100% !important;
    height: auto !important;
    line-height: 20px !important;
    box-sizing: border-box !important;
    clear: both;
    float: none;
    margin: 0;
    background-color: #fff;
}

#wpdcom .wpd-prim-button {
    background-color: #bf26c1;
    color: #FFFFFF;
}

#wpdcom #wpd-threads {
    margin-top: 20px;
}

#wpdcom .wpd-thread-head {
    width: 100%;
    border-bottom: 2px solid #ccc;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
}

#wpdcom .wpd-comment-info-bar {
    border: 1px dashed #cc52ce;
    background: #f9eaf9;
}

#wpdcom .wpd-thread-head .wpd-thread-info {
    color: #555;
    padding: 5px 15px 3px 5px;
    font-weight: 600;
    margin-bottom: -2px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
    line-height: 24px;
}

#wpdcom .wpd-space {
    flex-grow: 1;
}

#wpdcom .wpd-thread-head .wpd-thread-filter {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
}

#wpdcom .wpd-thread-filter .wpdf-reacted {
    color: #ffa600;
    border-bottom-color: #ffa600;
    width: 34px;
}

#wpdcom .wpd-thread-filter .wpdf-hottest {
    color: #fc5844;
    border-bottom-color: #fc5844;
    width: 34px;
}

#wpdcom .wpd-comment-info-bar {
    display: none;
    padding: 10px;
    margin: 20px auto 0;
    flex-direction: row;
    justify-content: space-between;
    font-size: 14px;
}

#wpdcom.wpd-layout-3 .wpd-thread-list {
    padding: 35px 0;
}

#wpdcom .wpd-form-wrap .wpd-login-to-comment {
    text-align: center;
    font-size: 16px;
    padding: 15px 0 0;
}

#wpdcom.wpd-layout-3 .wpd-thread-list {
    padding: 35px 0;
}

.main-col-inner {
    width: 100%;
}

.main-col-inner .entry-header {
    display: grid;
    justify-items: center;
    height: auto;
}

div.grid-item>div.latest.chapters {
    background-color: #030D17;
    /* padding: 0.6rem; */
    border-radius: 4px;
    margin-top: 3px;
}

div.grid-item>div.latest.chapters>div.chapter {
    display: grid;
    row-gap: 5px;
    margin-top: .5rem;
}

div.grid-item>div.latest.chapters>div.chapter {
    background: #262626 !important;
    padding: 5px 10px;
    border-radius: 4px;
    display: grid;
    column-gap: 2px;
    grid-template-columns: 1.3fr 0.7fr;
}

div.grid-item>div.latest.chapters>div.chapter>a {
    font-size: 12px;
    font-size: bold;
    color: #fff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

div.grid-item>div.latest.chapters>div.chapter {
    background-color: #102133 !important;
}

div.grid-item>div.latest.chapters>div.chapter:hover {
    background-color: #102133 !important;
    cursor: pointer;
}

div.grid-item>div.latest.chapters>div.chapter>span {
    color: #fff !important;
}

div.grid-item>div.latest.chapters>div.chapter:hover>span {
    color: #fff !important;
}

/* div.grid-item >div.latest.chapters>div.chapter:nth-child(1)>span {
    color: #fff !important;
} */

div.grid-item>div.latest.chapters>div.chapter>span {
    font-size: 10px !important;
    color: #6f6f6f !important;
    font-weight: 600;
    margin-left: auto;
    margin-top: 3px;
}

.main-col-inner .entry-header .entry-title .item-title {
    font-size: 2.2em;
    text-align: center;
    display: flex;
    column-gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top:40px !important;
}

/* .item-title .post-tag {
    margin: 10px;
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
} */

.item-title .post-tag .tag-count {
    color: #fff;
    background: #333;
    padding: 1px 10px;
    display: flex;
    align-items: center;
}

.c-blog__heading.style-2,
.related-heading,
.widget-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: none !important;
    margin: 0 0 1.5em 0;
    text-transform: none;
    background: unset !important;
    flex-wrap: wrap;
}

.c-blog__heading.style-2>.h4,
.related-heading .heading,
.related-heading a,
.widget-heading a,
.widget-heading>.heading {
    color: #fff;
    font-size: 1.5em;
    margin: 0;
}

.c-blog__heading.style-2>.c-nav-tabs {
    width: 100%;
    margin: 1em 0;
}

.c-blog__heading.style-2>.h4 {
    display: none;
}

.c-blog__heading.style-2>.c-nav-tabs>.c-tabs-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-wrap .c-nav-tabs ul.c-tabs-content {
    border-radius: 5px;
    overflow: hidden;
}

.tab-wrap .c-nav-tabs ul.c-tabs-content {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.tab-wrap .c-nav-tabs ul.c-tabs-content li {
    float: left;
    position: relative;
    display: block;
}

.tab-wrap .c-nav-tabs ul.c-tabs-content li.active a,
.tab-wrap .c-nav-tabs ul.c-tabs-content li:hover a {
    color: inherit;
    background-color: #4d4d4d;
}

.tab-content-wrap {
    margin-top: 32px;
}

.tab-content-wrap .c-tabs-item {
    display: block;
    height: auto;
}

.tab-content-wrap .c-tabs-item .page-content-listing {
    margin-top: 32px !important;
}

.page-listing-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    row-gap: 1rem;
    column-gap: 6px;
}

.page-listing-grid .grid-item {
    position: relative;
    height: 100%;
}

.page-item-detail {
    border-radius: .3em;
    overflow: hidden;
    position: relative;
    margin-bottom: 0 !important;
    /* height: 100%; */
}

.page-item-detail .item__content,
.swiper-slide .item__content {
    position: relative;
    background-color: #0F2231;
    height: 430px;
    display: flex;
    flex-flow: column;
}

.page-item-detail .item__cat[data-cat=manga],
.swiper-slide .item__cat[data-cat=manga] {
    background-color: #f45c43;
}

.page-item-detail .item__badge.item__cat>a,
.swiper-slide .item__badge.item__cat>a {
    color: #fff;
}

.item__censored-badge.item__badge-cen {
    background-size: cover;
    position: relative;
    background-position: center;
}

.item__badge--round {
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    border-radius: 100%;
    font-size: 9px;
    overflow: hidden;
    color: #fff;
    background-color: #00000061;
    text-transform: uppercase;
}

.item__badge--round.item__badge-cen:before {
    z-index: 0;
    content: '';
    background-position: center;
    background: url(https://image.shutterstock.com/image-vector/18-blur-censored-vector-background-260nw-1846563532.jpg);
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    filter: brightness(.5);
    border-radius: 5px;
}

.item__badge--round.item__censored-badge>span,
.item__badge--round.item__uncensored-badge>span {
    position: relative;
    font-weight: 600;
    border-radius: 5px;
    /* padding: 2px 5px; */
    color: #fff;
    font-size: 9px;
}

div.post-title:has(.manga-title-badges) {
    margin-top: 1.5rem;
}

.item__color-badge.item__badge.item__color-badge--rainbow {
    background: linear-gradient(164deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
}

.item__color-badge.item__badge.item__color-badge--bw {
    background: linear-gradient(164deg, rgb(48 48 48) 35%, rgb(189 189 189) 100%);
}

.page-item-detail .item__badge,
.swiper-slide .item__badge {
    padding: 2px 10px;
    border-radius: 5px;
    font-weight: 600;
    color: #fff;
    font-size: 10px;
}

.c-page-content .c-page .c-page__content .page-content-listing .page-listing-item .page-item-detail .item-thumb {
    overflow: visible;
}

.page-listing-grid .grid-item .item__content .item-thumb {
    float: none !important;
    margin: 0 !important;
    padding-top: 140%;
    width: 100% !important;
}

.page-item-detail .item-thumb {
    position: relative;
}

.page-listing-grid .grid-item .item__content .item-thumb img {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0 !important;
    object-fit: cover;
    height: 100%;
}

.c-image-hover img {
    -webkit-transition: transform .5s, filter .5s;
    -moz-transition: transform .5s, filter .5s;
    -o-transition: transform .5s, filter .5s;
    transition: transform .5s, filter .5s;
}

.page-item-detail .item__detail,
.swiper-slide .item__detail {
    position: absolute;
    top: 0;
    width: 100%;
    bottom: 0;
    background-color: #181818bf;
    color: #fff !important;
    padding: 1.5em;
    line-height: 1.5em;
    font-size: 12px;
    font-weight: 400;
    transition: opacity .3s;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 5;
}

.page-item-detail .item__detail:hover,
.swiper-slide .item__detail:hover,
.page-item-detail .item_thumb:hover .item__detail,
.swiper-slide .item_thumb:hover .item__detail {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none; /* Keep none so clicks pass through to image link */
}

/* Only the read button inside the overlay should be clickable */
.item__detail .item-reading-btn,
.item__detail .c-btn {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.font-title a {
    font-weight: 600;
    color: #fff;
}

.page-item-detail .item__detail>.item-detail-group {
    z-index: 2;
    position: relative;
    max-width: 100%;
    margin-bottom: .5em !important;
}

.page-item-detail .item__detail .item-tags {
    padding: 0;
    max-height: 6em;
    overflow-x: hidden;
    overflow-y: auto;
}

.page-item-detail .item__detail .item-tags>span.item-tag {
    border-radius: 5px;
    display: inline-flex;
    align-items: stretch;
    margin: 2px;
    position: relative;
}

.page-item-detail .item__detail .item-tags>span.item-tag>.tag-name {
    color: #fff;
    background-color: #f45c43;
    padding: 1px 4px;
    font-weight: 500;
    border-radius: 4px;
}

.page-item-detail .item__meta {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 6px 12px;
    min-height: 84px;
    height: auto;
}

/* Desktop: Title container - allow 2 lines with proper overflow */
.page-item-detail .item__meta__top {
    flex-shrink: 0;
}

.page-item-detail .item__meta__top .post-title {
    margin: 0;
}

.page-item-detail .item__meta__top .post-title h3,
.page-item-detail .item__meta__top .post-title .h5 {
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.page-item-detail .item__meta__top .post-title h3 a,
.page-item-detail .item__meta__top .post-title .h5 a {
    color: #fff;
    text-decoration: none;
}

.page-item-detail .item__content .post-title {
    color: #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    width: 100%;
    transition: bottom .2s;
    z-index: 5;
}

.page-item-detail .item__meta__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .5em;
    color: #fff;
}

.page-item-detail .item__detail .c-btn.c-btn_style-1.item-reading-btn {
    padding: .9em 1.75em;
    color: #fff;
    background-color: #ce7138;
    margin: 0;
}

.wp-pagenavi {
    margin-top: 48px !important;
    float: none;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

body.text-ui-light .wp-pagenavi a.nextpostslink,
body.text-ui-light .wp-pagenavi span {
    background-color: rgba(45, 45, 45, .3);
}

.manga-tax-terms-listing .listing-type {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.manga-tax-terms-listing .listing-type>a.active {
    font-weight: 700;
}

.manga-tax-terms-listing .listing-type>a {
    margin: 5px 10px;
    color: #fff;
}

.btn,
body.text-ui-light .btn,
body.text-ui-light a:not(:hover) {
    color: #fff;
}

.manga-tax-terms-listing ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin-bottom: 0;
}

.manga-tax-terms-listing .pagination-list ul>li.active {
    background-color: #fc5844;
    border-radius: 15px;
    font-weight: 600;
}

.manga-tax-terms-listing .pagination-list ul>li a {
    color: #fff;
}

.manga-tax-terms-listing .pagination-list ul>li {
    display: inline-block;
    text-transform: uppercase;
    margin: 0 2px;
    font-size: 18px;
    width: 30px;
    height: 30px;
    line-height: 30px;
}

#search-sidebar{
    position: relative !important;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

div.search-content > form{
    border: 3px solid #eb3349;
}

div.search-content > form > input.search-submit{
    border-radius: 0 !important;
}

input:not([type]),
input[type="color"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="text"],
input[type="search"],
textarea,
select {
    background-color: transparent !important;
    /* color: #000 !important; */
    border: none !important;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

#ui-id-1 {
    width: fit-content !important;
    left: 0% !important;
    top: 0% !important;
    translate: 0% 16% !important;
    margin-left: 0 !important;
}
body.search input[type="text"]:nth-child(1){
    color: #000 !important;
}
body.search .page-item-detail .item__content {
    height: auto;
}
body.search .page-item-detail .item__meta {
    justify-content: center;
    height: 84px;
}
body.search .c-blog__heading.style-2{
    display: flex;
    flex-wrap: nowrap;
}
body.search .c-blog__heading.style-2>.h4 {
    width: 100%;
    display: block;
}
input[type="search"]::placeholder{
    color: #000 !important;
}

#blog-post-search > button{
    line-height: 0 !important;
    background-color: #000 !important;
    padding: 0 15px;
    border: none !important;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

#blog-post-search > button > i{
    font-size: 24px !important;
    margin: 0 !important;
    color: #fff !important;
}

.site-header .c-sub-header-nav.with-border {
    border-bottom: none;
}

body.search .c-search-header__wrapper {
    background: none !important;
}

body.search .search-wrap .tab-content-wrap .c-tabs-item .c-tabs-item__content .tab-summary .post-content {
    background-color: #4d4d4d;
}

body.search .search-wrap .tab-content-wrap .c-tabs-item .c-tabs-item__content .tab-summary .post-content .post-content_item .summary-content:not(.release-year) a {
    color: #ffffff;
}

.search-wrap  div.tab-summary  div.post-title h3 a{
    color: #fff !important;
}

.manga-tax-terms-listing input#searchTaxTermInput+.loading-icon {
    position: absolute;
    right: 35px;
    top: 2px;
    color: #fff;
    display: none;
}

.manga-tax-terms-listing input#searchTaxTermInput:placeholder-shown+.loading-icon+.btn {
    display: none;
}

.manga-tax-terms-listing input#searchTaxTermInput+.loading-icon+.btn {
    position: absolute;
    right: 0;
    top: 0;
    padding: 4px 10px;
}

.manga-tax-terms-listing .terms-list {
    background-color: #1f1f1f;
    border-radius: 7px;
    padding: 30px;
    margin: 30px 0;
}

.manga-tax-terms-listing .terms-list ul {
    display: grid;
    grid-template-rows: repeat(60, 1fr);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: column;
    column-gap: .5rem;
}

.manga-tax-terms-listing ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin-bottom: 0;
}

.manga-tax-terms-listing .terms-list ul>li.tag-letter {
    text-transform: uppercase;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 0;
    margin-top: 5px;
    border-radius: 5px;
}

.manga-tax-terms-listing .terms-list ul>li.tag-highlight {
    background: #6a6a6a24;
}

.manga-tax-terms-listing .terms-list ul>li {
    list-style: none;
    padding: 5px 10px;
}

.terms-list .manga-term-item .term-link {
    display: flex;
    align-items: stretch;
    color: #fff;
    background-color: #4d4d4d;
    border-radius: 5px;
    overflow: hidden;
    font-size: 13px;
}

.terms-list .manga-term-item .term-name {
    padding: 0 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.terms-list .manga-term-item .term-link .term-count {
    margin-left: auto;
    color: #fff;
    background: #333;
    padding: 0 5px;
    min-width: 32px;
}

body.minimal-reading-layout .entry-header,
body.minimal-reading-layout .c-select-bottom {
    height: 0;
    overflow: hidden;
    margin: 0;
}

body.reading-manga .wp-manga-nav {
    display: none !important;
}

body.reading-manga .c-select-bottom .entry-header_wrap,
body.reading-manga .entry-header .entry-header_wrap {
    margin-bottom: 14px;
}

.c-breadcrumb-wrapper {
    padding-top: 16px;
}

body.reading-manga .c-select-bottom .entry-header_wrap .action-icon,
body.reading-manga .c-select-bottom .entry-header_wrap .c-breadcrumb,
body.reading-manga .entry-header .entry-header_wrap .action-icon,
body.reading-manga .entry-header .entry-header_wrap .c-breadcrumb {
    display: inline-block;
}

.c-breadcrumb {
    margin: 0 -15px;
}

.c-breadcrumb .breadcrumb {
    margin-bottom: 0;
    background-color: transparent;
    display: inline-block;
}

.breadcrumb {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #e9ecef;
    border-radius: .25rem;
}

.c-breadcrumb .breadcrumb li {
    display: inline-block;
    font-size: 12px;
}

body.reading-manga .c-select-bottom .entry-header_wrap .action-icon,
body.reading-manga .entry-header .entry-header_wrap .action-icon {
    float: right;
}

body.reading-manga .c-select-bottom .entry-header_wrap .action-icon ul,
body.reading-manga .entry-header .entry-header_wrap .action-icon ul {
    margin-bottom: 0;
    margin-top: 3px;
}

.list-inline>li {
    display: inline-block;
    padding-right: 5px;
    padding-left: 5px;
}

body.reading-manga .c-select-bottom .entry-header_wrap .action-icon ul li a,
body.reading-manga .entry-header .entry-header_wrap .action-icon ul li a {
    width: 30px;
    height: 30px;
    display: block;
    text-align: center;
    background-color: #ebebeb;
    position: relative;
    border-radius: 50%;
    color: #eb3349;
    -webkit-transition: all ease-in-out .2s;
    -moz-transition: all ease-in-out .2s;
    -o-transition: all ease-in-out .2s;
    transition: all ease-in-out .2s;
}

body.reading-manga .c-select-bottom .select-view,
body.reading-manga .entry-header .select-view {
    float: left;
    margin: 0 -3.5px;
}

body.reading-manga .c-select-bottom .select-view>*,
body.reading-manga .entry-header .select-view>* {
    display: inline-block;
    padding: 0 3.5px;
}

body.reading-manga .c-select-bottom .c-selectpicker,
body.reading-manga .entry-header .c-selectpicker {
    max-width: 450px;
}

body.reading-manga .c-select-bottom .c-selectpicker label,
body.reading-manga .entry-header .c-selectpicker label {
    margin-bottom: 0;
    position: relative;
}

body.reading-manga .c-select-bottom .select-view>*,
body.reading-manga .entry-header .select-view>* {
    display: inline-block;
    padding: 0 3.5px;
}

body.reading-manga .c-select-bottom .c-selectpicker,
body.reading-manga .entry-header .c-selectpicker {
    max-width: 450px;
}

body.text-ui-light .c-blog-post .entry-content {
    color: #888;
}

body.minimal-reading-layout .entry-content {
    padding: 50px 0;
    min-height: 100vh;
}

.c-blog-post .entry-content .entry-content_wrap {
    line-height: 2.14285714;
}

body.minimal-reading-layout .c-blog-post .entry-content .entry-content_wrap .read-container {
    margin-bottom: 0;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

.c-blog-post .entry-content .entry-content_wrap .read-container {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.c-blog-post .entry-content .entry-content_wrap .read-container .page-link-hover {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
}

.c-blog-post .entry-content .entry-content_wrap .read-container .page-link-hover {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
}

.reading-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #383838;
    color: #fff;
    z-index: 999;
}

.container {
    padding: 0;
}

.container {
    max-width: 1280px;
}

.reading-nav .nav__wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 40px;
}

.reading-nav .nav__left {
    justify-content: flex-start;
}

.reading-nav .nav--flex {
    display: flex;
    align-items: stretch;
    flex: 1 0 0%;
}

.reading-nav .nav__right {
    justify-content: flex-end;
}

.align-items-stretch {
    -ms-flex-align: stretch !important;
    align-items: stretch !important;
}

#readerSettings label {
    margin: 0;
}

#readerSettings input[type=radio],
#readerSettings input[type=checkbox] {
    display: none;
}

#readerSettings input:checked+label {
    background-color: #f45c43;
    color: #fff;
}

#readerSettings input:checked+label i {
    color: #fff;
}

#pageModeSettings {
    position: absolute;
    width: 320px;
    max-width: 90vw;
    background-color: #383838;
    transform: translate(-210px, 30px);
    left: 50%;
    top: 100%;
    border-radius: 5px;
    opacity: 0;
    transition: transform .2s ease-in-out, opacity .2s ease-in-out;
    padding: 10px;
    visibility: hidden;
    margin-top: -1.5rem;
}

#pageModeSettings:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 10px;
    top: 0;
    right: 100px;
    transform: translate(0, -100%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #383838;
}

.page-mode-list {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.page-mode-item:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.page-mode-item {
    flex: 1;
    background-color: #2b2b2b;
    overflow: hidden;
}

.page-mode-list {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

#pageModeSettings label:hover {
    background-color: #232323;
}

#pageModeSettings label {
    padding: 20px 0 15px;
    cursor: pointer;
    width: 100%;
}

.fa-exclamation-circle:before {
    content: "\f06a";
}

.c-blog-post .entry-content .entry-content_wrap .read-container .page-link-hover {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
}

.c-blog-post .entry-content .entry-content_wrap .read-container img {
    user-select: none;
    -moz-user-select: none;
    -webkit-text-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.c-blog-post .entry-content .entry-content_wrap .read-container img {
    user-select: none;
    -moz-user-select: none;
    -webkit-text-select: none;
    -webkit-user-select: none;
    margin: 0 auto 20px;
}

.c-blog-post .entry-content .entry-content_wrap .read-container .page-link-hover.page-next-link-hover {
    left: unset;
    right: 0;
}

.c-blog-post .entry-content .entry-content_wrap .read-container .page-link-hover {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
}

.reading-nav.bottom-nav {
    top: unset !important;
    bottom: 0;
}

.reading-nav .nav__wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 40px;
}

.reading-nav.bottom-nav .nav--flex {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex: 1 0 0%;
}

.reading-nav .chapter-nav {
    display: flex;
    align-items: stretch;
}

.reading-nav .chapter-nav .btn.btn-hidden {
    opacity: 0;
    visibility: hidden;
}

.reading-nav .chapter-nav .btn {
    min-width: 44px;
}

.reading-nav .chapter-nav .btn {
    min-width: 44px;
}

.stat-page-index {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    color: #fff;
}

.page-index-selection {
    opacity: 0;
}

.chapter-page-index #page-picker {
    width: 85px;
    height: 40px;
    cursor: pointer;
    color: #000 !important;
    background-color: #ced4da;
}

.c-blog-post .entry-content .entry-content_wrap .read-container img {
    margin: 0 auto 0px;
}


/* Modal single reading page */
.modal {
    background-color: #000;
}

.modal .modal-dialog {
    background-color: transparent !important;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%) !important;
}

.modal-dialog {
    width: 100%;
    max-width: 480px;
    margin: 80px auto;
    border: none !important;
}

.modal-content {
    background-color: transparent !important;
    width: 100%;
}

.modal-content select,
.modal-content input,
.modal-content textarea {
    background-color: #343434 !important;
    width: 100% !important;
    border-radius: 4px;
}

.modal-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px);
    border-bottom: none;
    padding: 0;
}

div.c-selectpicker label {
    display: inline-block;
    margin-bottom: .5rem;
    width: 100%;
}

.modal-content .modal-footer {
    padding: 20px;
    border-top: none;
    border-bottom: none;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: .75rem;
    border-bottom-right-radius: calc(.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px);
}

.modal-content .modal-footer i {
    color: #fff !important;
}

.modal .modal-content .modal-header .close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9;
    font-size: 35px;
    color: #fff;
}

.modal-content .button.button-primary,
.modal-content .button.button-primary:hover {
    background-color: #f45c43 !important;
    border-color: #f45c43 !important;
}

.modal-content .button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    color: #fff;
    -moz-transition: background-color 200ms ease;
    -o-transition: background-color 200ms ease;
    transition: background-color 200ms ease;
}

.modal-content .button.btn-cancel {
    color: #000;
    background-color: #ccc;
}

.close {
    float: right;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

.manga-search-form {
    display: flex;
}

.btn-search {
    border: none !important;
}

.wp-pagenavi .page.active {
    background-color: #eb3349 !important;
    color: #fff;
}

body.manga-page .profile-manga .tab-summary .post-content_item {
    text-align: center !important;
}

.site-header .c-sub-header-nav {
    background-color: #000 !important;
}

.site-header .c-sub-header-nav .c-sub-nav_wrap .sub-nav_content .sub-nav_list li a {
    color: #fff !important;
}

.site-header .c-sub-header-nav .c-sub-nav_wrap .sub-nav_content .sub-nav_list .menu-item .sub-menu li a {
    color: #000 !important;
}

body.manga-page .profile-manga .tab-summary .post-rating span.votes-count {
    font-size: 18px;
    font-weight: 400;
}

div.chapters-preview.manga-post-chapters {
    width: 100%;
    margin: 1rem;
    padding: 1rem;
    background-color: #1f1f1f !important;
}

div.chapters-preview.manga-post-chapters h1 {
    font-size: 1.28rem;
    line-height: 1.75rem;
    margin-left: 16px !important;
}

div.chapters-preview.manga-post-chapters div.flex {
    display: flex !important;
    column-gap: 2rem;
}

div.chapters-preview.manga-post-chapters ul[role=list] {
    padding: 0;
    list-style: none !important;
}

div.chapters-preview.manga-post-chapters ul[role=list] a img {
    width: 150px;
    height: 100px;
    object-fit: cover;
}

div.chapters-preview.manga-post-chapters ul[role=list] a {
    /* transition-property: color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter; */
    /* transition-property: color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter; */
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
}

div.chapters-preview.manga-post-chapters ul[role=list] li {
    padding: 1rem;
}

div.chapters-preview.manga-post-chapters ul[role=list] li:hover {
    background-color: #262626;
}

div.chapters-preview.manga-post-chapters p.truncate {
    font-weight: 500;
    font-size: .875rem;
    color: #fff;
    line-height: 0;
    margin-top: 1.5rem;
}

div.chapters-preview.manga-post-chapters div.release p {
    color: #737373;
    font-size: .75rem !important;
}

div.chapters-preview.manga-post-chapters ul[role=list] li svg {
    width: 1rem;
}

div.chapters-preview.manga-post-chapters div.chapter-wrapper div.chapter-thumb {
    position: relative;
}

div.chapters-preview.manga-post-chapters div.chapter-wrapper div.chapter-thumb:hover>img {
    opacity: 0.3;
}

div.chapters-preview.manga-post-chapters div.chapter-wrapper div.chapter-thumb:hover>img~div i {
    visibility: visible;
}


div.chapters-preview.manga-post-chapters div.chapter-wrapper div.chapter-thumb i {
    position: absolute;
    visibility: hidden;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

div.chapter-thumbnail-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 100%;
    z-index: 9999;
    translate: -50% -50%;
    background-color: #2c2c2c00;
    padding: 20rem;
    border-radius: 5px;
}

div.chapter-thumbnail-modal .content {
    max-height: 500px;
    overflow-y: scroll;
}

div.chapter-thumbnail-modal .content::-webkit-scrollbar {
    width: 5px;
}

div.chapter-thumbnail-modal .content::-webkit-scrollbar-thumb {
    background-color: #fc5844;
    border-radius: 5px;
}

div.chapter-thumbnail-modal ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    list-style: none;
    padding: 1rem;
}

div.chapter-thumbnail-modal .header {
    display: flex;
    column-gap: 1rem;
    justify-items: center;
    align-items: center;
    background-color: #000;
}

div.chapter-thumbnail-modal div.content {
    background-color: #000;
}

div.chapter-thumbnail-modal .header h1 {
    color: #fff;
}

div.chapter-thumbnail-modal .header i {
    margin-left: auto;
    cursor: pointer;
}

div.chapter-thumbnail-modal div.content li {
    cursor: pointer;
    position: relative;
    background-color: #fff;
    border-radius: 5px;
    padding: 1px;
}


div.chapter-thumbnail-modal div.content li input {
    position: absolute;
}

div.chapter-thumbnail-modal div.content li img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

div.chapter-thumbnail-modal div.content li:hover>img,
div.chapter-thumbnail-modal div.content li.active>img {
    opacity: .3;
}

div.chapter-thumbnail-modal div.content li i {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: 0 -50%;
    color: #f45c43;
}

div.chapter-thumbnail-modal div.content li.custom {
    min-height: 100px
}

div.chapter-thumbnail-modal div.content li.custom i {
    color: #000 !important;
}

div.chapters-preview div.load {
    color: #fff;
    margin: auto !important;
    display: flex;
    column-gap: 1rem;
}

div.chapters-preview div.load a {
    display: flex;
    column-gap: .5rem;
    justify-items: center;
    align-items: center;
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 5px;
}

div.chapter-nav {
    position: relative;
}

a.next-chapter {
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 80%;
    translate: -50% -50%;
}

a.prev-chapter {
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 20%;
    translate: -50% -50%;
}

select.chapters-select {
    background-color: #383838 !important;
    border: none !important;
}


/* ---- Unstick the reader/top bars ---- */
.reading-nav {
  position: static !important;
  top: auto !important; left: auto !important; right: auto !important;
  z-index: auto !important;
}
.reading-nav .nav__wrapper { height: auto !important; }

/* If the layout was pushed down to accommodate a fixed bar, undo it */
div.c-page-content.style-1.reading-content-wrap.chapter-type-manga > div > div > div > div.main-col {
  margin-top: 0 !important;
}

/* ---- Header/menu should not be sticky and should keep flex layout ---- */
.site-header,
.main-header,
.site-header .main-navigation { position: static !important; top: auto !important; }

/* Restore proper header layout (theme expects flex, not inline) */
.main-navigation_wrap {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE OVERHAUL - Modern Mobile-First Design
   ========================================================================== */

/* Mobile: Smart sub-header handling */
@media (max-width: 768px) {
  /* Hide desktop sub-header nav on mobile */
  .site-header .c-sub-header-nav .sub-nav_content .sub-nav_list {
    display: none !important;
  }

  /* Keep the header compact */
  .site-header .c-sub-header-nav {
    padding: 8px 12px !important;
    background: rgba(15, 15, 20, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* Show login/signup buttons horizontally on sub-header */
  .site-header .c-sub-header-nav .c-modal_item {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .site-header .c-sub-header-nav .c-modal_item .btn-active-modal {
    flex: 1 !important;
    max-width: 140px !important;
    text-align: center !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
  }

  /* Sign in - ghost style */
  .site-header .c-sub-header-nav .c-modal_item .btn-active-modal:first-child {
    background: transparent !important;
    border: 1.5px solid rgba(139, 92, 246, 0.5) !important;
    color: #c4b5fd !important;
  }

  /* Sign up - solid style */
  .site-header .c-sub-header-nav .c-modal_item .btn-active-modal:last-child {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important;
    border: none !important;
    color: #fff !important;
  }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
@media (max-width: 768px) {
  /* Create mobile bottom nav spacer to prevent content overlap */
  body {
    padding-bottom: 70px !important;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: linear-gradient(180deg, rgba(15, 15, 25, 0.98) 0%, rgba(10, 10, 15, 1) 100%) !important;
    border-top: 1px solid rgba(139, 92, 246, 0.15) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 9998 !important;
    padding: 0 10px !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    height: 100% !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 10px !important;
    gap: 4px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-bottom-nav a:active,
  .mobile-bottom-nav button:active {
    transform: scale(0.9) !important;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav button.active {
    color: #a78bfa !important;
  }

  .mobile-bottom-nav i,
  .mobile-bottom-nav .nav-icon {
    font-size: 22px !important;
    margin-bottom: 2px !important;
  }

  .mobile-bottom-nav span {
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
  }

  /* Hide the old FAB search when mobile nav is present */
  .site-header .main-navigation .main-navigation_wrap>#search-sidebar {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE SEARCH OVERLAY
   ========================================================================== */
@media (max-width: 768px) {
  /* Search overlay - triggered by mobile nav search button */
  .mobile-search-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 10001 !important;
    display: none !important;
    flex-direction: column !important;
    padding: 20px !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
  }

  .mobile-search-overlay.active {
    display: flex !important;
    opacity: 1 !important;
  }

  .mobile-search-overlay .search-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 24px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-search-overlay .search-container {
    margin-top: 60px !important;
    width: 100% !important;
  }

  .mobile-search-overlay .search-container input {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 18px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 16px !important;
    color: #fff !important;
    outline: none !important;
  }

  .mobile-search-overlay .search-container input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15) !important;
  }

  .mobile-search-overlay .search-container input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
  }

  /* Quick search suggestions */
  .mobile-search-overlay .search-suggestions {
    margin-top: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .mobile-search-overlay .search-suggestions a {
    padding: 8px 16px !important;
    background: rgba(139, 92, 246, 0.15) !important;
    border-radius: 20px !important;
    color: #c4b5fd !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }

  .mobile-search-overlay .search-suggestions a:active {
    background: rgba(139, 92, 246, 0.3) !important;
    transform: scale(0.95) !important;
  }
}

/* ==========================================================================
   MOBILE SIDEBAR DRAWER
   ========================================================================== */
@media (max-width: 768px) {
  /* Hide desktop sidebar completely */
  .c-sidebar:not(.c-top-sidebar):not(.c-top-second-sidebar) {
    display: none !important;
  }

  /* Mobile sidebar drawer */
  .mobile-sidebar-drawer {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.99) 0%, rgba(10, 10, 15, 1) 100%) !important;
    z-index: 10002 !important;
    overflow-y: auto !important;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5) !important;
    padding: 20px !important;
  }

  .mobile-sidebar-drawer.active {
    left: 0 !important;
  }

  .mobile-sidebar-drawer .drawer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .mobile-sidebar-drawer .drawer-header .site-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #a78bfa, #c084fc) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .mobile-sidebar-drawer .drawer-close {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-sidebar-drawer .drawer-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .mobile-sidebar-drawer .drawer-menu li {
    margin-bottom: 4px !important;
  }

  .mobile-sidebar-drawer .drawer-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
  }

  .mobile-sidebar-drawer .drawer-menu a:hover,
  .mobile-sidebar-drawer .drawer-menu a.active {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #c4b5fd !important;
  }

  .mobile-sidebar-drawer .drawer-menu a i {
    font-size: 20px !important;
    width: 24px !important;
    text-align: center !important;
    opacity: 0.7 !important;
  }

  /* Overlay behind drawer */
  .mobile-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 10001 !important;
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
  }

  .mobile-drawer-overlay.active {
    display: block !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   IMPROVED MODAL MOBILE STYLES
   ========================================================================== */
@media (max-width: 768px) {
  /* Hide FAB and bottom nav when modal is open */
  body.modal-open .mobile-bottom-nav {
    z-index: 9997 !important;
  }

  body.modal-open .site-header .main-navigation .main-navigation_wrap>#search-sidebar {
    display: none !important;
  }

  /* Better modal positioning on mobile */
  body.modal-open .modal {
    padding: 0 !important;
  }

  body.modal-open .modal .modal-dialog {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: flex-end !important;
  }

  body.modal-open .modal#form-login .modal-content,
  body.modal-open .modal#form-sign-up .modal-content,
  body.modal-open .modal#form-reset .modal-content {
    border-radius: 24px 24px 0 0 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    animation: slideUpModal 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  @keyframes slideUpModal {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Modal close button better positioned */
  body.modal-open .modal .modal-header .close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    z-index: 10 !important;
  }

  /* Add drag handle indicator */
  body.modal-open .modal .modal-content::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 40px !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
  }

  body.modal-open .modal .modal-body {
    padding-top: 30px !important;
  }
}

/* Landscape mobile - use side modal */
@media (max-width: 768px) and (orientation: landscape) {
  body.modal-open .modal .modal-dialog {
    align-items: center !important;
    padding: 10px !important;
  }

  body.modal-open .modal#form-login .modal-content,
  body.modal-open .modal#form-sign-up .modal-content,
  body.modal-open .modal#form-reset .modal-content {
    border-radius: 20px !important;
    max-height: 95vh !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  body.modal-open .modal .modal-content::before {
    display: none !important;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .mobile-bottom-nav {
    height: 55px !important;
  }

  .mobile-bottom-nav i,
  .mobile-bottom-nav .nav-icon {
    font-size: 20px !important;
  }

  .mobile-bottom-nav span {
    font-size: 9px !important;
  }

  body {
    padding-bottom: 65px !important;
  }

  .site-header .c-sub-header-nav .c-modal_item .btn-active-modal {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
}

/* ==========================================================================
   MOBILE HEADER IMPROVEMENTS
   ========================================================================== */
@media (max-width: 768px) {
  /* Compact main header */
  .site-header .main-navigation.style-1 {
    padding: 10px 15px !important;
  }

  /* Better logo sizing */
  .site-header .main-navigation .c-site-logo img {
    max-height: 36px !important;
    width: auto !important;
  }

  /* Hamburger menu button improved */
  .site-header .main-navigation .c-togle__menu {
    position: relative !important;
    right: 0 !important;
    top: 0 !important;
  }

  .site-header .main-navigation .c-togle__menu .menu_icon__open {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 10px !important;
  }

  .site-header .main-navigation .c-togle__menu .menu_icon__open span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background: #fff !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
  }

  /* Active hamburger animation */
  .site-header .main-navigation .c-togle__menu.active .menu_icon__open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }

  .site-header .main-navigation .c-togle__menu.active .menu_icon__open span:nth-child(2) {
    opacity: 0 !important;
  }

  .site-header .main-navigation .c-togle__menu.active .menu_icon__open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
  }
}

/* ==========================================================================
   DESKTOP HIDING FOR MOBILE COMPONENTS
   ========================================================================== */
@media (min-width: 769px) {
  /* Hide all mobile-specific components on desktop */
  .mobile-bottom-nav,
  .mobile-search-overlay,
  .mobile-sidebar-drawer,
  .mobile-drawer-overlay {
    display: none !important;
    visibility: hidden !important;
  }

  /* Remove mobile body padding on desktop */
  body {
    padding-bottom: 0 !important;
  }
}

/* ==========================================================================
   MOBILE CONTENT AREA IMPROVEMENTS
   ========================================================================== */
@media (max-width: 768px) {
  /* Better content spacing on mobile */
  .c-page-content {
    padding: 0 !important;
  }

  .c-page-content .content-area {
    padding: 10px !important;
  }

  /* Grid adjustments for mobile */
  .page-listing-item .page-item-detail {
    margin-bottom: 8px !important;
  }

  /* CRITICAL: Remove fixed height on mobile to eliminate empty space */
  .page-item-detail .item__content,
  .swiper-slide .item__content {
    height: auto !important;
    min-height: unset !important;
  }

  /* Manga card - compact thumbnail */
  .page-listing-grid .grid-item .item__content .item-thumb {
    padding-top: 140% !important;
  }

  /* Manga card improvements */
  .page-listing-item .item-thumb {
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  /* Compact badges section */
  .page-item-detail .item__badges,
  .swiper-slide .item__badges {
    padding: 4px !important;
    gap: 4px !important;
    grid-template-columns: auto auto auto !important;
  }

  .page-item-detail .item__badge,
  .swiper-slide .item__badge {
    padding: 2px 6px !important;
    font-size: 9px !important;
  }

  /* Compact meta section */
  .page-item-detail .item__meta {
    height: auto !important;
    min-height: unset !important;
    padding: 6px 8px !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
  }

  .page-item-detail .item__content .post-title h3 {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }

  .page-item-detail .item__content .post-title h3 a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .page-item-detail .item__meta__bottom {
    font-size: 10px !important;
    margin-top: 3px !important;
  }

  .page-item-detail .item__meta__bottom i {
    font-size: 10px !important;
    margin-right: 2px !important;
  }

  .page-item-detail .item__meta__bottom > div {
    display: flex !important;
    align-items: center !important;
  }

  .page-listing-item .item-summary h3 a {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  /* Tighter grid gap */
  .page-listing-grid {
    gap: 8px !important;
  }

  /* Reading page mobile improvements */
  body.reading-manga .reading-content {
    padding: 0 !important;
  }

  body.reading-manga .reading-content img {
    margin-bottom: 0 !important;
  }

  /* Better touch scrolling */
  .page-listing-item,
  .c-tabs-item__content,
  .c-blog__content {
    -webkit-overflow-scrolling: touch;
  }

  /* Hide sidebars on manga pages */
  body.manga-page .c-sidebar,
  body.single-wp-manga .c-sidebar {
    display: none !important;
  }

  /* Full width content on mobile */
  body.manga-page .content-area,
  body.single-wp-manga .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* ==========================================================================
   CUSTOM VIDEO PLAYER STYLES
   ========================================================================== */

/* Base video container styles */
.reader-video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.chapter-video-frame {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

/* Plyr video player styling */
.chapter-video-frame .plyr {
  width: 100%;
  height: 100%;
}

.chapter-video-frame .plyr__video-embed {
  width: 100%;
  height: 100%;
}

/* Mobile-specific video player optimizations */
@media (max-width: 768px) {
  /* Full-width video container on mobile - edge to edge */
  .reader-video-container {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .chapter-video-frame {
    border-radius: 0 !important;
  }

  /* Plyr player mobile adjustments */
  .plyr {
    border-radius: 0 !important;
  }
}

/* Landscape orientation on mobile - maximize video */
@media (max-width: 896px) and (orientation: landscape) {
  .reader-video-container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .chapter-video-frame {
    border-radius: 0 !important;
  }

  /* Hide non-essential elements in landscape */
  .reader-header,
  .reader-controls,
  .reader-crumbs {
    display: none !important;
  }

  .reader-bottom {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .reader-shell:hover .reader-bottom,
  .reader-shell:focus-within .reader-bottom {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ==========================================================================
   MOBILE TYPOGRAPHY IMPROVEMENTS
   ========================================================================== */
@media (max-width: 768px) {
  /* Better text sizing */
  body {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  h1, .h1 { font-size: 22px !important; }
  h2, .h2 { font-size: 18px !important; }
  h3, .h3 { font-size: 16px !important; }
  h4, .h4 { font-size: 15px !important; }

  /* Better paragraph spacing */
  p {
    margin-bottom: 1em !important;
  }

  /* Truncate long titles */
  .post-title h1,
  .post-title h2,
  .post-title h3 {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }
}

/* ==========================================================================
   SAFE AREA INSETS (iPhone X+ notch support)
   ========================================================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom) !important;
    height: calc(60px + env(safe-area-inset-bottom)) !important;
  }

  @media (max-width: 768px) {
    body {
      padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    }
  }
}


/* ==========================================================================
   ADDITIONAL UI/UX POLISH - Imported from enhancement system
   ========================================================================== */

/* Smooth page transitions */
.body-wrap {
  animation: pageLoad 0.4s ease-out;
}

@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Enhanced link hover effects */
a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Better image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Smooth hover for all interactive elements */
a, button, .c-btn, .btn, input, select, textarea {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced chapter listing hover */
div.grid-item > div.latest.chapters > div.chapter {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

div.grid-item > div.latest.chapters > div.chapter:hover {
  transform: translateX(4px);
}

/* Improve swiper navigation visibility */
.swiper-button-next,
.swiper-button-prev {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.swiper:hover .swiper-button-next,
.swiper:hover .swiper-button-prev {
  opacity: 1;
}

/* Enhanced tag hover states */
.item-tags span.item-tag {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-tags span.item-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Better focus indicators for forms */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #eb3349;
  outline-offset: 2px;
}

/* Improve rating star hover */
.post-total-rating.allow_vote .ratings_stars,
.user-rating.allow_vote .ratings_stars {
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.post-total-rating.allow_vote .ratings_stars:hover,
.user-rating.allow_vote .ratings_stars:hover {
  transform: scale(1.2);
}

/* Reading mode enhancements */
body.reading-manga .reading-content img {
  transition: opacity 0.3s ease;
}

body.reading-manga .reading-content img:hover {
  opacity: 0.95;
}

/* Chapter navigation smooth transitions */
.reading-nav .btn {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.reading-nav .btn:hover:not(.btn-hidden) {
  transform: scale(1.05);
}

/* Enhanced comment section */
#wpdcom .wpd-comment {
  transition: background-color 0.2s ease;
}

#wpdcom .wpd-comment:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Loading spinner enhancement */
.c-loading {
  position: relative;
}

.c-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #eb3349;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Notification/toast enhancement */
.madara-toast,
.notification {
  animation: slideIn 0.3s ease-out;
}

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

/* Better mobile touch targets */
@media (max-width: 768px) {
  .c-btn,
  .btn,
  a.post-tag,
  .chapter a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Improve tap feedback */
  .c-btn:active,
  .btn:active,
  .page-item-detail:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* Ensure good contrast for text on images */
.item__badges,
.page-item-detail .item__meta,
.swiper-wrapper .item_meta {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Smooth scrollbar for webkit */
* {
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a #1a1a1a;
}

/* Better placeholder styling */
::placeholder {
  color: #6b7280;
  opacity: 1;
}

/* Disable text selection on UI elements */
.c-btn,
.btn,
.item__badges,
.post-tag,
.ratings_stars {
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   SIDEBAR ADS - Side by Side on Desktop
   ========================================================================== */

/* Desktop: Display ads side by side */
@media (min-width: 769px) {
  .c-sidebar.c-top-second-sidebar .code-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
  }

  .c-sidebar.c-top-second-sidebar .code-block > script {
    display: none;
  }

  .c-sidebar.c-top-second-sidebar .code-block > div[data-asg-ins] {
    flex: 0 0 auto;
    margin: 0 !important;
  }

  /* Center the ad container */
  .c-sidebar.c-top-second-sidebar .widget__inner {
    display: flex;
    justify-content: center;
  }

  /* Adjust container width for two ads */
  .c-sidebar.c-top-second-sidebar .c-container {
    max-width: 680px;
  }

  .c-sidebar.c-top-second-sidebar #ai_widget-4 {
    display: flex;
    justify-content: center;
  }
}

/* Mobile: Keep ads stacked (default behavior) */
@media (max-width: 768px) {
  .c-sidebar.c-top-second-sidebar .code-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .c-sidebar.c-top-second-sidebar .code-block > div[data-asg-ins] {
    margin: 0 auto !important;
  }
}

/* ==========================================================================
   MOBILE NAV TABS - Optimized UI/UX
   ========================================================================== */

/* Base styling for nav tabs */
.c-nav-tabs {
  position: relative;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 4px;
}

.c-nav-tabs .c-tabs-content {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.c-nav-tabs .c-tabs-content li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.c-nav-tabs .c-tabs-content li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.c-nav-tabs .c-tabs-content li.active a {
  color: #fff;
  background: #eb3349;
  font-weight: 600;
}

/* Sort toggle button */
.c-nav-tabs .m-orderby-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin-left: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.c-nav-tabs .m-orderby-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.c-nav-tabs .m-orderby-toggle i {
  font-size: 16px;
  margin: 0;
  color: inherit;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .c-nav-tabs {
    flex-direction: row;
    padding: 6px;
    margin: 0 -10px;
    border-radius: 0;
    background: #111;
  }

  .c-nav-tabs .c-tabs-content {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 6px;
    padding-right: 8px;
  }

  .c-nav-tabs .c-tabs-content::-webkit-scrollbar {
    display: none;
  }

  .c-nav-tabs .c-tabs-content li {
    flex-shrink: 0;
  }

  .c-nav-tabs .c-tabs-content li a {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 20px;
    background: #2a2a2a;
  }

  .c-nav-tabs .c-tabs-content li a:active {
    transform: scale(0.95);
    opacity: 0.8;
  }

  .c-nav-tabs .c-tabs-content li.active a {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    box-shadow: 0 2px 8px rgba(235, 51, 73, 0.4);
  }

  /* Sort toggle - sticky on right */
  .c-nav-tabs .m-orderby-toggle {
    flex-shrink: 0;
    min-width: 40px;
    min-height: 40px;
    margin-left: 6px;
    border-radius: 50%;
    background: #2a2a2a;
  }

  .c-nav-tabs .m-orderby-toggle:active {
    transform: scale(0.9);
    background: #eb3349;
    color: #fff;
  }
}

/* Extra small screens */
@media (max-width: 375px) {
  .c-nav-tabs .c-tabs-content li a {
    padding: 8px 12px;
    font-size: 11px;
  }
}

/* ============================================================================
   HOMEPAGE UI/UX REDESIGN - NEW SECTIONS
   ============================================================================ */

/* Section Base Styles */
.front-page-section {
    margin-bottom: 2.5rem;
    padding: 0 15px;
}

.front-page-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.front-page-section .section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.front-page-section .section-icon {
    color: #eb3349;
    flex-shrink: 0;
}

.front-page-section .section-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.front-page-section .section-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: #eb3349;
    text-decoration: none;
    transition: all 0.2s ease;
}

.front-page-section .section-link:hover {
    color: #f45c43;
    gap: 8px;
}

/* ===== CONTINUE READING SECTION ===== */
.continue-reading-section .continue-reading-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.continue-reading-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.continue-reading-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.continue-reading-card .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.continue-reading-card .card-thumbnail {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.continue-reading-card .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.continue-reading-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.continue-reading-card .progress-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.continue-reading-card .progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.continue-reading-card .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #eb3349, #f45c43);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.continue-reading-card .progress-text {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    text-align: right;
}

.continue-reading-card .card-content {
    padding: 0.75rem;
}

.continue-reading-card .card-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.continue-reading-card .resume-chapter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #eb3349;
}

/* ===== TRENDING SECTION ===== */
.trending-section .trending-badge {
    background: linear-gradient(135deg, #eb3349, #f45c43);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(235, 51, 73, 0.5); }
    50% { box-shadow: 0 0 15px rgba(235, 51, 73, 0.8); }
}

.trending-section .trending-icon {
    animation: flame-flicker 1.5s ease-in-out infinite;
}

@keyframes flame-flicker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.trending-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.trending-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}

.trending-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-nav {
    position: absolute;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.carousel-nav:hover {
    background: #eb3349;
    border-color: #eb3349;
    transform: scale(1.1);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.trending-card {
    flex: 0 0 180px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trending-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(235, 51, 73, 0.2);
}

.trending-card .card-thumbnail {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.trending-card .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trending-card:hover .card-thumbnail img {
    transform: scale(1.08);
}

.trending-card .position-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #eb3349, #f45c43);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

.trending-card .new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1dd1a1;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 2;
}

.trending-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trending-card:hover .card-overlay {
    opacity: 1;
}

.trending-card .quick-stats {
    display: flex;
    gap: 10px;
}

.trending-card .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
}

.trending-card .card-content {
    padding: 0.75rem;
}

.trending-card .card-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-card .card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #ffc107;
}

/* ===== RECENTLY VIEWED SECTION ===== */
.recently-viewed-section .clear-history-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recently-viewed-section .clear-history-btn:hover {
    background: rgba(235, 51, 73, 0.1);
    border-color: #eb3349;
    color: #eb3349;
}

.recently-viewed-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.recently-viewed-carousel {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}

.recently-viewed-carousel::-webkit-scrollbar {
    display: none;
}

.recently-viewed-card {
    flex: 0 0 130px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.recently-viewed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.recently-viewed-card .card-thumbnail {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.recently-viewed-card .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recently-viewed-card .time-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.recently-viewed-card .card-content {
    padding: 0.5rem;
}

.recently-viewed-card .card-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== GENRE QUICK ACCESS ===== */
.genre-section .genre-pills-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.genre-section .pills-nav {
    position: absolute;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.genre-section .pills-nav:hover {
    background: #eb3349;
    border-color: #eb3349;
}

.genre-section .pills-prev {
    left: -16px;
}

.genre-section .pills-next {
    right: -16px;
}

.genre-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}

.genre-pills::-webkit-scrollbar {
    display: none;
}

.genre-pill {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pill-color) 20%, #1a1a1a), #1a1a1a);
    border: 1px solid color-mix(in srgb, var(--pill-color) 40%, transparent);
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.genre-pill:hover {
    background: linear-gradient(135deg, var(--pill-color), color-mix(in srgb, var(--pill-color) 70%, #000));
    border-color: var(--pill-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--pill-color) 30%, transparent);
}

.genre-pill .pill-name {
    color: #fff;
}

.genre-pill .pill-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .continue-reading-section .continue-reading-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .continue-reading-section .continue-reading-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trending-card {
        flex: 0 0 160px;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
    }

    .carousel-prev {
        left: -10px;
    }

    .carousel-next {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .front-page-section {
        margin-bottom: 2rem;
    }

    .front-page-section .section-title {
        font-size: 1.15rem;
    }

    .front-page-section .section-link {
        font-size: 0.8rem;
    }

    .continue-reading-section .continue-reading-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .continue-reading-card .card-content {
        padding: 0.5rem;
    }

    .continue-reading-card .card-title {
        font-size: 0.75rem;
    }

    .trending-card {
        flex: 0 0 140px;
    }

    .trending-card .card-title {
        font-size: 0.8rem;
    }

    .recently-viewed-card {
        flex: 0 0 110px;
    }

    .carousel-nav {
        display: none;
    }

    .genre-section .pills-nav {
        display: none;
    }

    .genre-pill {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .front-page-section .section-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .continue-reading-section .continue-reading-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trending-card {
        flex: 0 0 130px;
    }

    .recently-viewed-card {
        flex: 0 0 100px;
    }

    .recently-viewed-card .card-title {
        font-size: 0.7rem;
    }
}


/* ============================================================================
   HOMEPAGE REDESIGN V2 - Modern App-Style Layout
   ============================================================================ */

.homepage-redesign {
    background: #0a0a0a;
    min-height: 100vh;
    padding-bottom: 3rem;
}

.homepage-redesign .container {
    max-width: 1400px;
}

/* Hero Search Section */
.hero-search-section {
    padding: 2rem 0 2.5rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.hero-search-form {
    max-width: 600px;
    margin: 0 auto 1.25rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 4px;
    transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: #eb3349;
    box-shadow: 0 0 0 3px rgba(235, 51, 73, 0.15);
}

.search-input-wrapper .search-icon {
    margin-left: 12px;
    color: #6b7280;
    flex-shrink: 0;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    font-size: 0.95rem;
    color: #f5f5f5;
    outline: none;
}

.hero-search-input::placeholder {
    color: #6b7280;
}

.search-submit-btn {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(235, 51, 73, 0.4);
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.quick-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.quick-stats .stat-item svg {
    color: #eb3349;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters-left {
    display: flex;
    align-items: center;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5f5f5;
    margin: 0;
}

.section-heading svg {
    color: #eb3349;
}

.filters-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #d1d5db;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    background: #222;
    border-color: #333;
}

.sort-btn svg {
    color: #9ca3af;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.sort-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 6px;
    min-width: 160px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.sort-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    display: block;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.sort-option:hover {
    background: #252525;
    color: #fff;
}

.sort-option.active {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #fff;
    font-weight: 600;
}

/* Comics Grid */
.comics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

/* Comic Card */
.comic-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.comic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.comic-card .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-thumbnail {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.comic-card:hover .thumbnail-image {
    transform: scale(1.08);
}

/* Badges */
.badge {
    position: absolute;
    z-index: 10;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 5px;
    backdrop-filter: blur(4px);
}

.badge-new {
    top: 8px;
    left: 8px;
    background: #10b981;
    color: #fff;
}

.badge-rating {
    top: 8px;
    right: 8px;
    background: rgba(235, 51, 73, 0.9);
    color: #fff;
}

.badge-chapters {
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comic-card:hover .card-overlay {
    opacity: 1;
}

.read-btn {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.comic-card:hover .read-btn {
    transform: translateY(0);
}

/* Card Content */
.card-content {
    padding: 0.875rem;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #f5f5f5;
    margin: 0 0 0.5rem 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.comic-card:hover .card-title {
    color: #eb3349;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
}

.meta-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-views svg {
    color: #9ca3af;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.no-results svg {
    color: #4b5563;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.25rem;
    color: #f5f5f5;
    margin-bottom: 0.5rem;
}

.no-results p {
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(235, 51, 73, 0.4);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.pagination-wrapper ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper li {
    display: flex;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #d1d5db;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-wrapper a:hover {
    background: #252525;
    border-color: #333;
    color: #fff;
}

.pagination-wrapper .current {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    border-color: #eb3349;
    color: #fff;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .comics-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .comics-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .comics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.875rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filters-left,
    .filters-right {
        justify-content: center;
    }

    .quick-stats {
        gap: 1rem;
    }

    .card-content {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .comics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hero-search-section {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .quick-stats .stat-item {
        font-size: 0.75rem;
    }

    .search-submit-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .card-title {
        font-size: 0.75rem;
    }

    .card-meta {
        font-size: 0.65rem;
    }

    .pagination-wrapper a,
    .pagination-wrapper span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.8rem;
    }
}



/* ================================================
 * Genre Badges on Manga Cards - Desktop Hover Overlay
 * ================================================*/

/* Tag badge base styling */
.item__tag-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    background-color: #2d9b6a !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.item__tag-badge:hover {
    filter: brightness(1.15) !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Color variations */
.item__tags-overlay .item__tag-badge:nth-child(1),
.item__tags .item__tag-badge:nth-child(1) {
    background-color: #2d9b6a !important; /* Teal/Green */
    border-color: #3fc98a !important;
}

.item__tags-overlay .item__tag-badge:nth-child(2),
.item__tags .item__tag-badge:nth-child(2) {
    background-color: #e07840 !important; /* Orange/Coral */
    border-color: #f5925e !important;
}

.item__tags-overlay .item__tag-badge:nth-child(3),
.item__tags .item__tag-badge:nth-child(3) {
    background-color: #3b82f6 !important; /* Blue */
    border-color: #60a5fa !important;
}

/* Desktop: Tags overlay on thumbnail - HIDDEN (removed per request) */
.item__tags-overlay {
    display: none !important;
}

.item-thumb,
.item_thumb {
    position: relative !important;
    overflow: visible !important;
}

/* Ensure image still clips with rounded corners */
.item-thumb a,
.item_thumb a,
.item-thumb img,
.item_thumb img {
    border-radius: inherit;
}

/* Tags overlay hover states removed - overlay is hidden */

/* Desktop AND Mobile: Hide tags in meta section */
.item__tags--mobile {
    display: none !important;
}

/* Mobile: Show tags in meta section, hide hover overlay */
@media (max-width: 768px) {
    /* Hide hover overlay on mobile */
    .item__tags-overlay {
        display: none !important;
    }

    /* Hide detail overlay on mobile - it blocks image taps */
    .item__detail,
    .swiper-wrapper .item__detail,
    .swiper-slide .item__detail,
    .page-item-detail .item__detail {
        display: none !important;
    }

    /* Hide tags in meta section on mobile (removed per request) */
    .item__tags--mobile {
        display: none !important;
    }
}

/* ==========================================================================
   NHENTAI-STYLE MOBILE HEADER (Site-Wide)
   Clean, compact, dark header design
   ========================================================================== */

/* Site-wide dark header background */
.site-header {
    background: #1a1a1a !important;
}

.site-header .main-navigation,
.site-header .main-navigation.style-1 {
    background: #1a1a1a !important;
}

.site-header .c-sub-header-nav {
    background: #222 !important;
    border-bottom: 1px solid #333 !important;
}

/* ==========================================================================
   MOBILE OFF-CANVAS MENU - Full Redesign
   ========================================================================== */

/* Base off-canvas container - dark theme */
.off-canvas,
.mobile-menu.off-canvas,
.mobile-menu.menu-collapse {
    position: fixed !important;
    top: 0 !important;
    left: -300px !important;
    width: 300px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: linear-gradient(180deg, #1e1e22 0%, #151518 100%) !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: #444 transparent !important;
}

/* Custom scrollbar for webkit */
.off-canvas::-webkit-scrollbar,
.mobile-menu.off-canvas::-webkit-scrollbar {
    width: 4px !important;
}

.off-canvas::-webkit-scrollbar-track,
.mobile-menu.off-canvas::-webkit-scrollbar-track {
    background: transparent !important;
}

.off-canvas::-webkit-scrollbar-thumb,
.mobile-menu.off-canvas::-webkit-scrollbar-thumb {
    background: #444 !important;
    border-radius: 4px !important;
}

/* Active state - slide in */
.off-canvas.active,
.mobile-menu.off-canvas.active,
.mobile-menu.menu-collapse.active {
    left: 0 !important;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6), 2px 0 8px rgba(0, 0, 0, 0.4) !important;
}

/* Close button area */
.off-canvas .close-nav,
.mobile-menu .close-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    background: linear-gradient(180deg, #242428 0%, #1e1e22 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    min-height: 64px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

/* Menu title in close nav */
.off-canvas .close-nav::before,
.mobile-menu .close-nav::before {
    content: 'Menu' !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: 0.5px !important;
}

.off-canvas .close-nav .menu_icon__close,
.mobile-menu .close-nav .menu_icon__close {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: relative !important;
    float: none !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}

.off-canvas .close-nav .menu_icon__close:hover,
.mobile-menu .close-nav .menu_icon__close:hover {
    background: rgba(237, 37, 83, 0.2) !important;
    border-color: rgba(237, 37, 83, 0.4) !important;
}

.off-canvas .close-nav .menu_icon__close span,
.mobile-menu .close-nav .menu_icon__close span {
    position: absolute !important;
    width: 16px !important;
    height: 2px !important;
    background: #fff !important;
    border-radius: 2px !important;
}

.off-canvas .close-nav .menu_icon__close span:first-child,
.mobile-menu .close-nav .menu_icon__close span:first-child {
    transform: rotate(45deg) !important;
    margin: 0 !important;
}

.off-canvas .close-nav .menu_icon__close span:last-child,
.mobile-menu .close-nav .menu_icon__close span:last-child {
    transform: rotate(-45deg) !important;
    margin: 0 !important;
    width: 16px !important;
    height: 2px !important;
}

/* Sign in/up section */
.off-canvas .c-modal_item,
.mobile-menu .c-modal_item {
    display: flex !important;
    gap: 10px !important;
    padding: 16px 20px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    justify-content: stretch !important;
}

.off-canvas .c-modal_item span,
.mobile-menu .c-modal_item span {
    display: block !important;
    flex: 1 !important;
}

.off-canvas .c-modal_sign-in a,
.mobile-menu .c-modal_sign-in a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #ed2553 0%, #c41e3a 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(237, 37, 83, 0.3) !important;
}

.off-canvas .c-modal_sign-in a:hover,
.mobile-menu .c-modal_sign-in a:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(237, 37, 83, 0.4) !important;
}

.off-canvas .c-modal_sign-up a,
.mobile-menu .c-modal_sign-up a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.off-canvas .c-modal_sign-up a:hover,
.mobile-menu .c-modal_sign-up a:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Navigation menu */
.off-canvas nav.off-menu,
.mobile-menu .off-menu {
    background: transparent !important;
    padding: 8px 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.off-canvas ul,
.off-canvas ul.main-navbar,
.mobile-menu .off-menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.off-canvas ul li,
.off-canvas ul.main-navbar li,
.mobile-menu .off-menu ul li {
    margin: 0 !important;
    padding: 0 4px !important;
    border-bottom: none !important;
    float: none !important;
    position: relative !important;
}

.off-canvas ul li a,
.off-canvas ul.main-navbar li a,
.mobile-menu .off-menu ul li a {
    display: flex !important;
    align-items: center !important;
    padding: 14px 16px !important;
    margin: 2px 12px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    letter-spacing: 0.2px !important;
    border-radius: 10px !important;
}

.off-canvas ul li a:hover,
.off-canvas ul li a:focus,
.mobile-menu .off-menu ul li a:hover,
.mobile-menu .off-menu ul li a:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    padding-left: 20px !important;
}

.off-canvas ul li.current-menu-item > a,
.mobile-menu .off-menu ul li.current-menu-item > a {
    color: #ed2553 !important;
    background: rgba(237, 37, 83, 0.12) !important;
    font-weight: 600 !important;
}

/* Menu section divider (optional) */
.off-canvas ul li:first-child::before,
.mobile-menu .off-menu ul li:first-child::before {
    content: 'Navigation' !important;
    display: block !important;
    padding: 12px 16px 8px 28px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.35) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

/* Submenu */
.off-canvas ul li ul.sub-menu,
.off-canvas ul li ul.dropdown-menu,
.mobile-menu .off-menu ul li ul.sub-menu {
    background: rgba(0, 0, 0, 0.15) !important;
    padding: 4px 0 4px 12px !important;
    margin: 4px 12px 4px 24px !important;
    border-radius: 8px !important;
    border-left: 2px solid rgba(237, 37, 83, 0.3) !important;
    display: none;
}

.off-canvas ul li ul.sub-menu li::before,
.mobile-menu .off-menu ul li ul.sub-menu li::before {
    display: none !important;
}

.off-canvas ul li ul.sub-menu li a,
.mobile-menu .off-menu ul li ul.sub-menu li a {
    padding: 10px 14px !important;
    margin: 2px 0 !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.off-canvas ul li ul.sub-menu li a:hover,
.mobile-menu .off-menu ul li ul.sub-menu li a:hover {
    color: #fff !important;
    padding-left: 18px !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

/* Overlay when menu is open - remove the dark mask overlay */
body.open_canvas::before,
body.open_canvas .wrap:after,
body.open_canvas .wrap::after,
body .wrap:after,
body .wrap::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Admin bar adjustment */
body.admin-bar .off-canvas,
body.admin-bar .mobile-menu.off-canvas {
    top: 32px !important;
    height: calc(100vh - 32px) !important;
    height: calc(100dvh - 32px) !important;
}

@media (max-width: 782px) {
    body.admin-bar .off-canvas,
    body.admin-bar .mobile-menu.off-canvas {
        top: 46px !important;
        height: calc(100vh - 46px) !important;
        height: calc(100dvh - 46px) !important;
    }
}

@media (max-width: 600px) {
    body.admin-bar .off-canvas,
    body.admin-bar .mobile-menu.off-canvas {
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    .off-canvas,
    .mobile-menu.off-canvas {
        width: 280px !important;
        left: -280px !important;
    }
}

/* ==========================================================================
   NHENTAI-STYLE MOBILE HEADER - INLINE SEARCH BAR
   Layout: Logo | Search Input | Search Button | Hamburger
   Matches design in mobile-menu.png
   ========================================================================== */
@media (max-width: 768px) {
    /* Main header container - dark background matching design */
    .site-header .main-navigation.style-1 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        gap: 12px !important;
        background: #2d2d2d !important;
        min-height: 60px !important;
    }

    /* Container wrapper - use contents for flat flex layout */
    .site-header .main-navigation .container,
    .site-header .main-navigation .row,
    .site-header .main-navigation .col-md-12,
    .site-header .main-navigation .main-navigation_wrap {
        display: contents !important;
    }

    /* =================================
       LOGO - CartoonPorn icon (compact 48x48)
       ================================= */
    .site-header .main-navigation .wrap_branding,
    .site-header .c-header__top .wrap_branding,
    .main-navigation_wrap .wrap_branding,
    .wrap_branding {
        flex: 0 0 48px !important;
        width: 48px !important;
        max-width: 48px !important;
        min-width: 48px !important;
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .site-header .main-navigation .wrap_branding a.logo,
    .site-header .c-header__top .wrap_branding a.logo,
    .wrap_branding a.logo {
        display: block !important;
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        /* CartoonPorn logo SVG */
        background: url('/wp-content/uploads/2024/01/CartoonPorn-logo.svg') no-repeat center !important;
        background-size: 44px 44px !important;
        flex-shrink: 0 !important;
    }

    /* Hide the actual img tag - we use background SVG */
    .site-header .main-navigation .wrap_branding a.logo img,
    .site-header .c-header__top .wrap_branding a img,
    .wrap_branding a.logo img {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Override parent theme's retina logo styles on mobile */
    .site-header .c-header__top .wrap_branding a {
        background: none !important;
    }

    /* =================================
       SEARCH BAR - main emphasis, takes most space
       ================================= */
    .site-header .main-navigation #search-sidebar,
    .site-header .main-navigation .main-navigation_wrap > #search-sidebar {
        position: static !important;
        display: flex !important;
        flex: 1 1 auto !important;
        order: 2 !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 8px !important;
        padding: 0 !important;
    }

    .site-header .main-navigation #search-sidebar .search-form,
    .site-header .main-navigation #search-sidebar .manga-search-form {
        display: flex !important;
        flex: 1 !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Search input - prominent, takes available space */
    .site-header .main-navigation #search-sidebar .manga-search-field,
    .site-header .main-navigation #search-sidebar input[type="text"] {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        height: 44px !important;
        padding: 0 16px !important;
        background: #3a3a3a !important;
        border: 2px solid #555 !important;
        border-right: none !important;
        border-radius: 8px 0 0 8px !important;
        color: #fff !important;
        font-size: 16px !important;
        outline: none !important;
        -webkit-appearance: none !important;
        transition: border-color 0.2s ease !important;
    }

    .site-header .main-navigation #search-sidebar .manga-search-field:focus,
    .site-header .main-navigation #search-sidebar input[type="text"]:focus {
        border-color: #ed2553 !important;
        background: #444 !important;
    }

    .site-header .main-navigation #search-sidebar .manga-search-field::placeholder {
        color: #999 !important;
    }

    /* Search button - pink/magenta accent */
    .site-header .main-navigation #search-sidebar .btn-search,
    .site-header .main-navigation #search-sidebar button[type="submit"] {
        flex: 0 0 auto !important;
        width: 48px !important;
        height: 44px !important;
        background: linear-gradient(135deg, #ed2553 0%, #d91e4a 100%) !important;
        border: none !important;
        border-radius: 0 8px 8px 0 !important;
        color: #fff !important;
        font-size: 18px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        -webkit-appearance: none !important;
        transition: background 0.2s ease !important;
    }

    .site-header .main-navigation #search-sidebar .btn-search:hover,
    .site-header .main-navigation #search-sidebar .btn-search:active {
        background: linear-gradient(135deg, #ff4d7a 0%, #ed2553 100%) !important;
    }

    /* Hide search toggle and loader */
    .site-header .main-navigation #search-sidebar .search-toggle,
    .site-header .main-navigation #search-sidebar .loader-inner {
        display: none !important;
    }

    /* =================================
       HAMBURGER MENU - clean modern style
       ================================= */
    .site-header .main-navigation .c-togle__menu {
        position: static !important;
        flex: 0 0 auto !important;
        order: 3 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-header .main-navigation .c-togle__menu .menu_icon__open {
        width: 44px !important;
        height: 44px !important;
        background: linear-gradient(135deg, #444 0%, #333 100%) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        border-radius: 8px !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .site-header .main-navigation .c-togle__menu .menu_icon__open:active {
        background: linear-gradient(135deg, #555 0%, #444 100%) !important;
        transform: scale(0.95) !important;
    }

    .site-header .main-navigation .c-togle__menu .menu_icon__open span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background: #fff !important;
        border-radius: 2px !important;
        transition: all 0.2s ease !important;
    }

    .site-header .main-navigation .c-togle__menu .menu_icon__open span:nth-child(2) {
        width: 16px !important;
    }

    /* =================================
       HIDE DESKTOP ELEMENTS
       ================================= */
    .site-header .main-navigation .main-menu,
    .site-header .main-navigation .desktop-menu,
    .site-header .c-sub-header-nav,
    .site-header .c-header__top .search-main-menu {
        display: none !important;
    }
}

/* ==========================================================================
   HIDE TOP SECOND SIDEBAR - Ad moved to entry-header area
   ========================================================================== */
.c-sidebar.c-top-second-sidebar {
    display: none !important;
}

/* ==========================================================================
   SEARCH PAGE - MOBILE OPTIMIZATION & CLEANUP
   ========================================================================== */

/* Search header - clean look */
body.search .c-search-header__wrapper {
    background: #1a1a1a !important;
    padding: 20px 0 !important;
    margin-bottom: 0 !important;
}

body.search .c-search-header__wrapper .search-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

body.search .c-search-header__wrapper .search-form {
    display: flex;
    width: 100%;
}

body.search .c-search-header__wrapper .search-field {
    flex: 1;
    height: 44px;
    padding: 0 15px;
    background: #333 !important;
    border: none !important;
    border-radius: 4px 0 0 4px !important;
    color: #fff !important;
    font-size: 16px;
}

body.search .c-search-header__wrapper .search-field::placeholder {
    color: #888;
}

body.search .c-search-header__wrapper .search-submit {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 20px;
    background: #ed2553 !important;
    border: none !important;
    border-radius: 0 4px 4px 0 !important;
    color: #fff !important;
    font-weight: 600;
    cursor: pointer;
}

body.search .c-search-header__wrapper .search-submit:hover {
    background: #ff4d7a !important;
}

/* Results count */
body.search .c-blog__heading.style-2 {
    background: transparent !important;
    padding: 15px 0 !important;
    margin: 0 !important;
}

body.search .c-blog__heading.style-2 h4 {
    color: #fff !important;
    font-size: 16px !important;
    margin: 0 !important;
}

/* Search results - use same grid as archive pages (manga-list.php template) */
/* Removed conflicting grid styles - search now uses .page-listing-grid like other pages */

/* No results state */
body.search .no-results .results_content {
    text-align: center;
    padding: 60px 20px;
}

body.search .no-results .icon-not-found {
    font-size: 64px;
    color: #444;
    margin-bottom: 20px;
}

body.search .no-results .not-found-content p {
    color: #888;
    font-size: 16px;
}

/* Pagination */
body.search .wp-pagenavi,
body.search .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    flex-wrap: wrap;
}

body.search .wp-pagenavi a,
body.search .wp-pagenavi span,
body.search .pagination a,
body.search .pagination span {
    padding: 8px 14px;
    background: #333;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

body.search .wp-pagenavi .current,
body.search .pagination .current {
    background: #ed2553;
}

/* ==========================================================================
   SEARCH PAGE - Uses same layout as archive pages (manga-list.php)
   Removed conflicting grid overrides - search now shares .page-listing-grid styles
   ========================================================================== */
@media (max-width: 768px) {
    body.search .c-search-header__wrapper {
        padding: 15px 0 !important;
    }

    body.search .c-search-header__wrapper .search-field {
        height: 40px;
        font-size: 14px;
    }

    body.search .c-search-header__wrapper .search-submit {
        height: 40px;
        padding: 0 15px;
        font-size: 14px;
    }
}


/* =============================================
   Modern Sort Bar - Clean & Polished Design
   ============================================= */

.manga-sort-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 20px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.95) 0%, rgba(25, 25, 30, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Recent Pill Button */
.manga-sort-bar .sort-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.manga-sort-bar .sort-pill svg {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.manga-sort-bar .sort-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.manga-sort-bar .sort-pill:hover svg {
    opacity: 1;
}

.manga-sort-bar .sort-pill.active {
    background: rgba(235, 51, 73, 0.15);
    border-color: rgba(235, 51, 73, 0.3);
    color: #fff;
}

.manga-sort-bar .sort-pill.active svg {
    opacity: 1;
    stroke: #eb3349;
}

/* Popular Group */
.manga-sort-bar .sort-popular-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.manga-sort-bar .sort-popular-label {
    color: #666;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Time Controls - Segmented Style */
.manga-sort-bar .sort-time-controls {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 4px;
    gap: 2px;
}

.manga-sort-bar .sort-time-controls a {
    padding: 8px 14px;
    color: #777;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.manga-sort-bar .sort-time-controls a:hover {
    color: #bbb;
    background: rgba(255, 255, 255, 0.05);
}

.manga-sort-bar .sort-time-controls a.active {
    color: #fff;
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    box-shadow: 0 2px 8px rgba(235, 51, 73, 0.35);
}

/* ---- Tablet ---- */
@media (max-width: 768px) {
    .manga-sort-bar {
        flex-direction: column;
        gap: 14px;
        padding: 14px 16px;
        border-radius: 10px;
    }

    .manga-sort-bar .sort-pill {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .manga-sort-bar .sort-popular-group {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .manga-sort-bar .sort-popular-label {
        text-align: center;
    }

    .manga-sort-bar .sort-time-controls {
        width: 100%;
        justify-content: center;
    }

    .manga-sort-bar .sort-time-controls a {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 12px;
    }
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    .manga-sort-bar {
        gap: 12px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .manga-sort-bar .sort-pill {
        padding: 10px 16px;
        font-size: 13px;
    }

    .manga-sort-bar .sort-time-controls {
        padding: 3px;
        gap: 1px;
    }

    .manga-sort-bar .sort-time-controls a {
        padding: 8px 6px;
        font-size: 11px;
    }
}

/* ==========================================================================
   MODERN PAGINATION - Enhanced WP-PageNavi Styling
   ========================================================================== */
.wp-pagenavi {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    padding: 24px 16px !important;
    margin: 0 !important;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.95) 0%, rgba(20, 20, 25, 0.98) 100%) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Page info text */
.wp-pagenavi .pages {
    display: none !important;
}

/* Base button styles for all pagination elements */
.wp-pagenavi a,
.wp-pagenavi span:not(.extend) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #b8b8c0 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    user-select: none !important;
}

/* Hover state for links */
.wp-pagenavi a:hover {
    color: #fff !important;
    background: rgba(237, 37, 83, 0.2) !important;
    border-color: rgba(237, 37, 83, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(237, 37, 83, 0.2) !important;
}

/* Active/current page */
.wp-pagenavi .current,
.wp-pagenavi .page.active {
    color: #fff !important;
    background: linear-gradient(135deg, #ed2553 0%, #c41e3a 100%) !important;
    border-color: #ed2553 !important;
    box-shadow: 0 4px 16px rgba(237, 37, 83, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    cursor: default !important;
}

/* Ellipsis/extend */
.wp-pagenavi .extend {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 44px !important;
    color: #666 !important;
    font-size: 18px !important;
    letter-spacing: 2px !important;
    background: transparent !important;
    border: none !important;
}

/* Navigation arrows - Previous/Next */
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
    min-width: auto !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* First/Last page buttons */
.wp-pagenavi .first,
.wp-pagenavi .last {
    min-width: auto !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* Larger page number links (decade jumps: 10, 20, 30, etc.) */
.wp-pagenavi a.larger {
    background: rgba(237, 37, 83, 0.15) !important;
    border-color: rgba(237, 37, 83, 0.3) !important;
    color: #ed8080 !important;
}

.wp-pagenavi a.larger:hover {
    background: rgba(237, 37, 83, 0.3) !important;
    border-color: rgba(237, 37, 83, 0.5) !important;
    color: #fff !important;
}

/* Hover states for navigation buttons */
.wp-pagenavi .previouspostslink:hover,
.wp-pagenavi .nextpostslink:hover,
.wp-pagenavi .first:hover,
.wp-pagenavi .last:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Active pressed state */
.wp-pagenavi a:active {
    transform: translateY(0) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .wp-pagenavi {
        gap: 5px !important;
        padding: 18px 12px !important;
        border-radius: 12px !important;
    }

    .wp-pagenavi a,
    .wp-pagenavi span:not(.extend) {
        min-width: 40px !important;
        height: 40px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    .wp-pagenavi .extend {
        min-width: 24px !important;
        height: 40px !important;
    }

    .wp-pagenavi .previouspostslink,
    .wp-pagenavi .nextpostslink {
        padding: 0 12px !important;
        font-size: 12px !important;
    }

    .wp-pagenavi .first,
    .wp-pagenavi .last {
        padding: 0 10px !important;
        font-size: 12px !important;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .wp-pagenavi {
        gap: 4px !important;
        padding: 14px 10px !important;
        border-radius: 10px !important;
    }

    .wp-pagenavi a,
    .wp-pagenavi span:not(.extend) {
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
    }

    .wp-pagenavi .extend {
        min-width: 20px !important;
        height: 36px !important;
        font-size: 14px !important;
    }

    .wp-pagenavi .previouspostslink,
    .wp-pagenavi .nextpostslink {
        padding: 0 10px !important;
        font-size: 11px !important;
    }

    .wp-pagenavi .first,
    .wp-pagenavi .last {
        padding: 0 8px !important;
        font-size: 11px !important;
    }

    /* Hide first/last on very small screens to save space */
    .wp-pagenavi .first,
    .wp-pagenavi .last {
        display: none !important;
    }
}

/* Override search page pagination to use same styles */
body.search .wp-pagenavi,
body.search .pagination {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.95) 0%, rgba(20, 20, 25, 0.98) 100%) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.search .wp-pagenavi a,
body.search .wp-pagenavi span {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
}

body.search .wp-pagenavi .current {
    background: linear-gradient(135deg, #ed2553 0%, #c41e3a 100%) !important;
    border-color: #ed2553 !important;
}


/* ==========================================================================
   DOWNLOAD FEATURE STYLES
   ========================================================================== */

/* Download Section on Manga Single Page */
.manga-download-section {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.95) 0%, rgba(20, 20, 25, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.download-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.download-section-header h4 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-section-header h4 i {
    color: #ed2553;
}

.login-required-badge,
.downloads-remaining-badge,
.downloads-limit-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.login-required-badge {
    background: rgba(237, 37, 83, 0.2);
    color: #ed2553;
}

.downloads-remaining-badge {
    background: rgba(45, 155, 106, 0.2);
    color: #2d9b6a;
}

.downloads-limit-badge {
    background: rgba(237, 37, 83, 0.2);
    color: #ed2553;
}

.download-section-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-chapter-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.download-chapter-selector select {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
}

.download-chapter-selector select:focus {
    outline: none;
    border-color: #ed2553;
}

.download-chapter-selector select option {
    background: #1a1a1a;
    color: #fff;
}

.btn-download-chapter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ed2553 0%, #c41e3a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-download-chapter:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff3366 0%, #d4243f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(237, 37, 83, 0.4);
}

.btn-download-chapter:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-download-chapter.is-loading {
    pointer-events: none;
}

.download-info-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.download-info-text i {
    margin-right: 5px;
}

/* Download Page Styles */
.download-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.download-container {
    max-width: 500px;
    width: 100%;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.98) 0%, rgba(20, 20, 25, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.download-info h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-info h1 i {
    color: #ed2553;
}

.download-details {
    margin-bottom: 15px;
}

.download-details .manga-title {
    margin: 0 0 5px 0;
}

.download-details .manga-title a {
    color: #ed2553;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.download-details .manga-title a:hover {
    text-decoration: underline;
}

.download-details .chapter-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.remaining-downloads {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-bottom: 25px;
}

.remaining-downloads strong {
    color: #2d9b6a;
}

/* Ad Container */
.download-ad-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
}

.download-ad-container .ad-label {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Countdown */
.download-countdown {
    margin-bottom: 25px;
}

.download-countdown p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
}

.countdown-number {
    display: inline-block;
    background: #ed2553;
    color: #fff;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
    min-width: 30px;
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ed2553 0%, #ff6b6b 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 1s linear;
}

/* Download Button */
.download-button-container {
    margin-bottom: 20px;
}

.btn-download-now {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #2d9b6a 0%, #228b57 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(45, 155, 106, 0.4);
}

.btn-download-now:hover {
    background: linear-gradient(135deg, #3cb578 0%, #2a9d5e 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(45, 155, 106, 0.5);
    color: #fff;
    text-decoration: none;
}

.download-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-top: 10px;
}

/* Back Link */
.download-back-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.download-back-link a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.download-back-link a:hover {
    color: #ed2553;
}

/* Error Page */
.download-error-page {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.download-error-icon {
    font-size: 60px;
    color: #ed2553;
    margin-bottom: 20px;
}

.download-error-page h1 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 15px;
}

.download-error-page .error-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 400px;
}

.download-error-page .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ed2553 0%, #c41e3a 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-error-page .btn-primary:hover {
    background: linear-gradient(135deg, #ff3366 0%, #d4243f 100%);
    transform: translateY(-2px);
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .download-section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .download-chapter-selector {
        flex-direction: column;
        width: 100%;
    }

    .download-chapter-selector select {
        width: 100%;
    }

    .btn-download-chapter {
        width: 100%;
        justify-content: center;
    }

    .download-container {
        padding: 25px 20px;
    }

    .download-info h1 {
        font-size: 20px;
    }

    .btn-download-now {
        padding: 12px 30px;
        font-size: 16px;
    }
}
