:root {

    /* =====================================================
       HOMEPAGE-ALIGNED DESIGN SYSTEM
    ====================================================== */

    --bg: #08090d;
    --bg-soft: #0d0f15;
    --surface: #11131b;
    --surface-light: #171a24;

    --text: #f7f7fa;
    --text-soft: #c7c9d2;
    --text-muted: #858996;
    --text-faint: #555966;

    --pink: #ec4899;
    --pink-light: #f472b6;
    --purple: #8b5cf6;
    --orange: #ff7a59;
    --blue: #60a5fa;
    --green: #4ade80;

    --border: rgba(255, 255, 255, 0.075);
    --border-light: rgba(255, 255, 255, 0.12);

    --container: 1380px;

    --font:
        "Plus Jakarta Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
}


/* =====================================================
   RESET
====================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(236, 72, 153, 0.055),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 8%,
            rgba(139, 92, 246, 0.055),
            transparent 26%
        ),
        var(--bg);

    color: var(--text);

    font-family: var(--font);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* =====================================================
   CONTAINER
====================================================== */

.page-container {
    width: min(
        var(--container),
        calc(100% - 64px)
    );

    margin-inline: auto;
}


/* =====================================================
   NAVBAR
====================================================== */

.title-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 68px;

    border-bottom: 1px solid var(--border);

    background:
        rgba(8, 9, 13, 0.78);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.navbar-inner {
    width: min(
        var(--container),
        calc(100% - 64px)
    );

    height: 100%;
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: -0.4px;
}

.brand-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--pink),
            var(--purple)
        );

    box-shadow:
        0 0 18px rgba(236, 72, 153, 0.55);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;

    margin-left: 80px;
}

.nav-links a {
    color: var(--text-muted);

    font-size: 12px;
    font-weight: 600;

    transition:
        color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon,
.account-button {
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    background: rgba(255, 255, 255, 0.025);

    color: var(--text-soft);

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.nav-icon {
    width: 38px;
    border-radius: 50%;
}

.account-button {
    gap: 8px;

    padding: 0 14px;

    border-radius: 9px;

    font-size: 11px;
    font-weight: 600;
}

.nav-icon:hover,
.account-button:hover {
    color: var(--text);
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.055);
}


/* =====================================================
   HERO
====================================================== */

.title-hero {
    position: relative;
    overflow: hidden;

    min-height: 670px;

    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 72% 35%,
            rgba(236, 72, 153, 0.12),
            transparent 25%
        ),
        radial-gradient(
            circle at 84% 70%,
            rgba(139, 92, 246, 0.09),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #0a0b10 0%,
            #0b0d12 100%
        );
}

.hero-inner {
    position: relative;
    z-index: 4;

    width: min(
        var(--container),
        calc(100% - 64px)
    );

    min-height: 670px;

    margin-inline: auto;

    display: grid;

    grid-template-columns:
        285px
        minmax(0, 1fr)
        175px;

    align-items: center;

    gap: 54px;

    padding: 76px 0;
}


/* Ambient background */

.hero-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;
}

.hero-glow-one {
    width: 420px;
    height: 420px;

    top: 60px;
    right: 14%;

    background:
        rgba(236, 72, 153, 0.10);
}

.hero-glow-two {
    width: 300px;
    height: 300px;

    right: 4%;
    bottom: -100px;

    background:
        rgba(139, 92, 246, 0.08);
}


/* Abstract art background */

.hero-background-art {
    position: absolute;
    inset: 0;

    opacity: 0.55;

    pointer-events: none;
}

.art-shape {
    position: absolute;

    border-radius: 30px;

    transform: rotate(-12deg);

    filter: blur(0.2px);
}

.art-shape-one {
    width: 330px;
    height: 510px;

    right: 6%;
    top: 45px;

    background:
        linear-gradient(
            135deg,
            rgba(236, 72, 153, 0.09),
            rgba(139, 92, 246, 0.035)
        );

    border:
        1px solid rgba(255, 255, 255, 0.045);

    box-shadow:
        0 0 120px rgba(236, 72, 153, 0.08);
}

.art-shape-two {
    width: 220px;
    height: 360px;

    right: 22%;
    top: 180px;

    background:
        linear-gradient(
            150deg,
            rgba(255, 122, 89, 0.07),
            rgba(236, 72, 153, 0.035)
        );

    border:
        1px solid rgba(255, 255, 255, 0.035);

    transform:
        rotate(17deg);
}

.art-shape-three {
    width: 150px;
    height: 240px;

    right: 2%;
    bottom: 20px;

    background:
        rgba(139, 92, 246, 0.045);

    transform:
        rotate(24deg);
}


/* COVER */

.cover-column {
    position: relative;
}

.cover-art {
    position: relative;

    aspect-ratio: 0.68;

    overflow: hidden;

    border-radius: 13px;

    border:
        1px solid rgba(255, 255, 255, 0.13);

    background:
        linear-gradient(
            145deg,
            #222534,
            #151724 42%,
            #251928 100%
        );

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.45),
        0 0 50px rgba(236, 72, 153, 0.08);

    transform:
        rotate(-1deg);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.cover-art:hover {
    transform:
        rotate(0deg)
        translateY(-5px);

    box-shadow:
        0 45px 100px rgba(0, 0, 0, 0.55),
        0 0 65px rgba(236, 72, 153, 0.13);
}

.cover-art::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 30% 22%,
            rgba(244, 114, 182, 0.32),
            transparent 26%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(139, 92, 246, 0.26),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            transparent,
            rgba(255, 255, 255, 0.035)
        );
}

.cover-art::after {
    content: "";

    position: absolute;

    left: 12%;
    right: 12%;
    bottom: 12%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent
        );
}

.cover-art-light {
    position: absolute;

    width: 190px;
    height: 190px;

    top: 16%;
    left: 50%;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.12),
            transparent 65%
        );

    filter: blur(8px);
}

.cover-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex-direction: column;

    gap: 8px;

    padding-bottom: 32px;

    color: rgba(255, 255, 255, 0.38);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}

.cover-placeholder i {
    font-size: 24px;
    color: rgba(244, 114, 182, 0.55);
}

.cover-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 17px;

    color: var(--text-faint);

    font-size: 9px;
}

.cover-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cover-meta i {
    color: var(--pink-light);
}


/* HERO CONTENT */

.hero-content {
    position: relative;
    z-index: 5;

    max-width: 760px;
}

.title-label {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 20px;

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.7px;
}

.type-badge {
    padding: 5px 8px;

    border-radius: 5px;

    background:
        rgba(236, 72, 153, 0.12);

    color: var(--pink-light);

    font-size: 9px;
}

.status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 13px rgba(74, 222, 128, 0.55);
}

.hero-content h1 {
    max-width: 820px;

    margin: 0;

    font-size:
        clamp(46px, 5.5vw, 82px);

    line-height: 0.98;

    letter-spacing: -3.8px;

    font-weight: 800;
}

.hero-content h1 span {
    display: block;

    color: var(--pink-light);
}

.alt-title {
    margin: 15px 0 20px;

    color: var(--text-muted);

    font-size: 12px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 25px;
}

.hero-tags span {
    padding: 7px 10px;

    border:
        1px solid var(--border);

    border-radius: 7px;

    color: var(--text-soft);

    background:
        rgba(255, 255, 255, 0.025);

    font-size: 10px;
    font-weight: 600;
}

.hero-description {
    max-width: 650px;

    margin: 0;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.85;
}

.hero-credits {
    display: flex;
    gap: 42px;

    margin-top: 25px;
}

.hero-credits div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-credits span {
    color: var(--text-muted);

    font-size: 9px;

    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.hero-credits strong {
    color: var(--text);

    font-size: 12px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 29px;
}

.read-button,
.secondary-button,
.round-action {
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.read-button {
    gap: 9px;

    padding: 0 19px;

    background:
        linear-gradient(
            135deg,
            var(--pink),
            #d946ef
        );

    color: white;

    font-size: 11px;
    font-weight: 800;

    box-shadow:
        0 12px 30px rgba(236, 72, 153, 0.18);
}

.read-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 36px rgba(236, 72, 153, 0.25);
}

.secondary-button {
    gap: 8px;

    padding: 0 16px;

    border:
        1px solid var(--border-light);

    background:
        rgba(255, 255, 255, 0.035);

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 600;
}

.secondary-button:hover {
    background:
        rgba(255, 255, 255, 0.07);

    color: white;
}

.round-action {
    width: 44px;

    border:
        1px solid var(--border-light);

    background:
        rgba(255, 255, 255, 0.035);

    color: var(--text-soft);
}

.round-action:hover {
    color: var(--pink-light);

    background:
        rgba(236, 72, 153, 0.08);
}


/* CONTINUE */

.continue-box {
    max-width: 650px;

    margin-top: 27px;

    padding:
        16px 17px 14px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.025);

    backdrop-filter: blur(12px);
}

.continue-top,
.continue-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.continue-top > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.continue-label {
    color: var(--pink-light);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.continue-top strong {
    font-size: 11px;
}

.continue-percent {
    color: var(--text-muted);
    font-size: 10px;
}

.progress-track {
    height: 3px;

    margin: 13px 0 10px;

    overflow: hidden;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.07);
}

.progress-track span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--pink),
            var(--purple)
        );
}

.continue-bottom {
    color: var(--text-faint);

    font-size: 9px;
}

.continue-bottom a {
    color: var(--text-soft);

    font-weight: 700;
}

.continue-bottom a i {
    margin-left: 4px;

    color: var(--pink-light);
}


/* RATING */

.hero-rating {
    position: relative;
    z-index: 5;

    align-self: end;

    padding-bottom: 30px;

    text-align: left;
}

.rating-number {
    font-size: 58px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: -3px;
}

.rating-stars {
    display: flex;
    gap: 3px;

    margin-top: 11px;

    color: #fbbf24;

    font-size: 11px;
}

.hero-rating > strong {
    display: block;

    margin-top: 8px;

    font-size: 12px;
}

.hero-rating > span {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 9px;
}

.rating-divider {
    height: 1px;

    margin: 19px 0;

    background:
        var(--border);
}

.rating-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-mini div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.rating-mini span {
    color: var(--text-muted);

    font-size: 9px;
}

.rating-mini strong {
    font-size: 10px;
}


/* =====================================================
   QUICK STATS
====================================================== */

.quick-stats {
    border-bottom: 1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.012);
}

.quick-stats .page-container {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);
}

.quick-stat {
    min-height: 91px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 0 20px;

    border-right:
        1px solid var(--border);
}

.quick-stat:first-child {
    padding-left: 0;
}

.quick-stat:last-child {
    border-right: 0;
}

.quick-stat > i {
    width: 33px;
    height: 33px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        rgba(236, 72, 153, 0.08);

    color: var(--pink-light);

    font-size: 12px;
}

.quick-stat div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-stat span {
    color: var(--text-muted);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: 0.9px;
}

.quick-stat strong {
    font-size: 11px;
}


/* =====================================================
   CONTENT
====================================================== */

.content-area {
    padding:
        90px 0 120px;
}

.content-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 85px;
}

.main-content {
    min-width: 0;
}

.content-section {
    margin-bottom: 95px;
}

.section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 28px;
}

.section-kicker {
    display: block;

    margin-bottom: 7px;

    color: var(--pink-light);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.section-top h2 {
    margin: 0;

    font-size: 27px;

    letter-spacing: -1px;

    font-weight: 800;
}

.section-description {
    margin: 5px 0 0;

    color: var(--text-muted);

    font-size: 10px;
}


/* STORY */

.story-content {
    max-width: 790px;

    padding-left: 22px;

    border-left:
        2px solid rgba(236, 72, 153, 0.24);
}

.story-content p {
    margin: 0 0 18px;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.9;
}

.story-content p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   CHAPTERS
====================================================== */

.chapter-section-top {
    align-items: flex-end;
}

.chapter-actions {
    display: flex;
    align-items: center;

    gap: 3px;

    padding: 3px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.025);
}

.chapter-filter {
    padding:
        7px 10px;

    border-radius: 6px;

    background: transparent;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.chapter-filter.active {
    background:
        rgba(236, 72, 153, 0.12);

    color: var(--pink-light);
}


/* LATEST */

.latest-chapter {
    display: grid;

    grid-template-columns:
        62px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;

    padding: 14px;

    border:
        1px solid rgba(236, 72, 153, 0.16);

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(236, 72, 153, 0.075),
            rgba(139, 92, 246, 0.035)
        );
}

.latest-art {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            rgba(236, 72, 153, 0.25),
            rgba(139, 92, 246, 0.2)
        );

    color: var(--pink-light);

    font-size: 17px;
}

.latest-info {
    display: flex;
    flex-direction: column;
}

.latest-info > span {
    color: var(--pink-light);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.latest-info strong {
    margin-top: 3px;

    font-size: 14px;
}

.latest-info p {
    margin: 0;

    color: var(--text-soft);

    font-size: 10px;
}

.latest-info small {
    margin-top: 3px;

    color: var(--text-faint);

    font-size: 8px;
}

.latest-read {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 9px 13px;

    border-radius: 7px;

    background:
        rgba(255, 255, 255, 0.06);

    color: var(--text-soft);

    font-size: 9px;
    font-weight: 700;
}

.latest-read:hover {
    background:
        rgba(255, 255, 255, 0.1);

    color: white;
}


/* VOLUME */

.volume-block {
    border:
        1px solid var(--border);

    border-radius: 11px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.012);
}

