/* Post show — hero, purchase, reader content */

/* Post detail v5: Immersive & Sophisticated */
.post-show-v5 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-v5-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.post-v5-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at top right, rgba(184, 50, 90, 0.05), transparent);
}

.post-v5-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg, rgba(91, 38, 59, .06) 0 1px, transparent 1px 4px),
        linear-gradient(to bottom, transparent, #fff);
    opacity: 0.3;
}

.post-v5-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(50px) brightness(0.95) saturate(1.2);
    transform: scale(1.15);
    opacity: 0.25;
}

.post-v5-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 30px;
}

.post-v5-cover {
    flex-shrink: 0;
    width: var(--shell-hero-cover-w);
}

.post-v5-cover img {
    width: 100%;
    height: var(--shell-hero-cover-h);
    max-height: var(--shell-hero-cover-h);
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: block;
}

.post-v5-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.post-v5-title {
    font-size: 32px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
}

.post-v5-meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.post-v5-author {
    font-weight: 800;
    color: #c97882;
}

.post-v5-status-pill {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.post-v5-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.post-v5-grid-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-v5-grid-item span {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.post-v5-grid-item strong {
    font-size: 16px;
    color: #333;
}

.post-v5-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.post-v5-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-v5-status-pill.is-writing {
    background: rgba(107, 125, 154, 0.12);
    color: #6b7d9a !important;
}

.post-v5-status-pill.is-completed {
    background: rgba(95, 138, 116, 0.12);
    color: #5f8a74 !important;
}

.post-v5-status-pill.is-paused {
    background: rgba(180, 83, 9, 0.1);
    color: #b45309 !important;
}

.post-v5-actions form {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
}

.post-v5-actions .post-v5-btn-admin {
    flex: 0 0 auto;
    min-width: 0;
}

.post-v5-btn {
    height: 36px;
    min-width: 104px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    width: auto;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1;
}

.post-v5-btn-like {
    background: var(--shell-accent);
    color: #fff !important;
    box-shadow: none;
}

.post-v5-btn-follow {
    background: #fff;
    color: var(--shell-accent) !important;
    border: 1px solid rgba(201, 120, 130, .35);
    box-shadow: none;
}

.post-v5-btn-admin {
    background: #fff;
    color: var(--shell-ink) !important;
    font-weight: 600;
    border: 1px solid var(--shell-border);
}

.post-v5-btn:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
}

.post-v5-btn-like:hover {
    box-shadow: 0 8px 25px rgba(184, 50, 90, 0.5);
}

.post-v5-btn-follow:hover {
    background: var(--shell-accent-soft);
    border-color: var(--shell-accent);
    box-shadow: none;
}

.post-v5-stats-bar {
    display: flex;
    gap: 25px;
    padding: 15px 30px;
    background: linear-gradient(to right, rgba(0,0,0,0.03), transparent);
    border: none;
}

.post-v5-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
}

.post-v5-stat-label {
    display: inline;
}

.post-v5-stat svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.1));
}

