/* ==========================================================================
   MUZeeD เว็บบอร์ดแบบใหม่ (2026-09-27) — หน้ารวมโพสต์ /board + หน้าอ่าน /board/{id}
   - เอฟเฟกต์ใช้ transform / opacity เป็นหลัก, canvas ประกายไฟอันเดียวที่หัวหน้า (หยุดเมื่อมองไม่เห็น)
   - prefers-reduced-motion: ปิดการเคลื่อนไหวทั้งหมด
   - มือถือ 375px: การ์ดแบบแถวแนวนอน ตารางเลื่อนในกรอบของตัวเอง หน้าเว็บไม่เลื่อนด้านข้าง
   ========================================================================== */

.bp {
    --bp-gold: #f59e0b;
    --bp-gold-2: #fde68a;
    --bp-text: #e5e7eb;
    --bp-muted: #94a3b8;
    --bp-line: rgba(255, 255, 255, .08);
    --bp-card: rgba(13, 18, 33, .86);
    --bp-radius: 18px;
    --bp-ease: cubic-bezier(.2, .8, .2, 1);
    position: relative;
    color: var(--bp-text);
    overflow-x: hidden;
    overflow-x: clip;
}
.bp a:focus-visible, .bp button:focus-visible, .bp input:focus-visible {
    outline: 2px solid #fbbf24; outline-offset: 3px;
}

/* ---------- ปุ่ม ---------- */
.bp-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 10px;
    font: inherit; font-size: .88rem; font-weight: 500; line-height: 1.4; color: #e5e7eb; text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); cursor: pointer;
    transition: transform .2s, background .2s, border-color .2s, box-shadow .2s, color .2s; }
.bp-btn:hover { color: #fff; border-color: rgba(245, 158, 11, .6); background: rgba(245, 158, 11, .1); }
.bp-btn-gold { color: #1a1204; font-weight: 600; border-color: transparent;
    background: linear-gradient(135deg, #fde68a, #f59e0b 55%, #d97706); box-shadow: 0 6px 18px rgba(245, 158, 11, .3); }
.bp-btn-gold:hover { color: #1a1204; background: linear-gradient(135deg, #fef3c7, #fbbf24 55%, #f59e0b);
    box-shadow: 0 10px 24px rgba(245, 158, 11, .45); }
.bp-btn:disabled { opacity: .65; cursor: wait; }
@media (hover: hover) { .bp-btn:hover { transform: translateY(-1px); } }

/* ---------- ป้าย (หมวด / ปักหมุด / ใหม่) ---------- */
.bp-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.bp-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .16rem .62rem; border-radius: 999px;
    font-size: .74rem; font-weight: 500; line-height: 1.55; white-space: nowrap; text-decoration: none;
    color: var(--c, #f59e0b); background: rgba(var(--c-rgb, 245, 158, 11), .14); border: 1px solid rgba(var(--c-rgb, 245, 158, 11), .4); }
a.bp-chip:hover { color: #fff; background: rgba(var(--c-rgb, 245, 158, 11), .26); }
.bp-chip.is-pin { --c: #fbbf24; --c-rgb: 251, 191, 36; }
.bp-chip.is-new { --c: #f472b6; --c-rgb: 244, 114, 182; }
.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; color: var(--bp-muted); font-size: .8rem; }
.bp-meta i { margin-right: .35rem; opacity: .85; }

/* ==========================================================================
   หน้ารวม: หัวหน้า
   ========================================================================== */
.bp-hero { position: relative; overflow: hidden; isolation: isolate; text-align: center;
    padding: clamp(2.6rem, 6vw, 4.8rem) 0 clamp(2.4rem, 5vw, 3.8rem); }
.bp-hero-sky { position: absolute; inset: -18% -8%; z-index: -4; will-change: transform;
    background:
        radial-gradient(48% 62% at 50% 0%, rgba(245, 158, 11, .32), rgba(245, 158, 11, 0) 70%),
        radial-gradient(34% 58% at 10% 38%, rgba(168, 85, 247, .30), rgba(168, 85, 247, 0) 70%),
        radial-gradient(34% 58% at 90% 32%, rgba(56, 189, 248, .22), rgba(56, 189, 248, 0) 70%),
        radial-gradient(60% 40% at 50% 100%, rgba(245, 158, 11, .12), rgba(245, 158, 11, 0) 70%),
        linear-gradient(180deg, #150f2c 0%, #0d1328 55%, #0a0e1a 100%);
    animation: bp-aurora 24s ease-in-out infinite alternate; }
.bp-hero-rays { position: absolute; left: 50%; top: -150%; width: 1700px; height: 1700px; margin-left: -850px; z-index: -3;
    border-radius: 50%; opacity: .5; pointer-events: none; will-change: transform;
    background: repeating-conic-gradient(from 0deg, rgba(253, 230, 138, .15) 0deg 3deg, rgba(253, 230, 138, 0) 3deg 15deg);
    -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 30%, transparent 60%);
    mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 30%, transparent 60%);
    animation: bp-spin 120s linear infinite; }
.bp-hero-rune { position: absolute; left: 50%; top: 52%; width: 640px; height: 640px; margin: -320px 0 0 -320px;
    z-index: -2; pointer-events: none; opacity: .32; }
.bp-hero-rune i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(245, 158, 11, .5);
    animation: bp-spin 80s linear infinite; }
.bp-hero-rune i + i { inset: 10%; border: 2px dotted rgba(253, 230, 138, .38); animation-duration: 55s; animation-direction: reverse; }
.bp-embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.bp-hero::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 1px; z-index: 0;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, .7), transparent); box-shadow: 0 0 18px rgba(245, 158, 11, .55); }
.bp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0), var(--bg-primary, #0a0e1a)); }
.bp-hero-inner { position: relative; }
.bp-hero-inner::before { content: ""; position: absolute; left: 50%; top: 18%; width: min(560px, 90%); height: 170px;
    transform: translateX(-50%); z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(245, 158, 11, .22), rgba(245, 158, 11, 0)); }