.volume-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 17px;

    background:
        rgba(255, 255, 255, 0.025);

    border-bottom:
        1px solid var(--border);
}

.volume-header div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-header span {
    color: var(--pink-light);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;
}

.volume-header strong {
    color: var(--text-soft);

    font-size: 10px;
}

.volume-count {
    color: var(--text-faint) !important;

    font-size: 8px !important;

    letter-spacing: 0 !important;
}

.chapter-row {
    min-height: 67px;

    display: grid;

    grid-template-columns:
        46px
        52px
        minmax(0, 1fr)
        55px;

    align-items: center;

    gap: 12px;

    padding: 0 17px;

    border-bottom:
        1px solid var(--border);

    transition:
        background 0.2s ease;
}

.chapter-row:last-child {
    border-bottom: 0;
}

.chapter-row:hover {
    background:
        rgba(255, 255, 255, 0.025);
}

.chapter-number {
    color: var(--text-muted);

    font-size: 11px;
    font-weight: 800;
}

.chapter-thumb {
    display: block;
    width: 42px;
    height: 54px;
    min-width: 0;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #17121a;
}

.chapter-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.latest-art { position: relative; overflow: hidden; }
.latest-chapter-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .68; }
.latest-art-overlay { z-index: 1; }

.chapter-info strong {
    font-size: 11px;
    font-weight: 700;
}

.chapter-info span {
    margin-top: 2px;

    color: var(--text-faint);

    font-size: 8px;
}

.chapter-row > i {
    color: var(--text-faint);

    font-size: 9px;
}

.chapter-new,
.chapter-read {
    justify-self: end;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.8px;
}

.chapter-new {
    color: var(--pink-light);
}

.chapter-read {
    color: var(--text-faint);
}

.show-more {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 14px;

    padding: 12px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background:
        transparent;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.show-more:hover {
    color: var(--text);
    border-color: var(--border-light);
}


/* =====================================================
   RELEASE SCHEDULE
====================================================== */

.schedule {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.schedule-item {
    display: grid;

    grid-template-columns:
        45px
        minmax(0, 1fr)
        24px;

    align-items: center;

    gap: 13px;

    padding: 16px;

    border:
        1px solid var(--border);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.018);
}

.schedule-item.current {
    border-color:
        rgba(236, 72, 153, 0.17);

    background:
        rgba(236, 72, 153, 0.035);
}

.schedule-day {
    display: flex;
    flex-direction: column;
    align-items: center;

    color: var(--pink-light);

    font-size: 7px;
    font-weight: 800;
}

.schedule-day strong {
    margin-top: 1px;

    font-size: 21px;

    letter-spacing: -1px;
}

.schedule-day.muted {
    color: var(--text-muted);
}

.schedule-item div:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.schedule-item div:nth-child(2) > span {
    color: var(--text-muted);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1px;
}

.schedule-item div:nth-child(2) strong {
    margin-top: 3px;

    font-size: 11px;
}

.schedule-item p {
    margin: 2px 0 0;

    color: var(--text-faint);

    font-size: 8px;
}

.schedule-item > i {
    color: var(--text-muted);

    font-size: 11px;
}


/* =====================================================
   DETAILS
====================================================== */

.details-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    border-top:
        1px solid var(--border);
}

.detail {
    min-height: 68px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 4px;

    padding: 12px 15px;

    border-bottom:
        1px solid var(--border);
}

.detail:nth-child(odd) {
    border-right:
        1px solid var(--border);
}

.detail span {
    color: var(--text-muted);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}

.detail strong {
    color: var(--text-soft);

    font-size: 10px;
}


/* =====================================================
   TAGS
====================================================== */

.tag-cloud {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

.tag-cloud a {
    padding: 8px 11px;

    border:
        1px solid var(--border);

    border-radius: 7px;

    background:
        rgba(255, 255, 255, 0.018);

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.tag-cloud a:hover {
    color: var(--pink-light);

    border-color:
        rgba(236, 72, 153, 0.2);

    background:
        rgba(236, 72, 153, 0.055);
}


/* =====================================================
   SIMILAR TITLES
====================================================== */

.section-link {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 700;
}

.section-link:hover {
    color: var(--pink-light);
}

.similar-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 17px;
}

.similar-card {
    min-width: 0;
}

.similar-cover {
    position: relative;

    aspect-ratio: 0.74;

    display: flex;
    align-items: flex-end;

    padding: 13px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(236, 72, 153, 0.32),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #252735,
            #12141b
        );

    transition:
        transform 0.25s ease;
}

.similar-cover:hover {
    transform:
        translateY(-4px);
}

.similar-cover::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 40%,
            rgba(0, 0, 0, 0.58)
        );
}

.similar-cover span {
    position: relative;
    z-index: 2;

    color:
        rgba(255, 255, 255, 0.32);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1px;
}

.cover-two {
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(139, 92, 246, 0.33),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #242333,
            #11131a
        );
}

.cover-three {
    background:
        radial-gradient(
            circle at 45% 35%,
            rgba(255, 122, 89, 0.27),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #292327,
            #121419
        );
}

.similar-info {
    padding-top: 11px;
}

.similar-info > strong {
    display: block;

    font-size: 11px;
}

.similar-info > span {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 8px;
}

.similar-info > div {
    display: flex;
    align-items: center;

    gap: 4px;

    margin-top: 6px;

    color: #fbbf24;

    font-size: 8px;
}


/* =====================================================
   SIDEBAR
====================================================== */

.sidebar {
    display: flex;
    flex-direction: column;

    gap: 15px;
}

.side-card {
    padding: 21px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.018);
}

.side-card-title {
    margin-bottom: 18px;

    color: var(--text-muted);

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.1px;
}


/* RATING */

.rating-main {
    display: flex;
    align-items: flex-end;

    gap: 13px;
}

.rating-main > strong {
    font-size: 43px;

    line-height: 0.9;

    letter-spacing: -2px;
}

.rating-main .rating-stars {
    margin: 0;

    font-size: 9px;
}

.rating-main div span {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 8px;
}

.rating-bars {
    display: flex;
    flex-direction: column;

    gap: 6px;

    margin-top: 20px;
}

.rating-bar {
    display: grid;

    grid-template-columns:
        12px 1fr;

    align-items: center;

    gap: 7px;
}

.rating-bar > span {
    color: var(--text-muted);

    font-size: 7px;
}

.rating-bar > div {
    height: 4px;

    overflow: hidden;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.07);
}

.rating-bar i {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--pink),
            var(--orange)
        );
}

.rate-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 20px;

    padding: 10px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.025);

    color: var(--text-soft);

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.rate-button:hover {
    color: var(--pink-light);

    background:
        rgba(236, 72, 153, 0.06);
}


/* TEAM */

.team-row {
    display: flex;
    align-items: center;

    gap: 11px;
}

.team-avatar {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(236, 72, 153, 0.2),
            rgba(139, 92, 246, 0.16)
        );

    color: var(--pink-light);

    font-size: 9px;
    font-weight: 800;
}

.team-row > div:last-child {
    display: flex;
    flex-direction: column;
}

.team-row strong {
    font-size: 10px;
}

.team-row span {
    margin-top: 2px;

    color: var(--text-faint);

    font-size: 8px;
}

.side-description {
    margin: 15px 0;

    color: var(--text-muted);

    font-size: 9px;

    line-height: 1.7;
}

.side-link {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: var(--pink-light);

    font-size: 8px;
    font-weight: 700;
}


/* =========================================================
   OFFICIAL SOURCES
   ========================================================= */

.source-intro {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 13px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.source-intro-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(240, 82, 165, 0.12);
    border-radius: 9px;
    background:
        linear-gradient(
            135deg,
            rgba(240, 82, 165, 0.13),
            rgba(155, 124, 255, 0.10)
        );
    color: #f59ac6;
    font-size: 12px;
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.015);
}

.source-intro-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.source-intro-copy strong {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1px;
    line-height: 1.25;
}

.source-intro-copy span {
    color: var(--text-faint);
    font-size: 7px;
    line-height: 1.45;
}


/* SOURCE LIST */

.source-links {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}


/* SOURCE CARD */

.source-link-card {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 49px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px 9px;

    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.020),
            rgba(255, 255, 255, 0.012)
        );

    color: inherit;
    text-decoration: none;

    overflow: hidden;

    transition:
        transform 0.20s ease,
        background 0.20s ease,
        border-color 0.20s ease,
        box-shadow 0.20s ease;
}

.source-link-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 15%,
            rgba(255, 255, 255, 0.035) 50%,
            transparent 85%
        );

    transform: translateX(-120%);
    transition:
        transform 0.55s ease;

    pointer-events: none;
}

.source-link-card:hover::before {
    transform: translateX(120%);
}

.source-link-card:hover {
    transform: translateY(-1px);

    background:
        linear-gradient(
            135deg,
            rgba(240, 82, 165, 0.055),
            rgba(155, 124, 255, 0.025)
        );

    border-color: rgba(240, 82, 165, 0.19);

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.16),
        0 0 24px rgba(240, 82, 165, 0.035);
}

.source-link-card:focus-visible {
    outline: 2px solid rgba(240, 82, 165, 0.55);
    outline-offset: 2px;
}


/* SOURCE ICON */

.source-link-icon {
    position: relative;
    z-index: 1;

    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(240, 82, 165, 0.055);
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            rgba(240, 82, 165, 0.085),
            rgba(155, 124, 255, 0.045)
        );

    color: #f472b6;
    font-size: 10px;

    transition:
        transform 0.20s ease,
        background 0.20s ease,
        border-color 0.20s ease,
        color 0.20s ease,
        box-shadow 0.20s ease;
}

.source-link-card:hover .source-link-icon {
    transform: scale(1.045);

    background:
        linear-gradient(
            135deg,
            rgba(240, 82, 165, 0.14),
            rgba(155, 124, 255, 0.07)
        );

    border-color:
        rgba(240, 82, 165, 0.10);

    color: #f8a3cb;

    box-shadow:
        0 6px 18px rgba(240, 82, 165, 0.08);
}


/* SOURCE TEXT */

.source-link-content {
    position: relative;
    z-index: 1;

    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.source-link-content strong {
    display: block;

    min-width: 0;
    max-width: 100%;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--text-soft);
    font-size: 9px;
    font-weight: 750;
    line-height: 1.25;
}

.source-link-domain {
    display: block;

    min-width: 0;
    max-width: 100%;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--text-faint);
    font-size: 7px;
    line-height: 1.2;
}


/* SOURCE ARROW */

.source-link-arrow {
    position: relative;
    z-index: 1;

    width: 25px;
    height: 25px;
    flex: 0 0 25px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    color: var(--text-faint);
    font-size: 8px;

    transition:
        color 0.20s ease,
        background 0.20s ease,
        transform 0.20s ease;
}

.source-link-card:hover .source-link-arrow {
    color: #f472b6;

    background:
        rgba(240, 82, 165, 0.08);

    transform:
        translate(1px, -1px);
}


/* =========================================================
   OFFICIAL SOURCES — RESPONSIVE
   ========================================================= */

@media (max-width: 720px) {

    .source-intro {
        gap: 9px;
        padding-bottom: 11px;
        margin-bottom: 10px;
    }

    .source-intro-icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        border-radius: 8px;
        font-size: 11px;
    }

    .source-intro-copy strong {
        font-size: 9px;
    }

    .source-intro-copy span {
        font-size: 6.7px;
    }

    .source-links {
        gap: 6px;
    }

    .source-link-card {
        min-height: 46px;
        padding: 7px 8px;
        gap: 8px;
        border-radius: 8px;
    }

    .source-link-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        border-radius: 7px;
        font-size: 9px;
    }

    .source-link-content {
        gap: 2px;
    }

    .source-link-content strong {
        font-size: 8px;
    }

    .source-link-domain {
        font-size: 6.5px;
    }

    .source-link-arrow {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
        border-radius: 6px;
        font-size: 7px;
    }
}


@media (max-width: 430px) {

    .source-intro {
        gap: 8px;
    }

    .source-intro-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
        font-size: 10px;
    }

    .source-intro-copy strong {
        font-size: 8.5px;
    }

    .source-intro-copy span {
        font-size: 6.4px;
    }

    .source-link-card {
        min-height: 44px;
        padding: 6px 7px;
        gap: 7px;
    }

    .source-link-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .source-link-content strong {
        font-size: 7.8px;
    }

    .source-link-domain {
        font-size: 6.2px;
    }

    .source-link-arrow {
        width: 21px;
        height: 21px;
        flex-basis: 21px;
        font-size: 6.8px;
    }
}

/* Chapter artwork, number and action have dedicated tracks on narrow screens. */
@media (max-width: 700px) {
    .chapter-row {
        grid-template-columns: 38px 44px minmax(0,1fr) 42px !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
    }
    .chapter-thumb { width: 38px; height: 50px; }
    .chapter-number { white-space: nowrap; font-size: 9px; }
    .chapter-info { min-width: 0; overflow: hidden; }
    .chapter-info > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .chapter-row .chapter-read { grid-column: auto !important; justify-self: end !important; }
}