body.dark .post-v5-hero {
    background: var(--shell-card, #211c20);
    border-color: var(--shell-border, rgba(255,255,255,.08));
}

body.dark .post-v5-title, body.dark .post-v5-grid-item strong, body.dark .post-v5-stat {
    color: #f4eaef;
}

body.dark .post-v5-btn-follow {
    background: #0f172a;
    border: none;
}

body.dark .post-v5-stats-bar {
    background: rgba(255,255,255,0.02);
}

body.dark .post-v3-title,
body.dark .post-v3-info-item strong,
body.dark .post-v3-stat strong {
    color: #f3e9ef;
}

body.dark .post-v3-kicker,
body.dark .post-v3-info-item span,
body.dark .post-v3-stat > span {
    color: #c7b9c4;
}

body.dark .post-v3-info-item,
body.dark .post-v3-stat,
body.dark .post-v3-action,
body.dark .post-v3-admin-link {
    background: rgba(36, 30, 37, .98);
    border-color: rgba(255, 255, 255, .08);
    color: #f3e9ef !important;
}

body.dark .post-v3-engagement {
    border-color: rgba(255, 255, 255, .08);
}

body.dark .post-v3-cover {
    background: #221d25;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .24);
}

body.dark .post-v3-action:hover,
body.dark .post-v3-admin-link:hover {
    background: rgba(255, 214, 227, .08);
    border-color: rgba(255, 214, 227, .18);
    color: #ffd6e3 !important;
}

@media (max-width: 1023px) {
.post-v3-hero {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 7px 9px;
        padding: 8px;
    }
.post-v3-cover {
        width: 110px;
    }
.post-v3-title {
        font-size: 21px;
    }
.post-v3-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
.post-v3-engagement {
        grid-template-columns: 1fr;
    }
.post-v3-actions,
    .post-v3-admin-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
.post-show-v3 {
        gap: 8px;
        margin-left: -2px;
        margin-right: -2px;
    }
.post-v3-hero {
        grid-template-areas:
            "cover heading"
            "info info"
            "engage engage";
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 6px 8px;
        padding: 7px;
    }
.post-v3-cover {
        width: 96px;
    }
.post-v3-title {
        font-size: 17px;
        line-height: 1.2;
    }
.post-v3-kicker {
        gap: 4px;
        margin-top: 4px;
        font-size: 11px;
    }
.post-v3-status {
        min-height: 20px;
        padding: 0 7px;
        font-size: 10px;
    }
.post-v3-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
.post-v3-info-item {
        min-height: 38px;
        padding: 5px 8px;
    }
.post-v3-info-item span {
        font-size: 12px;
    }
.post-v3-info-item strong {
        font-size: 14px;
    }
.post-v3-engagement {
        gap: 10px;
        padding-top: 10px;
    }
.post-v3-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
.post-v3-stat {
        min-height: 31px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "value"
            "label";
        justify-items: center;
        padding: 4px 3px;
        text-align: center;
    }
.post-v3-stat svg {
        display: none;
    }
.post-v3-stat > span {
        font-size: 12px;
    }
.post-v3-stat strong {
        font-size: 14px;
        max-width: 100%;
    }
.post-v3-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
.post-v3-actions .post-v3-action:first-child,
    .post-v3-actions form:first-child,
    .post-v3-actions form:first-child .post-v3-action {
        grid-column: 1 / -1;
        min-height: 36px;
        font-size: 13px;
    }
.post-v3-admin-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
.post-v3-admin-link {
        min-height: 31px;
        padding: 0 6px;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
.post-v3-admin-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.site-post-hero,
.site-post-section,
.site-post-purchase {
    overflow: hidden;
    border: none;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.site-post-hero {
    display: grid;
    grid-template-columns: var(--shell-hero-cover-w) minmax(0, 1fr) minmax(230px, 270px);
    align-items: start;
    gap: 12px;
    padding: 14px;
}

.site-post-cover {
    position: relative;
    width: var(--shell-hero-cover-w);
    height: var(--shell-hero-cover-h);
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 7px;
    background: #f3e4e9;
    box-shadow: 0 7px 16px rgba(54, 34, 46, .12);
}

.site-post-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.site-post-hero-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.site-post-side {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 8px;
    padding-left: 12px;
    border-left: 1px solid #ead6de;
}

.site-post-title {
    margin: 0;
    color: #211a21;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: 0;
}

.site-post-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff1f5;
    color: var(--shell-accent-hover);
    font-size: 12px;
    font-weight: 850;
}

.site-post-status.is-writing {
    color: #425d95;
    background: #edf3ff;
}

.site-post-status.is-paused {
    color: var(--shell-accent-hover);
    background: #fff1f5;
}

.site-post-status.is-completed {
    color: #2f7d5d;
    background: #eefbf4;
}

.site-post-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 11px;
}

.site-post-meta-item {
    min-width: 0;
    display: grid;
    gap: 2px;
    min-height: 48px;
    padding: 7px 8px;
    border: 1px solid #ead6de;
    border-radius: 7px;
    background: #fffdfb;
}

.site-post-meta-label {
    overflow: hidden;
    color: #7c6c78;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-post-meta-value {
    min-width: 0;
    overflow: hidden;
    color: #221a22;
    font-size: 13px;
    font-weight: 820;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-post-meta-value a {
    color: var(--shell-accent-hover) !important;
}

.site-post-stat-row,
.site-post-action-row,
.site-post-admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.site-post-action-row {
    margin-top: 0;
}

.site-post-admin-actions {
    padding: 0;
}

.site-post-chip,
.site-post-action,
.site-post-admin-link {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 7px;
    border: 1px solid #ead6de;
    background: #fff;
    color: #463c45 !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.site-post-chip {
    padding: 0 8px;
}

.site-post-action,
.site-post-admin-link {
    padding: 0 10px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.site-post-action:hover,
.site-post-admin-link:hover {
    transform: translateY(-1px);
    border-color: #cf9aac;
    background: #fff1f5;
    color: var(--shell-accent-hover) !important;
}

.site-post-action.is-primary,
.site-post-admin-link.is-primary {
    border-color: var(--shell-accent);
    background: var(--shell-accent);
    color: #fff !important;
}

.site-post-action.is-primary:hover,
.site-post-admin-link.is-primary:hover {
    background: var(--shell-accent-hover);
    color: #fff !important;
}

.site-post-action.is-muted {
    opacity: .72;
    cursor: default;
}

.site-post-chip svg,
.site-post-action svg,
.site-post-admin-link svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.site-post-follow-count {
    min-width: 30px;
    padding-inline: 7px;
}

.site-post-side .site-post-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-post-side .site-post-action-row,
.site-post-side .site-post-admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-post-side .site-post-action-row > form,
.site-post-side .site-post-admin-actions > a {
    min-width: 0;
}

.site-post-side .site-post-action,
.site-post-side .site-post-admin-link,
.site-post-side .site-post-chip {
    width: 100%;
}

.site-post-side .site-post-action.is-primary,
.site-post-side .site-post-admin-link.is-primary {
    grid-column: 1 / -1;
}

.site-post-content {
    padding: 11px 14px 12px;
    color: #241d24;
    font-size: 17px;
    line-height: 1.65;
    text-align: justify;
    white-space: normal;
}

.site-post-content.site-post-reader-content {
    font-family: "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.8;
}

@media (min-width: 1024px) {
.site-post-content.site-post-reader-content {
        font-size: 1.5rem;
    }
}

.site-post-content.is-plain-content {
    white-space: pre-line;
}

.site-post-content p {
    margin: 0;
    padding-bottom: 15px;
}

.site-post-content p:last-child {
    margin-bottom: 0;
}

.site-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 14px 12px;
}

.site-post-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 27px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff1f5;
    color: var(--shell-accent-hover) !important;
    font-size: 12px;
    font-weight: 750;
}

.site-post-tag:hover {
    background: #f8dce6;
    color: #6e1d38 !important;
}

.site-post-tag svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.site-post-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 0;
    padding: 8px 0 12px;
    border-bottom: 1px solid var(--shell-border);
    background: transparent;
    margin-bottom: 12px;
}

.site-post-section-title {
    margin: 0;
    color: var(--shell-ink);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
}

.site-post-section-title::after {
    display: none;
}

.site-post-section-link {
    flex: 0 0 auto;
    color: var(--shell-accent-hover) !important;
    font-size: 12px;
    font-weight: 850;
}

.site-post-section-body {
    padding: 10px 12px;
}

.site-post-chapter-list .site-post-section-header {
    margin-top: 0;
}

.site-post-toggle {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--shell-rose-100);
    color: var(--shell-accent-hover);
    font-size: 12px;
    font-weight: 650;
}