.bp-kicker { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .9rem; border-radius: 999px;
    font-size: .78rem; letter-spacing: .12em; color: var(--bp-gold-2);
    border: 1px solid rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .1); box-shadow: inset 0 0 22px rgba(245, 158, 11, .18); }
.bp-hero-title { margin: .7rem 0 .35rem; font-size: clamp(2.6rem, 8vw, 4.4rem); font-weight: 700; line-height: 1.15;
    letter-spacing: .02em; color: #fbbf24;
    background: linear-gradient(100deg, #fff7d6 0%, #fbbf24 28%, #ffffff 48%, #f59e0b 68%, #fde68a 100%);
    background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: bp-shimmer 7s linear infinite; }
.bp-hero-lead { max-width: 560px; margin: 0 auto 1.35rem; color: #cbd5e1; font-size: clamp(.98rem, 2.4vw, 1.12rem); }

.bp-search { position: relative; display: flex; align-items: center; gap: .4rem; max-width: 580px; margin: 0 auto;
    padding: .35rem .35rem .35rem 2.7rem; border-radius: 999px; background: rgba(8, 12, 24, .66);
    border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(245, 158, 11, .06);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .25s, box-shadow .25s; }
.bp-search:focus-within { border-color: rgba(245, 158, 11, .75);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 0 4px rgba(245, 158, 11, .15), 0 0 30px rgba(245, 158, 11, .25); }
.bp-search > i { position: absolute; left: 1.05rem; color: #fbbf24; }
.bp-search input { flex: 1 1 auto; min-width: 0; padding: .45rem .2rem; border: 0; outline: 0; background: transparent;
    color: #fff; font: inherit; font-size: 1rem; }
.bp-search input::placeholder { color: #7f8ba3; }
.bp-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.55); }
.bp-search button { flex: 0 0 auto; padding: .5rem 1.25rem; border: 0; border-radius: 999px; font: inherit; font-weight: 600;
    color: #1a1204; background: linear-gradient(135deg, #fde68a, #f59e0b 55%, #d97706); box-shadow: 0 6px 18px rgba(245, 158, 11, .35);
    transition: transform .2s, box-shadow .2s; }
.bp-search button:hover { box-shadow: 0 10px 26px rgba(245, 158, 11, .5); }
.bp-hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .6rem; margin-top: 1.15rem; }
.bp-hero-stats span { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px;
    font-size: .82rem; color: #cbd5e1; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.bp-hero-stats i { color: #fbbf24; font-size: .8rem; }
.bp-hero-stats b { color: #fff; font-weight: 600; }

/* ==========================================================================
   หน้ารวม: เนื้อหา
   ========================================================================== */
.bp-body { position: relative; padding-top: 1.4rem; padding-bottom: 2.4rem; }
.bp-preview-note { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1.3rem; padding: .75rem 1rem;
    border-radius: 14px; border: 1px dashed rgba(245, 158, 11, .55); background: rgba(245, 158, 11, .08); color: #fde68a; font-size: .9rem; }
.bp-preview-note > i { margin-top: .25rem; }
.bp-preview-note a { color: #fbbf24; text-decoration: underline; }

.bp-section-title { display: flex; align-items: center; gap: .55rem; margin: .2rem 0 .95rem; color: #f3f4f6;
    font-size: 1.05rem; font-weight: 600; }
.bp-section-title > i { color: var(--c, #fbbf24); filter: drop-shadow(0 0 8px rgba(var(--c-rgb, 245, 158, 11), .7)); }
.bp-section-title small { color: var(--bp-muted); font-size: .82rem; font-weight: 400; }
.bp-section-title::after { content: ""; flex: 1 1 auto; height: 1px; margin-left: .35rem;
    background: linear-gradient(90deg, rgba(var(--c-rgb, 245, 158, 11), .45), transparent); }

/* ---------- ภาพแทนเมื่อโพสต์ไม่มีรูป ---------- */
.bp-art { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; overflow: hidden;
    background:
        radial-gradient(120% 90% at 15% 0%, rgba(var(--c-rgb), .4), rgba(var(--c-rgb), 0) 60%),
        radial-gradient(90% 80% at 100% 100%, rgba(var(--c-rgb), .22), rgba(var(--c-rgb), 0) 60%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, rgba(255, 255, 255, 0) 2px 12px),
        linear-gradient(135deg, #111a33, #0b1020); }
.bp-art::before { content: ""; position: absolute; width: min(58%, 190px); aspect-ratio: 1 / 1; border-radius: 50%;
    border: 1px dashed rgba(var(--c-rgb), .5); box-shadow: inset 0 0 36px rgba(var(--c-rgb), .2), 0 0 24px rgba(var(--c-rgb), .12);
    transition: transform 1.2s var(--bp-ease); }
.bp-art::after { content: ""; position: absolute; width: min(36%, 120px); aspect-ratio: 1 / 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--c-rgb), .32), rgba(var(--c-rgb), 0) 70%); }
.bp-art i { position: relative; z-index: 1; font-size: clamp(2rem, 5vw, 3.1rem); color: rgba(var(--c-rgb), .95);
    filter: drop-shadow(0 0 18px rgba(var(--c-rgb), .65)); }
.bp-feature.is-main .bp-art i { font-size: clamp(2.6rem, 6vw, 4.2rem); }
@media (hover: hover) {
    .bp-card-in:hover .bp-art::before, .bp-feature-in:hover .bp-art::before { transform: rotate(90deg) scale(1.06); }
}

/* ---------- โพสต์ปักหมุด ---------- */
.bp-featured { margin-bottom: 1.9rem; }
.bp-featured-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.bp-feature { position: relative; isolation: isolate; overflow: hidden; padding: 1px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, .55), rgba(255, 255, 255, .08) 45%, rgba(var(--c-rgb), .45));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.bp-feature::before { content: ""; position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1 / 1;
    margin: -85% 0 0 -85%; z-index: -1; pointer-events: none;
    background: conic-gradient(from 0deg, rgba(253, 230, 138, 0) 0 62%, rgba(253, 230, 138, .95) 72%, rgba(253, 230, 138, 0) 80%);
    animation: bp-spin 7s linear infinite; }
.bp-feature-in { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden;
    border-radius: 19px; color: inherit; text-decoration: none; background: linear-gradient(180deg, rgba(21, 27, 48, .97), rgba(10, 14, 28, .98)); }
.bp-feature-media { position: relative; isolation: isolate; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1020; }
.bp-feature-media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--bp-ease); }
.bp-feature-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 14, 28, 0) 45%, rgba(10, 14, 28, .88)); }
.bp-feature-body { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.15rem 1.1rem; }
.bp-feature.is-main .bp-feature-body { margin-top: -3.2rem; z-index: 1; }
.bp-feature-body h3 { margin: 0; color: #fff; font-size: 1.12rem; font-weight: 600; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-feature.is-main .bp-feature-body h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.bp-feature-body p { margin: 0; color: #a3aec0; font-size: .88rem; line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-feature-body .bp-meta { margin-top: auto; }
.bp-read-more { margin-left: auto; color: var(--c); font-weight: 500; }
.bp-read-more i { margin: 0 0 0 .3rem !important; transition: transform .25s; }
@media (hover: hover) {
    .bp-feature-in:hover .bp-feature-media img { transform: scale(1.06); }
    .bp-feature-in:hover .bp-read-more i { transform: translateX(4px); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .bp-featured-grid.is-2, .bp-featured-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-featured-grid.is-3 .bp-feature.is-main { grid-column: span 2; }
}
/* มือถือ: โพสต์ปักหมุดเป็นแถวปัดซ้าย-ขวา (ใบถัดไปโผล่ให้เห็น) ไม่กินพื้นที่แนวตั้งหลายหน้าจอ */
@media (max-width: 767.98px) {
    .bp-featured-grid { display: flex; gap: .8rem; margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) .4rem;
        overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
        scrollbar-width: none; }
    .bp-featured-grid::-webkit-scrollbar { display: none; }
    .bp-feature { flex: 0 0 86%; scroll-snap-align: start; }
    .bp-featured-grid.is-1 .bp-feature { flex-basis: 100%; }
}
@media (min-width: 992px) {
    .bp-featured-grid.is-2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
    .bp-featured-grid.is-3 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
    .bp-featured-grid.is-3 .bp-feature.is-main { grid-row: span 2; }
    .bp-featured-grid.is-3 .bp-feature:not(.is-main) .bp-feature-in { grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: 1fr; }
    .bp-featured-grid.is-3 .bp-feature:not(.is-main) .bp-feature-media { aspect-ratio: auto; min-height: 150px; }
    .bp-featured-grid.is-3 .bp-feature:not(.is-main) .bp-feature-media::after {
        background: linear-gradient(90deg, rgba(10, 14, 28, 0) 55%, rgba(10, 14, 28, .75)); }
    .bp-feature.is-main .bp-feature-media { aspect-ratio: 16 / 8.2; }
    .bp-feature.is-main .bp-feature-body p { -webkit-line-clamp: 3; }
}

/* ---------- แท็บหมวดหมู่ ---------- */
.bp-anchor { position: relative; scroll-margin-top: calc(var(--bp-top, 76px) + 12px); }
.bp-tabs-wrap { position: relative; margin: .2rem 0 1.15rem; border-radius: 16px; background: rgba(13, 18, 33, .75);
    border: 1px solid var(--bp-line); box-shadow: 0 12px 34px rgba(0, 0, 0, .28); }
.bp-tabs { position: relative; display: flex; gap: .35rem; padding: .35rem; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; border-radius: inherit; scroll-snap-type: x proximity; }
.bp-tabs::-webkit-scrollbar { display: none; }
.bp-tabs.is-scroll { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
.bp-tab { position: relative; z-index: 1; flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem .95rem; border-radius: 12px; color: #aab4c5; font-size: .92rem; font-weight: 500; white-space: nowrap;
    text-decoration: none; scroll-snap-align: center;
    transition: color .25s, background .25s, box-shadow .25s, transform .2s;
    animation: bp-tab-in .55s var(--bp-ease) both; animation-delay: calc(var(--t, 0) * 45ms); }
.bp-tab i { color: var(--c); font-size: .9rem; transition: transform .3s var(--bp-ease), filter .3s; }
.bp-tab b { padding: .05rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; color: #cbd5e1;
    background: rgba(255, 255, 255, .07); transition: background .25s, color .25s; }
.bp-tab:hover { color: #fff; }
.bp-tab.is-active { color: #fff; background: rgba(var(--c-rgb), .18); box-shadow: inset 0 0 0 1px rgba(var(--c-rgb), .55); }
.bp-tab.is-active b { color: #10131c; background: var(--c); }
.bp-tab.is-pressing { transform: scale(.95); }
.bp-tabs.has-ink .bp-tab.is-active { background: transparent; box-shadow: none; }
.bp-tab-ink { position: absolute; z-index: 0; top: .35rem; bottom: .35rem; left: 0; width: 0; opacity: 0; border-radius: 12px;
    --ink-rgb: 245, 158, 11; pointer-events: none;
    background: linear-gradient(135deg, rgba(var(--ink-rgb), .32), rgba(var(--ink-rgb), .12));
    box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .65), 0 0 22px rgba(var(--ink-rgb), .38), 0 6px 18px rgba(0, 0, 0, .35);
    transition: transform .55s cubic-bezier(.22, .9, .25, 1), width .55s cubic-bezier(.22, .9, .25, 1), opacity .3s; }
.bp-tabs.has-ink .bp-tab-ink { opacity: 1; }
@media (hover: hover) {
    .bp-tab:hover { background: rgba(var(--c-rgb), .08); }
    .bp-tab:hover i { transform: translateY(-1px) scale(1.14); filter: drop-shadow(0 0 6px rgba(var(--c-rgb), .85)); }
    .bp-tabs.has-ink .bp-tab.is-active:hover { background: transparent; }
}

/* ---------- หัวรายการ ---------- */
.bp-list-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-bottom: 1rem; }
.bp-list-title { display: flex; align-items: center; gap: .6rem; margin: 0; color: #f8fafc; font-size: 1.2rem; font-weight: 600; min-width: 0; }
.bp-list-title span { overflow-wrap: anywhere; }
.bp-list-title i { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 11px;
    font-size: .95rem; color: var(--c); background: rgba(var(--c-rgb), .14);
    box-shadow: inset 0 0 0 1px rgba(var(--c-rgb), .45), 0 0 16px rgba(var(--c-rgb), .28); }
.bp-list-count { color: var(--bp-muted); font-size: .85rem; }
.bp-list-tools { display: flex; flex-wrap: wrap; gap: .45rem; margin-left: auto; }

/* ---------- การ์ดโพสต์ ---------- */
.bp-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bp-card { position: relative; border-radius: var(--bp-radius); }
.bp-card-in { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; isolation: isolate;
    border-radius: inherit; color: inherit; text-decoration: none; border: 1px solid var(--bp-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 40%), var(--bp-card);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .32);
    transition: transform .45s var(--bp-ease), border-color .35s, box-shadow .45s; }
.bp-card-in::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
    opacity: 0; transition: opacity .35s;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--c-rgb), .17), rgba(var(--c-rgb), 0) 45%); }