/* Final chapter list layout: artwork, chapter number, text, then one clear action. */
.chapter-row {
    grid-template-columns: 42px minmax(0, 1fr) 68px !important;
    cursor: pointer;
}
.chapter-row:focus-visible {
    outline: 2px solid rgba(240, 82, 165, .7);
    outline-offset: -2px;
}
.chapter-row .chapter-new {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    align-self: flex-start;
    width: max-content;
    margin-top: 4px;
}
.chapter-row .chapter-read {
    min-width: 58px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-soft);
    font-size: 9px;
    letter-spacing: 0;
}
.chapter-row .chapter-read:hover {
    border-color: rgba(240, 82, 165, .35);
    color: #fff;
    background: rgba(240, 82, 165, .07);
}

/* Anchor the account dropdown to the right-aligned action group. */
.nav-actions { position: relative; }
.account-menu {
    right: 0 !important;
    left: auto !important;
    width: min(220px, calc(100vw - 24px));
    min-width: min(180px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .chapter-row {
        grid-template-columns: 34px 38px minmax(0, 1fr) 54px !important;
        min-height: 68px;
        gap: 6px !important;
        padding: 8px !important;
    }
    .chapter-row .chapter-thumb { width: 34px; height: 46px; }
    .chapter-row .chapter-number { font-size: 8px; }
    .chapter-row .chapter-title { font-size: 10px; }
    .chapter-row .chapter-meta { gap: 4px; }
    .chapter-row .chapter-meta span { font-size: 7px; }
    .chapter-row .chapter-read { min-width: 50px; min-height: 30px; padding-inline: 5px; font-size: 8px; }
}
/* ACTIVITY */

.activity-card {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 5px;
}

.activity-card .side-card-title {
    grid-column: 1 / -1;
}

.activity-stat {
    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 12px 7px;

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.025);

    text-align: center;
}

.activity-stat strong {
    font-size: 15px;

    letter-spacing: -0.5px;
}

.activity-stat span {
    color: var(--text-faint);

    font-size: 7px;
}


/* =====================================================
   FOOTER
====================================================== */

.site-footer {
    border-top:
        1px solid var(--border);

    background:
        #07080b;
}

.footer-inner {
    width: min(
        var(--container),
        calc(100% - 64px)
    );

    min-height: 125px;

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    font-size: 12px;
    font-weight: 800;
}

.footer-inner p {
    margin: 6px 0 0;

    color: var(--text-faint);

    font-size: 8px;
}

.footer-note {
    color: var(--text-faint);

    font-size: 8px;
}


/* =====================================================
   RESPONSIVE
====================================================== */

@media (max-width: 1120px) {

    .hero-inner {
        grid-template-columns:
            230px
            minmax(0, 1fr);

        gap: 40px;
    }

    .hero-rating {
        position: absolute;

        right: 0;
        bottom: 70px;
    }

    .content-layout {
        grid-template-columns:
            minmax(0, 1fr)
            280px;

        gap: 50px;
    }

    .nav-links {
        margin-left: 20px;
    }

}


@media (max-width: 900px) {

    .quick-stats .page-container {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .quick-stat:nth-child(3) {
        border-right: 0;
    }

    .quick-stat:nth-child(4),
    .quick-stat:nth-child(5) {
        border-top:
            1px solid var(--border);
    }

    .quick-stat:first-child {
        padding-left: 20px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);
    }

    .activity-card {
        grid-column: 1 / -1;
    }

}


@media (max-width: 720px) {

    .page-container,
    .navbar-inner,
    .hero-inner,
    .footer-inner {
        width:
            calc(100% - 32px);
    }


    .title-navbar {
        height: 62px;
    }

    .nav-links {
        display: none;
    }

    .account-button span {
        display: none;
    }


    .title-hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;

        grid-template-columns:
            110px
            minmax(0, 1fr);

        gap: 18px;

        padding:
            42px 0 55px;
    }

    .cover-meta {
        flex-direction: column;
        align-items: flex-start;

        gap: 4px;
    }

    .hero-content h1 {
        font-size:
            clamp(35px, 10vw, 53px);

        letter-spacing:
            -2px;
    }

    .hero-description {
        font-size: 12px;
        line-height: 1.75;
    }

    .hero-credits {
        gap: 18px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .read-button,
    .secondary-button {
        flex: 1;
    }

    .continue-box {
        grid-column: 1 / -1;
    }

    .hero-rating {
        position: static;

        grid-column:
            1 / -1;

        display: flex;
        align-items: center;

        gap: 13px;

        padding: 17px 0 0;

        border-top:
            1px solid var(--border);
    }

    .rating-number {
        font-size: 36px;
    }

    .hero-rating > strong,
    .hero-rating > span {
        display: none;
    }

    .rating-divider,
    .rating-mini {
        display: none;
    }


    .quick-stats .page-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .quick-stat {
        min-height: 74px;

        padding: 0 12px;

        border-right:
            1px solid var(--border);
    }

    .quick-stat:nth-child(2n) {
        border-right: 0;
    }

    .quick-stat:nth-child(n + 3) {
        border-top:
            1px solid var(--border);
    }

    .quick-stat:first-child {
        padding-left: 12px;
    }


    .content-area {
        padding:
            65px 0 80px;
    }

    .content-section {
        margin-bottom: 70px;
    }

    .section-top {
        align-items: flex-start;

        flex-direction: column;
    }

    .chapter-section-top {
        gap: 16px;
    }

    .chapter-actions {
        width: 100%;
    }

    .chapter-filter {
        flex: 1;
    }


    .latest-chapter {
        grid-template-columns:
            50px
            minmax(0, 1fr);

        gap: 11px;
    }

    .latest-art {
        width: 50px;
        height: 50px;
    }

    .latest-read {
        grid-column: 2;

        justify-self: start;
    }


    .chapter-row {
        grid-template-columns:
            40px
            minmax(0, 1fr)
            16px;

        gap: 8px;

        padding:
            0 12px;
    }

    .chapter-row > span {
        display: none;
    }


    .schedule {
        grid-template-columns: 1fr;
    }


    .details-grid {
        grid-template-columns: 1fr;
    }

    .detail:nth-child(odd) {
        border-right: 0;
    }


    .similar-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .similar-card:last-child {
        display: none;
    }


    .sidebar {
        display: flex;
    }


    .footer-inner {
        padding:
            30px 0;

        align-items:
            flex-start;

        flex-direction:
            column;
    }

}


@media (max-width: 430px) {

    .hero-inner {
        grid-template-columns:
            88px
            minmax(0, 1fr);
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-tags {
        gap: 4px;
    }

    .hero-tags span {
        padding:
            5px 7px;

        font-size: 8px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .read-button,
    .secondary-button {
        flex: initial;
        width: 100%;
    }

    .round-action {
        display: none;
    }

    .activity-card {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* =========================================================
   PREMIUM MANHWA TITLE PAGE — OVERRIDE
   Paste this at the VERY END of title.css
   ========================================================= */

:root {
    --premium-pink: #f052a5;
    --premium-pink-soft: rgba(240, 82, 165, 0.14);
    --premium-orange: #ff8a65;
    --premium-purple: #9b7cff;
    --premium-glass: rgba(255, 255, 255, 0.035);
    --premium-glass-hover: rgba(255, 255, 255, 0.055);
    --premium-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

/* =========================================================
   BASE
   ========================================================= */

body {
    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(240, 82, 165, 0.045),
            transparent 24%
        ),
        radial-gradient(
            circle at 92% 22%,
            rgba(155, 124, 255, 0.045),
            transparent 26%
        ),
        var(--bg);
}

::selection {
    background: rgba(240, 82, 165, 0.28);
    color: #fff;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.title-navbar {
    background: rgba(8, 9, 13, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.065);
}

.brand {
    gap: 0;
    font-size: 16px;
    letter-spacing: -0.55px;
}

/* Remove the old decorative logo dot */
.brand-dot {
    display: none;
}

.nav-links {
    gap: 28px;
}

.nav-links a {
    position: relative;
    font-size: 12px;
    transition:
        color 0.22s ease,
        opacity 0.22s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--premium-pink),
        var(--premium-purple)
    );
    transform: translateX(-50%);
    transition: width 0.22s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 18px;
}

.nav-icon,
.account-button {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.028);
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
}

.nav-icon:hover,
.account-button:hover {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(240, 82, 165, 0.28);
    background: rgba(240, 82, 165, 0.065);
    box-shadow:
        0 8px 24px rgba(240, 82, 165, 0.08);
}

/* =========================================================
   HERO
   ========================================================= */

.title-hero {
    background:
        radial-gradient(
            circle at 67% 32%,
            rgba(240, 82, 165, 0.095),
            transparent 28%
        ),
        radial-gradient(
            circle at 84% 72%,
            rgba(155, 124, 255, 0.075),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #0a0b10 0%,
            #0b0d12 100%
        );
}

.title-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(240, 82, 165, 0.22),
            rgba(155, 124, 255, 0.16),
            transparent
        );
    pointer-events: none;
}

/* Softer ambient lighting */
.hero-glow-one {
    background: rgba(240, 82, 165, 0.085);
    filter: blur(120px);
}

.hero-glow-two {
    background: rgba(155, 124, 255, 0.07);
    filter: blur(110px);
}

.hero-background-art {
    opacity: 0.34;
}

/* =========================================================
   COVER
   ========================================================= */

.cover-art {
    border-radius: 15px;
    border-color: rgba(255, 255, 255, 0.105);
    box-shadow:
        0 32px 75px rgba(0, 0, 0, 0.42),
        0 0 45px rgba(240, 82, 165, 0.055);
}

.cover-art:hover {
    transform:
        rotate(0deg)
        translateY(-7px)
        scale(1.012);

    border-color: rgba(240, 82, 165, 0.22);

    box-shadow:
        0 42px 95px rgba(0, 0, 0, 0.5),
        0 0 65px rgba(240, 82, 165, 0.11);
}

.cover-placeholder i {
    color: rgba(240, 82, 165, 0.62);
}

/* =========================================================
   HERO TYPOGRAPHY
   ========================================================= */

.hero-content h1 {
    letter-spacing: -3.4px;
    line-height: 1;
}

.hero-content h1 span {
    color: transparent;
    background:
        linear-gradient(
            110deg,
            #f472b6 0%,
            #ec4899 42%,
            #a78bfa 100%
        );
    background-clip: text;
    -webkit-background-clip: text;
}

.alt-title {
    color: #777b89;
}

.hero-description {
    color: #bfc2cc;
    max-width: 680px;
}

.hero-tags span {
    border-color: rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.026);
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.hero-tags span:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(240, 82, 165, 0.2);
    background: rgba(240, 82, 165, 0.055);
}

/* =========================================================
   HERO ACTIONS
   ========================================================= */

.read-button,
.secondary-button,
.round-action {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        color 0.22s ease;
}

.read-button::before,
.secondary-button::before,
.round-action::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            110deg,
            transparent 20%,
            rgba(255, 255, 255, 0.08) 50%,
            transparent 80%
        );
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.read-button:hover::before,
.secondary-button:hover::before,
.round-action:hover::before {
    transform: translateX(120%);
}

.read-button {
    background:
        linear-gradient(
            135deg,
            #ec4899,
            #d946ef
        );
    box-shadow:
        0 12px 30px rgba(236, 72, 153, 0.16);
}

.read-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 38px rgba(236, 72, 153, 0.25),
        0 0 26px rgba(236, 72, 153, 0.09);
}

.secondary-button:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 82, 165, 0.25);
    background: rgba(240, 82, 165, 0.065);
    color: #fff;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18);
}

.round-action:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 82, 165, 0.28);
    color: var(--pink-light);
    background: rgba(240, 82, 165, 0.075);
    box-shadow:
        0 10px 28px rgba(240, 82, 165, 0.09);
}

/* =========================================================
   CONTINUE READING
   ========================================================= */

.continue-box {
    border-color: rgba(255, 255, 255, 0.075);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.018)
        );
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.14);
}

.continue-box:hover {
    border-color: rgba(240, 82, 165, 0.14);
}

.progress-track {
    background: rgba(255, 255, 255, 0.065);
}

.progress-track span {
    background:
        linear-gradient(
            90deg,
            var(--premium-pink),
            var(--premium-purple)
        );
}

/* =========================================================
   QUICK STATS
   ========================================================= */

.quick-stats {
    background: rgba(255, 255, 255, 0.009);
}

.quick-stat {
    transition:
        background 0.22s ease;
}

.quick-stat:hover {
    background: rgba(255, 255, 255, 0.018);
}

.quick-stat > i {
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.quick-stat:hover > i {
    transform: translateY(-2px);
    background: rgba(240, 82, 165, 0.12);
    box-shadow:
        0 8px 22px rgba(240, 82, 165, 0.08);
}

/* =========================================================
   CONTENT
   ========================================================= */

.content-area {
    background:
        radial-gradient(
            circle at 75% 12%,
            rgba(240, 82, 165, 0.018),
            transparent 25%
        );
}

.section-top h2 {
    letter-spacing: -1.2px;
}

.section-kicker {
    color: #f472b6;
}

/* =========================================================
   STORY
   ========================================================= */

.story-content {
    border-left-color: rgba(240, 82, 165, 0.22);
}

.story-content p {
    color: #c4c7d0;
}

/* =========================================================
   CHAPTERS
   ========================================================= */

.chapter-actions {
    border-color: rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.022);
}