.site-post-toggle svg {
    width: 14px;
    height: 14px;
}

.site-post-purchase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fff8ec 0%, #ffffff 58%, #fff2de 100%);
    border: none;
    box-shadow: none;
}

.site-post-purchase-main {
    min-width: 0;
}

.site-post-purchase-title {
    color: #3d2830;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
}

.site-post-purchase-meta {
    margin-top: 4px;
    color: #80613a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.site-post-purchase-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-post-purchase-price {
    min-width: 104px;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    text-align: center;
}

.site-post-purchase-price-value {
    display: block;
    color: var(--shell-accent-hover);
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
}

.site-post-purchase-price-unit {
    display: block;
    margin-top: 3px;
    color: #7a5a2a;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.site-post-purchase form {
    flex: 0 0 auto;
    margin: 0;
}

.site-post-purchase-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--shell-accent), var(--shell-accent-hover));
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(184, 50, 90, .22);
}

.site-post-comment-submit {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--shell-accent);
    color: #fff !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    border: 0;
    cursor: pointer;
}

.site-post-purchase-button:hover {
    background: linear-gradient(135deg, var(--shell-accent-hover), #84203d);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(184, 50, 90, .28);
}

.site-post-comment-submit:hover {
    background: var(--shell-accent-hover);
}

.site-post-purchase-button svg {
    width: 15px;
    height: 15px;
}

.site-post-alert {
    padding: 8px 10px;
    border-radius: 7px;
    background: var(--shell-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}

.site-post-comments {
    padding: 0;
}

.site-post-comment-body {
    padding: 10px 12px 12px;
}

.site-post-comment-form {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
}

.site-post-comment-editor {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--shell-border);
    border-radius: 12px;
    background: #efe8e4;
}

.site-post-comment-editor:focus-within {
    border-color: var(--shell-accent);
}

.site-post-comment-editor textarea {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 88px !important;
    height: auto;
    margin: 0;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 0;
    resize: vertical;
    background: transparent !important;
    color: var(--shell-ink) !important;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: none !important;
    outline: none !important;
}

.site-post-comment-actions {
    display: flex;
    justify-content: flex-end;
}

.post-show-page #comments-wrapper > .block {
    margin-top: 0 !important;
    padding: 14px 0;
    border-bottom: 1px solid var(--shell-border);
}

