/* Manga profile: a child-theme composition around Madara's native data/hooks. */
body.single-wp-manga.nocturne-library { background: var(--nox-bg); }
body.single-wp-manga.nocturne-library .site-content { overflow: clip; }
.nox-manga-profile { color: var(--nox-text); }
.nox-profile-hero { position: relative; isolation: isolate; overflow: hidden; padding: 42px 0 62px; border: 0; background: var(--nox-bg) !important; }
.nox-profile-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, transparent 49.8%, #ffffff05 50%, transparent 50.2%); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #0008, transparent 82%); pointer-events: none; }
.nox-profile-backdrop { position: absolute; z-index: -2; inset: -48px; background-image: linear-gradient(90deg, var(--nox-bg) 4%, color-mix(in srgb, var(--nox-bg) 77%, transparent) 46%, color-mix(in srgb, var(--nox-bg) 88%, transparent)), var(--nox-profile-poster); background-position: center; background-size: cover; opacity: .38; filter: blur(22px) saturate(.8); transform: scale(1.08); }
.nox-profile-container { position: relative; }
.nox-profile-heading { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 48px; align-items: end; }
.nox-profile-heading .c-breadcrumb-wrapper { grid-column: 1 / -1; margin: 0 0 44px; }
.nox-profile-heading .c-breadcrumb { padding: 0; }
.nox-profile-heading .breadcrumb { margin: 0; padding: 0; }
.nox-profile-heading .breadcrumb li { color: color-mix(in srgb, var(--nox-muted) 84%, transparent); }
.nox-profile-heading .breadcrumb li a { color: color-mix(in srgb, var(--nox-muted) 84%, transparent); }
.nox-profile-heading .breadcrumb li:last-child { color: var(--nox-text); }
.nox-profile-kicker { grid-column: 2; margin: 0 0 11px; color: var(--nox-accent); font-size: 10px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.nox-profile-heading .post-title { grid-column: 2; margin: 0; }
body.single-wp-manga .nox-profile-heading .post-title h1 { max-width: 890px; margin: 0 0 31px; color: var(--nox-text); font-size: clamp(43px, 5.2vw, 76px) !important; font-weight: 760; line-height: .98; letter-spacing: -.058em; text-wrap: balance; }
.nox-profile-heading .manga-title-badges { vertical-align: middle; margin: 0 7px 12px 0; }

body.single-wp-manga .nox-profile-hero .tab-summary { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; margin: 0; padding: 0; border: 0; background: transparent; }
body.single-wp-manga .nox-profile-hero .tab-summary.no-thumb { grid-template-columns: 1fr; }
body.single-wp-manga .nox-profile-hero .summary_image { position: relative; width: 100% !important; margin: 0; overflow: visible; border: 0; border-radius: 8px; background: transparent !important; box-shadow: 0 28px 62px #000b; }
body.single-wp-manga .nox-profile-hero .summary_image::before { content: ""; position: absolute; z-index: -1; inset: 12px -10px -12px 10px; border: 1px solid color-mix(in srgb, var(--nox-accent) 55%, transparent); border-radius: 8px; }
body.single-wp-manga .nox-profile-hero .summary_image a { display: block; }
body.single-wp-manga .nox-profile-hero .summary_image img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 8px; object-fit: cover; }
body.single-wp-manga .nox-profile-hero .summary_content_wrap { width: 100%; min-width: 0; padding: 0; }
body.single-wp-manga.nocturne-library .nox-profile-hero .tab-summary .summary_content { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(235px, .75fr); gap: 12px; min-height: 100%; padding: 0 !important; border: 0; background: transparent !important; }
body.single-wp-manga .nox-profile-hero .summary_content .post-content { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100% !important; }
body.single-wp-manga .nox-profile-hero .summary_content .loader-inner { position: absolute; }
body.single-wp-manga .nox-profile-hero .post-rating { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; min-height: 57px; margin: 0 0 3px; padding: 11px 17px; border: 1px solid #ffffff1b; border-radius: 9px; background: color-mix(in srgb, var(--nox-surface) 83%, transparent); backdrop-filter: blur(12px); }
body.single-wp-manga .nox-profile-hero .post-total-rating,
body.single-wp-manga .nox-profile-hero .user-rating { display: flex; align-items: center; gap: 2px; }
body.single-wp-manga .nox-profile-hero .ratings_stars { margin: 0; font-size: 15px; }
body.single-wp-manga .nox-profile-hero .score { margin-inline-start: 9px; color: var(--nox-text) !important; font-size: 11px; }
body.single-wp-manga .nox-profile-hero .post-content_item { display: grid; grid-template-columns: minmax(72px, .34fr) minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0; margin: 0; padding: 16px 17px; border: 1px solid #ffffff17 !important; border-radius: 9px; background: color-mix(in srgb, var(--nox-surface) 81%, transparent); backdrop-filter: blur(12px); }
body.single-wp-manga .nox-profile-hero .post-content_item:has(.genres-content) { grid-column: 1 / -1; }
body.single-wp-manga .nox-profile-hero .summary-heading { width: auto !important; padding: 0; }
body.single-wp-manga .nox-profile-hero .summary-heading h5 { margin: 2px 0 0; color: var(--nox-muted) !important; font-size: 9px; font-weight: 760; letter-spacing: .11em; line-height: 1.5; text-transform: uppercase; }
body.single-wp-manga .nox-profile-hero .summary-content { width: auto !important; min-width: 0; padding: 0; color: var(--nox-text) !important; font-size: 13px; line-height: 1.65; }
body.single-wp-manga .nox-profile-hero .summary-content a { color: var(--nox-text) !important; }
body.single-wp-manga .nox-profile-hero .summary-content a:hover { color: var(--nox-accent) !important; }
body.single-wp-manga .nox-profile-hero .rate-title { display: none; }
body.single-wp-manga .nox-profile-hero .genres-content { display: flex !important; flex-wrap: wrap; gap: 7px; width: 100% !important; height: auto !important; max-height: none !important; overflow: visible !important; }
body.single-wp-manga .nox-profile-hero .genres-content a { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border: 1px solid #ffffff1a; border-radius: 30px; background: #ffffff08; font-size: 10px; }
body.single-wp-manga .nox-profile-hero .post-status { display: grid !important; grid-template-columns: 1fr; gap: 12px; align-self: start; align-content: start; width: 100% !important; margin: 0; }
body.single-wp-manga .nox-profile-hero .post-status .post-content_item { width: 100% !important; height: auto !important; }
body.single-wp-manga .nox-profile-hero .manga-action { display: flex; align-items: center; box-sizing: border-box; width: 100% !important; min-height: 56px; margin: 0; padding: 12px 17px; border: 1px solid #ffffff17; border-radius: 9px; background: color-mix(in srgb, var(--nox-surface) 81%, transparent); }
body.single-wp-manga .nox-profile-hero .manga-action :is(.count-comment, .add-bookmark) { display: flex; align-items: center; gap: 9px; }
body.single-wp-manga .nox-profile-hero .action_icon a { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: color-mix(in srgb, var(--nox-accent) 13%, transparent); color: var(--nox-accent) !important; }
body.single-wp-manga .nox-profile-hero .action_detail { color: var(--nox-muted) !important; font-size: 10px; }
body.single-wp-manga .nox-profile-hero #init-links { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; width: 100%; margin: 6px 0 0; padding: 0; }
body.single-wp-manga .nox-profile-hero #init-links > span { display: block; }
body.single-wp-manga .nox-profile-hero #init-links .c-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin: 0; padding: 10px 17px; border: 1px solid var(--nox-accent) !important; border-radius: 8px; background: var(--nox-accent) !important; color: #171211 !important; font-size: 12px; font-weight: 780; }
body.single-wp-manga .nox-profile-hero #init-links > span + span .c-btn { background: transparent !important; color: var(--nox-text) !important; }
body.single-wp-manga .nox-profile-hero #init-links .c-btn:hover { border-color: var(--nox-accent-hover) !important; background: var(--nox-accent-hover) !important; color: #171211 !important; }

body.single-wp-manga .nox-profile-content { background: var(--nox-bg); }
body.single-wp-manga .nox-profile-content .content-area { padding: 72px 0 84px; }
body.single-wp-manga .nox-profile-layout { display: flex; align-items: flex-start; }
body.single-wp-manga .nox-profile-layout.sidebar-left { flex-direction: row-reverse; }
body.single-wp-manga .nox-profile-layout > .main-col,
body.single-wp-manga .nox-profile-layout > .sidebar-col { float: none; }
.nox-profile-section { margin: 0 0 56px; }
.nox-profile-section-heading { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.nox-profile-section-heading > span { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid color-mix(in srgb, var(--nox-accent) 56%, var(--nox-line)); border-radius: 50%; color: var(--nox-accent); font-size: 10px; font-weight: 780; }
.nox-profile-section-heading p { margin: 0 0 3px; color: var(--nox-muted); font-size: 9px; font-weight: 720; letter-spacing: .12em; text-transform: uppercase; }
.nox-profile-section-heading h2 { margin: 0; color: var(--nox-text); font-size: clamp(25px, 2.6vw, 34px); font-weight: 730; line-height: 1.1; letter-spacing: -.038em; }
body.single-wp-manga .nox-profile-description .description-summary { padding: 29px 31px; border: 1px solid var(--nox-line); border-radius: 12px; background: var(--nox-surface); }
body.single-wp-manga .nox-profile-description .summary__content { color: color-mix(in srgb, var(--nox-text) 79%, var(--nox-muted)); font-size: 14px; line-height: 1.9; }
body.single-wp-manga .nox-profile-description .summary__content > :last-child { margin-bottom: 0; }
body.single-wp-manga .nox-profile-description .summary__content.show-more::after { background: linear-gradient(transparent, var(--nox-surface)) !important; }
body.single-wp-manga .nox-profile-description .c-content-readmore { position: relative; margin-top: 15px; text-align: start; }
body.single-wp-manga .nox-profile-description .content-readmore { min-height: 38px; padding: 7px 14px; border: 1px solid var(--nox-line); border-radius: 6px; color: var(--nox-accent); font-size: 11px; }

.nox-profile-chapters { position: relative; }
.nox-chapter-tools { display: flex; align-items: center; gap: 13px; margin: 0 58px 18px 0; }
.rtl .nox-chapter-tools { margin: 0 0 18px 58px; }
.nox-chapter-search-wrap { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; min-height: 44px; margin: 0; padding: 0 13px; border: 1px solid var(--nox-line); border-radius: 8px; background: var(--nox-surface); color: var(--nox-muted); }
body.single-wp-manga .nox-chapter-search-wrap input[type=search] { width: 100%; height: 42px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--nox-text); font-size: 12px; box-shadow: none; }
body.single-wp-manga .nox-chapter-search-wrap input[type=search]::placeholder { color: var(--nox-muted); opacity: 1; }
.nox-chapter-search-wrap:focus-within { border-color: var(--nox-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nox-accent) 13%, transparent); }
.nox-chapter-count { flex: 0 0 auto; color: var(--nox-muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.nox-chapter-empty { margin: 18px 0; padding: 20px; border: 1px dashed var(--nox-line); border-radius: 8px; color: var(--nox-muted); text-align: center; }
body.single-wp-manga .nox-profile-chapters .nox-chapter-scroll { max-height: min(70vh, 760px) !important; overflow-x: hidden !important; overflow-y: auto !important; padding-inline-end: 8px !important; scrollbar-color: var(--nox-accent) var(--nox-surface); scrollbar-gutter: stable; scrollbar-width: thin; overscroll-behavior: contain; }
body.single-wp-manga .nox-profile-chapters .nox-chapter-scroll:focus-visible { outline: 2px solid var(--nox-accent); outline-offset: 5px; }
body.single-wp-manga .nox-profile-chapters .nox-chapter-scroll::-webkit-scrollbar { width: 9px; }
body.single-wp-manga .nox-profile-chapters .nox-chapter-scroll::-webkit-scrollbar-track { border-radius: 999px; background: var(--nox-surface); }
body.single-wp-manga .nox-profile-chapters .nox-chapter-scroll::-webkit-scrollbar-thumb { border: 2px solid var(--nox-surface); border-radius: 999px; background: var(--nox-accent); }
body.single-wp-manga .nox-profile-chapters.nox-filtering .listing-chapters_wrap .wp-manga-chapter { display: flex !important; }
body.single-wp-manga .nox-profile-chapters.nox-filtering .listing-chapters_wrap .wp-manga-chapter[hidden] { display: none !important; }
body.single-wp-manga .nox-profile-chapters .c-chapter-readmore { display: none !important; }
body.single-wp-manga .nox-profile-chapters > .c-blog__heading,
body.single-wp-manga .nox-profile-chapters #manga-chapters-holder > .c-blog__heading { position: absolute; top: 0; inset-inline-end: 0; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; background: transparent; }
body.single-wp-manga .nox-profile-chapters > .c-blog__heading h2,
body.single-wp-manga .nox-profile-chapters #manga-chapters-holder > .c-blog__heading h2 { display: none; }
body.single-wp-manga .nox-profile-chapters > .c-blog__heading .btn-reverse-order,
body.single-wp-manga .nox-profile-chapters #manga-chapters-holder .btn-reverse-order { display: grid; place-items: center; width: 42px; height: 42px; margin: 0; border: 1px solid var(--nox-line); border-radius: 50%; background: var(--nox-raised); color: var(--nox-muted); }
body.single-wp-manga .nox-profile-chapters > .c-blog__heading .btn-reverse-order:hover,
body.single-wp-manga .nox-profile-chapters #manga-chapters-holder .btn-reverse-order:hover { border-color: var(--nox-accent); color: var(--nox-accent); }
body.single-wp-manga .nox-profile-chapters .page-content-listing.single-page,
body.single-wp-manga .nox-profile-chapters .listing-chapters_wrap { margin: 0; padding: 0; border: 0; background: transparent; }
body.single-wp-manga .nox-profile-chapters .listing-chapters_wrap > ul.main.version-chap::after { content: none !important; display: none !important; }
body.single-wp-manga .nox-profile-chapters .listing-chapters_wrap > ul.main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; }
body.single-wp-manga .nox-profile-chapters .wp-manga-chapter { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; min-height: 59px; margin: 0; padding: 8px 17px !important; border: 1px solid var(--nox-line) !important; border-radius: 8px; background: var(--nox-surface); transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
body.single-wp-manga .nox-profile-chapters .listing-chapters_wrap > ul.main.version-chap li.wp-manga-chapter::after { content: none !important; display: none !important; }
body.single-wp-manga .nox-profile-chapters .wp-manga-chapter:hover { border-color: color-mix(in srgb, var(--nox-accent) 58%, var(--nox-line)) !important; background: var(--nox-raised); transform: translateY(-1px); }
body.single-wp-manga .nox-profile-chapters .wp-manga-chapter > a { position: relative; z-index: 1; min-width: 0; padding: 9px 0; overflow: hidden; color: var(--nox-text); font-size: 12px; font-weight: 680; text-decoration: none !important; text-overflow: ellipsis; white-space: nowrap; }
body.single-wp-manga .nox-profile-chapters .listing-chapters_wrap > ul.main.version-chap li.wp-manga-chapter .chapter-release-date { position: static !important; inset: auto !important; flex: 0 0 auto; transform: none !important; }
body.single-wp-manga .nox-profile-chapters .chapter-release-date i { color: var(--nox-muted); font-size: 9px; font-style: normal; white-space: nowrap; }
body.single-wp-manga .nox-profile-chapters .c-chapter-readmore { margin: 18px 0 0; }
body.single-wp-manga .nox-profile-chapters .chapter-readmore { display: flex; justify-content: center; width: 100%; min-height: 46px; padding: 11px 18px; border: 1px solid var(--nox-line); border-radius: 8px; background: var(--nox-raised); color: var(--nox-text); font-size: 11px; font-weight: 700; }
body.single-wp-manga .nox-profile-sidebar { position: sticky; top: 30px; }
body.single-wp-manga .nox-profile-sidebar .widget { border-radius: 10px; background: var(--nox-surface); }
body.single-wp-manga :is(#manga-discussion, .related-manga, .c-tabs-item__content) { border-color: var(--nox-line); }

@media (max-width: 991px) {
    .nox-profile-heading { grid-template-columns: 205px minmax(0, 1fr); column-gap: 36px; }
    body.single-wp-manga .nox-profile-hero .tab-summary { grid-template-columns: 205px minmax(0, 1fr); gap: 36px; }
    body.single-wp-manga.nocturne-library .nox-profile-hero .tab-summary .summary_content { grid-template-columns: 1fr; }
    body.single-wp-manga .nox-profile-hero .summary_content .post-content,
    body.single-wp-manga .nox-profile-hero .post-status { grid-template-columns: 1fr; }
    body.single-wp-manga .nox-profile-hero .post-content_item:has(.genres-content),
    body.single-wp-manga .nox-profile-hero .post-rating,
    body.single-wp-manga .nox-profile-hero #init-links { grid-column: auto; }
    body.single-wp-manga .nox-profile-chapters .listing-chapters_wrap > ul.main { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .nox-profile-hero { padding: 24px 0 42px; }
    .nox-profile-heading { display: block; }
    .nox-profile-heading .c-breadcrumb-wrapper { margin-bottom: 31px; }
    .nox-profile-kicker { margin-bottom: 8px; }
    body.single-wp-manga .nox-profile-heading .post-title h1 { margin-bottom: 25px; font-size: clamp(36px, 12vw, 55px) !important; line-height: 1.04; }
    body.single-wp-manga .nox-profile-hero .tab-summary { grid-template-columns: 1fr; gap: 33px; }
    body.single-wp-manga .nox-profile-hero .summary_image { width: min(58vw, 220px) !important; justify-self: center; }
    body.single-wp-manga .nox-profile-hero .summary_content .post-content { grid-template-columns: 1fr; }
    body.single-wp-manga .nox-profile-hero .post-content_item { grid-template-columns: minmax(68px, .3fr) minmax(0, 1fr); padding: 14px; }
    body.single-wp-manga .nox-profile-hero #init-links { grid-template-columns: 1fr; }
    body.single-wp-manga .nox-profile-content .content-area { padding: 46px 0 60px; }
    body.single-wp-manga .nox-profile-layout { display: block; }
    body.single-wp-manga .nox-profile-description .description-summary { padding: 22px 20px; }
    .nox-profile-section { margin-bottom: 44px; }
    .nox-profile-section-heading { margin-bottom: 19px; }
    .nox-chapter-tools,
    .rtl .nox-chapter-tools { align-items: stretch; flex-direction: column; gap: 9px; margin: 0 0 16px; }
    .nox-chapter-search-wrap { flex-basis: auto; width: 100%; }
    .nox-chapter-count { padding-inline: 3px; }
    body.single-wp-manga .nox-profile-chapters .wp-manga-chapter { min-height: 56px; padding: 7px 13px !important; }
    body.single-wp-manga .nox-profile-chapters .nox-chapter-scroll { max-height: min(64vh, 560px) !important; padding-inline-end: 5px !important; }
    body.single-wp-manga .nox-profile-sidebar { position: static; }
}

@media (max-width: 420px) {
    body.single-wp-manga .nox-profile-hero .post-content_item { grid-template-columns: 1fr; gap: 5px; }
    body.single-wp-manga .nox-profile-hero .post-status { grid-template-columns: 1fr; }
    body.single-wp-manga .nox-profile-chapters .wp-manga-chapter { align-items: flex-start; flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .nox-profile-chapters .wp-manga-chapter { transition: none !important; }
}

.rtl .nox-profile-kicker,
.rtl .nox-profile-section-heading p { letter-spacing: 0; }