.chapter-filter {
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.chapter-filter:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
}

.chapter-filter.active {
    background: rgba(240, 82, 165, 0.115);
    color: #f472b6;
    box-shadow:
        inset 0 0 0 1px rgba(240, 82, 165, 0.08);
}

/* Latest chapter */
.latest-chapter {
    border-color: rgba(240, 82, 165, 0.13);
    background:
        linear-gradient(
            135deg,
            rgba(240, 82, 165, 0.065),
            rgba(155, 124, 255, 0.025)
        );
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.latest-chapter:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 82, 165, 0.22);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.16),
        0 0 28px rgba(240, 82, 165, 0.045);
}

.latest-art {
    background:
        linear-gradient(
            135deg,
            rgba(240, 82, 165, 0.22),
            rgba(155, 124, 255, 0.17)
        );
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.025);
}

.latest-read {
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.latest-read:hover {
    transform: translateY(-2px);
    background: rgba(240, 82, 165, 0.075);
    box-shadow:
        0 8px 22px rgba(240, 82, 165, 0.07);
}

/* Chapter volume */
.volume-block {
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.1);
}

.volume-header {
    background: rgba(255, 255, 255, 0.022);
}

.chapter-row {
    position: relative;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        padding-left 0.2s ease;
}

.chapter-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 99px;
    background:
        linear-gradient(
            180deg,
            var(--premium-pink),
            var(--premium-purple)
        );
    opacity: 0;
    transform: scaleY(0.4);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.chapter-row:hover {
    background:
        linear-gradient(
            90deg,
            rgba(240, 82, 165, 0.055),
            rgba(255, 255, 255, 0.018)
        );
}

.chapter-row:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.chapter-row:hover .chapter-number {
    color: #f472b6;
}

.chapter-number-active {
    color: #f472b6 !important;
}

.show-more {
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.show-more:hover {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(240, 82, 165, 0.2);
    background: rgba(240, 82, 165, 0.035);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   SCHEDULE
   ========================================================= */

.schedule-item {
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.schedule-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.105);
    background: rgba(255, 255, 255, 0.028);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.14);
}

.schedule-item.current:hover {
    border-color: rgba(240, 82, 165, 0.22);
    background: rgba(240, 82, 165, 0.045);
}

/* =========================================================
   DETAILS
   ========================================================= */

.detail {
    transition:
        background 0.2s ease;
}

.detail:hover {
    background: rgba(255, 255, 255, 0.018);
}

.detail strong {
    color: #d4d6dd;
}

/* =========================================================
   TAGS
   ========================================================= */

.tag-cloud a {
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.tag-cloud a:hover {
    transform: translateY(-2px);
    color: #f472b6;
    border-color: rgba(240, 82, 165, 0.22);
    background: rgba(240, 82, 165, 0.055);
    box-shadow:
        0 8px 22px rgba(240, 82, 165, 0.055);
}

/* =========================================================
   SIMILAR TITLES
   ========================================================= */

.similar-card {
    cursor: pointer;
}

.similar-cover {
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.similar-cover:hover {
    transform: translateY(-5px);
    border-color: rgba(240, 82, 165, 0.18);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.25),
        0 0 28px rgba(240, 82, 165, 0.055);
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.side-card {
    border-color: rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.026),
            rgba(255, 255, 255, 0.014)
        );
    box-shadow:
        0 16px 45px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.side-card:hover {
    border-color: rgba(255, 255, 255, 0.105);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.13);
}

.team-avatar {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.team-row:hover .team-avatar {
    transform: translateY(-2px);
    box-shadow:
        0 9px 25px rgba(240, 82, 165, 0.09);
}

.side-link {
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.side-link:hover {
    color: #fff;
    transform: translateX(2px);
}

/* =========================================================
   RATING
   ========================================================= */

.rating-bar > div {
    background: rgba(255, 255, 255, 0.055);
}

.rating-bar i {
    background:
        linear-gradient(
            90deg,
            var(--premium-pink),
            var(--premium-orange)
        );
}

.rate-button {
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.rate-button:hover {
    transform: translateY(-1px);
    color: #f472b6;
    border-color: rgba(240, 82, 165, 0.2);
    background: rgba(240, 82, 165, 0.055);
    box-shadow:
        0 9px 25px rgba(240, 82, 165, 0.055);
}

/* =========================================================
   ACTIVITY
   ========================================================= */

.activity-stat {
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.activity-stat:hover {
    transform: translateY(-2px);
    background: rgba(240, 82, 165, 0.045);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background:
        linear-gradient(
            180deg,
            #07080b,
            #06070a
        );
}

.footer-brand .brand-dot {
    display: none;
}

/* =========================================================
   FOCUS ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(240, 82, 165, 0.65);
    outline-offset: 3px;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media (max-width: 700px) {
    .chapter-row {
        grid-template-columns: 38px 44px minmax(0,1fr) 42px !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
    }
    .chapter-thumb { width: 38px; height: 50px; }
    .chapter-number { white-space: nowrap; font-size: 9px; }
    .chapter-info { min-width: 0; overflow: hidden; }
    .chapter-info > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .chapter-row .chapter-read { grid-column: auto !important; justify-self: end !important; }
}

/* =========================================================
   MOBILE POLISH
   ========================================================= */

@media (max-width: 720px) {

    .hero-content h1 {
        letter-spacing: -2.2px;
    }

    .cover-art {
        border-radius: 11px;
    }

    .latest-chapter:hover,
    .schedule-item:hover,
    .side-card:hover {
        transform: none;
    }

    .chapter-row::before {
        top: 9px;
        bottom: 9px;
    }
}

@media (max-width: 430px) {

    .brand {
        font-size: 15px;
    }

    .hero-content h1 {
        letter-spacing: -1.8px;
    }

    .read-button:hover,
    .secondary-button:hover,
    .round-action:hover {
        transform: none;
    }
}

/* =========================================================
   TITLE PAGE — FINAL RESPONSIVE / COMPONENT ALIGNMENT
   ========================================================= */

/* ---------------------------------------------------------
   ACCOUNT MENU
--------------------------------------------------------- */

.account-button {
    position: relative;
}

.account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1200;
    min-width: 190px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            rgba(22, 24, 33, 0.98),
            rgba(13, 15, 21, 0.98)
        );
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.account-button + .account-menu {
    margin-top: 0;
}

.account-menu a,
.account-menu button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 11px;
    border-radius: 8px;
    background: transparent;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.account-menu a:hover,
.account-menu button:hover {
    background:
        rgba(240, 82, 165, 0.07);
    color: #fff;
}

.account-menu i {
    width: 15px;
    color: var(--pink-light);
    text-align: center;
}


/* ---------------------------------------------------------
   CORRECT HTML COMPONENT SELECTORS
--------------------------------------------------------- */

.quick-stat-icon {
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background:
        rgba(236, 72, 153, 0.08);
    color: var(--pink-light);
    font-size: 12px;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.quick-stat:hover .quick-stat-icon {
    transform: translateY(-2px);
    background:
        rgba(240, 82, 165, 0.12);
    box-shadow:
        0 8px 22px rgba(240, 82, 165, 0.08);
}

.continue-header,
.continue-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.continue-header > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pink-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.continue-header > span:last-child {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
}

.progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--premium-pink),
            var(--premium-purple)
        );
}

.continue-footer {
    color: var(--text-faint);
    font-size: 9px;
}

.continue-footer > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.continue-footer a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-soft);
    font-weight: 700;
}

.continue-footer a:hover {
    color: #fff;
}


/* ---------------------------------------------------------
   CHAPTER ROW — MATCH CURRENT JS
--------------------------------------------------------- */

.chapters-list {
    width: 100%;
    min-width: 0;
}

.chapter-row {
    min-width: 0;
    width: 100%;
    grid-template-columns:
        58px
        minmax(0, 1fr)
        auto;
}

.chapter-row .chapter-info {
    min-width: 0;
}

.chapter-row .chapter-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
}

.chapter-row .chapter-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.chapter-row .chapter-meta span {
    margin-top: 2px;
    color: var(--text-faint);
    font-size: 8px;
}

.chapter-row .chapter-new {
    margin-top: 4px;
    color: var(--pink-light);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.chapter-row .chapter-read {
    justify-self: end;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   TEAM / UPLOADER AVATARS
--------------------------------------------------------- */

.team-avatar {
    overflow: hidden;
    flex: 0 0 38px;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.team-name {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
}

.team-name:hover {
    color: #fff;
}

.team-username {
    color: var(--text-faint);
}


/* ---------------------------------------------------------
   SOURCE
--------------------------------------------------------- */

.source-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.source-info strong,
.source-info span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.source-info strong {
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 700;
}

.source-info span {
    color: var(--text-muted);
    font-size: 8px;
    line-height: 1.5;
}

.source-button {
    width: 35px;
    min-width: 35px;
    flex: 0 0 35px;
    margin-top: 0;
}


/* ---------------------------------------------------------
   SIMILAR TITLES — REAL IMG SUPPORT
--------------------------------------------------------- */

.similar-cover {
    padding: 0;
}

.similar-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            transparent 40%,
            rgba(0, 0, 0, 0.64)
        );
}

.similar-info h3 {
    margin: 0;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.similar-info > span {
    margin-top: 4px;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 720px) {

    .page-container,
    .navbar-inner,
    .hero-inner,
    .footer-inner {
        width: calc(100% - 28px);
    }

    .title-navbar {
        height: 60px;
    }

    .nav-actions {
        gap: 7px;
    }

    .account-button {
        width: 38px;
        padding: 0;
        border-radius: 50%;
    }

    .account-chevron {
        display: none;
    }

    .account-menu {
        right: 0;
        min-width: 180px;
    }

    .hero-inner {
        grid-template-columns:
            104px
            minmax(0, 1fr);
        align-items: start;
        gap: 18px;
        padding: 38px 0 48px;
    }

    .cover-art {
        width: 100%;
    }

    .hero-content {
        min-width: 0;
    }

    .hero-content h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-tags {
        max-width: 100%;
    }

    .hero-credits {
        flex-wrap: wrap;
        gap: 12px 22px;
    }

    .hero-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .read-button,
    .save-button {
        min-width: 0;
        flex: 1 1 150px;
    }

    .round-action {
        flex: 0 0 44px;
    }

    .continue-box {
        width: 100%;
        max-width: 100%;
    }

    .quick-stats .page-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .quick-stat {
        min-width: 0;
        padding: 0 12px;
    }

    .quick-stat > div {
        min-width: 0;
    }

    .quick-stat strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .content-area {
        padding:
            58px 0 76px;
    }

    .content-layout {
        gap: 48px;
    }

    .section-top {
        margin-bottom: 22px;
    }

    .section-top h2 {
        font-size: 24px;
    }

    .chapter-actions {
        width: 100%;
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 0.72fr)
            minmax(0, 0.72fr);
        gap: 4px;
    }

    .chapter-search {
        min-width: 0;
    }

    .chapter-search input {
        width: 100%;
        min-width: 0;
    }

    .chapter-filter {
        min-width: 0;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .latest-chapter {
        grid-template-columns:
            50px
            minmax(0, 1fr);
        gap: 11px;
    }

    .latest-info {
        min-width: 0;
    }

    .latest-info h3 {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .latest-read {
        grid-column: 2;
        justify-self: start;
    }

    .chapters-list {
        overflow: hidden;
        border-radius: 10px;
    }

    .chapter-row {
        grid-template-columns:
            48px
            minmax(0, 1fr)
            auto;
        gap: 8px;
        min-height: 62px;
        padding: 0 11px;
    }

    .chapter-row .chapter-title {
        font-size: 10px;
    }

    .chapter-row .chapter-meta span {
        font-size: 7px;
    }

    .chapter-row .chapter-read {
        font-size: 8px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .detail:nth-child(odd) {
        border-right: 0;
    }

    .similar-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sidebar {
        width: 100%;
        display: flex;
    }

    .side-card {
        width: 100%;
        padding: 17px;
    }

    .activity-card {
        display: grid;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .footer-inner {
        gap: 22px;
        padding: 30px 0;
    }

    .footer-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 10px 18px;
    }
}


/* ---------------------------------------------------------
   SMALL PHONES
--------------------------------------------------------- */

@media (max-width: 480px) {

    .page-container,
    .navbar-inner,
    .hero-inner,
    .footer-inner {
        width: calc(100% - 24px);
    }

    .hero-inner {
        grid-template-columns:
            86px
            minmax(0, 1fr);
        gap: 14px;
        padding: 30px 0 42px;
    }

    .cover-art {
        border-radius: 10px;
    }

    .hero-content h1 {
        font-size:
            clamp(
                29px,
                9vw,
                38px
            );
        letter-spacing: -1.5px;
        line-height: 1.02;
    }

    .title-label {
        gap: 6px;
        margin-bottom: 13px;
    }

    .type-badge {
        padding: 4px 7px;
        font-size: 8px;
    }

    .hero-description {
        font-size: 11px;
        line-height: 1.7;
    }

    .hero-tags {
        gap: 4px;
        margin-bottom: 17px;
    }

    .hero-tags span {
        padding: 5px 7px;
        font-size: 8px;
    }

    .hero-credits {
        gap: 10px 18px;
        margin-top: 18px;
    }

    .hero-actions {
        flex-direction: row;
    }

    .read-button,
    .save-button {
        flex: 1 1 100%;
        width: 100%;
    }

    .round-action {
        display: inline-flex;
        flex: 1 1 calc(50% - 4px);
        width: auto;
    }

    .quick-stats .page-container {
        grid-template-columns:
            1fr 1fr;
    }

    .quick-stat {
        min-height: 70px;
    }

    .quick-stat-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .chapter-actions {
        grid-template-columns: 1fr;
        padding: 4px;
    }

    .chapter-search,
    .chapter-filter {
        min-height: 36px;
    }

    .latest-chapter {
        grid-template-columns:
            44px
            minmax(0, 1fr);
        padding: 12px;
    }

    .latest-art {
        width: 44px;
        height: 44px;
    }

    .latest-read {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .chapter-row {
        grid-template-columns:
            43px
            minmax(0, 1fr);
        min-height: 65px;
        padding: 9px 10px;
        align-items: start;
    }

    .chapter-row .chapter-read {
        grid-column: 2;
        justify-self: start;
        margin-top: 3px;
        padding: 0;
    }

    .chapter-row .chapter-number {
        padding-top: 1px;
        font-size: 10px;
    }

    .similar-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .activity-card {
        grid-template-columns:
            1fr;
    }

    .activity-card .side-card-heading {
        grid-column: auto;
    }

    .footer-links {
        flex-direction: column;
    }
}


/* ---------------------------------------------------------
   VERY SMALL PHONES
--------------------------------------------------------- */

@media (max-width: 360px) {

    .hero-inner {
        grid-template-columns:
            76px
            minmax(0, 1fr);
        gap: 11px;
    }

    .hero-content h1 {
        font-size: 27px;
        letter-spacing: -1.2px;
    }

    .hero-description {
        font-size: 10px;
    }

    .quick-stat {
        padding: 0 9px;
        gap: 8px;
    }

    .quick-stat-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        font-size: 10px;
    }

    .chapter-row {
        grid-template-columns:
            39px
            minmax(0, 1fr);
    }
}

/* =========================================================
   HARD HIDDEN STATE
========================================================= */

[hidden] {
    display: none !important;
}


/* =========================================================
   TITLE PAGE INITIAL LOADING
========================================================= */

body.title-page-loading .title-navbar,
body.title-page-loading .site-footer {
    visibility: hidden;
}

body.title-page-loading {
    overflow-x: hidden;
}


/* =========================================================
   PREMIUM TITLE LOADER
========================================================= */

#titleLoading {
    min-height: calc(100vh - 68px);
    display: grid;
    place-items: center;
    padding: 48px 20px;
}

#titleLoading .loading-shell {
    width: min(1180px, 100%);
}

#titleLoading .loading-cover,
#titleLoading .loading-line,
#titleLoading .loading-meta,
#titleLoading .loading-actions {
    background:
        linear-gradient(
            110deg,
            rgba(255,255,255,.045) 8%,
            rgba(255,255,255,.09) 18%,
            rgba(255,255,255,.045) 33%
        );
    background-size: 200% 100%;
    animation: titleSkeletonShimmer 1.55s linear infinite;
}

#titleLoading .loading-cover {
    border-radius: 18px;
    min-height: 390px;
}