.post-show-page #comments-wrapper > .block:last-child {
    border-bottom: 0;
}

.post-show-page #comments-wrapper .font-content {
    color: var(--shell-ink);
    font-size: 15px;
    line-height: 1.65;
}

body.dark .site-post-hero,
body.dark .site-post-section,
body.dark .site-post-purchase {
    background: rgba(31, 26, 32, .96);
    border: none;
    box-shadow: none;
}

body.dark .site-post-cover,
body.dark .site-post-recent-thumb {
    background: #221d25;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .24);
}

body.dark .site-post-title,
body.dark .site-post-meta-value,
body.dark .site-post-section-title,
body.dark .site-post-latest-title,
body.dark .site-post-recent-novel {
    color: #f3e9ef !important;
}

body.dark .site-post-kicker,
body.dark .site-post-meta-label,
body.dark .site-post-latest-time,
body.dark .site-post-recent-chapter,
body.dark .site-post-reply-box {
    color: #c7b9c4;
}

body.dark .site-post-meta-item,
body.dark .site-post-chip,
body.dark .site-post-action,
body.dark .site-post-admin-link,
body.dark .site-post-latest-row,
body.dark .site-post-recent-item {
    background: rgba(36, 30, 37, .98);
    border: none;
    color: #f3e9ef !important;
}

body.dark .site-post-comment-editor {
    background: #211c20;
    border: 1px solid var(--shell-border);
    color: #f3e9ef !important;
}

body.dark .site-post-action:hover,
body.dark .site-post-admin-link:hover,
body.dark .site-post-recent-item:hover {
    background: rgba(255, 214, 227, .08);
    border-color: rgba(255, 214, 227, .18);
    color: #ffd6e3 !important;
}

body.dark .site-post-content {
    color: #d9d0d7;
}

body.dark .site-post-content.site-post-reader-content {
    color: #B5B5B5 !important;
}

body.dark .site-post-section-header {
    background: rgba(36, 30, 37, .98);
    border-color: rgba(255, 255, 255, .08);
}

body.dark .site-post-side {
    border-color: rgba(255, 255, 255, .08);
}

body.dark .site-post-tag,
body.dark .site-post-toggle,
body.dark .site-post-status {
    background: rgba(255, 214, 227, .08);
    color: #ffd6e3 !important;
}

body.dark .site-post-purchase {
    background: linear-gradient(135deg, rgba(55, 42, 30, .95) 0%, rgba(36, 30, 37, .98) 58%, rgba(66, 41, 42, .9) 100%);
    border: none;
    box-shadow: none;
}

body.dark .site-post-purchase-title,
body.dark .site-post-purchase-price-value {
    color: #ffd6e3;
}

body.dark .site-post-purchase-meta,
body.dark .site-post-purchase-price-unit {
    color: #f4d6a7;
}

body.dark .site-post-purchase-price {
    background: rgba(255, 255, 255, .06);
    border: none;
}

@media (max-width: 1023px) {
.site-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
    }
.site-cultivation-board .cultivation-wrap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
.site-sidebar-book-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
.site-story-cover {
        width: var(--shell-cover-w);
        flex-basis: var(--shell-cover-w);
        height: var(--shell-cover-h);
        aspect-ratio: auto;
    }
.site-story-card {
        min-height: 132px;
    }
.site-post-hero {
        grid-template-columns: var(--shell-hero-cover-w) minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }
.site-post-side {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr);
        padding-top: 10px;
        padding-left: 0;
        border-top: 1px solid #ead6de;
        border-left: 0;
    }
.site-post-cover {
        width: var(--shell-hero-cover-w);
        height: var(--shell-hero-cover-h);
    }
.site-post-title {
        font-size: 22px;
        line-height: 1.25;
    }
.site-post-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
.site-post-latest-list,
    .site-post-recent-list {
        grid-template-columns: 1fr;
    }
.site-header-main {
        grid-template-columns: auto minmax(96px, 1fr) 42px;
        gap: 6px;
        min-height: 56px;
        padding: 6px 0 8px;
    }
.site-logo-link {
        grid-column: 1;
        grid-row: 1;
    }
