/* ==========================================================================
   Blog Show Page — Professional Dark Theme
   ========================================================================== */

:root {
    font-size: 10px;
    --primarycolor: #f4a261;
    --secondarycolor: #0f3460;
    --bg-color: #1A1A2E;
    --text-white: #fff;
    --text-black: #000;
    --gradient: linear-gradient(to right, #f4a261, #b0c9d7);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    --transition: all 0.22s ease;
    --surface: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --radius-card: 8px;
    --radius-btn: 6px;
    --radius-badge: 4px;
}

/* ── Body & Container ------------------------------------------------------- */
body {
    background: linear-gradient(150deg, var(--bg-color) 0%, #16213e 100%);
    color: var(--text-white);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Banner Ad -------------------------------------------------------------- */
.thinbanneradscontainer {
    margin-bottom: 28px;
    overflow: hidden;
    border-radius: var(--radius-card);
}

/* ── Comic Header (Cover + Info) ------------------------------------------- */
.tab-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}

.summary-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.summary-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    border-radius: var(--radius-card);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Rating Row */
.ratingbox {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ratingbox i { color: var(--primarycolor); }

#ratingpoint {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-badge);
    color: var(--text-white);
    padding: 3px 12px;
    font-weight: 700;
    margin-left: 8px;
    font-size: 1.3rem;
}

/* Give Rating Button */
#giveratingbtn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-white);
    font-size: 1.3rem;
    padding: 5px 14px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

#giveratingbtn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-white);
}

/* Read First / Last Buttons */
.readbtn {
    background: var(--primarycolor);
    border: none;
    color: var(--text-black) !important;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 1.4rem;
    transition: var(--transition);
    text-decoration: none !important;
    display: inline-block;
    border-radius: var(--radius-btn) !important;
}

#giveratingbtn.readbtn{
    background: var(--primarycolor);
}

.readbtn:hover {
    background: #e08830;
    color: var(--text-black) !important;
    box-shadow: 0 4px 14px rgba(244, 162, 97, 0.4);
    transform: translateY(-2px);
}

/* Metadata Table */
.post_content_item {
    display: flex;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.summary_heading {
    font-weight: 600;
    color: var(--primarycolor);
    min-width: 110px;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.summary_content {
    color: var(--text-white);
    flex: 1;
    font-size: 1.3rem;
}

.summary_content a {
    color: var(--primarycolor);
    text-decoration: none;
}

.summary_content a:hover { color: #e08830; }

/* ── Manga Action Bar (Bookmark + Comments) --------------------------------- */
.manga-action {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 0 0;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.manga-action__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.manga-action__btn i {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.6);
}

.manga-action__btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-white);
}

.manga-action__btn--saved {
    background: rgba(244, 162, 97, 0.12);
    border-color: rgba(244, 162, 97, 0.4);
    color: var(--primarycolor);
}

.manga-action__btn--saved i {
    color: var(--primarycolor);
}

.manga-action__btn--saved:hover {
    background: rgba(244, 162, 97, 0.2);
    color: var(--primarycolor);
}

/* ── Section Boxes ---------------------------------------------------------- */
.summarybox {
    background: var(--surface);
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.summaryheading {
    background: var(--secondarycolor);
    padding: 14px 20px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.summaryheading i {
    color: var(--primarycolor);
    font-size: 1.3rem;
}

.summaryheading h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.summaryheading hr { display: none; }

/* Sort toggle button — sits right-aligned inside .summaryheading */
.ch-sort-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.72);
    padding: 6px 12px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 500;
    font-family: inherit;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.ch-sort-btn i {
    font-size: 1.3rem;
    transition: transform 0.22s ease;
}

.ch-sort-btn:hover {
    background: rgba(244, 162, 97, 0.15);
    border-color: rgba(244, 162, 97, 0.4);
    color: var(--primarycolor);
}

.ch-sort-btn:hover i { color: var(--primarycolor); }

.ch-sort-btn:active { transform: scale(0.96); }

/* hide label text on very small screens — icon only */
@media (max-width: 400px) {
    .ch-sort-label { display: none; }
    .ch-sort-btn   { padding: 6px 9px; }
}

.summarycontent { padding: 18px 20px; }

/* Summary Text */
.summary {
    background: rgba(0, 0, 0, 0.12);
    padding: 18px 20px;
    border-left: 4px solid var(--primarycolor);
    border-radius: 0 0 0 0;
    font-family: inherit;
    white-space: pre-wrap;
    line-height: 1.8;
    margin: 0;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.88);
}

/* ── Chapter List ----------------------------------------------------------- */
.chaptercontainer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.1);
}