#titleLoading .loading-line {
    height: 18px;
    border-radius: 999px;
    margin-bottom: 14px;
}

#titleLoading .loading-line.title {
    width: min(540px, 85%);
    height: 52px;
}

#titleLoading .loading-line.medium {
    width: 62%;
}

#titleLoading .loading-line.short {
    width: 38%;
}

#titleLoading .loading-actions {
    width: 260px;
    height: 52px;
    border-radius: 14px;
    margin-top: 24px;
}

@keyframes titleSkeletonShimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}


/* =========================================================
   ACCOUNT MENU — HARD RESET
========================================================= */

#accountMenu {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#accountMenu.open {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   STATUS BADGE
========================================================= */

#titleStatus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1;
}

#titleStatusText {
    display: inline-block;
    line-height: 1;
}

#titleStatus i {
    flex: 0 0 auto;
    width: auto;
    line-height: 1;
}


/* =========================================================
   TEAM / UPLOADER AVATAR
========================================================= */

#teamAvatar,
#uploaderAvatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
}

#teamAvatar i,
#uploaderAvatar i {
    font-size: 16px;
    line-height: 1;
}

#teamAvatar img,
#uploaderAvatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}


/* =========================================================
   CHAPTER FILTERS
========================================================= */

.chapter-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px;
    gap: 10px;
    align-items: center;
}

.chapter-controls input,
.chapter-controls select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: var(--text);
    outline: none;
    padding: 0 14px;
    font: inherit;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.chapter-controls input::placeholder {
    color: var(--muted);
}

.chapter-controls input:focus,
.chapter-controls select:focus {
    border-color: rgba(255,105,180,.42);
    background: rgba(255,255,255,.055);
    box-shadow: 0 0 0 3px rgba(255,105,180,.08);
}

.chapter-controls select option {
    background: #111218;
    color: #fff;
}


/* =========================================================
   MOBILE — KEEP EXISTING DIRECTION
========================================================= */

@media (max-width: 720px) {
    .chapter-controls {
        grid-template-columns: 1fr;
    }

    #titleLoading {
        min-height: calc(100vh - 56px);
        padding: 32px 16px;
    }

    #titleLoading .loading-cover {
        min-height: 260px;
    }

    #titleLoading .loading-line.title {
        height: 38px;
    }

    #titleLoading .loading-line.medium {
        width: 78%;
    }

    #titleLoading .loading-line.short {
        width: 55%;
    }
}

/* =========================================================
   TITLE PAGE — FINAL VISUAL POLISH
========================================================= */

/* ---------------------------------------------------------
   COVER META
   Keeps Type + Status separated and prevents overlap.
--------------------------------------------------------- */

#coverMeta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;

    min-width: 0;
}

#coverMetaType,
#coverMetaStatus {
    position: static !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    min-height: 25px !important;

    padding: 5px 9px !important;

    border-radius: 7px !important;

    white-space: nowrap !important;

    font-family:
        "Plus Jakarta Sans",
        sans-serif !important;

    font-size: 9px !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    letter-spacing: 0.15px !important;
}

#coverMetaType {
    border:
        1px solid rgba(
            255,
            255,
            255,
            0.08
        ) !important;

    background:
        rgba(
            255,
            255,
            255,
            0.045
        ) !important;

    color:
        #d7d9e1 !important;
}

#coverMetaStatus {
    border:
        1px solid rgba(
            240,
            82,
            165,
            0.16
        ) !important;

    background:
        rgba(
            240,
            82,
            165,
            0.075
        ) !important;

    color:
        #f6a0cc !important;
}


/* ---------------------------------------------------------
   CHAPTER COUNT
--------------------------------------------------------- */

#chaptersCount {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 27px;
    height: 20px;

    margin-left: 6px;

    padding: 0 7px;

    border:
        1px solid rgba(
            255,
            255,
            255,
            0.075
        );

    border-radius: 6px;

    background:
        rgba(
            255,
            255,
            255,
            0.028
        );

    color:
        #aeb2be;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    vertical-align: middle;
}


/* ---------------------------------------------------------
   CHAPTER SEARCH
--------------------------------------------------------- */

#chapterSearchInput {
    width: 100%;
    min-width: 0;

    height: 40px;

    padding: 0 13px;

    border:
        1px solid rgba(
            255,
            255,
            255,
            0.09
        );

    border-radius: 8px;

    outline: none;

    background:
        rgba(
            255,
            255,
            255,
            0.025
        );

    color:
        #e9eaf0;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 11px;
    font-weight: 500;

    line-height: 1;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

#chapterSearchInput::placeholder {
    color:
        #777b86;

    opacity: 1;
}

#chapterSearchInput:hover {
    border-color:
        rgba(
            255,
            255,
            255,
            0.13
        );

    background:
        rgba(
            255,
            255,
            255,
            0.032
        );
}

#chapterSearchInput:focus {
    border-color:
        rgba(
            240,
            82,
            165,
            0.32
        );

    background:
        rgba(
            240,
            82,
            165,
            0.028
        );

    box-shadow:
        0 0 0 3px
        rgba(
            240,
            82,
            165,
            0.055
        );
}


/* ---------------------------------------------------------
   CHAPTER SORT / FILTER
--------------------------------------------------------- */

#chapterSort,
#chapterVolumeFilter {
    height: 40px;

    border:
        1px solid rgba(
            255,
            255,
            255,
            0.09
        );

    border-radius: 8px;

    outline: none;

    background:
        #111319;

    color:
        #c9ccd5;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

#chapterSort:hover,
#chapterVolumeFilter:hover,
#chapterSort:focus,
#chapterVolumeFilter:focus {
    border-color:
        rgba(
            240,
            82,
            165,
            0.28
        );

    background:
        #15171e;
}


/* ---------------------------------------------------------
   CHAPTER TYPOGRAPHY
--------------------------------------------------------- */

.chapter-row {
    font-family:
        "Plus Jakarta Sans",
        sans-serif;
}

.chapter-number {
    color:
        #858996;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.2;

    font-variant-numeric:
        tabular-nums;
}

.chapter-title {
    margin: 0;

    color:
        #e8e9ee;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 12px;
    font-weight: 650;

    line-height: 1.45;

    letter-spacing:
        -0.12px;

    overflow:
        hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.chapter-meta {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 5px;

    color:
        #777b86;

    font-size: 9px;
    font-weight: 500;

    line-height: 1.3;
}

.chapter-volume,
.chapter-date {
    color:
        #777b86;

    font-size: 9px;
    font-weight: 500;
}

.chapter-new {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: fit-content;

    margin-top: 7px;

    padding: 3px 6px;

    border:
        1px solid rgba(
            240,
            82,
            165,
            0.16
        );

    border-radius: 5px;

    background:
        rgba(
            240,
            82,
            165,
            0.06
        );

    color:
        #f28fbd;

    font-size: 7px;
    font-weight: 800;

    letter-spacing:
        0.6px;
}

.chapter-read {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 50px;
    height: 32px;

    padding: 0 10px;

    border:
        1px solid rgba(
            255,
            255,
            255,
            0.075
        );

    border-radius: 7px;

    color:
        #bfc2cc;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.chapter-read:hover {
    border-color:
        rgba(
            240,
            82,
            165,
            0.22
        );

    background:
        rgba(
            240,
            82,
            165,
            0.055
        );

    color:
        #f5a1ca;

    transform:
        translateY(-1px);
}


/* ---------------------------------------------------------
   CONTRIBUTOR / TEAM AVATAR
--------------------------------------------------------- */

#uploaderAvatar,
#teamAvatar {
    overflow:
        hidden;

    flex:
        0 0 auto;
}

#uploaderAvatar img,
#teamAvatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

#uploaderAvatar i,
#teamAvatar i {
    margin: 0;

    color:
        #f4a0c7;

    font-size: 15px;

    line-height: 1;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 720px) {

    #coverMeta {
        width: 100%;
        gap: 6px;
    }

    #coverMetaType,
    #coverMetaStatus {
        min-height: 24px !important;

        font-size: 8px !important;
    }

    #chapterSearchInput,
    #chapterSort,
    #chapterVolumeFilter {
        height: 38px;
    }

    .chapter-title {
        font-size: 11px;
    }

    .chapter-meta,
    .chapter-volume,
    .chapter-date {
        font-size: 8px;
    }

    .chapter-read {
        min-width: 45px;
        height: 30px;

        padding: 0 8px;

        font-size: 8px;
    }
}

/* =========================================================
   CHAPTER CONTROLS — PERFECT VERTICAL ALIGNMENT
========================================================= */

.chapter-actions {
    display: flex !important;

    align-items: center !important;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 8px;

    width: 100%;

    box-sizing: border-box;
}

.chapter-actions > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    align-self: center !important;

    box-sizing: border-box;
}

#chapterSearchInput {
    flex:
        1 1 220px;

    min-width:
        180px;

    margin: 0 !important;

    align-self:
        center !important;

    vertical-align:
        middle;
}

.chapter-filter {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    height: 40px !important;

    margin: 0 !important;

    padding:
        0 12px !important;

    box-sizing:
        border-box !important;

    line-height:
        1 !important;

    white-space:
        nowrap;

    vertical-align:
        middle;
}

#chapterSort,
#chapterVolumeFilter {
    flex:
        0 0 auto;

    height: 40px !important;

    margin:
        0 !important;

    padding:
        0 12px !important;

    box-sizing:
        border-box;

    vertical-align:
        middle;
}

@media (max-width: 720px) {

    .chapter-actions {
        align-items:
            stretch !important;
    }

    #chapterSearchInput {
        flex:
            1 1 100%;

        min-width:
            100%;
    }

    .chapter-filter,
    #chapterSort,
    #chapterVolumeFilter {
        flex:
            1 1 0;

        min-width:
            0;

        height:
            38px !important;
    }
}

/* =========================================================
   CHAPTER CONTROLS — FINAL ALIGNMENT
========================================================= */

.chapter-section-top {
    display: flex !important;

    align-items: center !important;

    justify-content: flex-start !important;

    flex-wrap: wrap !important;

    gap: 14px !important;

    width: 100%;

    box-sizing: border-box;
}