.site-logo-link img {
        width: 158px;
    }
.site-category-button {
        display: none;
    }
.site-mobile-menu-button {
        display: inline-flex;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }
.site-mobile-quick-actions {
        display: flex;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding: 0 1px 2px;
        scrollbar-width: none;
    }
.site-mobile-quick-actions::-webkit-scrollbar {
        display: none;
    }
.site-mobile-linh-thach {
        max-width: none;
    }
.site-mobile-linh-thach strong {
        overflow: visible;
        text-overflow: clip;
    }
.site-mobile-name {
        max-width: none;
        flex: 0 0 auto;
    }
.site-search-form {
        grid-column: 2;
        grid-row: 1;
        max-width: none;
    }
.site-search-input {
        height: 38px;
        border-radius: 999px !important;
        padding-left: 13px !important;
        padding-right: 14px !important;
        font-size: 13px;
    }
.site-search-button {
        display: none;
    }
.site-user-actions-desktop {
        display: none;
    }
.site-user-actions-mobile {
        display: flex;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        padding: 0 0 8px;
        scrollbar-width: none;
    }
.site-user-actions-mobile::-webkit-scrollbar {
        display: none;
    }
.site-action-chip,
    .site-notification-action button {
        min-height: 36px;
        padding: 0 11px;
        border-radius: 999px;
        font-size: 12px;
    }
.site-category-panel {
        top: calc(100% + 8px);
        left: .25rem;
        right: .25rem;
        border-radius: 18px;
    }
.site-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 62vh;
        overflow: auto;
    }
.site-mobile-categories {
        display: block;
        padding: 0 0 10px;
    }
.site-mobile-panel-title {
        margin: 2px 0 8px;
        color: var(--shell-muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
    }
.site-mobile-panel .site-category-grid {
        max-height: 42vh;
        padding: 0;
        gap: 6px;
    }
.site-mobile-panel .category-item {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.15);
        color: #fff;
        padding: 10px 12px;
        font-size: 13px;
    }
.site-mobile-panel .category-item:hover {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.3);
    }
.site-mobile-panel .category-dot {
        background: rgba(255, 255, 255, 0.4);
    }
.site-mobile-panel .category-arrow {
        color: #fff;
        opacity: 0.7;
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 520px) {
.site-topbar .container,
    .site-subnav .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
.site-logo-link img {
        width: 120px;
    }
.site-mobile-menu-button {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }
.site-header-main {
        grid-template-columns: auto minmax(84px, 1fr) 38px;
        gap: 5px;
    }
.site-mobile-quick-actions {
        gap: 4px;
    }
.site-search-input {
        height: 36px;
        padding-left: 11px !important;
        padding-right: 11px !important;
        font-size: 16px;
    }
.site-mobile-quick-chip {
        height: 32px;
        padding: 0 7px;
        font-size: 11px;
    }
.site-mobile-quick-icon {
        width: 32px;
        flex-basis: 32px;
    }
a.site-mobile-quick-icon {
        min-width: 32px;
        padding: 0 6px;
    }
.site-mobile-quick-icon svg {
        width: 15px;
        height: 15px;
    }
.site-mobile-linh-thach {
        max-width: none;
    }
.site-mobile-name {
        max-width: none;
        flex-basis: auto;
    }
.site-subnav-links {
        min-height: 42px;
        gap: 6px;
    }
.site-subnav-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }
.site-home-tabs-root {
        margin-left: 0;
        margin-right: 0;
        border-radius: 14px;
    }
.site-home-tabs {
        gap: 4px;
        padding: 6px;
    }
.site-home-tab {
        min-height: 34px;
        padding: 0 13px;
        font-size: 12px;
    }
.site-story-grid {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 8px;
    }
.site-story-card {
        min-height: 126px;
        gap: 12px;
        padding: 10px;
        border-radius: 12px;
    }
.site-story-cover {
        width: var(--shell-cover-w);
        flex-basis: var(--shell-cover-w);
        height: var(--shell-cover-h);
        aspect-ratio: auto;
    }
.site-story-title {
        font-size: 16px;
        line-height: 1.38;
    }
.site-story-status-line,
    .site-story-meta {
        font-size: 13px;
    }
.site-story-category {
        min-height: 22px;
        padding: 0 7px;
    }
.site-post-show {
        gap: 9px;
        margin-left: -2px;
        margin-right: -2px;
    }
.site-post-hero {
        grid-template-columns: var(--shell-cover-w) minmax(0, 1fr);
        gap: 9px;
        padding: 9px;
    }
.site-post-side {
        gap: 6px;
        padding-top: 8px;
    }
