/* Moonbook manhwa details page — extracted from Razor for browser caching. */

/* Details.cshtml #1 */
/* =========================================================
               MOON BOOK - MANHWA DETAILS PAGE
               فقط استایل مربوط به چیدمان خود صفحه
            ========================================================= */

    .manhwa-details-page {
        width: 100%;
        color: #f3f3f5;
    }

    /* =========================================================
               MAIN LAYOUT
            ========================================================= */

    .manhwa-details-layout {
        width: calc(100% - 40px);
        max-width: 1680px;
        margin: 16px auto 40px;
        display: grid;
        grid-template-columns: 310px minmax(0, 1fr) 310px;
        gap: 16px;
        direction: ltr;
        align-items: start;
    }

    .details-left-column,
    .details-center-column,
    .details-right-column {
        direction: rtl;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* =========================================================
               TABLET
            ========================================================= */

    @media (max-width: 1150px) {
        .manhwa-details-layout {
            grid-template-columns: 288px minmax(0, 1fr) 288px;
        }
    }

    @media (max-width: 900px) {
        .manhwa-details-layout {
            grid-template-columns: 1fr 240px;
        }

        .details-left-column {
            grid-column: 1 / -1;
            display: flex;
            flex-direction: column;
            gap: 16px;
            order: 3;
        }

        .details-center-column {
            order: 1;
        }

        .details-right-column {
            order: 2;
        }
    }

    /* =========================================================
       MOBILE
       ========================================================= */

    @media (max-width: 680px) {

        .manhwa-details-layout {
            display: flex;
            flex-direction: column;
            width: calc(100% - 28px);
            max-width: none;
            margin: 12px 14px 24px;
            gap: 12px;
        }

        .details-left-column,
        .details-center-column,
        .details-right-column {
            display: contents;
        }

            .details-breadcrumb,
            .details-hero,
            .details-sidebar-wrapper,
            .summary-box,
            .details-center-column > section,
            .story-insight-box,
            .similar-box {
                width: 100%;
                max-width: 100%;
                margin: 0;
                box-sizing: border-box;
            }
            /* =====================================================
           MOBILE ORDER
        ===================================================== */

            .details-center-column > .details-breadcrumb {
                order: 0;
            }

            .details-center-column > .details-hero {
                order: 1;
            }

            .details-right-column > .details-sidebar-wrapper {
                order: 2;
                gap: 12px;
            }

            .details-center-column > .summary-box {
                order: 3;
            }

            .details-center-column > section {
                order: 4;
            }

            .details-left-column > .story-insight-box {
                order: 5;
            }

            .details-right-column > .similar-box {
                order: 6;
            }

            .details-center-column > #manhwaCommentsSection {
                order: 7;
            }

        .site-header {
            display: none;
        }

        .details-cover-card {
            display: none;
        }
    }


    /* =========================================================
       SMALL PHONES
       ========================================================= */

    @media (max-width: 390px) {

        .manhwa-details-layout {
            width: calc(100% - 24px);
            margin-left: 12px;
            margin-right: 12px;
        }
    }

/* Details.cshtml #2 */
.details-breadcrumb {
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: 6px;
                    margin-bottom: 0;
                    padding: 8px 12px;
                    background: #0d1118;
                    border: 1px solid #252b34;
                    border-radius: 8px;
                    font-size: 12px;
                    color: #9aa3af;
                }

                    .details-breadcrumb a {
                        color: #a78bfa;
                        text-decoration: none;
                    }

                        .details-breadcrumb a:hover {
                            text-decoration: underline;
                        }

                    .details-breadcrumb .separator {
                        color: #5b6472;
                    }

                    .details-breadcrumb .current {
                        color: #f3f3f5;
                        font-weight: 600;
                    }