.chapter-actions {
    display: flex !important;

    align-items: center !important;

    justify-content: flex-start !important;

    flex-wrap: nowrap !important;

    gap: 8px !important;

    width: auto !important;

    margin-left: 0 !important;

    margin-right: 0 !important;

    padding: 0 !important;

    box-sizing: border-box;
}

.chapter-actions > * {
    flex:
        0 0 auto !important;

    align-self: center !important;

    margin-top: 0 !important;

    margin-bottom: 0 !important;
}

#chapterSearchInput {
    width: 240px !important;

    min-width: 240px !important;

    height: 40px !important;

    margin: 0 !important;
}

#chapterSort,
#chapterVolumeFilter {
    width: auto !important;

    min-width: 105px !important;

    height: 40px !important;

    margin: 0 !important;

    align-self: center !important;
}

.chapter-filter {
    height: 40px !important;

    margin: 0 !important;

    align-self: center !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    box-sizing: border-box !important;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 720px) {

    .chapter-section-top {
        align-items:
            flex-start !important;

        gap: 12px !important;
    }

    .chapter-actions {
        width:
            100% !important;

        flex-wrap:
            wrap !important;

        justify-content:
            flex-start !important;
    }

    #chapterSearchInput {
        width:
            100% !important;

        min-width:
            100% !important;
    }

    #chapterSort,
    #chapterVolumeFilter,
    .chapter-filter {
        flex:
            1 1 0 !important;

        min-width:
            0 !important;
    }
}

/* =========================================================
   CHAPTER — PUBLISHED BY
========================================================= */

.chapter-published-by {
    position: relative;

    display: inline-flex;

    align-items: center;

    margin-left: 2px;

    padding-left: 9px;

    color:
        #686c77;

    font-size: 8px;

    font-weight: 500;

    line-height: 1.3;

    white-space: nowrap;
}

.chapter-published-by::before {
    content: "•";

    position: absolute;

    left: 0;

    color:
        #4d5059;
}

@media (max-width: 720px) {

    .chapter-published-by {
        font-size: 7.5px;

        padding-left: 8px;
    }
}

/* =========================================================
   TITLE TYPE + STATUS — FINAL
========================================================= */

.title-label {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 20px;
}

#titleTypeBadge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 5px 8px !important;

    white-space: nowrap !important;
    line-height: 1 !important;
}

#titleStatus {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    gap: 7px !important;

    margin: 0 !important;
    padding: 0 !important;

    white-space: nowrap !important;
    line-height: 1 !important;
}

#titleStatusText {
    display: inline-block !important;

    margin: 0 !important;
    padding: 0 !important;

    white-space: nowrap !important;
    line-height: 1 !important;
}

#titleStatus i {
    position: static !important;

    display: inline-block !important;
    flex: 0 0 6px !important;

    width: 6px !important;
    height: 6px !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 50% !important;

    font-size: 0 !important;
    line-height: 1 !important;

    background: var(--green) !important;

    box-shadow:
        0 0 10px rgba(74, 222, 128, 0.45) !important;
}

/* Remove the duplicate copy below the cover */
#coverMeta {
    display: none !important;
}

/* =========================================================
   HERO TYPE + STATUS — FINAL SPACING
   ========================================================= */

.title-label {
    gap: 4px !important;
}

.cv-hero-status-dot {
    margin-right: 0 !important;
}

#titleStatus {
    margin-left: 0 !important;
    gap: 0 !important;
}
/* =========================================================
   MOBILE CHAPTER CONTROLS — FINAL
   ========================================================= */

@media (max-width: 720px) {

    .chapter-actions {
        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            88px
            98px !important;

        gap: 7px !important;

        align-items: stretch !important;

        min-width: 0 !important;
    }


    /* SEARCH */

    .chapter-search {
        position: relative !important;

        display: flex !important;
        align-items: center !important;

        width: 100% !important;
        min-width: 0 !important;

        height: 40px !important;

        box-sizing: border-box !important;
    }

    .chapter-search i {
        position: absolute !important;

        left: 11px !important;

        top: 50% !important;

        transform: translateY(-50%) !important;

        width: auto !important;

        margin: 0 !important;

        font-size: 11px !important;

        pointer-events: none !important;

        z-index: 2 !important;
    }

    .chapter-search input {
        display: block !important;

        width: 100% !important;
        min-width: 0 !important;

        height: 100% !important;

        box-sizing: border-box !important;

        padding:
            0 10px 0 32px !important;

        margin: 0 !important;
    }


    /* SORT + VOLUME */

    .chapter-filter {
        width: 100% !important;
        min-width: 0 !important;

        height: 40px !important;

        box-sizing: border-box !important;

        flex: none !important;

        margin: 0 !important;
    }


    /* =====================================================
       NEW BADGE — FAR RIGHT ON MOBILE
       ===================================================== */

    .chapter-row {
        position: relative !important;
    }

    .chapter-new {
        position: absolute !important;

        right: 42px !important;

        top: 50% !important;

        transform: translateY(-50%) !important;

        display: inline-flex !important;

        align-items: center !important;
        justify-content: center !important;

        white-space: nowrap !important;

        z-index: 3 !important;
    }
}


@media (max-width: 430px) {

    .chapter-actions {
        grid-template-columns:
            minmax(0, 1fr)
            82px
            92px !important;

        gap: 6px !important;
    }

    .chapter-search {
        height: 38px !important;
    }

    .chapter-filter {
        height: 38px !important;
    }

    .chapter-search input {
        padding-left: 30px !important;
    }

    .chapter-search i {
        left: 10px !important;
        font-size: 10px !important;
    }

    .chapter-new {
        right: 40px !important;
    }
}

/* Chapter rows reserve space for artwork, number, text and action on small screens. */
@media (max-width: 700px) {
    .chapter-row {
        grid-template-columns: 38px 44px minmax(0,1fr) 42px !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
    }
    .chapter-thumb { width: 38px; height: 50px; }
    .chapter-number { white-space: nowrap; font-size: 9px; }
    .chapter-info { min-width: 0; overflow: hidden; }
    .chapter-info > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .chapter-row .chapter-read { grid-column: auto !important; justify-self: end !important; }
}

/* Narrow-screen chapter controls and rows use the full card width instead of
   shrinking native selects until their labels are unreadable. */
@media (max-width: 720px) {
  .chapter-section-top { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; }
  .chapter-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .chapter-search { grid-column: 1 / -1 !important; width: 100% !important; min-width: 0 !important; }
  #chapterSearchInput { width: 100% !important; min-width: 0 !important; }
  #chapterSort, #chapterVolumeFilter, .chapter-filter { width: 100% !important; min-width: 0 !important; padding-inline: 9px !important; font-size: 11px !important; }
  .chapter-row {
    display: grid !important;
    grid-template-columns: 40px minmax(0,1fr) auto !important;
    grid-template-areas: "thumb info read" !important;
    align-items: center !important;
    gap: 9px !important;
    min-height: 66px !important;
    padding: 8px 10px !important;
  }
  .chapter-row > .chapter-thumb { grid-area: thumb !important; width: 40px !important; height: 52px !important; }
  .chapter-row > .chapter-info { grid-area: info !important; min-width: 0 !important; overflow: hidden !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; }
  .chapter-row .chapter-number { display: block !important; margin: 0 0 3px !important; color: #ee77c2 !important; font-size: 9px !important; }
  .chapter-row .chapter-title { width: 100% !important; max-width: 100% !important; font-size: 11px !important; }
  .chapter-row .chapter-meta { width: 100% !important; min-width: 0 !important; gap: 4px 6px !important; }
  .chapter-row .chapter-meta span { font-size: 8px !important; }
  .chapter-row .chapter-new { position: static !important; align-self: flex-start !important; margin: 4px 0 0 !important; transform: none !important; }
  .chapter-row > .chapter-read { grid-area: read !important; justify-self: end !important; min-width: 43px !important; padding-inline: 7px !important; font-size: 9px !important; }
}

@media (max-width: 380px) {
  .chapter-actions { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; }
  .chapter-search { grid-column: 1 / -1 !important; }
  #chapterSort, #chapterVolumeFilter { height: 40px !important; font-size: 10px !important; }
  .chapter-row { grid-template-columns: 36px minmax(0,1fr) auto !important; gap: 7px !important; padding-inline: 7px !important; }
  .chapter-row > .chapter-thumb { width: 36px !important; height: 48px !important; }
}
/* =========================================================
   PAYWALL BADGES & THUMBNAIL FIXES
   ========================================================= */
.chapter-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 62, 165, 0.15);
    color: #ff5eb8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    margin-left: 8px;
    vertical-align: middle;
}

.chapter-preview-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    margin-left: 6px;
}

/* Fix Chapter List Row alignment when no image */
.chapter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    /* Ensure it stays flex even if thumbnail is missing */
}

.chapter-info {
    flex: 1;
    min-width: 0;
}
/* =========================================================
   FIX: Chapter Row Layout & Badges
   ========================================================= */
.chapter-row {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    box-sizing: border-box;
}

.chapter-thumb {
    width: 42px !important;
    height: 56px !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    object-fit: cover !important;
    background: #17121a;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Agar thumbnail nahi hai, toh text ko thoda left se shuru karne ke liye space adjust karein */
.chapter-row.no-thumbnail {
    padding-left: 16px !important;
}

.chapter-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
}

.chapter-title {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 4px;
}

.chapter-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 62, 165, 0.15);
    color: #ff5eb8;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
}

.chapter-preview-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    margin-left: 6px;
}

.chapter-new {
    margin-top: 4px;
    width: fit-content;
}

/* =========================================================
   FIX: Reader HUD Thumbnail Squish
   ========================================================= */
#hudChapterThumbnail {
    width: 28px !important;
    height: 38px !important; /* Height thodi badi taaki aspect ratio theek rahe */
    min-width: 28px !important;
    min-height: 38px !important;
    max-width: 28px !important;
    max-height: 38px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0 !important; /* Isse dabne se rokega */
    margin-right: 6px;
}

/* =========================================================
   PREMIUM LATEST CHAPTER UI
   ========================================================= */
.latest-chapter {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(25, 18, 32, 0.9), rgba(14, 11, 18, 0.95));
    border: 1px solid rgba(255, 62, 165, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.latest-chapter::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 62, 165, 0.08), transparent 40%);
    pointer-events: none;
}

.latest-chapter:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 62, 165, 0.3);
    box-shadow: 0 15px 40px rgba(255, 62, 165, 0.1), inset 0 1px 0 rgba(255,255,255,0.08);
}

.latest-art {
    width: 64px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: #17121a;
    position: relative;
    z-index: 1;
}

.latest-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.latest-info .section-kicker {
    color: #ff5eb8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.latest-info h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #f8f0f9;
    letter-spacing: -0.5px;
}

.latest-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #a89cab;
    font-weight: 500;
    margin-top: 4px;
}

.latest-meta span {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
}

.latest-read {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff3ea5, #d345ff);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(255, 62, 165, 0.25);
    transition: all 0.2s ease;
}

.latest-read:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(255, 62, 165, 0.4);
}

/* Fix for missing thumbnails in Chapter List */
.chapter-row.no-thumbnail {
    grid-template-columns: minmax(0, 1fr) auto !important;
}

/* Mobile view fix for Latest Chapter */
@media (max-width: 600px) {
    .latest-chapter {
        grid-template-columns: auto 1fr !important;
        gap: 15px;
        padding: 15px;
    }
    .latest-read {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }
}/* =========================================================
   HARD FIX: READER HUD THUMBNAIL (NO SQUISH)
   ========================================================= */
#hudChapterThumbnail {
    width: 28px !important;
    height: 38px !important;
    min-width: 28px !important;
    min-height: 38px !important;
    max-width: 28px !important;
    max-height: 38px !important;
    object-fit: cover !important;
    border-radius: 5px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    flex-shrink: 0 !important; /* Prevents the flexbox from squishing it */
    display: block !important;
    margin-right: 6px;
}

/* =========================================================
   PREMIUM CHAPTER LIST & LATEST UI OVERRIDES
   ========================================================= */

/* Fix Latest Meta (Remove Dot & Background) */
.latest-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a89cab;
    margin-top: 4px;
}
.latest-meta span {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}
.latest-meta .chapter-meta-separator {
    display: none !important; /* Hides the dot */
}

/* Latest Lock Badge */
.latest-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Thumbnail Wrapper & Lock Overlay */
.chapter-thumb-wrap {
    position: relative;
    width: 42px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chapter-thumb-wrap .chapter-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
}

.chapter-thumb-lock {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: grid;
    place-items: center;
    color: #ffc107;
    font-size: 14px;
}

/* Fix Chapter List Row alignment */
.chapter-row {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px 16px !important;
    width: 100% !important;
}

.chapter-info {
    flex: 1 !important;
    min-width: 0 !important;
}

/* =========================================================
   FIX: WHITE BACKGROUND ON COIN IMAGE & SHARPNESS
   ========================================================= */
img[src*="cv-coin"], 
.cv-coin-icon {
    mix-blend-mode: multiply !important; /* Magic trick: makes white transparent */
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.5)); /* Sharp look */
    display: inline-block;
    vertical-align: middle;
}

/* Big Paywall coin */
.big-paywall-cost .cv-coin-icon {
    width: 36px !important;
    height: 36px !important;
}