.site-post-cover {
        width: var(--shell-cover-w);
        height: var(--shell-cover-h);
    }
.site-post-title {
        font-size: 18px;
        line-height: 1.24;
    }
.site-post-kicker {
        gap: 4px;
        margin-top: 6px;
        font-size: 11px;
    }
.site-post-status {
        min-height: 21px;
        padding: 0 7px;
        font-size: 11px;
    }
.site-post-meta-grid {
        gap: 5px;
        margin-top: 8px;
    }
.site-post-meta-item {
        min-height: 42px;
        padding: 6px 7px;
    }
.site-post-meta-label {
        font-size: 12px;
    }
.site-post-meta-value {
        font-size: 14px;
    }
.site-post-stat-row,
    .site-post-action-row,
    .site-post-admin-actions {
        gap: 5px;
    }
.site-post-side .site-post-stat-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
.site-post-side .site-post-action-row,
    .site-post-side .site-post-admin-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
.site-post-side .site-post-action.is-primary,
    .site-post-side .site-post-admin-link.is-primary {
        grid-column: auto;
    }
.site-post-chip,
    .site-post-action,
    .site-post-admin-link {
        min-height: 28px;
        padding-inline: 7px;
        font-size: 11px;
    }
.site-post-chip svg,
    .site-post-action svg,
    .site-post-admin-link svg {
        width: 13px;
        height: 13px;
    }
.site-post-content {
        padding: 12px 12px 14px;
        font-size: 16px;
        line-height: 1.7;
    }
.site-post-tags {
        gap: 4px;
        padding: 0 10px 10px;
    }
.site-post-tag {
        min-height: 25px;
        padding: 0 7px;
        font-size: 11px;
    }
.site-post-section-header {
        min-height: 38px;
        padding: 7px 9px;
    }
.site-post-section-title {
        font-size: 14px;
    }
.site-post-section-body,
    .site-post-comment-body {
        padding: 8px;
    }
.site-post-latest-row {
        min-height: 35px;
        padding: 5px 7px;
    }
.site-post-latest-title {
        font-size: 14px;
    }
.site-post-latest-time {
        max-width: 74px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
.site-post-purchase {
        align-items: stretch;
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 10px;
    }
.site-post-purchase-title {
        font-size: 13px;
        line-height: 1.3;
    }
.site-post-purchase-meta {
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.45;
    }
.site-post-purchase-actions {
        display: grid;
        grid-template-columns: minmax(84px, .42fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 7px;
    }
.site-post-purchase-price {
        display: block;
        min-width: 0;
        padding: 7px 8px;
        text-align: center;
    }
.site-post-purchase-price-value {
        font-size: 16px;
    }
.site-post-purchase-price-unit {
        margin-top: 2px;
        font-size: 10px;
    }
.site-post-purchase form,
    .site-post-purchase-button {
        width: 100%;
    }
.site-post-purchase-button {
        min-height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }
.site-post-comment-editor textarea {
        min-height: 88px !important;
    }
.site-sidebar-stack {
        gap: 12px;
        margin-top: 18px;
    }
.site-cultivation-board .board-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px;
    }
.site-cultivation-board .board-title h5 {
        font-size: 16px;
    }
.site-cultivation-board .board-title .ornament {
        width: 20px;
    }
.site-cultivation-board .cultivation-scroll {
        max-height: 320px;
        padding: 10px;
    }
.site-cultivation-board .cultivation-wrap,
    .site-sidebar-book-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
.site-cultivation-board .cultivation-card {
        min-height: 54px;
        padding: 8px 10px;
    }
.site-submit-story {
        min-height: 50px;
        font-size: 16px;
    }
.site-sidebar-tab-list {
        padding: 6px;
    }
.site-sidebar-tab {
        min-height: 34px;
        font-size: 12px;
    }
.site-sidebar-book-list {
        padding: 8px;
    }
}

.post-show-v5 {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.post-v5-hero {
    overflow: hidden;
    border-radius: var(--shell-radius);
    box-shadow: var(--shell-shadow);
    background: var(--shell-card);
    border: 1px solid var(--shell-border);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-v5-backdrop,
.post-v5-backdrop::after,
.post-v5-backdrop img {
    display: none !important;
}

.post-v5-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--shell-hero-cover-w) minmax(0, 1fr);
    align-items: start;
    gap: 20px 22px;
    padding: 20px;
}

.post-v5-cover {
    width: var(--shell-hero-cover-w);
    flex: none;
}