/* Chapter Row — Entire Box Clickable */
.showchapter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 0px 6px 6px 0px;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    outline: none;
    user-select: none;
}

.showchapter:hover,
.showchapter:focus-visible {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.showchapter:active {
    background: rgba(244, 162, 97, 0.07);
}

/* Status-based indicator — left accent bar */
.showchapter.free-chapter      { border-left: 3px solid rgba(244, 162, 97, 0.5); }
.showchapter.purchased-chapter { border-left: 3px solid #4caf50; }
.showchapter.expired-chapter   { border-left: 3px solid #ff9800; }
.showchapter.locked-chapter    { border-left: 3px solid rgba(231, 76, 60, 0.5); }

/* Row Left */
.ch-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.ch-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
}

.ch-icon--free     { color: var(--primarycolor); }
.ch-icon--unlocked { color: #4caf50; }
.ch-icon--expired  { color: #ff9800; }
.ch-icon--locked   { color: #e74c3c; }
.ch-icon--ad       { color: #7c5cfc; }

.ch-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ch-row-name {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    transition: color var(--transition);
}

.showchapter:hover .ch-row-name           { color: var(--primarycolor); }
.showchapter.purchased-chapter .ch-row-name { color: #4caf50; }
.showchapter.expired-chapter .ch-row-name   { color: #ff9800; }
.showchapter.locked-chapter .ch-row-name    { color: rgba(255,255,255,0.65); }

.ch-row-date {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Row Right */
.ch-row-right {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

/* Badges */
.ch-badge {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-radius: var(--radius-badge);
    border: 1px solid transparent;
}

.ch-badge--free     { background: rgba(244,162,97,0.15); color: var(--primarycolor); border-color: rgba(244,162,97,0.3); }
.ch-badge--unlocked { background: rgba(76,175,80,0.15);  color: #4caf50;             border-color: rgba(76,175,80,0.3); }
.ch-badge--expired  { background: rgba(255,152,0,0.15);  color: #ff9800;             border-color: rgba(255,152,0,0.3); }
.ch-badge--locked   { background: rgba(231,76,60,0.12);  color: #e74c3c;             border-color: rgba(231,76,60,0.25); }
.ch-badge--ad       { background: rgba(124,92,252,0.15); color: #7c5cfc;             border-color: rgba(124,92,252,0.3); }

.showchapter.ad-required-chapter .ch-row-name { color: #a78bfa; }

/* Price */
.ch-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primarycolor);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Timer */
.ch-timer {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.showchapter.purchased-chapter .ch-timer { color: #4caf50; }
.showchapter.expired-chapter   .ch-timer { color: #ff9800; }

/* Empty State */
.ch-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 20px;
    color: rgba(255,255,255,0.3);
    font-size: 1.4rem;
    text-align: center;
}

.ch-empty i { font-size: 3rem; color: rgba(255,255,255,0.12); }

/* ── Comment Section -------------------------------------------------------- */
.comment-form {
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.comment-form__body {
    display: flex;
    gap: 14px;
    padding: 16px;
    align-items: flex-start;
}

.comment-form__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

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

.comment-form__input-wrap {
    flex: 1;
    min-width: 0;
}

.comment-form__textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    color: var(--text-white);
    padding: 12px 14px;
    font-size: 1.4rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.18s ease, background 0.18s ease;
    outline: none;
    box-sizing: border-box;
}

.comment-form__textarea::placeholder { color: rgba(255,255,255,0.3); }

.comment-form__textarea:focus {
    border-color: var(--primarycolor);
    background: rgba(255,255,255,0.08);
}

.comment-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 14px 16px;
}

.comment-form__hint {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.35);
}

.comment-form__submit {
    background: var(--primarycolor);
    color: var(--text-black);
    border: none;
    padding: 9px 22px;
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.comment-form__submit:hover {
    background: #e08830;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244,162,97,0.35);
}

/* Guest comment prompt */
.comment-guest-prompt {
    padding: 20px;
    background: rgba(0,0,0,0.12);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    font-size: 1.4rem;
    color: rgba(255,255,255,0.65);
}

.comment-guest-prompt a {
    color: var(--primarycolor);
    font-weight: 600;
    text-decoration: none;
}

/* ── Comments Section ------------------------------------------------------- */
.comments-section {
    margin-top: 4px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.comments-header h5 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-header h5 i { color: var(--primarycolor); }

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(244,162,97,0.15);
    border: 1px solid rgba(244,162,97,0.25);
    color: var(--primarycolor);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-badge);
    min-width: 28px;
    line-height: 1.6;
}

/* Single Comment Card */
.comment-card {
    display: flex;
    gap: 13px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    animation: fadeSlideUp 0.25s ease-out;
}

.comment-card:last-child { border-bottom: none; }

.comment-card__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.1);
}

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

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

.comment-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    gap: 10px;
}

.comment-card__meta > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
}

.comment-card__username {
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--text-white);
}

.comment-card__time {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.38);
}

.comment-card__text {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.65;
    margin: 0;
    word-break: break-word;
    white-space: pre-wrap;
}

.comment-card__delete {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.25);
    padding: 4px 6px;
    transition: color 0.18s, background 0.18s;
    font-size: 1.2rem;
    border-radius: var(--radius-badge);
    flex-shrink: 0;
}

.comment-card__delete:hover {
    color: #e74c3c;
    background: rgba(231,76,60,0.1);
}

/* AJAX feedback */
.comment-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #1e293b;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-btn);
    border-left: 4px solid #4caf50;
    font-size: 1.4rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 9999;
    transform: translateY(60px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.comment-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.comment-toast--error { border-left-color: #e74c3c; }

/* Textarea error state */
.comment-form__textarea.is-error { border-color: #e74c3c; }

.comment-form__error {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-top: 5px;
    display: none;
}

.comment-form__error.is-visible { display: block; }

/* Pagination */
.comments-pagination {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.comments-pagination .pagination { gap: 4px; }

.comments-pagination .page-link {
    background: var(--surface);
    border-color: var(--border);
    color: rgba(255,255,255,0.7);
    border-radius: var(--radius-badge) !important;
    font-size: 1.3rem;
}

.comments-pagination .page-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.comments-pagination .page-item.active .page-link { background: var(--primarycolor); border-color: var(--primarycolor); color: #000; }
.comments-pagination .page-item.disabled .page-link { opacity: 0.4; }

/* ── Genres Sidebar --------------------------------------------------------- */
.genres {
    background: var(--surface);
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.genresheader {
    background: linear-gradient(to right, var(--secondarycolor), #1a4a8a);
    padding: 14px 20px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.genresheader i { color: var(--primarycolor); }

.genresheader h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.genresheader hr { display: none; }

.genrecontainer { padding: 14px; }

.genres-cont {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.genre_label { width: 100%; }

.genre_label a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 8px 10px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1.25rem;
    transition: var(--transition);
    border: 1px solid var(--border);
    border-radius: var(--radius-badge);
}

.genre_label a:hover {
    background: var(--primarycolor);
    color: var(--text-black);
    border-color: var(--primarycolor);
}

.genre_label i { color: var(--primarycolor); font-size: 0.85rem; }
.genre_label a:hover i { color: var(--text-black); }

/* ── Alert Boxes ------------------------------------------------------------ */
.alert {
    border-radius: var(--radius-btn);
    border: none;
}

.alert-info    { background: rgba(52,152,219,0.15);  color: #5dade2; border-left: 3px solid #3498db; }
.alert-warning { background: rgba(241,196,15,0.15); color: #f4d03f; border-left: 3px solid #f1c40f; }

/* ── You May Like ----------------------------------------------------------- */
.youmaylike-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    padding: 18px;
}

.related_reading_wrap {
    background: var(--surface);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.related_reading_wrap:hover {
    border-color: var(--primarycolor);
    box-shadow: 0 6px 20px rgba(244,162,97,0.15);
    transform: translateY(-3px);
}

.youmay-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related_reading_img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--bg-color);
}

.related_reading_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.related_reading_wrap:hover .related_reading_img img { transform: scale(1.05); }

.related_content_container {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related_content_title {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.related_content_title a {
    color: var(--text-white);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.related_content_title a:hover { color: var(--primarycolor); }

.related_post_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
}

.poston { font-size: 1.05rem; color: rgba(255,255,255,0.4); }

.related_genre {
    background: var(--primarycolor);
    color: var(--text-black);
    padding: 2px 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-badge);
}

/* ── Modals ----------------------------------------------------------------- */
.modal-content {
    background: #131c38;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
}

.modal-title {
    color: var(--text-white);
    font-size: 1.6rem;
    font-weight: 700;
}

.modal-body {
    padding: 24px 20px;
    color: var(--text-white);
    font-size: 1.4rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    gap: 10px;
}

.btn-close { filter: invert(1); opacity: 0.7; }
.btn-close:hover { opacity: 1; }

.costmessage {
    color: rgba(255,255,255,0.85);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(244,162,97,0.08);
    border-radius: var(--radius-btn);
    border: 1px solid rgba(244,162,97,0.2);
}

.modalbtn,
.commentformbtn {
    background: var(--primarycolor);
    color: var(--text-black);
    border: none;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-btn);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modalbtn:hover,
.commentformbtn:hover {
    background: #e08830;
    color: var(--text-black);
    transform: translateY(-1px);
}

#purchaseErrormodalbody {
    color: rgba(255,255,255,0.88);
    font-size: 1.4rem;
    line-height: 1.7;
}

#purchaseErrormodalbody a {
    color: var(--primarycolor);
    text-decoration: underline;
}

/* ── Scrollbar -------------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--primarycolor); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #e08830; }

/* ── Responsive ------------------------------------------------------------- */
@media (max-width: 992px) {
    .ch-row-date { display: none; }
    .youmaylike-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 12px; }
    .tab-summary { padding: 16px; }
    .summaryheading { padding: 12px 16px; }
    .summarycontent { padding: 14px 16px; }

    .post_content_item { flex-direction: column; gap: 3px; }
    .summary_heading { min-width: auto; }

    .chaptercontainer { padding: 8px; gap: 5px; }
    .showchapter { padding: 11px 13px; }
    .ch-row-icon { width: 28px; height: 28px; font-size: 1.2rem; }
    .ch-row-name { font-size: 1.3rem; }

    .manga-action { gap: 8px; }
    .manga-action__btn { padding: 8px 12px; font-size: 1.2rem; }

    .genres-cont { grid-template-columns: 1fr; }

    .comment-form__body { gap: 10px; }
    .comment-form__avatar { width: 34px; height: 34px; }

    .youmaylike-grid { grid-template-columns: repeat(2, 1fr); padding: 12px; }
}

@media (max-width: 480px) {
    .tab-summary { padding: 12px; }

    .showchapter { flex-wrap: wrap; padding: 12px; gap: 10px; }
    .ch-row-left  { flex: 1 0 100%; }
    .ch-row-right { flex: 1 0 100%; justify-content: flex-start; gap: 6px; }

    .manga-action { flex-direction: column; align-items: stretch; }
    .manga-action__btn { justify-content: center; }

    .youmaylike-grid { grid-template-columns: 1fr; }

    .youmay-box { flex-direction: row; }
    .related_reading_img { width: 90px; min-width: 90px; aspect-ratio: 2/3; }
}

/* ── Entrance Animation ----------------------------------------------------- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tab-summary  { animation: fadeSlideUp 0.4s ease-out; }
.summarybox   { animation: fadeSlideUp 0.4s ease-out; }