.latest-thumb-lock {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
    display: grid; place-items: center;
    color: #fbbf24 !important; font-size: 20px;
}

/* =========================================================
   FIX: Gold Lock Icon (Latest Chapter Thumbnail)
   ========================================================= */
.latest-thumb-lock i {
    color: #fbbf24 !important;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}
/* =========================================================
   FIX: Latest Chapter Button & Layout
   ========================================================= */
.latest-chapter {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px;
}

.latest-info {
    flex: 1 !important;
}

.latest-read {
    width: auto !important;
    min-width: 140px;
    max-width: 180px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .latest-chapter {
        flex-wrap: wrap;
    }
    .latest-read {
        width: 100% !important;
        max-width: 100%;
    }
}

/* =========================================================
   LATEST CHAPTER LAYOUT FIX
   ========================================================= */
.latest-chapter {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
}

.latest-info {
    flex: 1 !important;
    min-width: 0 !important; /* Text ko squeeze hone se bachata hai */
    display: flex !important;
    flex-direction: column !important;
}

.latest-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.latest-read {
    width: auto !important;
    min-width: 160px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: center;
    white-space: nowrap !important;
}

.gold-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #000 !important;
}

.preview-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.preview-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* =========================================================
   GOLD UNLOCK BUTTON — pure gold glow (no pink shadow)
   `.gold-btn` sirf background/color override karta tha, isliye
   `.latest-read` ka pink box-shadow chipka reh jata tha.
   ========================================================= */
.latest-read.gold-btn {
    border: 1px solid rgba(251, 191, 36, 0.45) !important;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.latest-read.gold-btn:hover {
    box-shadow: 0 0 32px rgba(251, 191, 36, 0.7) !important;
    transform: translateY(-2px);
}

/* Read Preview (latest chapter) — gold-tinted, no pink */
.latest-read.preview-btn {
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    color: #fbbf24 !important;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.18) !important;
}

.latest-read.preview-btn:hover {
    background: rgba(251, 191, 36, 0.14) !important;
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.35) !important;
}

/* Chapter list "Preview (N pages)" chip: fixed 32px height me text katta
   tha, isliye chip ko grow karne do. */
.chapter-read.btn-preview {
    height: auto !important;
    min-height: 32px;
    padding: 6px 10px !important;
    white-space: nowrap;
    font-size: 8px !important;
    line-height: 1.2;
    gap: 4px;
}

/* Unlock success icon (title page modal) */.cv-unlock-icon.success {
    background: rgba(112, 225, 172, 0.15) !important;
    color: #70e1ac !important;
    border: 1px solid rgba(112, 225, 172, 0.3);
    animation: cvPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cvPopIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
    .latest-chapter {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .latest-actions {
        width: 100% !important;
        flex-direction: column !important;
    }
    .latest-read {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* =========================================================
   CUSTOM UNLOCK CONFIRMATION MODAL
   ========================================================= */
.cv-unlock-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.cv-unlock-card {
    background: #15101a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    width: min(90%, 400px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cv-unlock-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    display: grid;
    place-items: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.cv-unlock-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 20px;
}

.cv-unlock-card p {
    margin: 0 0 25px;
    color: #aaa;
    font-size: 14px;
}

.cv-unlock-card strong {
    color: #fbbf24;
}

.cv-unlock-actions {
    display: flex;
    gap: 10px;
}

.cv-unlock-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.btn-confirm {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

/* =========================================================
   FINAL FIX: COIN ICON & BUTTON ALIGNMENT
   ========================================================= */
.latest-read {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: max-content !important;
}

/* =========================================================
   FIX: UNLOCKED BADGES & COIN SHADOW
   ========================================================= */

/* Thumbnail Unlocked Overlay */
.chapter-thumb-unlocked {
    position: absolute;
    inset: 0;
    background: rgba(74, 222, 128, 0.15);
    backdrop-filter: blur(1px);
    display: grid;
    place-items: center;
    color: #4ade80; /* Green */
    font-size: 16px;
    border-radius: 6px;
}

/* Unlocked Text Badge (Next to title) */
.chapter-unlocked-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    margin-left: 8px;
}

/* Fix Coin Black Shadow inside Badge */
.chapter-lock-badge .cv-coin-icon {
    mix-blend-mode: normal !important; /* Screen/Multiply hataya */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 14px !important;
    height: 14px !important;
    margin-left: 4px !important;
    vertical-align: middle !important;
    border-radius: 50% !important;
}

/* Latest Read button coin */
.latest-read .cv-coin-icon {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 !important;
    display: inline-block !important;
    mix-blend-mode: screen !important;
    filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.5)) !important;
}

/* =========================================================
   PREMIUM CHAPTER COUNT BADGE
   ========================================================= */
.section-heading-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

#chaptersCount {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    min-width: 0 !important;
    padding: 4px 10px !important;
    background: rgba(236, 72, 153, 0.12) !important;
    border: 1px solid rgba(236, 72, 153, 0.25) !important;
    border-radius: 20px !important;
    color: #f472b6 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    position: static !important; /* Hatawa ke inline kar diya */
    margin: 0 !important;
}

/* =========================================================
   CUSTOM PREMIUM DROPDOWNS
   ========================================================= */
.chapter-filter {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;

    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    color: var(--text-soft) !important;

    /* Pink Arrow SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f472b6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;

    padding: 8px 32px 8px 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

/* Hover aur Focus State */
.chapter-filter:hover,
.chapter-filter:focus {
    border-color: rgba(236, 72, 153, 0.3) !important;
    background-color: rgba(236, 72, 153, 0.05) !important;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.1) !important;
}

/* Options ko style karna (Windows/Linux par kaam karega) */
.chapter-filter option {
    background-color: #11131b !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px;
}

/* =========================================================
   PREMIUM CUSTOM DROPDOWNS
   ========================================================= */
.custom-dropdown {
    position: relative;
    user-select: none;
    min-width: 120px;
}

.custom-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-dropdown-trigger:hover {
    border-color: rgba(236, 72, 153, 0.3);
    background: rgba(236, 72, 153, 0.05);
}