.post-v5-cover img {
    width: var(--shell-hero-cover-w);
    height: var(--shell-hero-cover-h);
    max-height: var(--shell-hero-cover-h);
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(74, 42, 52, .16);
    display: block;
    filter: none !important;
    opacity: 1 !important;
}

.post-v5-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.post-v5-title {
    font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--shell-ink) !important;
    line-height: 1.25;
}

.post-v5-author {
    color: var(--shell-accent);
    font-weight: 650;
}

.post-v5-meta-inline {
    gap: 8px;
    font-size: 13px;
}

.post-v5-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 12px;
    margin-top: 4px;
}

.post-v5-grid-item span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--shell-muted);
}

.post-v5-grid-item strong,
.post-v5-grid-item strong a {
    font-size: 14px;
    font-weight: 700;
    color: var(--shell-ink) !important;
}

.post-v5-status-pill {
    border-radius: 999px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    background: var(--shell-rose-100);
    padding: 2px 10px;
}

.post-v5-status-pill::before {
    box-shadow: none !important;
}

.post-v5-status-pill.is-writing {
    background: rgba(107, 125, 154, .12);
    color: var(--shell-dust) !important;
}

.post-v5-status-pill.is-completed {
    background: rgba(95, 138, 116, .12);
    color: var(--shell-sage) !important;
}

.post-v5-status-pill.is-paused {
    background: rgba(180, 83, 9, .1);
    color: #b45309 !important;
}

.post-v5-actions {
    gap: 8px;
    margin-top: 6px;
}

.post-v5-actions a,
.post-v5-actions button {
    box-shadow: none !important;
}

.post-v5-btn {
    height: 36px;
    min-width: 0;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 650;
    border: 1px solid var(--shell-border);
    background: #fff;
    color: var(--shell-ink) !important;
}

.post-v5-btn-like {
    background: var(--shell-accent);
    border-color: var(--shell-accent);
    color: #fff !important;
    box-shadow: none;
}

.post-v5-btn-follow {
    background: #fff;
    color: var(--shell-accent) !important;
    border: 1px solid rgba(201, 120, 130, .4);
    box-shadow: none;
}

.post-v5-btn-admin {
    background: #fff;
    color: var(--shell-ink) !important;
    box-shadow: none;
    border: 1px solid var(--shell-border);
}

.post-v5-btn:hover,
.post-v5-btn-admin:hover {
    transform: none;
    filter: none;
    background: var(--shell-rose-100);
    color: var(--shell-accent-hover) !important;
    border-color: rgba(201, 120, 130, .35);
    box-shadow: none;
}

.post-v5-btn-like:hover {
    background: var(--shell-accent-hover);
    color: #fff !important;
    border-color: var(--shell-accent-hover);
}

.post-v5-btn-follow:hover {
    background: var(--shell-accent-soft);
    color: var(--shell-accent-hover) !important;
}

.post-v5-stats-bar {
    padding: 12px 20px 16px;
    background: linear-gradient(to right, rgba(201, 120, 130, .05), transparent);
    border-top: 1px solid var(--shell-border);
    gap: 16px;
}

.post-show-page .site-post-section,
.post-show-page .site-post-purchase {
    overflow: visible;
    padding: 0;
    border: none;
    border-radius: var(--shell-radius);
    background: transparent;
    box-shadow: none;
}

.post-show-page .site-post-section.relative {
    padding-top: 8px !important;
}

.post-show-page .site-post-content {
    padding: 8px 0 12px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-show-page .site-post-content.site-post-reader-content {
    font-size: 1.05rem;
}

@media (min-width: 1024px) {
.post-show-page .site-post-content.site-post-reader-content {
        font-size: 1.125rem;
    }
}

.post-show-page .site-post-section-header {
    min-height: 0;
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--shell-border);
}

.site-post-section-title {
    color: var(--shell-ink);
    font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
    font-weight: 700;
}

.site-post-show.post-show-v5 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.dark .post-v5-hero,
body.dark .site-home-tabs-root {
    box-shadow: var(--shell-shadow);
}