.bp-card-in::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: 3; pointer-events: none;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .13), rgba(255, 255, 255, 0));
    transform: translateX(-120%) skewX(-14deg); }
.bp-card-media { position: relative; isolation: isolate; flex: 0 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1020; }
.bp-card-media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s var(--bp-ease), filter .4s; }
.bp-card-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 14, 28, 0) 42%, rgba(10, 14, 28, .78)); }
.bp-chip-float { position: absolute; left: .7rem; bottom: .65rem; z-index: 2; background: rgba(8, 12, 24, .78); }
.bp-chip-inline { display: none; align-self: flex-start; }
.bp-pin { position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 2rem; height: 2rem; display: grid; place-items: center;
    border-radius: 50%; font-size: .8rem; color: #1a1204; background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .25), 0 6px 16px rgba(0, 0, 0, .4); transform: rotate(18deg); }
.bp-card-body { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; gap: .45rem; padding: .95rem 1.05rem 1.05rem; min-width: 0; }
.bp-card-title { margin: 0; color: #f8fafc; font-size: 1.04rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s, text-shadow .25s; }
.bp-new { margin-right: .3rem; padding: .05rem .42rem; border-radius: 6px; font-size: .68rem; font-style: normal; font-weight: 700;
    vertical-align: 2px; color: #fff; background: linear-gradient(135deg, #f472b6, #ec4899); }
.bp-card-excerpt { margin: 0; color: #9aa6b8; font-size: .86rem; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-card .bp-meta { margin-top: auto; padding-top: .3rem; }
.bp-card-in:focus-visible { outline: 2px solid #fbbf24; outline-offset: 3px; }
@media (hover: hover) {
    .bp-card-in:hover { transform: translateY(-6px); border-color: rgba(var(--c-rgb), .55);
        box-shadow: 0 22px 48px rgba(0, 0, 0, .5), 0 0 0 1px rgba(var(--c-rgb), .25), 0 0 34px rgba(var(--c-rgb), .2); }
    .bp-card-in:hover::before { opacity: 1; }
    .bp-card-in:hover::after { transform: translateX(430%) skewX(-14deg); transition: transform .95s ease; }
    .bp-card-in:hover .bp-card-media img { transform: scale(1.07); filter: saturate(1.15) brightness(1.05); }
    .bp-card-in:hover .bp-card-title { color: #fff; text-shadow: 0 0 18px rgba(var(--c-rgb), .5); }
}
@media (max-width: 639.98px) {
    .bp-card-in { flex-direction: row; align-items: stretch; }
    .bp-card-media { width: 104px; aspect-ratio: auto; min-height: 104px; }
    .bp-card-media::after { background: linear-gradient(90deg, rgba(10, 14, 28, 0) 60%, rgba(10, 14, 28, .55)); }
    .bp-chip-float { display: none; }
    .bp-chip-inline { display: inline-flex; }
    .bp-pin { top: .35rem; right: .35rem; width: 1.55rem; height: 1.55rem; font-size: .66rem; }
    .bp-card-body { gap: .3rem; padding: .7rem .8rem .75rem; }
    .bp-card-title { font-size: .97rem; }
    .bp-card-excerpt { -webkit-line-clamp: 1; font-size: .82rem; }
    .bp-art i { font-size: 1.55rem; }
    .bp-grid { gap: .75rem; }
}

/* ---------- เลือกหน้า / ไม่มีโพสต์ ---------- */
.bp-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem; margin: 2.1rem 0 .4rem; }
.bp-page { min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem; display: inline-grid; place-items: center; border-radius: 12px;
    color: #cbd5e1; font-weight: 500; text-decoration: none; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
    transition: transform .2s, color .2s, border-color .2s, background .2s; }
a.bp-page:hover { color: #fff; border-color: rgba(245, 158, 11, .6); background: rgba(245, 158, 11, .12); }
.bp-page.is-active { color: #1a1204; font-weight: 700; border-color: transparent;
    background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 6px 18px rgba(245, 158, 11, .35); }
.bp-page.is-disabled { opacity: .35; }
.bp-page.is-gap { background: transparent; border-color: transparent; }
.bp-page-now { display: none; padding: 0 .6rem; color: #cbd5e1; font-size: .9rem; }
.bp-page-now b { color: #fbbf24; }
@media (hover: hover) { a.bp-page:hover { transform: translateY(-2px); } }
@media (max-width: 575.98px) {
    .bp-pager .bp-page:not(.is-edge) { display: none; }
    .bp-page-now { display: inline-block; }
}
.bp-empty { padding: 3rem 1rem; text-align: center; border-radius: 20px; border: 1px dashed rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .02); }
.bp-empty-icon { width: 4.2rem; height: 4.2rem; margin: 0 auto .9rem; display: grid; place-items: center; border-radius: 50%;
    font-size: 1.6rem; color: #fbbf24; background: rgba(245, 158, 11, .12); box-shadow: 0 0 30px rgba(245, 158, 11, .2); }
.bp-empty h3 { font-size: 1.15rem; color: #f3f4f6; }
.bp-empty p { margin: 0; color: var(--bp-muted); }

/* ==========================================================================
   หน้าอ่าน
   ========================================================================== */
.bp-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1040; pointer-events: none; }
.bp-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--c), #fde68a); box-shadow: 0 0 12px rgba(var(--c-rgb), .85); }
.bp-read-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(1.8rem, 5vw, 3.4rem) 0 clamp(3rem, 6vw, 4.2rem);
    background:
        radial-gradient(60% 90% at 18% 0%, rgba(var(--c-rgb), .3), rgba(var(--c-rgb), 0) 70%),
        radial-gradient(50% 80% at 92% 8%, rgba(168, 85, 247, .2), rgba(168, 85, 247, 0) 70%),
        linear-gradient(180deg, #111731, #0a0e1a); }
.bp-read-bg { position: absolute; left: -40px; top: -40px; width: calc(100% + 80px); height: calc(100% + 80px); z-index: -3;
    object-fit: cover; opacity: .75; filter: blur(26px) saturate(1.25) brightness(.55); }
.bp-read-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 14, 26, .3), rgba(10, 14, 26, .7) 62%, var(--bg-primary, #0a0e1a)); }
.bp-read-hero .bp-hero-rays { top: -175%; opacity: .32; }
.bp-read-head { position: relative; max-width: 920px; }
.bp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .95rem; color: var(--bp-muted); font-size: .85rem; }
.bp-crumbs a { color: #cbd5e1; text-decoration: none; }
.bp-crumbs a:hover { color: #fff; }
.bp-crumbs > i { font-size: .6rem; opacity: .6; }
.bp-read-title { margin: .6rem 0 .85rem; color: #fff; font-size: clamp(1.55rem, 4.6vw, 2.55rem); font-weight: 700; line-height: 1.38;
    overflow-wrap: anywhere; text-shadow: 0 2px 24px rgba(0, 0, 0, .55), 0 0 32px rgba(var(--c-rgb), .28); }
.bp-read-meta { display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.bp-read-meta > span { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .72rem; border-radius: 999px;
    font-size: .8rem; color: #cbd5e1; background: rgba(8, 12, 24, .5); border: 1px solid rgba(255, 255, 255, .1); }
.bp-read-meta i { color: var(--c); }
.bp-read-meta em { font-style: normal; }
.bp-read-meta b { color: #fff; font-weight: 600; }
.bp-admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.1rem; padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, .14); }
.bp-admin-note { color: #fde68a; font-size: .8rem; }

.bp-read-wrap { position: relative; max-width: 920px; margin-top: -1.8rem; padding-bottom: 2.2rem; }
.bp-article { position: relative; padding: clamp(1.1rem, 3.6vw, 2.5rem); border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01) 30%), rgba(12, 17, 31, .94);
    border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(var(--c-rgb), .07); }
.bp-article::before { content: ""; position: absolute; left: 8%; right: 8%; top: -1px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--c-rgb), .95), transparent); box-shadow: 0 0 18px rgba(var(--c-rgb), .6); }
.bp-cover { margin: 0 0 1.5rem; overflow: hidden; border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.bp-cover img { display: block; width: 100%; max-height: 460px; object-fit: cover; }

/* ---------- ตัวอักษรเนื้อหา (ภาษาไทยยาว ๆ อ่านสบาย) ---------- */
.bp-content { color: #d8dee9; font-size: 1.06rem; line-height: 1.95; overflow-wrap: anywhere; word-break: break-word; }
.bp-content > :first-child { margin-top: 0; }
.bp-content p { margin: 0 0 1.05em; color: inherit; }
.bp-content a { color: #fbbf24; text-decoration: underline; text-decoration-color: rgba(251, 191, 36, .45); text-underline-offset: 3px; }
.bp-content a:hover { color: #fde68a; text-decoration-color: currentColor; }
.bp-content strong, .bp-content b { color: #fff; font-weight: 600; }
.bp-content h1, .bp-content h2, .bp-content h3, .bp-content h4 { margin: 1.6em 0 .6em; color: #fff; font-weight: 600; line-height: 1.4; }
.bp-content h1 { font-size: 1.6rem; }
.bp-content h2 { font-size: 1.42rem; }
.bp-content h3 { font-size: 1.24rem; }
.bp-content h4 { font-size: 1.1rem; }
.bp-content ul, .bp-content ol { margin: 0 0 1em; padding-left: 1.4rem; }
.bp-content li { margin: .25em 0; }
.bp-content li::marker { color: var(--c); }
.bp-content blockquote { margin: 1.2em 0; padding: .8em 1.1em; border-left: 3px solid var(--c); border-radius: 0 12px 12px 0;
    color: #e5e7eb; background: rgba(var(--c-rgb), .07); }
.bp-content hr { height: 1px; margin: 2em 0; border: 0; opacity: 1; background: linear-gradient(90deg, transparent, rgba(var(--c-rgb), .6), transparent); }
.bp-content pre { white-space: pre-wrap; padding: .9rem 1rem; border-radius: 12px; background: rgba(0, 0, 0, .35); color: #e5e7eb; }
.bp-content img { max-width: 100% !important; height: auto !important; border-radius: 10px; vertical-align: middle; }
.bp-content img.is-big { display: block; margin: 1.15rem auto; border-radius: 14px; cursor: zoom-in;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .35s var(--bp-ease), box-shadow .35s; }
@media (hover: hover) {
    .bp-content img.is-big:hover { transform: translateY(-2px);
        box-shadow: 0 22px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(var(--c-rgb), .45), 0 0 26px rgba(var(--c-rgb), .22); }
}
.bp-content iframe { max-width: 100%; border: 0; border-radius: 14px; }
.bp-content iframe.note-video-clip { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.bp-content .ratio { margin: 1.2rem 0; overflow: hidden; border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.bp-table-wrap { margin: 1.2rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    border-radius: 14px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .02); scrollbar-width: thin; }
.bp-table-hint { margin: 1.1rem 0 -.7rem; color: var(--bp-muted); font-size: .8rem; }
.bp-table-hint i { color: var(--c); margin-right: .3rem; }
.bp-content table { width: 100%; max-width: none; margin: 0 !important; border-collapse: collapse; font-size: .92rem; line-height: 1.55; }
.bp-content td, .bp-content th { padding: .5rem .65rem !important; border: 1px solid rgba(255, 255, 255, .07) !important; vertical-align: middle;
    overflow-wrap: normal; word-break: normal; } /* ตัวเลขในตาราง (เลือด 9705000) ห้ามตัดกลางคำ — ตารางกว้างเกินให้เลื่อนในกรอบแทน */
.bp-content tr:first-child > td, .bp-content th { color: #fff !important; font-weight: 500; background: rgba(var(--c-rgb), .09); }
.bp-content tr:nth-child(even) > td { background: rgba(255, 255, 255, .025); }
@media (max-width: 767.98px) { .bp-table-wrap.is-wide td, .bp-table-wrap.is-wide th { white-space: nowrap; } }
.bp-content td img { border-radius: 6px; }
/* โพสต์เก่าจากบอร์ดเดิม: ฟอนต์ที่วางมาจากที่อื่น และขนาดตัวอักษร 3–7px (แปลงจาก [size=3..7] ผิด) */
.bp-content [style*="font-family"], .bp-content font[face] { font-family: inherit !important; }
.bp-content [style*="font-size:1px"], .bp-content [style*="font-size: 1px"],
.bp-content [style*="font-size:2px"], .bp-content [style*="font-size: 2px"],
.bp-content [style*="font-size:3px"], .bp-content [style*="font-size: 3px"] { font-size: inherit !important; }
.bp-content [style*="font-size:4px"], .bp-content [style*="font-size: 4px"] { font-size: 1.08rem !important; }
.bp-content [style*="font-size:5px"], .bp-content [style*="font-size: 5px"] { font-size: 1.15rem !important; }
.bp-content [style*="font-size:6px"], .bp-content [style*="font-size: 6px"] { font-size: 1.28rem !important; }
.bp-content [style*="font-size:7px"], .bp-content [style*="font-size: 7px"] { font-size: 1.42rem !important; }

.bp-read-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin: 1.2rem 0 1.7rem; }
.bp-prevnext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 2.1rem; }
.bp-pn { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem; border-radius: 16px; color: #e5e7eb;
    text-decoration: none; background: var(--bp-card); border: 1px solid var(--bp-line);
    transition: transform .35s var(--bp-ease), border-color .35s, box-shadow .35s, color .2s; }
.bp-pn small { color: var(--c); font-size: .8rem; }
.bp-pn span { font-weight: 500; line-height: 1.5; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-pn.is-older { align-items: flex-end; text-align: right; }
.bp-pn.is-empty { visibility: hidden; }
@media (hover: hover) {
    .bp-pn:hover { color: #fff; transform: translateY(-3px); border-color: rgba(var(--c-rgb), .5);
        box-shadow: 0 16px 36px rgba(0, 0, 0, .45), 0 0 24px rgba(var(--c-rgb), .16); }
}
.bp-related { margin-top: .4rem; }

/* ---------- ดูรูปขยาย / แจ้งเตือน (อยู่นอก .bp) ---------- */
.bp-lightbox { position: fixed; inset: 0; z-index: 1090; display: grid; place-items: center; padding: 1rem;
    background: rgba(3, 6, 14, .92); opacity: 0; transition: opacity .25s; cursor: zoom-out; }
.bp-lightbox.is-open { opacity: 1; }
.bp-lightbox img { max-width: min(96vw, 1600px); max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: scale(.94); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.bp-lightbox.is-open img { transform: none; }
.bp-lightbox button { position: absolute; top: 1rem; right: 1rem; width: 2.7rem; height: 2.7rem; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.1rem; }
.bp-toast-host { position: fixed; left: 50%; bottom: 1.2rem; z-index: 1095; width: min(92vw, 460px); transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; }
.bp-toast { display: flex; align-items: flex-start; gap: .6rem; padding: .7rem 1rem; border-radius: 14px; pointer-events: auto;
    font-family: 'Kanit', sans-serif; font-size: .9rem; color: #e5e7eb; background: rgba(13, 18, 33, .97);
    border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: bp-toast-in .35s cubic-bezier(.2, .8, .2, 1); }
.bp-toast i { margin-top: .2rem; }
.bp-toast.is-ok { border-color: rgba(52, 211, 153, .55); }
.bp-toast.is-ok i { color: #34d399; }
.bp-toast.is-error { border-color: rgba(251, 113, 133, .6); }
.bp-toast.is-error i { color: #fb7185; }
.bp-toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }

/* ---------- การ์ดเลื่อนเข้ามา (เฉพาะเมื่อ JS ทำงาน) ---------- */
html.bp-js [data-bp-reveal] { opacity: 0; transform: translate3d(0, 22px, 0) scale(.985);
    transition: opacity .7s var(--bp-ease), transform .7s var(--bp-ease); transition-delay: calc(var(--d, 0) * 70ms); }
html.bp-js [data-bp-reveal].is-in { opacity: 1; transform: none; }

/* ---------- แอนิเมชัน ---------- */
@keyframes bp-spin { to { transform: rotate(360deg); } }
@keyframes bp-aurora { 0% { transform: translate3d(-2%, 0, 0) scale(1.02); } 100% { transform: translate3d(2%, -2%, 0) scale(1.07); } }
@keyframes bp-shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 220% 50%; } }
@keyframes bp-tab-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bp-toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- มือถือ ---------- */
@media (max-width: 575.98px) {
    .bp-hero { padding: 2.1rem 0 2.2rem; }
    .bp-hero-rune { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
    .bp-hero-rays { width: 1100px; height: 1100px; margin-left: -550px; top: -120%; }
    .bp-kicker { font-size: .72rem; letter-spacing: .08em; }
    .bp-hero-lead { font-size: .95rem; margin-bottom: 1.1rem; }
    .bp-search { padding-left: 2.35rem; }
    .bp-search > i { left: .9rem; }
    .bp-search button { padding: .5rem .95rem; }
    .bp-hero-stats span { font-size: .76rem; padding: .25rem .65rem; }
    .bp-body { padding-top: 1.1rem; }
    .bp-tab { padding: .5rem .8rem; font-size: .88rem; }
    .bp-list-title { font-size: 1.08rem; }
    .bp-list-tools { margin-left: 0; width: 100%; }
    .bp-feature-body { padding: .85rem .95rem 1rem; }
    .bp-feature.is-main .bp-feature-body { margin-top: -2.2rem; }
    .bp-read-wrap { margin-top: -1.4rem; }
    .bp-article { border-radius: 18px; }
    .bp-content { font-size: 1rem; line-height: 1.85; }
    .bp-content table { font-size: .86rem; }
    .bp-read-actions .bp-btn { flex: 1 1 auto; justify-content: center; }
    .bp-prevnext { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
    .bp-pn.is-empty { display: none; }
    .bp-pn.is-older { align-items: flex-start; text-align: left; }
}

/* ---------- ผู้ใช้ที่ตั้งค่าลดการเคลื่อนไหว ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bp *, .bp *::before, .bp *::after { animation: none !important; transition: none !important; }
    html.bp-js .bp [data-bp-reveal] { opacity: 1; transform: none; }
    .bp-embers { display: none; }
    .bp-lightbox, .bp-lightbox img, .bp-toast, .bp-toast.is-out { animation: none !important; transition: none !important; }
}