.custom-dropdown-trigger i {
    color: #f472b6;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #15101a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 5px;
    margin: 0;
    list-style: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.custom-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-menu li {
    padding: 8px 10px;
    border-radius: 6px;
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.custom-dropdown-menu li:hover {
    background: rgba(236, 72, 153, 0.1);
    color: #fff;
}

.custom-dropdown-menu li.is-selected {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}

/* =========================================================
   MOBILE LAYOUT FIXES
   ========================================================= */
@media (max-width: 720px) {
    /* Fix Search and Filters */
    .chapter-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    .chapter-search {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    .custom-dropdown {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Fix Latest Chapter sizing */
    .latest-chapter {
        padding: 12px !important;
        gap: 10px !important;
    }

    .latest-art {
        width: 50px !important;
        height: 65px !important;
    }

    .latest-info {
        gap: 2px !important;
    }

    .latest-info h3 {
        font-size: 15px !important;
    }

    .latest-meta {
        font-size: 10px !important;
    }
}

/* =========================================================
   FIX: DOUBLE BORDER ON DESKTOP
   ========================================================= */
@media (min-width: 721px) {
    .chapter-actions {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        gap: 8px !important;
    }

    .custom-dropdown-trigger {
        min-width: 120px !important;
    }
}
/* =========================================================
   FINAL LAYOUT FIX — LATEST CHAPTER + CHAPTER CONTROLS
   File ke end me hai taaki purane stacked rules override ho jayein.
   ========================================================= */

/* Latest Chapter: thumbnail LEFT, title RIGHT, buttons niche */
.latest-chapter {
    display: grid !important;
    grid-template-columns: 90px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 18px !important;
    padding: 20px !important;
}

.latest-art {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 90px !important;
    height: 120px !important;
    min-height: 0 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #0b0b10 !important;
    overflow: hidden !important;
}

.latest-art .latest-chapter-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.latest-info {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-width: 0 !important;
    align-self: start !important;
}

.latest-actions {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 2px !important;
}

.latest-actions .latest-read {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

@media (max-width: 600px) {
    .latest-chapter {
        grid-template-columns: 70px minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 14px !important;
    }

    .latest-art {
        width: 70px !important;
        height: 95px !important;
    }
}

/* =========================================================
   CHAPTER CONTROLS — search + dropdown alignment
   ========================================================= */

.chapter-section-top {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.chapter-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: auto !important;
    margin-left: auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.chapter-actions .chapter-search {
    flex: 1 1 200px !important;
    min-width: 150px !important;
    max-width: 320px !important;
    height: 40px !important;
}

.chapter-actions .chapter-search input,
.chapter-actions #chapterSearchInput {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.chapter-actions .custom-dropdown {
    flex: 0 0 auto !important;
    width: 132px !important;
    min-width: 132px !important;
    align-self: center !important;
}

.chapter-actions .custom-dropdown-trigger {
    width: 100% !important;
    height: 40px !important;
    box-sizing: border-box !important;
    justify-content: space-between !important;
    padding: 0 12px !important;
    white-space: nowrap !important;
}

@media (max-width: 720px) {
    .chapter-section-top {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 12px !important;
    }

    .chapter-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .chapter-actions .chapter-search {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .chapter-actions .custom-dropdown {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* =========================================================
   CHAPTER LIST ROW — Preview + Unlock buttons
   ========================================================= */

.chapter-row-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.chapter-row-actions .chapter-read {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    justify-self: auto !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.chapter-read.btn-unlock {
    height: auto !important;
    min-height: 34px !important;
    padding: 7px 12px !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #000 !important;
    border: 1px solid rgba(251, 191, 36, 0.45) !important;
    border-radius: 8px !important;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.3) !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
    cursor: pointer !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.chapter-read.btn-unlock:hover {
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.5) !important;
    transform: translateY(-1px) !important;
}

.chapter-row-actions .cv-coin-icon {
    width: 14px !important;
    height: 14px !important;
}

/* =========================================================
   FINAL VISUAL FIX — GOLD PREVIEW + MODAL ANIMATIONS
   Sirf colors / shadows / animations.
   Koi grid, flex-direction ya latest-chapter layout rule nahi.
   ========================================================= */

/* 1. Preview Button — Gold Theme (list chip + latest card) */
.btn-preview,
.latest-read.preview-btn {
    background: transparent !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    color: #fbbf24 !important;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.15) !important;
    transition: all 0.3s ease !important;
}

.btn-preview:hover,
.latest-read.preview-btn:hover {
    background: rgba(251, 191, 36, 0.1) !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.3) !important;
    transform: translateY(-2px);
}

.btn-preview i,
.latest-read.preview-btn i {
    color: #fbbf24 !important;
}

/* 2. Modal buttons — smooth hover / press animation */
.cv-unlock-actions button {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center;
}

.cv-unlock-actions .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.03);
}

.cv-unlock-actions .btn-confirm {
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.cv-unlock-actions .btn-confirm:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
    filter: brightness(1.1);
}

.cv-unlock-actions .btn-confirm:active {
    transform: translateY(0) scale(0.98);
}

/* =========================================================
   SEARCH BAR ALIGNMENT FIX
   (latest-chapter ka koi rule nahi — sirf controls bar)
   ========================================================= */

/* =========================================================
CHAPTER SECTION — PROPER LAYOUT
"Reading" label above "Chapters 2" heading
Search + dropdowns below in separate row
========================================================= */
.chapter-section-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

/* Heading wrapper: "Reading" + "Chapters 2" */
.chapter-section-top > div:first-child,
.chapter-section-top > .section-heading-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
}

/* "Reading" kicker label */
.chapter-section-top .section-kicker,
.chapter-section-top > span:first-child {
    color: var(--pink-light) !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* "Chapters 2" heading */
.chapter-section-top h2,
.chapter-section-top > h2 {
    margin: 0 !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    line-height: 1 !important;
    color: var(--text) !important;
}

/* Chapter count badge next to heading */
.chapter-section-top h2 + #chaptersCount,
.chapter-section-top .section-heading-row #chaptersCount {
    margin-left: 8px !important;
    vertical-align: middle !important;
}

/* Search + dropdowns row */
.chapter-section-top .chapter-actions,
.chapter-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 4px !important;
}

/* Search input */
.chapter-actions .chapter-search,
.chapter-search {
    flex: 1 1 280px !important;
    min-width: 200px !important;
    max-width: 400px !important;
    height: 42px !important;
}

/* Dropdowns */
.chapter-actions .custom-dropdown,
.chapter-actions select,
.chapter-filter {
    flex: 0 0 auto !important;
    min-width: 120px !important;
    height: 42px !important;
}

/* Mobile: stack everything */
@media (max-width: 720px) {
    .chapter-section-top {
        gap: 12px !important;
    }
    .chapter-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .chapter-actions .chapter-search,
    .chapter-search {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }
    .chapter-actions .custom-dropdown,
    .chapter-actions select,
    .chapter-filter {
        width: 100% !important;
        min-width: 0 !important;
    }
}
.chapter-section-top > div:first-child {
display: flex !important;
align-items: center !important;
gap: 8px !important;
flex: 0 0 auto !important;
}
.chapter-section-top h2 {
margin: 0 !important;
font-size: 22px !important;
line-height: 1 !important;
}
#chaptersCount {
margin: 0 !important;
vertical-align: middle !important;
}

.chapter-actions {
display: flex !important;
flex-wrap: nowrap !important;
align-items: center !important;
justify-content: flex-end !important;
gap: 8px !important;
flex: 0 1 auto !important;
max-width: calc(100% - 200px) !important;
margin-left: auto !important;
padding: 0 !important;
border: none !important;
background: transparent !important;
overflow: hidden !important;
}
.chapter-actions .custom-dropdown {
flex: 0 0 auto !important;
width: 120px !important;
min-width: 100px !important;
max-width: 140px !important;
}

/* Search box ka koi base style title.css me nahi tha, isliye input
   browser ka default (dashed/plain) border le raha tha. */
.chapter-search {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 1 200px !important;
    min-width: 150px !important;
    max-width: 320px !important;
    height: 40px !important;
    box-sizing: border-box !important;
    padding: 0 12px 0 34px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.chapter-search:focus-within {
border-color: rgba(236, 72, 153, 0.45) !important;
box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.08) !important;
}

.chapter-search i {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    margin: 0 !important;
    font-size: 12px !important;
    color: #9a94a6 !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.chapter-search input,
.chapter-actions #chapterSearchInput {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
}

@media (max-width: 720px) {
.chapter-section-top {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
}
.chapter-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: none !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
}
.chapter-actions .chapter-search {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}
.chapter-actions .custom-dropdown {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}
.chapter-actions .custom-dropdown-trigger {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 10px !important;
    padding: 0 8px !important;
}
}

/* =========================================================
LATEST CHAPTER — FINAL CLEAN LAYOUT
Thumbnail LEFT | Title+Meta MIDDLE | Buttons RIGHT
NO empty space. NO broken mobile.
========================================================= */
.latest-chapter {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
}

/* Thumbnail — fixed size, left side */
.latest-art {
    width: 60px !important;
    height: 80px !important;
    min-width: 60px !important;
    flex: 0 0 60px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #0b0b10 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

.latest-art .latest-chapter-cover,
.latest-art img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Info section — title + meta, middle */
.latest-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    grid-column: auto !important;
    grid-row: auto !important;
}

.latest-info .section-kicker,
.latest-info > span:first-child {
    color: #ff5eb8 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
}

.latest-info h3,
.latest-info strong {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #f8f0f9 !important;
    margin: 2px 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.latest-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 11px !important;
    color: #a89cab !important;
    margin-top: 2px !important;
}

.latest-meta span {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

/* Buttons — right side, inline with title */
.latest-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto !important;
    margin-top: 0 !important;
}

.latest-actions .latest-read {
    width: auto !important;
    min-width: 120px !important;
    padding: 10px 16px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}

/* =========================================================
MOBILE — stack vertically, compact
========================================================= */
@media (max-width: 720px) {
    .latest-chapter {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 14px !important;
        flex-wrap: nowrap !important;
    }
    .latest-art {
        width: 50px !important;
        height: 68px !important;
        min-width: 50px !important;
        flex: 0 0 50px !important;
    }
    .latest-info {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
    .latest-info h3,
    .latest-info strong {
        font-size: 14px !important;
    }
    .latest-meta {
        font-size: 10px !important;
    }
    .latest-actions {
        flex-direction: column !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
    }
    .latest-actions .latest-read {
        min-width: 0 !important;
        width: 110px !important;
        padding: 8px 10px !important;
        font-size: 10px !important;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .latest-chapter {
        flex-wrap: wrap !important;
    }
    .latest-actions {
        flex-direction: row !important;
        width: 100% !important;
        justify-content: stretch !important;
    }
    .latest-actions .latest-read {
        flex: 1 1 0 !important;
        width: auto !important;
    }
}

/* =========================================================
FIX: LATEST CARD BUTTONS — STACK VERTICAL + COIN ROUND
========================================================= */
.latest-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    flex: 0 0 auto !important;
    /* width:100% + max-width = buttons column apni jagah par, title squeeze nahi hota */
    width: 100% !important;
    max-width: 220px !important;
    margin-top: 0 !important;
}

.latest-actions .latest-read {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    padding: 12px 16px !important;
}

/* Unlock button mein icon + text gap */
.latest-read.gold-btn,
.latest-read.btn-unlock {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Coin icon ko ROUND karo */
.latest-read .cv-coin-icon,
.chapter-read .cv-coin-icon {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    mix-blend-mode: normal !important;
    background: transparent !important;
}

/* Mobile mein bhi same vertical stack */
@media (max-width: 720px) {
    .latest-actions {
        flex-direction: column !important;
        gap: 8px !important;
        max-width: 170px !important;
    }
    .latest-actions .latest-read {
        width: 100% !important;
        min-width: 0 !important;
        padding: 9px 10px !important;
    }
}

/* =========================================================
TEMPORARY COIN FIX — JPEG white background hide karo
========================================================= */
.cv-coin-icon,
img[src*="cv-coin"] {
    mix-blend-mode: normal !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    background: transparent !important;
    width: 16px !important;
    height: 16px !important;
}

/* Dark backgrounds par multiply wapas laga do */
.chapter-lock-badge .cv-coin-icon,
.chapter-preview-badge .cv-coin-icon {
    mix-blend-mode: multiply !important;
    background: transparent !important;
}

/* =========================================================
MOBILE LATEST CHAPTER FIX — THUMB+TITLE TOP, BUTTONS BOTTOM
Overrides all previous conflicting media queries.
========================================================= */
@media (max-width: 720px) {
    .latest-chapter {
        flex-wrap: wrap !important;
        padding: 14px !important;
        gap: 12px !important;
    }

    .latest-art {
        width: 50px !important;
        height: 68px !important;
        min-width: 50px !important;
        flex: 0 0 50px !important;
    }

    .latest-info {
        flex: 1 1 calc(100% - 62px) !important;
        min-width: 0 !important;
    }

    .latest-actions {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 4px !important;
        gap: 8px !important;
    }

    .latest-actions .latest-read {
        width: 100% !important;
        min-width: 0 !important;
        padding: 10px !important;
    }
}

/* =========================================================
MOBILE COMPACT FIX & LAYOUT CLEANUP
========================================================= */
@media (max-width: 600px) {
    .latest-chapter {
        padding: 12px !important;
        gap: 12px !important;
        grid-template-columns: 50px minmax(0, 1fr) !important;
    }
    .latest-art {
        width: 50px !important;
        height: 68px !important;
    }
    .latest-info h3 {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }
    .latest-meta {
        font-size: 9px !important;
        gap: 6px !important;
    }

    .latest-actions {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }
    .latest-actions .latest-read {
        width: 100% !important;
        padding: 10px !important;
        font-size: 11px !important;
        min-height: 38px !important;
    }

    .chapter-row {
        padding: 10px !important;
        gap: 10px !important;
    }
    .chapter-thumb-wrap, .chapter-thumb {
        width: 38px !important;
        height: 50px !important;
    }
    .chapter-title {
        font-size: 11px !important;
    }
    .chapter-read {
        padding: 6px 10px !important;
        font-size: 9px !important;
        min-height: 30px !important;
    }
}

/* =========================================================
COIN ICON TEMPORARY FIX (Remove White Background)
========================================================= */
.cv-coin-icon,
img[src*="cv-coin"] {
    mix-blend-mode: screen !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: transparent !important;
}

.latest-read.gold-btn .cv-coin-icon,
.btn-unlock .cv-coin-icon,
.big-paywall-btn .cv-coin-icon {
    mix-blend-mode: multiply !important;
}

/* Latest chapter ko search se alag rakho */
.chapter-section-top {
margin-bottom: 20px !important;
position: relative !important;
z-index: 2 !important;
}
.latest-chapter {
position: relative !important;
z-index: 1 !important;
margin-top: 0 !important;
}

/* =========================================================
CHAPTER SECTION TOP — FINAL FIX
"Reading" + "Chapters 2" left side, Search + Filters right side
========================================================= */
.chapter-section-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

.chapter-section-top > div:first-child,
.chapter-section-top > .section-heading-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
}

.chapter-section-top .section-kicker {
    color: var(--pink-light) !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.chapter-section-top h2 {
    margin: 0 !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    line-height: 1 !important;
    color: var(--text) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#chaptersCount {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 24px !important;
    height: 20px !important;
    padding: 0 7px !important;
    background: rgba(236, 72, 153, 0.12) !important;
    border: 1px solid rgba(236, 72, 153, 0.25) !important;
    border-radius: 20px !important;
    color: #f472b6 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    vertical-align: middle !important;
}

.chapter-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    max-width: 600px !important;
    margin-left: auto !important;
}

.chapter-search {
    flex: 1 1 240px !important;
    min-width: 200px !important;
    max-width: 320px !important;
    height: 42px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px 0 36px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.chapter-search:focus-within {
    border-color: rgba(236, 72, 153, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.08) !important;
}

.chapter-search i {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9a94a6 !important;
    font-size: 12px !important;
    pointer-events: none !important;
}

.chapter-search input,
#chapterSearchInput {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    color: #fff !important;
    font-size: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.chapter-search input::placeholder {
    color: #777b86 !important;
}

.custom-dropdown,
.chapter-filter {
    flex: 0 0 auto !important;
    min-width: 120px !important;
    height: 42px !important;
}

.custom-dropdown-trigger,
.chapter-filter {
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    color: var(--text-soft) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
}

.custom-dropdown-trigger:hover,
.chapter-filter:hover {
    border-color: rgba(236, 72, 153, 0.3) !important;
    background: rgba(236, 72, 153, 0.05) !important;
}

@media (max-width: 720px) {
    .chapter-section-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .chapter-actions {
        width: 100% !important;
        max-width: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .chapter-search {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }
    .custom-dropdown,
    .chapter-filter {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* =========================================================
FIX: READING LABEL & CHAPTERS ALIGNMENT
========================================================= */

.chapter-section-top .section-kicker {
    text-transform: none !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    color: var(--pink-light) !important;
    margin-bottom: 4px !important;
    display: block !important;
}

.chapter-section-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

.chapter-section-top > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    flex: 0 0 auto !important;
}

.chapter-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 1 1 auto !important;
    max-width: 600px !important;
    margin-left: auto !important;
    gap: 10px !important;
}

@media (max-width: 720px) {
    .chapter-section-top {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .chapter-actions {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
    }
}

/* =========================================================
CHAPTER SECTION — HEADING + SEARCH SAME LINE (LEFT ALIGNED)
========================================================= */
.chapter-section-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
}

.chapter-section-top > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
}

.chapter-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    max-width: none !important;
    margin-left: 0 !important;
}

.chapter-search {
    flex: 0 1 280px !important;
    min-width: 200px !important;
    max-width: 320px !important;
}

.custom-dropdown {
    flex: 0 0 auto !important;
    min-width: 120px !important;
}

@media (max-width: 720px) {
    .chapter-section-top {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .chapter-actions {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .chapter-search {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }
    .custom-dropdown {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* =========================================================
MOBILE FIX: DROPDOWNS SIDE-BY-SIDE
========================================================= */
@media (max-width: 720px) {
    .chapter-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .chapter-search {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
    .custom-dropdown,
    .chapter-filter {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* =========================================================
MOBILE DROPDOWNS — SIDE BY SIDE (FINAL FIX)
========================================================= */
@media (max-width: 720px) {
    .chapter-section-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .chapter-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
    .chapter-search {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: none !important;
    }
    .custom-dropdown {
        width: 100% !important;
        min-width: 0 !important;
    }
    .custom-dropdown-trigger {
        width: 100% !important;
        font-size: 10px !important;
        padding: 0 8px !important;
    }
}

/* =========================================================
MOBILE DROPDOWNS — FORCE SIDE-BY-SIDE
========================================================= */
@media (max-width: 720px) {
    body .chapter-section-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    body .chapter-section-top .chapter-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
    body .chapter-section-top .chapter-search {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: none !important;
    }
    body .chapter-section-top .custom-dropdown,
    body .chapter-section-top .chapter-filter {
        width: 100% !important;
        min-width: 0 !important;
    }
    body .chapter-section-top .custom-dropdown-trigger,
    body .chapter-section-top .chapter-filter {
        width: 100% !important;
        font-size: 10px !important;
        padding: 0 8px !important;
    }
}

/* =========================================================
FIX: DROPDOWN MENU CLIPPED (desktop + mobile)
`.chapter-actions` par `overflow: hidden` tha. Dropdown ka menu
position:absolute hai, isliye wo container ke 42px box se bahar
clip ho kar gayab ho jata tha — button dikhta tha, list nahi.
========================================================= */
.chapter-actions,
.chapter-section-top {
    overflow: visible !important;
}

/* =========================================================
COIN ICON — transparent PNG ke liye purane JPEG hacks off
JPEG ke zamane ke `screen` / `multiply` blend hacks transparent
PNG par coin ko wash-out / muddy kar dete the. Ab normal.
========================================================= */
.cv-coin-icon,
img[src*="cv-coin"],
.chapter-lock-badge .cv-coin-icon,
.chapter-preview-badge .cv-coin-icon,
.chapter-row-actions .cv-coin-icon,
.latest-read .cv-coin-icon,
.latest-read.gold-btn .cv-coin-icon,
.btn-unlock .cv-coin-icon,
.big-paywall-btn .cv-coin-icon {
    mix-blend-mode: normal !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    object-fit: contain !important;
}