@media (max-width: 768px) {
.site-header-main {
        min-height: 56px;
        gap: 8px;
        padding: 6px 0;
    }
body:not(.dark) .site-logo-link img,
    body.dark .site-logo-link img {
        width: 124px;
    }
.site-subnav {
        margin-bottom: 14px;
    }
.site-story-cover {
        width: var(--shell-cover-w);
        flex-basis: var(--shell-cover-w);
        height: var(--shell-cover-h);
        aspect-ratio: auto;
    }
.site-story-card {
        padding: 10px;
        gap: 12px;
    }
.post-v5-title {
        font-size: 20px;
    }
.post-v5-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.dark .post-v5-hero {
    background: var(--shell-card);
    border-color: var(--shell-border);
}

body.dark .post-v5-btn,
body.dark .post-v5-btn-admin {
    border-color: var(--shell-border);
    color: var(--shell-ink) !important;
    background: transparent;
}

body.dark .post-v5-btn-like {
    background: var(--shell-accent);
    border-color: var(--shell-accent);
    color: #1c1418 !important;
}

body.dark .post-v5-btn-follow {
    border-color: rgba(226, 168, 178, .4);
    color: var(--shell-accent) !important;
    background: transparent;
}

body.dark .post-v5-btn:hover,
body.dark .post-v5-btn-admin:hover,
body.dark .post-v5-btn-follow:hover {
    background: var(--shell-accent-soft);
    color: var(--shell-accent-hover) !important;
}

body.dark .post-v5-btn-like:hover {
    background: var(--shell-accent-hover);
    color: #1c1418 !important;
}

body.dark .post-show-page #comments-wrapper .font-content {
    color: var(--shell-ink);
}

.post-show-page .site-post-comment-body {
    padding: 8px 0 0;
}

.post-show-page .site-post-comments,
.post-show-page .site-post-section.site-post-comments {
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
}

@media (min-width: 1024px) {
.post-show-page .site-post-comments {
        max-width: 1120px;
        width: 100%;
        margin-inline: auto;
    }
.chapter-comments-title,
    .chapter-comments-panel {
        max-width: 1120px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

body.dark .post-show-page .site-post-comments,
body.dark .site-post-section.site-post-comments {
    background: transparent !important;
}

.post-show-page .site-post-comments .reply-btn,
.post-show-page .site-post-comments .text-blue-001,
.post-show-page .site-post-comments .text-blue-500 {
    color: var(--shell-accent) !important;
}

.post-show-page .site-post-comment-editor {
    width: 100%;
    background: #efe8e4;
    border: 1px solid var(--shell-border);
    border-radius: 12px;
    min-height: 0;
}

.post-show-page .site-post-comment-submit {
    border-radius: 999px;
    font-weight: 650;
}

.comment-editor-wrapper .tox-tinymce,
.site-post-comment-editor .tox-tinymce {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 96px !important;
    border: 1px solid var(--shell-border) !important;
    border-radius: 12px !important;
    background: #efe8e4 !important;
    box-shadow: none !important;
}

.comment-editor-wrapper .tox .tox-editor-header,
.site-post-comment-editor .tox .tox-editor-header {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    box-shadow: none !important;
}

.comment-editor-wrapper .tox .tox-sidebar-wrap,
.site-post-comment-editor .tox .tox-sidebar-wrap {
    min-height: 0 !important;
}

.comment-editor-wrapper .tox .tox-editor-container,
.comment-editor-wrapper .tox .tox-sidebar-wrap,
.comment-editor-wrapper .tox .tox-edit-area,
.comment-editor-wrapper .tox .tox-edit-area__iframe,
.site-post-comment-editor .tox .tox-editor-container,
.site-post-comment-editor .tox .tox-sidebar-wrap,
.site-post-comment-editor .tox .tox-edit-area,
.site-post-comment-editor .tox .tox-edit-area__iframe {
    width: 100% !important;
    background: #efe8e4 !important;
}

body.dark .post-show-page .site-post-comment-editor,
body.dark .comment-editor-wrapper .tox-tinymce,
body.dark .site-post-comment-editor .tox-tinymce {
    background: #211c20 !important;
    border-color: var(--shell-border) !important;
}

body.dark .comment-editor-wrapper .tox .tox-edit-area,
body.dark .comment-editor-wrapper .tox .tox-edit-area__iframe,
body.dark .site-post-comment-editor .tox .tox-edit-area,
body.dark .site-post-comment-editor .tox .tox-edit-area__iframe {
    background: #211c20 !important;
}

.post-v5-cover,
.site-post-cover {
    width: var(--shell-hero-cover-w);
    height: var(--shell-hero-cover-h);
}

.post-v5-cover img {
    width: var(--shell-hero-cover-w);
    height: var(--shell-hero-cover-h);
    max-height: var(--shell-hero-cover-h);
}

@media (min-width: 1024px) {
.site-related-row {
        grid-template-columns: var(--shell-related-cover-w) minmax(0, 1fr) auto;
    }
.post-v5-content,
    .site-post-hero {
        grid-template-columns: var(--shell-hero-cover-w) minmax(0, 1fr);
    }
}