/* Details.cshtml #3 */
.manhwa-comment-item { background:#0c1017; border:1px solid #252b35; border-radius:12px; padding:14px 16px; }
            .manhwa-comment-meta { display:flex; align-items:center; gap:10px; font-size:12px; color:#8a93a3; margin-bottom:8px; flex-wrap:wrap; }
            .manhwa-comment-date { margin-inline-start: auto; font-size: 11px; color: #717d91; }
            .manhwa-comment-author { color:#e6e8ec; font-weight:600; }
            a.manhwa-comment-author.is-linked { text-decoration:none; }
            a.manhwa-comment-author.is-linked:hover { color:#d59cfb; text-decoration:underline; }
            /* نشانِ برتر نویسنده کنار نام — رنگ بر اساس کمیابی */
            .manhwa-comment-badge { display:inline-flex; align-items:center; justify-content:center; font-size:11px; }
            .manhwa-comment-badge.is-common { color:#8b98ab; }
            .manhwa-comment-badge.is-rare { color:#4da3ff; }
            .manhwa-comment-badge.is-epic { color:#b45cff; }
            .manhwa-comment-badge.is-legendary { color:#ffc94d; }
            .manhwa-comment-admin { display:inline-flex; align-items:center; gap:4px; padding:1px 7px; font-size:10px; font-weight:700; line-height:1.6; color:#7dd3fc; background:rgba(56,189,248,.12); border:1px solid rgba(56,189,248,.35); border-radius:999px; }
            .manhwa-comment-admin i { font-size:10px; }
            .manhwa-comment-chapter { background:#1a0d2e; color:#e2c8f5; padding:2px 8px; border-radius:6px; font-size:11px; }
            .manhwa-comment-body { font-size:14px; line-height:1.7; white-space:pre-wrap; word-break:break-word; margin:0; }
            .manhwa-comment-spoiler-label { display:inline-flex; align-items:center; gap:4px; background:#3a1f3a; color:#e2c8f5; padding:2px 8px; border-radius:6px; font-size:11px; }
            .manhwa-comment-reveal { margin-top:8px; background:#a44ce6; color:#fff; border:none; border-radius:8px; padding:6px 14px; font-size:12px; cursor:pointer; font-family:inherit; }
            .manhwa-comment-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; flex-wrap:wrap; }
            .manhwa-comment-actions { display:flex; align-items:center; gap:10px; }

/* _StoryInsight.cshtml #1 */
.story-insight-box {
        position: relative;
        padding: 20px;
        overflow: hidden;
        background: radial-gradient(circle at top right, rgba(151, 68, 243, 0.14), transparent 36%), #0d1118;
        border: 1px solid #252b34;
        border-radius: 12px;
    }

        .story-insight-box::before {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(164, 78, 240, 0.65), transparent);
        }

    .insight-header {
        padding-bottom: 16px;
        border-bottom: 1px solid #222832;
    }

    .insight-main-title {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .insight-header-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        border: 1px solid rgba(169, 81, 232, 0.32);
        border-radius: 11px;
        background: linear-gradient(135deg, rgba(151, 68, 243, 0.22), rgba(109, 40, 217, 0.08));
        color: #c48cff;
        font-size: 16px;
        box-shadow: 0 6px 16px -4px rgba(151, 68, 243, 0.35);
    }

    .insight-title-content {
        min-width: 0;
    }

    .insight-title {
        margin: 0;
        color: #f3f4f6;
        font-size: 16px;
        font-weight: 700;
    }

    .insight-subtitle {
        display: block;
        margin-top: 4px;
        color: #88919f;
        font-size: 11.5px;
    }

    .insight-loading {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-height: 160px;
        padding: 10px 0 4px;
    }

        .insight-loading[hidden] {
            display: none !important;
        }

    .insight-skeleton-block {
        border-radius: 8px;
        background-color: #141923;
    }

        .insight-skeleton-block.is-title {
            width: 58%;
            height: 20px;
        }

        .insight-skeleton-block.is-line {
            width: 100%;
            height: 14px;
        }

        .insight-skeleton-block.is-short {
            width: 76%;
            height: 14px;
        }

    .insight-skeleton-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 4px;
    }

    .insight-skeleton-pill {
        width: 84px;
        height: 30px;
        border-radius: 999px;
        background-color: #141923;
    }
    .insight-section {
        padding: 18px 0;
        border-bottom: 1px solid #222832;
    }

        .insight-section:last-child {
            padding-bottom: 0;
            border-bottom: none;
        }

    .insight-section-title {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #e5e7eb;
    }

    .insight-section-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        border: 1px solid rgba(164, 78, 240, 0.22);
        border-radius: 9px;
        background: rgba(131, 61, 221, 0.14);
        color: #c084fc;
        font-size: 14px;
    }

    .insight-section-heading {
        margin: 0;
        color: #f1f3f6;
        font-size: 14.5px;
        font-weight: 700;
    }

    /* Moon Book Review */

    .moon-score-main {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 14px;
        padding: 14px 16px;
        border: 1px solid rgba(164, 78, 240, 0.28);
        border-radius: 11px;
        background: radial-gradient(circle at top left, rgba(164, 78, 240, 0.14), transparent 60%), #121722;
    }

    .moon-score-label {
        margin-bottom: 4px;
        color: #939ba8;
        font-size: 11px;
    }

    .moon-score-value {
        display: flex;
        align-items: baseline;
        gap: 5px;
    }

        .moon-score-value strong {
            color: #ffffff;
            font-size: 34px;
            font-weight: 800;
            line-height: 1;
        }

        .moon-score-value span {
            color: #88919f;
            font-size: 12px;
        }

    .moon-pick {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border: 1px solid rgba(245, 185, 52, 0.35);
        border-radius: 999px;
        background: rgba(245, 185, 52, 0.10);
        color: #fbbf24;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
    }

    .moon-review-text {
        margin: 14px 0 0;
        color: #b4bcc8;
        font-size: 13px;
        line-height: 2;
        white-space: pre-line;
    }

    /* AI Summary */

    .ai-summary {
        margin: 14px 0 0;
        color: #b4bcc8;
        font-size: 13px;
        line-height: 2;
    }

    /* AI Profile */

    .ai-profile {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 16px;
        padding: 14px;
        border: 1px solid #222936;
        border-radius: 11px;
        background: #111620;
    }

    .ai-profile-row {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .ai-profile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .ai-profile-info {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

        .ai-profile-info i {
            width: 16px;
            color: #a855f7;
            text-align: center;
            font-size: 13px;
        }

    .ai-profile-label {
        color: #cfd5df;
        font-size: 12px;
        font-weight: 500;
    }

    .ai-level-text {
        padding: 1px 8px;
        border-radius: 999px;
        background: rgba(151, 68, 243, 0.12);
        border: 1px solid rgba(169, 81, 232, 0.25);
        color: #d8b4fe;
        font-size: 10.5px;
        font-weight: 600;
        white-space: nowrap;
    }

    .ai-level {
        display: flex;
        gap: 5px;
    }

        .ai-level span {
            flex: 1;
            height: 6px;
            border-radius: 10px;
            background: #232a36;
        }

            .ai-level span.active {
                background: linear-gradient(90deg, #833ddd, #b366ff);
                box-shadow: 0 0 8px rgba(164, 78, 240, 0.35);
            }

    /* Audience */

    .ai-audience {
        display: grid;
        gap: 12px;
        margin-top: 25px;
    }

    .ai-audience-item {
        position: relative;
        padding: 15px;
        overflow: hidden;
        border: 1px solid #252c36;
        border-radius: 10px;
        background: #121720;
    }

        .ai-audience-item::before {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 3px;
            height: 100%;
            background: #833ddd;
        }

        .ai-audience-item.not-recommended::before {
            background: #555e6c;
        }

    .ai-audience-title {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #d5d8de;
        font-size: 13px;
        font-weight: 500;
    }

        .ai-audience-title i {
            color: #a44ef0;
        }

    .ai-audience-item.not-recommended .ai-audience-title i {
        color: #8b94a0;
    }

    .ai-audience-item p {
        margin: 9px 0 0;
        color: #7f8792;
        font-size: 12px;
        line-height: 2;
    }

    .ai-notice {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid #222832;
        color: #68707b;
        font-size: 11px;
        line-height: 2;
    }

    /* User Rating */

    .user-rating-main {
        margin-top: 22px;
        padding: 17px;
        border: 1px solid #252c36;
        border-radius: 11px;
        background: #111720;
    }

    .user-score-value {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .user-score-value strong {
            color: #ffffff;
            font-size: 38px;
            font-weight: 700;
            line-height: 1;
        }

    .user-stars {
        display: flex;
        gap: 3px;
        color: #f5b934;
        font-size: 15px;
    }

    .user-rating-total {
        margin-top: 9px;
        color: #777f8b;
        font-size: 12px;
    }

    /* Rating Breakdown */

    .rating-breakdown {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 18px;
    }

    .rating-breakdown-row {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 35px;
        align-items: center;
        gap: 9px;
    }

    .rating-breakdown-label {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #7d8590;
        font-size: 11px;
    }

        .rating-breakdown-label i {
            color: #f5b934;
            font-size: 10px;
        }

    .rating-breakdown-bar {
        height: 6px;
        overflow: hidden;
        border-radius: 10px;
        background: #252c35;
    }

    .rating-breakdown-fill {
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #b67b1d, #f5b934);
        transition: width 0.35s ease;
    }

    .rating-breakdown-count {
        color: #6f7782;
        font-size: 10px;
        text-align: left;
    }

    /* User Rating Input */

    .user-rating-input-wrapper {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #222832;
    }

    .user-rating-input-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 10px;
    }

    .user-rating-input-title {
        margin: 0;
        color: #c6cbd4;
        font-size: 13px;
        font-weight: 600;
    }

    .user-rating-badge {
        display: inline-flex;
        align-items: center;
        padding: 2px 9px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
        background: #171c26;
        border: 1px solid #2a3240;
        color: #8d95a3;
        white-space: nowrap;
    }

        .user-rating-badge.has-rating {
            background: rgba(151, 68, 243, 0.14);
            border-color: rgba(169, 81, 232, 0.38);
            color: #d8b4fe;
        }

    .user-rating-input {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

        .user-rating-input .rating-option {
            height: 38px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #262e3b;
            border-radius: 8px;
            background: #121721;
            color: #4a5261;
            font: inherit;
            font-size: 18px;
            cursor: pointer;
            transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
        }

            .user-rating-input .rating-option:hover,
            .user-rating-input .rating-option.active {
                color: #f5b934;
                border-color: rgba(245, 185, 52, 0.42);
                background: rgba(245, 185, 52, 0.08);
            }

            .user-rating-input .rating-option:hover {
                transform: translateY(-1px);
            }

            .user-rating-input .rating-option:focus-visible {
                outline: 2px solid #a44ef0;
                outline-offset: 2px;
                border-radius: 8px;
            }

    .user-rating-message {
        min-height: 18px;
        margin-top: 8px;
        color: #9fc3a9;
        font-size: 11px;
    }

        .user-rating-message:empty {
            display: none;
        }

    .login-required {
        margin-top: 20px;
        padding: 14px;
        border: 1px dashed #3a4250;
        border-radius: 9px;
        text-align: center;
        color: #777f8b;
        font-size: 12px;
    }

        .login-required a {
            color: #b568ff;
            text-decoration: none;
        }

    /* Reactions */

    .reactions-summary {
        margin-top: 14px;
        padding-top: 0;
        border-top: none;
    }

    .reactions-summary-title {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 11px;
        color: #969da8;
        font-size: 12px;
    }

        .reactions-summary-title i {
            color: #a44ef0;
        }

    .reactions-summary-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .reaction-summary-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 10px;
        border: 1px solid #292f39;
        border-radius: 8px;
        background: #171c24;
        color: #969da7;
        font-size: 12px;
        transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    }

        .reaction-summary-item:hover {
            border-color: rgba(164, 78, 240, 0.35);
            background: #1a202a;
            transform: translateY(-1px);
        }

    .reaction-summary-icon {
        font-size: 15px;
    }

    .reaction-summary-count {
        color: #777e89;
        font-weight: 500;
    }

    @media (max-width: 480px) {
        .story-insight-box {
            padding: 16px;
            border-radius: 12px;
        }

        .insight-section {
            padding: 20px 0;
        }

        .moon-score-main {
            padding: 15px;
        }

        .moon-score-value strong {
            font-size: 38px;
        }

        .moon-pick {
            padding: 7px 9px;
            font-size: 10px;
        }

        .rating-breakdown-row {
            grid-template-columns: 38px minmax(0, 1fr) 30px;
        }

        .reaction-summary-item {
            padding: 5px 8px;
            font-size: 10px;
        }
    }

/* _ManhwaHero.cshtml #1 */
/* =========================================================
           MANHWA HERO
           ========================================================= */
    .details-hero {
        position: relative;
        min-height: 415px;
        overflow: hidden;
        border: 1px solid #292f39;
        border-radius: 12px;
        background: #080b11;
        box-sizing: border-box;
        margin-top: 0;
    }

    /* =========================================================
           BACKGROUND
           ========================================================= */
    .details-hero-background {
        position: absolute;
        inset: 0;
    }

        .details-hero-background img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center;
            opacity: .95;
        }

    .details-hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(6, 9, 14, .05) 0%, rgba(6, 9, 14, .48) 45%, rgba(6, 9, 14, .96) 100%);
    }

    /* =========================================================
           CONTENT
           ========================================================= */
    .details-hero-content {
        position: relative;
        z-index: 2;
        min-height: 415px;
        padding: 34px 36px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
        box-sizing: border-box;
    }

    /* =========================================================
           TITLE
           ========================================================= */
    .details-title-area {
        margin-top: 30px;
        max-width: 100%;
    }

    .verified-title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .verified-title h1 {
            margin: 0;
            color: #fff;
            font-size: 46px;
            line-height: 1.2;
            font-weight: 800;
        }

    .details-english-title {
        margin: 6px 0 0;
        color: #b6bac2;
        font-size: 20px;
        font-weight: 500;
        direction: ltr;
        text-align: left;
        overflow-wrap: anywhere;
    }

    /* =========================================================
           GENRES
           ========================================================= */
    .hero-genres {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        max-width: 100%;
        margin-top: 23px;
    }

        .hero-genres span,
        .hero-genres a {
            padding: 7px 16px;
            border-radius: 19px;
            background: rgba(39, 43, 52, .85);
            color: #c8cbd1;
            font-size: 13px;
            line-height: 1.4;
            text-decoration: none;
            white-space: nowrap;
            transition: .2s;
        }

            .hero-genres a:hover {
                background: #21182b;
                color: #c98cf0;
            }

    /* =========================================================
           ACTIONS
           ========================================================= */
    .hero-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: auto;
    }

    .hero-action {
        height: 71px;
        min-width: 204px;
        padding: 0 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        border: 1px solid #323842;
        border-radius: 8px;
        background: rgba(17, 21, 29, .9);
        color: #e4e5e8;
        font-family: inherit;
        font-size: 13px;
        cursor: pointer;
        transition: .2s;
        box-sizing: border-box;
    }

        .hero-action:hover:not(:disabled) {
            border-color: #7f3ec1;
            background: #191521;
        }

        .hero-action i {
            color: #9b48e4;
            font-size: 20px;
        }

    /* =========================================================
           TABLET
           ========================================================= */
    @media (max-width: 1150px) {
        .details-hero

    {
        min-height: 444px;
    }

    .details-hero-content {
        min-height: 444px;
        padding: 30px;
    }

    .verified-title h1 {
        font-size: 38px;
    }

    .hero-action {
        min-width: 140px;
    }

    }

    /* =========================================================
           MOBILE - تغییر الگو به بنر بالا + محتوای جدا
           ========================================================= */
    @media (max-width: 680px) {
        .details-hero

    {
        min-height: 0;
        height: auto;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        background: #080b11;
    }

    /* بنر در بالا، با نسبت 16:9 */
    .details-hero-background {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        flex-shrink: 0;
    }

        .details-hero-background img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

    /* Overlay فقط روی بنر */
    .details-hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: auto;
        aspect-ratio: 16 / 9;
        background: linear-gradient(180deg, rgba(6,9,14,0.1) 0%, rgba(6,9,14,0.6) 80%, #080b11 100%);
    }

    /* محتوا به صورت مستقل و زیر بنر */
    .details-hero-content {
        position: relative;
        z-index: 2;
        min-height: 0;
        height: auto;
        padding: 20px 18px 24px;
        margin-top: -20px; /* کمی همپوشانی با بنر */
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .details-title-area {
        margin-top: 0;
        width: 100%;
    }

    .verified-title h1 {
        font-size: 28px;
        line-height: 1.35;
    }

    .details-english-title {
        font-size: 16px;
        margin-top: 4px;
    }

    .hero-genres {
        gap: 6px;
        margin-top: 16px;
    }

        .hero-genres span,
        .hero-genres a {
            padding: 7px 14px;
            font-size: 12px;
        }

    .hero-actions {
        width: 100%;
        margin-top: 24px;
        gap: 10px;
    }

    .hero-action {
        width: 100%;
        min-width: 0;
        height: 56px; /* ارتفاع مناسب لمس */
        padding: 0 16px;
        font-size: 14px; /* خوانا */
        gap: 10px;
        border-radius: 10px;
    }

        .hero-action i {
            font-size: 18px;
        }

    }

    /* =========================================================
           SMALL PHONES
           ========================================================= */
    @media (max-width: 390px) {
        .details-hero-content

    {
        padding: 16px 14px 20px;
    }

    .verified-title h1 {
        font-size: 24px;
    }

    .hero-action {
        height: 50px;
        font-size: 13px;
    }

    }

/* _ManhwaSummary.cshtml #1 */
/* =====================================================
           MANHWA DETAILS - SUMMARY
        ====================================================== */

    .summary-box {
        padding: 20px;
        background: #0d1118;
        border: 1px solid #252b34;
        border-radius: 12px;
        overflow: hidden;
    }


    /* =====================================================
           HEADER
        ====================================================== */

    .box-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 16px;
        border-bottom: 1px solid #272d35;
    }

        .box-header span {
            display: block;
            margin-bottom: 4px;
            color: #9250c4;
            font-size: 14px;
        }

        .box-header h2 {
            margin: 0;
            font-size: 18px;
        }

        .box-header > i {
            color: #713a9e;
        }


    /* =====================================================
           SUMMARY TEXT
        ====================================================== */

    .summary-text {
        padding-top: 16px;
    }

        .summary-text p {
            margin: 0;
            color: #afb3ba;
            font-size: 18px;
            line-height: 2.2;
        }


    /* =====================================================
           RESPONSIVE
        ====================================================== */

    @media (max-width: 900px) {
        .summary-box

    {
        padding: 18px;
}

    .summary-text p {
        font-size: 16px;
        line-height: 2;
    }

    }

/* _ChapterList.cshtml #1 */
/* =========================================================
                   MOON BOOK - CHAPTER LIST
                ========================================================= */

    .chapters-box {
        padding: 14px;
        background: #0d1118;
        border: 1px solid #252b34;
        border-radius: 12px;
        overflow: hidden;
    }

    .chapters-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 6px 6px 14px;
    }

    .box-header-title span {
        display: block;
        margin-bottom: 4px;
        color: #9250c4;
        font-size: 14px;
    }

    .box-header-title h2 {
        margin: 0;
        color: #f3f3f5;
        font-size: 18px;
    }

    .view-all-chapters {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #9c4fe1;
        font-size: 11px;
        text-decoration: none;
        white-space: nowrap;
    }

        .view-all-chapters:hover {
            color: #c98cf0;
        }

    /* =========================================================
                   SORT
                ========================================================= */

    .chapter-sort {
        display: flex;
        align-items: center;
        gap: 5px;
        width: max-content;
        margin-bottom: 10px;
        padding: 4px;
        border: 1px solid #252b34;
        border-radius: 8px;
        background: #131820;
    }

    .sort-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 7px 12px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: #7f8590;
        font-family: inherit;
        font-size: 13px;
        cursor: pointer;
        transition: .2s;
    }

        .sort-button:hover {
            color: #c5c8ce;
        }

        .sort-button.active {
            background: #26202f;
            color: #c694e7;
        }

    /* =========================================================
                   CHAPTER GROUPS
                ========================================================= */

    .chapter-groups {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* گروه فصل‌ها به‌صورت کارت: گوشه‌ی گردتر، حاشیه‌ی ملایم و فاصله‌ی
       بیشتر بین کارت‌ها. تغییر صرفاً ظاهری است و ساختار details/summary
       دست‌نخورده می‌ماند. */
    .chapter-group {
        /* هر عمق یک سطح روشن‌تر از والد؛ متغیرها سربرگ و حاشیه را هم هماهنگ می‌کنند. */
        --chapter-surface: #141b25;
        --chapter-border: #303d50;
        --chapter-border-hover: #42536a;
        --chapter-header: #1a2330;
        box-sizing: border-box;
        overflow: hidden;
        border: 1px solid var(--chapter-border);
        border-radius: 12px;
        background: var(--chapter-surface);
        transition: border-color .2s ease;
    }

        .chapter-group:hover {
            border-color: var(--chapter-border-hover);
        }

        .chapter-group > summary {
            position: relative;
            min-height: 56px;
            padding: 0 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            color: #e4e5e8;
            cursor: default;
            list-style: none;
            user-select: none;
            transition: .2s;
        }

            .chapter-group > summary::-webkit-details-marker {
                display: none;
            }

            .chapter-group > summary::marker {
                display: none;
            }

            .chapter-group > summary:hover {
                background: var(--chapter-header);
            }

            .chapter-group > summary:focus-visible {
                outline: 2px solid #a44ef0;
                outline-offset: -2px;
            }

        .chapter-group[open] > summary {
            background: var(--chapter-header);
            border-bottom: 1px solid var(--chapter-border);
        }

    .chapter-group-title {
        display: flex;
        align-items: center;
        gap: 11px;
        min-width: 0;

        /* با اضافه شدن تیک گروهی، عنوان فضای آزاد را می‌گیرد تا تیک و فلش
           کنار هم و در انتهای ردیف (سمت چپ در RTL) بمانند. */
        flex: 1 1 auto;
    }

    .chapter-group-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 7px;
        background: #1c1724;
        color: #a44ee8;
        font-size: 13px;
    }

    .chapter-group-text {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }

        .chapter-group-text strong {
            color: #e4e5e8;
            font-size: 14px;
            font-weight: 600;
        }

        .chapter-group-text span {
            color: #777e89;
            font-size: 10px;
        }

    /* دکمه‌های استاندارد همان ظاهر قبلی را بدون استایل پیش‌فرض مرورگر دارند. */
    .chapter-group-arrow,
    .chapter-group-read-toggle {
        font-family: inherit;
        appearance: none;
    }

    .chapter-group-arrow {
        border: 0;
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        /* سطح کلیک راحت‌تر؛ تنها کنترل باز و بسته‌شدن گروه. */
        box-sizing: border-box;
        padding: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #171c24;
        color: #898f99;
        font-size: 11px;
        transition: transform .2s, color .2s;
    }

    .chapter-group-arrow:focus-visible {
        outline: 2px solid #a44ef0;
        outline-offset: 2px;
    }

    .chapter-group[open] > summary .chapter-group-arrow {
        color: #b970ed;
        transform: rotate(180deg);
    }

    /* =========================================================
       تیک گروهی سه‌حالته (هیچ‌کدام / بعضی / همه)
       ========================================================= */

    .chapter-group-read-toggle {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid #2f3846;
        background: #131922;
        color: #6b7380;
        font-size: 13px;
        cursor: pointer;
        transition: .18s ease;
        -webkit-user-select: none;
        user-select: none;
    }

        .chapter-group-read-toggle:hover {
            border-color: rgba(168, 76, 240, .55);
            background: #1a1626;
            color: #c9a2ee;
        }

        .chapter-group-read-toggle:focus-visible {
            outline: 2px solid #aa55ff;
            outline-offset: 2px;
        }

        /* همه‌ی فصل‌های گروه تیک دارند → تیک پر */
        .chapter-group-read-toggle.is-all {
            border-color: rgba(168, 76, 240, .5);
            background: rgba(168, 76, 240, .16);
            color: #c79bf5;
        }

        /* فقط بخشی از فصل‌های گروه تیک دارند → نیمه */
        .chapter-group-read-toggle.is-partial {
            border-color: rgba(168, 76, 240, .4);
            border-style: dashed;
            background: rgba(168, 76, 240, .1);
            color: #b98ce0;
        }

        /* تا رسیدن وضعیت اولیه یا هنگام ارسال درخواست */
        .chapter-group-read-toggle.is-loading,
        .chapter-group-read-toggle.is-busy {
            opacity: .45;
            cursor: progress;
        }

    /* =========================================================
                   NESTED GROUPS
                ========================================================= */

    .chapter-group-content {
        /* محتوا لایه‌ی رنگی یا حاشیه‌ی جدا ندارد؛ سطح خود گروه دیده می‌شود. */
        background: transparent;
        border: 0;
        /* پدینگ دو برابر گپ همین سطح است (۸ ← ۱۶). */
        --chapter-content-padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: var(--chapter-content-padding);
        /* سهم عمودیِ پدینگ ثابتِ انیمیشن؛ باقی فاصله روی فرزندان تأمین می‌شود. */
        padding-block: 8px;
        box-sizing: border-box;
        transition: height 0.3s ease, padding-block 0.3s ease;
    }

    .chapter-group-content.is-animating {
        overflow: hidden;
    }

    /* انیمیشن JS پدینگ عمودی را بین صفر و ۸px تغییر می‌دهد. برای حفظ آن
       قرارداد بدون ویرایش JS، فاصله‌ی اضافه همیشه روی اولین/آخرین فرزند است.
       مجموع پدینگ و این فاصله برابر متغیر بالاست؛ scrollHeight آن را می‌سنجد
       و هنگام شروع/پایان انیمیشن هیچ فاصله‌ای اضافه یا حذف نمی‌شود. */
    .chapter-group-content > :first-child {
        margin-block-start: calc(var(--chapter-content-padding) - 8px);
    }

    .chapter-group-content > :last-child {
        margin-block-end: calc(var(--chapter-content-padding) - 8px);
    }

    @media (prefers-reduced-motion: reduce) {
        .chapter-group-content, .chapter-group-arrow {
            transition: none;
        }
    }

        /* عمق بیشتر: گپ موجود ۷px حفظ می‌شود و پدینگ دو برابر آن است. */
        .chapter-group-content .chapter-group-content {
            --chapter-content-padding: 14px;
            gap: 7px;
        }

        .chapter-group-content .chapter-group {
            --chapter-surface: #1b2431;
            --chapter-border: #3b4b61;
            --chapter-border-hover: #506580;
            --chapter-header: #243043;
        }

        /* در صفحات بزرگ، گروه‌های ۱۰۰۰ → ۱۰۰ → ۱۰ سه عمق دارند. */
        .chapter-group-content .chapter-group-content .chapter-group {
            --chapter-surface: #232e3d;
            --chapter-border: #485b73;
            --chapter-border-hover: #5b7190;
            --chapter-header: #2b394c;
        }

        /* والد مستقیم فصل‌ها: فاصله‌ی لبه ۱۲px، برابر ۱٫۵ برابر گپ ۸px لیست است. */
        .chapter-group-content:has(> .chapter-list) {
            --chapter-content-padding: 12px;
        }

            .chapter-group-content .chapter-group > summary {
                min-height: 48px;
                padding: 0 12px;
            }

        .chapter-group-content .chapter-group-icon {
            width: 30px;
            height: 30px;
            flex-basis: 30px;
            font-size: 11px;
        }

        .chapter-group-content .chapter-group-text strong {
            font-size: 13px;
        }

    /* =========================================================
                   CHAPTER ITEMS
                ========================================================= */

    .chapter-list {
        /* رنگ سطحِ کامپوننت مشترک اینجا لازم نیست؛ فقط چیدمان و فاصله‌ها حفظ می‌شوند. */
        background: transparent;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        /* فاصله‌ی مستقل بین کارت‌های فصل در دسکتاپ و موبایل. */
        gap: 8px;
    }

    /* کارت فصل تیره و هم‌خانواده‌ی تم است؛ روشن‌تر از کارت گروه نمی‌شود. */
    .chapter-item {
        box-sizing: border-box;
        min-height: 60px;
        padding: 9px 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        border: 1px solid #2a3443;
        border-radius: 12px;
        background: #141b25;
        color: #e3e5e8;
        text-decoration: none;
        transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
    }

        .chapter-item:hover {
            background: #18202c;
            border-color: #354357;
            box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
        }

        .chapter-item:focus-visible {
            outline: 2px solid #a44ef0;
            outline-offset: 2px;
        }

        .chapter-item.featured {
            background: #1b1927;
            border: 1px solid rgba(131, 64, 189, .4);
        }

        .chapter-item.featured:hover {
            background: #211d2e;
            border-color: rgba(148, 82, 206, .55);
        }

        /* استایل چپترهای قفل شده */
        .chapter-item.locked {
            cursor: not-allowed;
            opacity: 0.6;
            position: relative;
        }

            .chapter-item.locked:hover {
                background: #171923;
                border-color: #2a2333;
                box-shadow: none;
            }

            .chapter-item.locked .chapter-data strong {
                color: #9a8fa8;
            }

            .chapter-item.locked .chapter-data span {
                color: #6b6373;
            }

        /* =====================================================
           استایل چپترهای فست‌پاس (پیش‌خوانی با سکه)
           ===================================================== */
        .chapter-item.fastpass {
            background: linear-gradient(90deg, rgba(234, 179, 8, 0.05) 0%, rgba(139, 92, 246, 0.08) 100%);
            border: 1px solid rgba(234, 179, 8, 0.35);
            position: relative;
        }

            .chapter-item.fastpass:hover {
                background: linear-gradient(90deg, rgba(234, 179, 8, 0.09) 0%, rgba(139, 92, 246, 0.13) 100%);
                border-color: rgba(234, 179, 8, 0.65);
                box-shadow: 0 4px 16px rgba(234, 179, 8, 0.14);
            }

            .chapter-item.fastpass.fastpass-locked {
                cursor: pointer;
            }

            .chapter-item.fastpass.unlocked {
                border-color: rgba(34, 197, 94, 0.4);
                background: linear-gradient(90deg, rgba(34, 197, 94, 0.06) 0%, rgba(20, 27, 37, 0.9) 100%);
            }

                .chapter-item.fastpass.unlocked:hover {
                    border-color: rgba(34, 197, 94, 0.7);
                    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.18);
                }

        .chapter-icon.fastpass-icon {
            background: rgba(234, 179, 8, 0.12);
            color: #facc15;
            border: 1px solid rgba(234, 179, 8, 0.3);
        }

        .fastpass-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 9px;
            border-radius: 999px;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: #0b0f14;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
            box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
        }

        .fastpass-unlocked-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 9px;
            border-radius: 999px;
            background: rgba(34, 197, 94, 0.15);
            border: 1px solid rgba(34, 197, 94, 0.4);
            color: #4ade80;
            font-size: 11px;
            font-weight: 600;
            white-space: nowrap;
        }

        .fastpass-timer {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 11px;
            color: #fbbf24;
            background: rgba(234, 179, 8, 0.1);
            border: 1px solid rgba(234, 179, 8, 0.25);
            border-radius: 6px;
            padding: 2px 7px;
            direction: rtl;
            max-width: 100%;
            white-space: normal;
            line-height: 1.4;
            margin-top: 3px;
        }

            .fastpass-timer.due {
                color: #4ade80;
                background: rgba(34, 197, 94, 0.1);
                border-color: rgba(34, 197, 94, 0.3);
            }

        .fastpass-meta {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 11px;
            color: #a78bfa;
            margin-top: 3px;
        }

        .btn-fastpass-unlock {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            border-radius: 8px;
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
            color: #ffffff;
            border: 1px solid rgba(167, 139, 250, 0.35);
            font-size: 11.5px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            margin-inline-start: auto;
        }

            .btn-fastpass-unlock:hover {
                background: linear-gradient(135deg, #9333ea, #6b21a8);
                box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
                transform: translateY(-1px);
            }

            .btn-fastpass-unlock i {
                color: #facc15;
            }

        /* =====================================================
           قسمت خوانده‌شده (فقط برای کاربر واردشده)
           ===================================================== */
        .chapter-item.read {
            opacity: .62;
        }

            .chapter-item.read:hover {
                opacity: .85;
            }

            .chapter-item.read .chapter-data strong {
                color: #9aa0ab;
            }

            /* نشان «خوانده‌شده» کنار شماره‌ی فصل */
            .chapter-item.read .chapter-read-badge {
                display: inline-flex;
                align-items: center;
                gap: 4px;
                margin-inline-start: 8px;
                padding: 2px 8px;
                border-radius: 20px;
                background: rgba(35, 139, 87, .18);
                border: 1px solid rgba(35, 139, 87, .45);
                color: #6fd39b;
                font-size: 10px;
                font-weight: 600;
                white-space: nowrap;
            }

        /* =====================================================
           تیک مطالعه‌ی دستی + نشانه‌های وضعیت فصل
           ===================================================== */

        .chapter-read-toggle {
            width: 30px;
            height: 30px;
            flex: 0 0 30px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            border: 1px solid #2f3846;
            background: #131922;
            color: #6b7380;
            font-size: 13px;
            cursor: pointer;
            transition: .18s ease;
            -webkit-user-select: none;
            user-select: none;
        }

            .chapter-read-toggle:hover {
                border-color: rgba(168, 76, 240, .55);
                background: #1a1626;
                color: #c9a2ee;
            }

            .chapter-read-toggle:focus-visible {
                outline: 2px solid #aa55ff;
                outline-offset: 2px;
            }

            /* تیک خورده: آیکون توپر بنفش */
            .chapter-read-toggle.is-read {
                border-color: rgba(168, 76, 240, .5);
                background: rgba(168, 76, 240, .16);
                color: #c79bf5;
            }

            /* تیک دارد ولی بالاتر از سقف معتبر است: ملایم‌تر تا «معتبر نشده»
               از «معتبر» قابل تشخیص باشد (توضیح در title عنصر). */
            .chapter-read-toggle.is-read.is-pending-validation {
                opacity: .7;
                border-style: dashed;
                color: #9c86b5;
            }

            .chapter-read-toggle.is-read.is-pending-validation:hover {
                opacity: 1;
            }

            /* فصل خوانده‌شده کل ردیف را کم‌رنگ می‌کند؛ تیک باید همچنان
               واضح بماند. */
            .chapter-item.read .chapter-read-toggle {
                border-color: #3a2f4d;
                background: #1a1522;
            }

            .chapter-item.read .chapter-read-toggle.is-read {
                border-color: rgba(190, 130, 255, .75);
                color: #d9b6ff;
            }

            /* در حال ارسال درخواست */
            .chapter-read-toggle.is-busy {
                opacity: .5;
                cursor: progress;
            }

            /* تا رسیدن وضعیت اولیه از API، کلیک بی‌اثر است */
            .chapter-read-toggle.is-loading {
                opacity: .45;
                cursor: progress;
            }

        /* نشانه‌ی «آخرین فصل بازشده»: حاشیه‌ی سمت راست (RTL) */
        .chapter-item.is-last-opened {
            box-shadow: inset -3px 0 0 0 #a44ce6;
            background: rgba(164, 76, 230, .08);
        }

            .chapter-item.is-last-opened:hover {
                background: rgba(164, 76, 230, .13);
            }

    .chapter-icon {
        width: 35px;
        height: 35px;
        flex: 0 0 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #858b95;
        font-size: 14px;
    }

        .chapter-icon.crown {
            color: #f4ba39;
        }

        .chapter-icon.lock {
            color: #8b7ba0;
        }

    .chapter-data {
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

        .chapter-data strong {
            color: #e3e5e8;
            font-size: 14px;
        }

        .chapter-data span {
            color: #777d87;
            font-size: 12px;
        }

    .new-badge {
        padding: 5px 10px;
        border-radius: 14px;
        background: #873fd4;
        color: white;
        font-size: 12px;
    }

    .lock-badge {
        padding: 5px 10px;
        border-radius: 14px;
        background: #2a2435;
        color: #8b7ba0;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .chapter-play {
        width: 37px;
        height: 37px;
        flex: 0 0 37px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #38205b;
        color: #bd7af0;
        font-size: 11px;
    }

        .chapter-play.locked-play {
            background: #2a2435;
            color: #8b7ba0;
        }

    /* =========================================================
                   EMPTY
                ========================================================= */

    .chapter-empty {
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        color: #777e89;
        text-align: center;
    }

        .chapter-empty i {
            color: #684080;
            font-size: 28px;
        }

        .chapter-empty span {
            font-size: 13px;
        }

    /* =========================================================
                   LOGIN MODAL
                ========================================================= */

    .login-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 9999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

        .login-modal-overlay.active {
            display: flex;
        }

    .login-modal {
        width: 100%;
        max-width: 380px;
        padding: 25px;
        background: #131720;
        border: 1px solid #3a2d4d;
        border-radius: 14px;
        text-align: center;
        animation: modalSlideUp 0.3s ease;
    }

    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .login-modal-icon {
        width: 65px;
        height: 65px;
        margin: 0 auto 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #2a1f3d;
        color: #b388ff;
        font-size: 28px;
    }

    .login-modal-title {
        color: #e4e5e8;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .login-modal-text {
        color: #9a8fa8;
        font-size: 13px;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .login-modal-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-modal-login {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        border: 0;
        border-radius: 8px;
        background: #7c3aed;
        color: white;
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        text-decoration: none;
        transition: all .2s;
    }

        .btn-modal-login:hover {
            background: #8b5cf6;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
        }

    .btn-modal-close {
        padding: 10px 20px;
        border: 1px solid #3a2d4d;
        border-radius: 8px;
        background: transparent;
        color: #9a8fa8;
        font-family: inherit;
        font-size: 13px;
        cursor: pointer;
        transition: all .2s;
    }

        .btn-modal-close:hover {
            background: #1a1424;
            border-color: #7c3aed;
        }

    /* =========================================================
                   RESPONSIVE
                ========================================================= */

    @media (max-width: 680px) {
        .chapters-box {
            margin-top: 0;
            padding: 10px;
            border-radius: 10px;
        }

        .chapters-header {
            padding: 5px 5px 12px;
        }

        .box-header-title span {
            font-size: 12px;
        }

        .box-header-title h2 {
            font-size: 16px;
        }

        .view-all-chapters {
            font-size: 10px;
        }

        .sort-button {
            padding: 6px 10px;
            font-size: 11px;
        }

        .chapter-group > summary {
            min-height: 50px;
            padding: 0 11px;
        }

        /* موبایل: نسبت دوبرابری با گپ‌های فعلی ۷ و ۶px حفظ می‌شود. */
        .chapter-group-content {
            --chapter-content-padding: 14px;
            gap: 7px;
        }

        .chapter-group-content .chapter-group-content {
            --chapter-content-padding: 12px;
            gap: 6px;
        }

        .chapter-group-icon {
            width: 30px;
            height: 30px;
            flex-basis: 30px;
        }

        .chapter-group-text strong {
            font-size: 12px;
        }

        .chapter-group-text span {
            font-size: 9px;
        }

        .chapter-item {
            min-height: 56px;
            padding: 8px 9px;
            gap: 8px;
            border-radius: 10px;
        }

        .chapter-icon {
            width: 30px;
            height: 30px;
            flex-basis: 30px;
        }

        .chapter-data strong {
            font-size: 12px;
        }

        .chapter-data span {
            font-size: 10px;
        }

        .new-badge,
        .lock-badge {
            padding: 4px 8px;
            font-size: 10px;
        }

        .chapter-play {
            width: 32px;
            height: 32px;
            flex-basis: 32px;
            font-size: 9px;
        }

        .chapter-read-toggle {
            width: 26px;
            height: 26px;
            flex-basis: 26px;
            font-size: 12px;
        }

        .chapter-group-read-toggle {
            width: 26px;
            height: 26px;
            flex-basis: 26px;
            font-size: 12px;
        }

        .login-modal {
            padding: 20px;
        }

        .login-modal-icon {
            width: 55px;
            height: 55px;
            font-size: 24px;
        }

        .login-modal-title {
            font-size: 16px;
        }
    }

/* _ManhwaSidebar.cshtml #1 */
/* =====================================================
           MANHWA DETAILS - SIDEBAR
        ====================================================== */

    .details-sidebar-wrapper {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }


    /* =====================================================
           COVER
        ====================================================== */

    .details-cover-card {
        position: relative;
        aspect-ratio: 2 / 3;
        background: #11151d;
        border: 1px solid #252b34;
        border-radius: 12px;
        overflow: hidden;
    }

    .details-cover-image {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .cover-status {
        position: absolute;
        z-index: 3;
        top: 16px;
        right: 16px;
        padding: 7px 14px;
        border-radius: 8px;
        background: #803bd3;
        color: #fff;
        font-size: 11px;
    }


    /* =====================================================
           INFORMATION
        ====================================================== */

    .details-info-card {
        padding: 22px 19px;
        background: #0d1118;
        border: 1px solid #252b34;
        border-radius: 12px;
        overflow: hidden;
    }

    .sidebar-card-title {
        padding-bottom: 14px;
        margin-bottom: 5px;
        border-bottom: 1px solid #282e37;
    }

        .sidebar-card-title h3 {
            margin: 0;
            font-size: 17px;
        }

    .info-row {
        min-height: 43px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: #8d929c;
        font-size: 15px;
    }

        .info-row span {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .info-row i {
            width: 17px;
            color: #7c818b;
            text-align: center;
        }

        .info-row strong {
            color: #dfe1e5;
            font-size: 14px;
            font-weight: 500;
            text-align: left;
        }


    /* =====================================================
           STATUS BADGES
        ====================================================== */

    .cover-status.badge-success {
        background: #238b57;
    }

    .cover-status.badge-primary {
        background: #803bd3;
    }

    .cover-status.badge-warning {
        background: #b87919;
    }

    .cover-status.badge-danger {
        background: #b43b45;
    }

    .cover-status.badge-secondary {
        background: #555d68;
    }


    /* =====================================================
           RATING
        ====================================================== */

    .rating-card {
        padding: 19px;
        background: #0d1118;
        border: 1px solid #252b34;
        border-radius: 12px;
        overflow: hidden;
    }

        .rating-card h3 {
            margin: 0 0 14px;
            font-size: 16px;
        }

    .rating-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
        background: #131822;
        border: 1px solid #242b37;
        border-radius: 10px;
        margin-bottom: 0;
    }

    .rating-summary-score {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .rating-summary-icon {
        color: #f0b429;
        font-size: 18px;
        align-self: center;
    }

    .rating-average {
        font-size: 26px;
        font-weight: 800;
        color: #f0b429;
        line-height: 1;
    }

    .rating-out-of {
        color: #8d929c;
        font-size: 13px;
    }

    .rating-count {
        color: #9aa3b2;
        font-size: 11px;
        padding: 4px 9px;
        border-radius: 999px;
        background: #1a212e;
        border: 1px solid #2a3344;
        margin-inline-start: auto;
    }

    .rating-stars {
        display: flex;
        gap: 4px;
        direction: ltr;
    }

    .rating-star {
        background: none;
        border: none;
        padding: 2px;
        font-size: 20px;
        line-height: 1;
        color: #3a4149;
        cursor: pointer;
        transition: color .15s ease, transform .15s ease;
    }

        .rating-star:hover {
            transform: scale(1.15);
        }

        .rating-star.active,
        .rating-stars[data-hover-value]:not([data-hover-value="0"]) .rating-star.active {
            color: #f0b429;
        }

    .rating-stars.interactive .rating-star {
        cursor: pointer;
    }

    .rating-stars.readonly .rating-star {
        cursor: default;
    }

    .rating-hint {
        margin: 10px 0 0;
        color: #8d929c;
        font-size: 12px;
        min-height: 16px;
    }

    .rating-login-hint {
        margin: 10px 0 0;
        color: #8d929c;
        font-size: 12px;
    }

        .rating-login-hint a {
            color: #9850db;
            text-decoration: none;
        }


    /* =====================================================
           SUPPORT US
        ====================================================== */

    .support-card {
        padding: 19px;
        background: radial-gradient(circle at top left, rgba(151, 68, 243, 0.12), transparent 55%), #0d1118;
        border: 1px solid #252b34;
        border-radius: 12px;
        overflow: hidden;
    }

    .support-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px;
    }

        .support-card-header h3 {
            margin: 0;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

            .support-card-header h3 i {
                color: #ec4899;
                font-size: 15px;
            }

    .support-unit-badge {
        padding: 2px 8px;
        border-radius: 999px;
        background: #171c26;
        border: 1px solid #2a3240;
        color: #8d95a3;
        font-size: 11px;
        font-weight: 500;
    }

    .support-description {
        margin: 0 0 12px;
        color: #8d929c;
        font-size: 12px;
        line-height: 1.8;
    }

    .support-tiers {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        margin-bottom: 12px;
    }

    .support-tier {
        height: 38px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #262e3b;
        border-radius: 8px;
        background: #121721;
        color: #c5cad3;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
    }

        .support-tier:hover {
            border-color: rgba(169, 81, 232, 0.5);
            color: #fff;
            transform: translateY(-1px);
        }

        .support-tier.active {
            background: rgba(151, 68, 243, 0.18);
            border-color: #9744f3;
            color: #e9d5ff;
            box-shadow: 0 0 14px -4px rgba(151, 68, 243, 0.45);
        }

        .support-tier:focus-visible {
            outline: 2px solid #a44ef0;
            outline-offset: 2px;
        }

    .support-main-button {
        width: 100%;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid rgba(169, 81, 232, 0.45);
        border-radius: 8px;
        background: linear-gradient(135deg, #7e22ce, #9744f3);
        color: #fff;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
        box-shadow: 0 8px 20px -6px rgba(151, 68, 243, 0.45);
    }

        .support-main-button:hover {
            filter: brightness(1.08);
            transform: translateY(-1px);
            box-shadow: 0 10px 24px -4px rgba(151, 68, 243, 0.6);
        }

    .support-custom-label {
        display: block;
        margin: 0 0 6px;
        color: #9aa3b0;
        font-size: 11px;
        font-weight: 600;
    }

    .support-message-input {
        box-sizing: border-box;
        width: 100%;
        margin-bottom: 10px;
        padding: 9px 11px;
        border: 1px solid #262e3b;
        border-radius: 8px;
        background: #121721;
        color: #e7ebf3;
        font-family: inherit;
        font-size: 12.5px;
    }

    .support-message-input {
        resize: vertical;
        min-height: 56px;
        line-height: 1.8;
    }

    .support-message-input:focus-visible {
        outline: 2px solid #a44ef0;
        outline-offset: 1px;
    }

    .support-message-input::placeholder {
        color: #5d6675;
    }

    .support-anon-toggle {
        display: flex;
        align-items: center;
        gap: 7px;
        margin: 0 0 12px;
        color: #9aa3b0;
        font-size: 11px;
        cursor: pointer;
    }

    .support-anon-toggle input {
        accent-color: #9744f3;
        width: 14px;
        height: 14px;
        cursor: pointer;
    }

    .support-hint {
        margin: 9px 0 0;
        color: #7c8492;
        font-size: 10.5px;
        line-height: 1.9;
    }

    .support-hint.is-error {
        color: #f87171;
    }

    .support-thanks {
        margin: 9px 0 0;
        padding: 7px 10px;
        border-radius: 8px;
        background: rgba(151, 68, 243, .12);
        border: 1px solid rgba(151, 68, 243, .32);
        color: #e9d5ff;
        font-size: 11px;
        text-align: center;
    }

    .support-thanks[hidden] {
        display: none;
    }

    .support-main-button:disabled {
        opacity: .6;
        cursor: default;
        transform: none;
    }

/* _SimilarManhwas.cshtml #1 */
/* =====================================================
           MANHWA DETAILS - SIMILAR MANHWAS
        ====================================================== */

    .similar-box {
        padding: 18px;
        background: #0d1118;
        border: 1px solid #252b34;
        border-radius: 12px;
        overflow: hidden;
    }


        /* =====================================================
           HEADER
        ====================================================== */

        .similar-box .side-box-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding-bottom: 16px;
            border-bottom: 1px solid #282e36;
        }

            .similar-box .side-box-header h3 {
                margin: 0;
                color: #e7e8eb;
                font-size: 17px;
                font-weight: 700;
            }


    /* =====================================================
           LIST
        ====================================================== */

    .similar-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 14px;
    }


    /* =====================================================
           ITEM
        ====================================================== */

    .similar-item {
        display: flex;
        align-items: center;
        gap: 11px;
        min-width: 0;
        padding: 6px;
        border-radius: 8px;
        color: #fff;
        text-decoration: none;
        transition: background .2s ease, transform .2s ease;
    }

        .similar-item:hover {
            background: #171c24;
            transform: translateX(-2px);
        }


        /* =====================================================
           COVER
        ====================================================== */

        .similar-item img {
            width: 66px;
            height: 82px;
            flex: 0 0 66px;
            object-fit: cover;
            border-radius: 8px;
            background: #171c24;
        }


        /* =====================================================
           CONTENT
        ====================================================== */

        .similar-item > div {
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
        }

        .similar-item strong {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            color: #e7e8eb;
            font-size: 14px;
            font-weight: 600;
        }

        .similar-item span {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            color: #777e89;
            font-size: 12px;
            direction: ltr;
            text-align: right;
        }

        /* جلد مشابه‌ها + نشان «ارائه اختصاصی مون‌بوک» روی آن */
        .similar-item .similar-cover {
            position: relative;
            display: block;
            flex: 0 0 66px;
            width: 66px;
            height: 82px;
            overflow: hidden;
            border-radius: 8px;
            direction: rtl;
            text-align: initial;
        }

            .similar-item .similar-cover img {
                display: block;
                flex: none;
                width: 100%;
                height: 100%;
            }

            .similar-item .similar-cover .exclusive-badge {
                position: absolute;
                top: 3px;
                left: 3px;
                padding: 1px 4px;
                font-size: 9px;
                border-radius: 999px;
                box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
            }


    /* =====================================================
           EMPTY
        ====================================================== */

    .similar-empty {
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px;
        color: #777e89;
        text-align: center;
        font-size: 12px;
    }

        .similar-empty i {
            color: #6d3c91;
            font-size: 24px;
        }


    /* =====================================================
           RESPONSIVE
        ====================================================== */

    @media (max-width: 1150px) {
        .similar-box

    {
        padding: 16px;
    }

    .similar-item img {
        width: 60px;
        height: 76px;
        flex-basis: 60px;
    }

    .similar-item strong {
        font-size: 13px;
    }

    .similar-item span {
        font-size: 11px;
    }

    }


    @media (max-width: 900px) {
        .similar-box

    {
        margin-top: 0;
    }

    .similar-list {
        gap: 6px;
    }

    }

/* Manhwa comments: avatars and one-level replies */
#manhwaCommentsSection {
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 20px !important;
    background: #0d1118;
    border: 1px solid #252b34;
    border-radius: 12px;
}

.manhwa-comment-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.manhwa-comment-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #303744;
    border-radius: 50%;
    background: #171c24;
    object-fit: cover;
}

.manhwa-comment-heading {
    min-width: 0;
    flex: 1;
}

.manhwa-comment-content {
    margin-inline-start: 52px;
}

.manhwa-comment-item.is-reply {
    width: calc(100% - 42px);
    margin-inline-start: 42px;
    border-inline-start: 3px solid #683591;
    background: #0e121a;
}

.manhwa-comment-parent,
.manhwa-comment-pending {
    padding: 2px 7px;
    border-radius: 6px;
    background: #171c24;
    color: #aeb5c0;
    font-size: 11px;
}

.manhwa-comment-pending {
    color: #e5bf72;
}

.manhwa-comment-reply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #b77ae6;
    font: inherit;
    font-size: 12px;
}

.manhwa-comment-reply:hover,
.manhwa-comment-reply:focus-visible {
    background: #1a1125;
    color: #d2a4f3;
}

.manhwa-comment-reply-form {
    display: grid;
    gap: 9px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #303744;
    border-radius: 10px;
    background: #111720;
}

.manhwa-comment-reply-label {
    display: grid;
    gap: 7px;
    color: #b8bec8;
    font-size: 12px;
}

.manhwa-comment-reply-form textarea {
    width: 100%;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid #343c49;
    border-radius: 8px;
    outline: none;
    background: #090d14;
    color: #f2f3f5;
    font: inherit;
    line-height: 1.7;
}

.manhwa-comment-reply-form textarea:focus {
    border-color: #9550cb;
    box-shadow: 0 0 0 2px rgba(149, 80, 203, .18);
}

.manhwa-comment-reply-spoiler {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #929aa7;
    font-size: 12px;
}

.manhwa-comment-reply-actions {
    display: flex;
    gap: 8px;
}

.manhwa-comment-reply-actions button {
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    background: #8d43c5;
    color: #fff;
    font: inherit;
    font-size: 12px;
}

.manhwa-comment-reply-actions .cancel {
    background: #252c36;
    color: #c4c9d0;
}

.manhwa-comment-reply-actions button:disabled {
    cursor: wait;
    opacity: .6;
}

.manhwa-comment-reply-status {
    min-height: 18px;
    margin: 0;
    color: #9fc3a9;
    font-size: 11px;
}

.manhwa-comment-reply-status.error {
    color: #e59a9a;
}

@media (max-width: 680px) {
    .manhwa-comment-content {
        margin-inline-start: 0;
        margin-top: 9px;
    }

    .manhwa-comment-item.is-reply {
        width: calc(100% - 18px);
        margin-inline-start: 18px;
    }
}


/* ============================================================
   مرحله ۱ و ۲: هدر سینمایی مانهوا و برچسب ژانر نئونی (بدون ایموجی)
   ============================================================ */

.details-hero {
    border-color: rgba(169, 81, 232, .24);
    box-shadow:
        0 24px 60px -18px rgba(0, 0, 0, .78),
        0 0 0 1px rgba(151, 68, 243, .14),
        inset 0 1px 0 rgba(255, 255, 255, .07);
}

    .details-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background:
            radial-gradient(62% 85% at 88% 12%, rgba(151, 68, 243, .18), transparent 65%),
            radial-gradient(45% 65% at 15% 88%, rgba(56, 189, 248, .08), transparent 65%);
    }

.details-hero-background img {
    filter: saturate(1.14) contrast(1.04);
    transition: transform .7s cubic-bezier(.22, 1, .36, 1), filter .4s ease;
}

.details-hero:hover .details-hero-background img {
    transform: scale(1.03);
}

.details-hero-overlay {
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(8, 11, 17, .24) 0%, rgba(8, 11, 17, .74) 44%, rgba(8, 11, 17, .96) 78%),
        linear-gradient(180deg, rgba(8, 11, 17, .12) 0%, rgba(8, 11, 17, .64) 100%);
}

.details-hero-content {
    z-index: 3;
}

.details-hero .verified-title h1 {
    text-shadow: 0 3px 18px rgba(0, 0, 0, .65);
}

.details-hero .hero-genres a[data-genre-pill] {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--genre-fg, #e2d4f8);
    background: var(--genre-bg, rgba(151, 68, 243, .14));
    border: 1px solid var(--genre-border, rgba(169, 81, 232, .38));
    box-shadow: 0 0 14px -4px var(--genre-glow, rgba(151, 68, 243, .28));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

    .details-hero .hero-genres a[data-genre-pill]:hover {
        background: var(--genre-bg-hover, rgba(151, 68, 243, .24));
        border-color: var(--genre-fg, #e2d4f8);
        box-shadow: 0 4px 18px -2px var(--genre-glow, rgba(151, 68, 243, .42));
        transform: translateY(-2px);
    }

.details-hero .hero-action {
    border: 1px solid rgba(169, 81, 232, .36);
    background: linear-gradient(135deg, rgba(28, 22, 42, .84), rgba(14, 18, 28, .92));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, .42),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}

    .details-hero .hero-action:hover:not(:disabled) {
        border-color: rgba(192, 132, 252, .72);
        background: linear-gradient(135deg, rgba(113, 48, 206, .32), rgba(18, 22, 34, .94));
        box-shadow:
            0 12px 30px -6px rgba(151, 68, 243, .38),
            inset 0 1px 0 rgba(255, 255, 255, .14);
        transform: translateY(-2px);
    }

    .details-hero .hero-action:has(.fa-solid.fa-bookmark),
    .details-hero .hero-action.is-in-library {
        border-color: rgba(169, 81, 232, .65);
        background: linear-gradient(135deg, rgba(113, 48, 206, .34), rgba(16, 20, 31, .92));
        box-shadow: 0 8px 24px -6px rgba(151, 68, 243, .32);
    }

@media (max-width: 680px) {
    .details-hero-overlay {
        background:
            linear-gradient(180deg, rgba(8, 11, 17, .12) 0%, rgba(8, 11, 17, .62) 44%, rgba(8, 11, 17, .96) 86%);
    }

    .details-hero .hero-genres a[data-genre-pill] {
        padding: 5px 12px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .details-hero:hover .details-hero-background img,
    .details-hero .hero-genres a[data-genre-pill]:hover,
    .details-hero .hero-action:hover:not(:disabled) {
        transform: none;
    }
}

/* Flat, paginated reply rows keep deeply nested conversations readable. */
#manhwaCommentsMore[hidden], .comment-thread-more[hidden] { display: none !important; }
#manhwaCommentsList > .comment-thread-item { box-sizing: border-box; min-width: 0; width: auto; margin-inline-start: 0; }
#manhwaCommentsList > .comment-thread-depth-1 { margin-inline-start: 14px; }
#manhwaCommentsList > .comment-thread-depth-2 { margin-inline-start: 28px; }
#manhwaCommentsList > .comment-thread-depth-3 { margin-inline-start: 42px; }
.comment-thread-more { display: block; margin-top: 10px; border: 0; padding: 5px; background: transparent; color: #c29aee; font: inherit; font-size: 12px; cursor: pointer; }
.comment-thread-status { display: block; color: #e59a9a; font-size: 12px; }
@media (max-width: 680px) {
    #manhwaCommentsList > .comment-thread-depth-1 { margin-inline-start: 8px; }
    #manhwaCommentsList > .comment-thread-depth-2 { margin-inline-start: 16px; }
    #manhwaCommentsList > .comment-thread-depth-3 { margin-inline-start: 24px; }
}
