/* หน้า Banner — ฟีดประกาศ/แบนเนอร์จาก Discord ในสไตล์เว็บ */
.bn-page { font-family: var(--gs-font, "Fredoka", "Noto Sans Thai", system-ui, sans-serif); display: grid; gap: 14px; max-width: 1100px; margin: 0 auto; }
.bn-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; }
.bn-h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); color: #fff; -webkit-text-stroke: 7px #16121f; paint-order: stroke fill; }
.bn-sub { margin: 4px 0 0; color: #a8a3b8; font-size: 14px; }
.bn-upd { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #151619; border: 2px solid #2a2c31; color: #a8a3b8; font-size: 13px; font-weight: 600; }
.bn-upd:empty { display: none; }
.bn-dot { width: 8px; height: 8px; border-radius: 50%; background: #74f06c; box-shadow: 0 0 8px #74f06c; animation: bn-pulse 1.8s ease-in-out infinite; }
@keyframes bn-pulse { 50% { opacity: .35; } }
.bn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bn-chips:empty { display: none; }
.bn-chips button { padding: 7px 14px; border-radius: 10px; border: 2px solid #2a2c31; background: #151619; color: #d7d2e2; font: 700 14px var(--gs-font, inherit); cursor: pointer; }
.bn-chips button.on { background: linear-gradient(180deg, #6c7bff, #4a4fe0); border-color: #aab3ff66; color: #fff; }
/* โพสต์ */
.bn-post { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: #151619; border: 4px solid #0c0d0f; box-shadow: 0 14px 30px #000a, inset 0 0 0 2px #2a2c31; color: #d7d2e2; min-width: 0; }
.bn-post.big { padding: 16px; box-shadow: 0 18px 40px #000b, inset 0 0 0 2px #6c7bff66; }
.bn-post header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.bn-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #24262c; display: grid; place-items: center; font-size: 20px; }
.bn-post header b { display: block; color: #fff; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-post header small { color: #8b8796; font-size: 12px; }
.bn-open { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #24262c; color: #fff; text-decoration: none; font-weight: 800; }
.bn-open:hover { background: #5865f2; }
.bn-md { font-family: "Noto Sans Thai", system-ui, sans-serif; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.bn-md p { margin: 0; } .bn-md .bn-gap { height: .5em; }
.bn-md a, .bn-emb h3 a { color: #7cb7ff; }
.bn-md ul { margin: 2px 0; padding-left: 20px; }
.bn-md blockquote { margin: 2px 0; padding-left: 10px; border-left: 4px solid #4e5058; }
.bn-md code { padding: 1px 5px; border-radius: 5px; background: #0f1012; font-size: 13px; }
.bn-md pre { margin: 4px 0; padding: 8px 10px; border-radius: 8px; background: #0f1012; white-space: pre-wrap; font-size: 13px; }
.bn-h { margin: 6px 0 2px; color: #fff; font-family: var(--gs-font, inherit); } h3.bn-h { font-size: 20px; } h4.bn-h { font-size: 17px; } h5.bn-h { font-size: 15px; }
.bn-subt { display: block; color: #8b8796; font-size: 12px; }
.bn-emo { width: 1.35em; height: 1.35em; vertical-align: -.3em; object-fit: contain; }
.bn-men { padding: 0 3px; border-radius: 4px; background: #5865f233; color: #c9cdfb; }
.bn-time { padding: 0 3px; border-radius: 4px; background: #ffffff10; }
.bn-spoil { background: #1e1f22; color: transparent; border-radius: 4px; cursor: pointer; transition: color .2s; } .bn-spoil.on { color: inherit; background: #ffffff14; }
/* embed (กรอบสีซ้ายแบบ Discord) */
.bn-emb { position: relative; display: grid; gap: 4px; padding: 10px 12px 10px 14px; border-radius: 10px; background: #1b1c21; border-left: 4px solid var(--ec); }
.bn-emb h3 { margin: 0; font-size: 16px; color: #fff; }
.bn-ea, .bn-ef { color: #a8a3b8; font-size: 12px; }
.bn-thumb { float: right; width: 72px; height: 72px; object-fit: cover; border-radius: 8px; margin-left: 10px; }
.bn-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 4px; }
.bn-fields b { color: #fff; font-size: 13px; }
/* รูป */
.bn-gal { display: grid; gap: 6px; border-radius: 14px; overflow: hidden; }
.bn-gal.n2, .bn-gal.n4 { grid-template-columns: 1fr 1fr; } .bn-gal.n3 { grid-template-columns: 2fr 1fr; } .bn-gal.n3 .bn-img:first-child { grid-row: span 2; }
.bn-img { position: relative; padding: 0; border: 0; background: #0f1012; cursor: zoom-in; overflow: hidden; border-radius: 10px; min-height: 0; }
.bn-img img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: cover; transition: transform .3s; }
.bn-post:not(.big) .bn-img img { max-height: 240px; }
.bn-img:hover img { transform: scale(1.03); }
.bn-img b { position: absolute; inset: 0; display: grid; place-items: center; background: #000a; color: #fff; font-size: 28px; }
.bn-vid { width: 100%; max-height: 420px; border-radius: 12px; background: #000; }
.bn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; margin-top: 14px; }
.bn-more { justify-self: center; display: block; margin: 14px auto 0; padding: 10px 22px; border-radius: 12px; border: 3px solid #ffffff22; background: linear-gradient(180deg, #4a4e57, #33363d); color: #fff; font: 700 16px var(--gs-font, inherit); cursor: pointer; box-shadow: 0 4px 0 #0008; }
.bn-empty { display: grid; justify-items: center; gap: 6px; padding: 50px 16px; text-align: center; border-radius: 20px; border: 3px dashed #2a2c31; color: #a8a3b8; }
.bn-empty i { font-size: 48px; font-style: normal; } .bn-empty b { font-size: 20px; color: #fff; } .bn-empty p { margin: 0; max-width: 460px; }
.bn-skel { height: 220px; border-radius: 20px; margin-bottom: 14px; background: linear-gradient(90deg, #151619 0%, #1e2026 50%, #151619 100%); background-size: 200% 100%; animation: sk-shimmer 1.3s linear infinite; }
/* ดูรูปเต็ม */
.bn-lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #000d; padding: 20px; cursor: zoom-out; animation: bn-fade .2s ease-out; }
.bn-lb[hidden] { display: none; }
.bn-lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px #000; }
.bn-lb-x { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 12px; border: 0; background: #ffffff22; color: #fff; font-size: 20px; cursor: pointer; }
@keyframes bn-fade { from { opacity: 0; } }
@media (max-width: 640px) { .bn-grid { grid-template-columns: 1fr; } .bn-post { padding: 12px; } }
