:root{--bg:#0d0d12;--panel:#15151d;--panel2:#1b1b26;--text:#f7f7fb;--muted:#a7a7b7;--line:#2a2a37;--red:#ff375f;--violet:#7c5cff;--gold:#ffcc66;--radius:20px;--shadow:0 20px 70px rgba(0,0,0,.28)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:"Noto Sans Thai","Leelawadee UI",Tahoma,Arial,sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}input,textarea,select,button{font:inherit}.topline{height:4px;background:linear-gradient(90deg,var(--red),var(--violet),var(--gold))}.site-header{position:sticky;top:0;z-index:50;background:rgba(13,13,18,.9);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.06)}.header-inner{max-width:1280px;margin:auto;display:flex;align-items:center;gap:26px;padding:14px 24px}.brand{display:flex;align-items:center;gap:7px;font-weight:900;letter-spacing:-1px;white-space:nowrap}.brand-box{background:var(--red);padding:5px 8px;border-radius:7px}.brand-amp{color:var(--gold)}.brand-rb{font-size:24px}.brand small{font-size:9px;letter-spacing:2px;color:var(--muted);align-self:flex-end;margin:0 0 2px 2px}.main-nav{display:flex;gap:20px;margin-left:auto;align-items:center}.main-nav a{font-size:14px;color:#d9d9e3}.main-nav a:hover{color:white}.menu-btn{display:none;margin-left:auto;background:none;border:0;color:white;font-size:24px}.site-main{min-height:70vh}.hero-wrap{max-width:1380px;margin:26px auto 0;padding:0 24px}.hero-card{min-height:560px;border-radius:28px;overflow:hidden;position:relative;background-image:var(--bg);background-size:cover;background-position:center;box-shadow:var(--shadow);display:flex;align-items:flex-end}.hero-card:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,6,9,.96) 0%,rgba(6,6,9,.63) 46%,rgba(6,6,9,.18) 80%),linear-gradient(0deg,rgba(6,6,9,.85),transparent 50%)}.hero-content{position:relative;z-index:2;padding:58px;max-width:750px}.kicker,.eyebrow{font-size:12px;letter-spacing:2.2px;font-weight:800;color:var(--red)}.hero-content h1{font-size:clamp(38px,5vw,70px);line-height:1.1;margin:12px 0 16px;letter-spacing:-1.5px}.hero-content p{color:#d1d1dc;font-size:18px;max-width:700px}.meta{font-size:13px;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 18px;border-radius:12px;border:1px solid var(--line);background:#232330;color:white;cursor:pointer;font-weight:700}.btn.primary{background:linear-gradient(135deg,var(--red),#ff5f3d);border:0}.hero-content .btn{margin-top:22px}.content-shell{max-width:1280px;margin:54px auto;padding:0 24px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}.section-head h1,.section-head h2{font-size:34px;margin:3px 0 0}.news-layout{display:grid;grid-template-columns:1fr 330px;gap:34px}.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.news-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;overflow:hidden;transition:.22s transform,.22s border-color}.news-card:hover{transform:translateY(-4px);border-color:#44445c}.thumb{display:block;aspect-ratio:16/9;background:#20202b;overflow:hidden;position:relative}.thumb img{width:100%;height:100%;object-fit:cover}.thumb-placeholder{width:100%;height:100%;display:grid;place-items:center;font-size:26px;font-weight:900;background:radial-gradient(circle at 20% 10%,rgba(124,92,255,.35),transparent 45%),linear-gradient(135deg,#1a1a25,#101018);color:#fff}.ai-badge{position:absolute;top:12px;left:12px;background:rgba(0,0,0,.75);border:1px solid rgba(255,255,255,.2);padding:5px 8px;border-radius:8px;font-size:10px;letter-spacing:1.4px}.card-body{padding:18px}.category{font-size:12px;color:var(--red);font-weight:800}.card-body h3{font-size:20px;line-height:1.35;margin:6px 0 8px}.card-body p{color:var(--muted);font-size:14px;margin:0 0 12px}.popular{background:var(--panel);border:1px solid var(--line);padding:22px;border-radius:18px;align-self:start;position:sticky;top:90px}.popular h3{margin-top:0}.popular-item{display:grid;grid-template-columns:46px 1fr;gap:10px;padding:14px 0;border-top:1px solid var(--line)}.popular-item b{font-size:26px;color:#4f4f64}.popular-item span{font-weight:700;line-height:1.35}.popular-item small{display:block;color:var(--muted);font-weight:400;margin-top:5px}.site-footer{border-top:1px solid var(--line);margin-top:80px;background:#0a0a0e}.footer-grid{max-width:1280px;margin:auto;padding:54px 24px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}.footer-grid h4{margin-top:0}.footer-grid a{display:block;color:var(--muted);margin:6px 0}.footer-brand{margin-bottom:16px}.copyright{border-top:1px solid var(--line);padding:18px 24px;text-align:center;color:#77778b;font-size:13px}.article-shell{max-width:920px;margin:60px auto;padding:0 24px}.article-header{text-align:left}.article-header h1{font-size:clamp(36px,5vw,62px);line-height:1.18;margin:10px 0 18px;letter-spacing:-1px}.lead{font-size:20px;color:#b9b9c6}.article-meta{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:13px;margin-top:24px}.ai-inline{color:#cfc8ff}.article-cover{margin:36px 0;border-radius:22px;overflow:hidden;background:#1b1b24}.article-cover img{width:100%;max-height:620px;object-fit:cover}.article-body{font-size:18px;color:#e7e7ee}.article-body p{margin:0 0 1.25em}.article-body h2{font-size:28px;margin-top:1.8em}.article-body a{color:#a99cff;text-decoration:underline}.source-box{margin-top:34px;border:1px solid var(--line);background:var(--panel);padding:20px;border-radius:16px}.source-box p{margin:4px 0}.source-box a{color:#b4aaff}.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.tags span{background:#1c1c27;border:1px solid var(--line);padding:6px 10px;border-radius:999px;color:#c2c2cf;font-size:13px}.search-form{display:flex;gap:10px;margin:24px 0}.search-form input{flex:1}.empty-state{background:var(--panel);border:1px dashed #3a3a4d;border-radius:24px;padding:56px;text-align:center}.result-count{color:var(--muted)}input,textarea,select{width:100%;background:#101017;color:white;border:1px solid #323242;border-radius:10px;padding:11px 12px;outline:none}input:focus,textarea:focus,select:focus{border-color:#6b5cff;box-shadow:0 0 0 3px rgba(124,92,255,.12)}label{display:grid;gap:6px;font-size:13px;color:#c5c5d1}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.span2{grid-column:span 2}.alert{padding:12px 14px;border-radius:10px;margin:12px 0}.alert.error{background:#401923;border:1px solid #792b40}.alert.ok{background:#123323;border:1px solid #226c47}.install-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 15% 20%,rgba(124,92,255,.2),transparent 35%),radial-gradient(circle at 80% 10%,rgba(255,55,95,.17),transparent 32%),#0d0d12;padding:24px}.install-card,.login-card{width:min(760px,100%);background:rgba(21,21,29,.94);border:1px solid var(--line);border-radius:24px;padding:34px;box-shadow:var(--shadow)}.login-card{max-width:430px}.login-card form{display:grid;gap:14px}.brand-mark{font-size:28px;font-weight:900}.brand-mark span{color:var(--red)}.muted{color:var(--muted)}.legal-page{min-height:55vh}@media(max-width:1050px){.news-grid{grid-template-columns:repeat(2,1fr)}.news-layout{grid-template-columns:1fr}.popular{position:static}.main-nav{position:fixed;top:67px;right:-100%;width:min(360px,90vw);height:calc(100vh - 67px);background:#111118;flex-direction:column;align-items:stretch;padding:26px;transition:.2s;border-left:1px solid var(--line)}.nav-open .main-nav{right:0}.menu-btn{display:block}}@media(max-width:680px){.header-inner{padding:12px 16px}.brand small{display:none}.hero-wrap,.content-shell{padding:0 14px}.hero-card{min-height:520px;border-radius:20px}.hero-content{padding:28px 22px}.hero-content h1{font-size:36px}.news-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}.article-shell{margin-top:34px;padding:0 16px}.article-header h1{font-size:36px}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.empty-state{padding:34px 20px}}
.youtube-embed{position:relative;width:100%;aspect-ratio:16/9;margin:1.6em 0;border-radius:16px;overflow:hidden;background:#000;box-shadow:0 12px 36px rgba(0,0,0,.28)}.youtube-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Editorial typography refresh */
h1,h2,h3,h4,.brand,.kicker,.eyebrow,.category,.popular-item b,.btn{font-family:"IBM Plex Sans Thai","Noto Sans Thai",sans-serif}.hero-content h1,.article-header h1,.section-head h1,.section-head h2{font-weight:700;letter-spacing:-.035em}.card-body h3,.popular-item span{font-weight:600}.article-body{font-family:"Noto Sans Thai","IBM Plex Sans Thai",sans-serif;font-weight:400}.site-footer h4{font-weight:700}.main-nav a{font-weight:500}

.brand-image-link{display:flex;align-items:center;letter-spacing:0}.site-logo{display:block;width:auto;object-fit:contain}.site-logo-header{height:38px;max-width:230px}.site-logo-footer{height:58px;max-width:280px}.logo-setting{border-top:1px solid var(--line);padding-top:18px}.logo-preview{margin:10px 0 12px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#0d0d12;display:inline-flex;max-width:100%}.logo-preview img{max-height:80px;max-width:360px;object-fit:contain}@media(max-width:680px){.site-logo-header{height:34px;max-width:190px}.site-logo-footer{height:50px;max-width:240px}}

/* Article sharing */
.share-bar{
  margin-top:24px;
  padding:16px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.share-bar-bottom{
  margin-top:36px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--panel);
}
.share-label{
  display:block;
  margin-bottom:11px;
  font-size:14px;
  font-weight:700;
  color:#e8e8f0;
}
.share-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
}
.share-btn{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 14px;
  border:1px solid #343444;
  border-radius:999px;
  background:#1b1b26;
  color:#f4f4f8;
  font-size:13px;
  font-weight:700;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.share-btn:hover{
  transform:translateY(-1px);
  background:#262635;
  border-color:#505067;
  box-shadow:0 7px 18px rgba(0,0,0,.18);
}
.share-facebook{background:#17233d;border-color:#284576}
.share-x{background:#17171c;border-color:#3b3b46}
.share-line{background:#123421;border-color:#236c42}
.share-whatsapp{background:#123128;border-color:#26765d}
.share-copy{background:#24202f;border-color:#514267}
.share-native{display:none;background:#262039;border-color:#5a4a84}
.share-btn.is-copied{background:#173222;border-color:#4aa975;color:#d9ffea}
@media(max-width:640px){
  .share-bar{padding:14px 0}
  .share-bar-bottom{padding:16px}
  .share-actions{gap:7px}
  .share-btn{min-height:36px;padding:8px 11px;font-size:12px}
}


/* Social share icons */
.share-social{
  width:44px;
  height:44px;
  min-height:44px;
  padding:0;
  border-radius:50%;
}
.share-social svg{width:21px;height:21px;display:block}
.share-line svg{width:24px;height:24px}
.share-whatsapp svg{width:22px;height:22px}
@media(max-width:640px){
  .share-social{width:40px;height:40px;min-height:40px;padding:0}
  .share-social svg{width:20px;height:20px}
}

/* Threaded comments + YouTube subscriber gate */
.comments-section{margin:42px 0 18px;padding-top:30px;border-top:1px solid var(--line)}
.comments-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.comments-kicker{display:block;margin-bottom:4px;color:#9d8cff;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.comments-heading h2{margin:0;font-size:25px;line-height:1.2}
.commenter-mini{display:flex;align-items:center;gap:9px;min-width:0;color:#d8d8e2;font-size:13px}
.commenter-mini img{width:30px;height:30px;border-radius:50%;object-fit:cover;background:#242431}
.commenter-mini span{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.commenter-mini a{color:#aaa0d0;text-decoration:none;font-size:12px}
.commenter-mini a:hover{color:#fff}
.comment-notice{margin:0 0 14px;padding:11px 14px;border:1px solid #574a7a;border-radius:12px;background:#211b31;color:#eee8ff;font-size:14px}
.comment-gate{padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.comment-gate strong{display:block;margin-bottom:7px;font-size:16px}
.comment-gate p{margin:0;color:#aaaabb;line-height:1.65;font-size:14px}
.comment-gate-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}
.youtube-login-btn,.youtube-subscribe-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border-radius:999px;text-decoration:none;font-weight:700;font-size:13px}
.youtube-login-btn{background:#ff335f;color:#fff;border:1px solid #ff5277}
.youtube-login-btn:hover{background:#ff5277}
.youtube-subscribe-link{background:#1d1d28;color:#f3f3f7;border:1px solid #363648}
.youtube-subscribe-link:hover{background:#282836}
.youtube-subscribe-link.strong{border-color:#7a3145;background:#2d1720}
.comment-form{margin-top:14px}
.comment-form textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:94px;padding:13px 14px;border:1px solid #343445;border-radius:14px;background:#101016;color:#f7f7fa;font:inherit;line-height:1.6;outline:none}
.comment-form textarea:focus{border-color:#7d61ff;box-shadow:0 0 0 3px rgba(125,97,255,.12)}
.comment-form-main{padding:17px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.comment-form-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;color:#9999a9;font-size:12px}
.comment-submit{appearance:none;border:1px solid #ff5277;border-radius:999px;background:#ff335f;color:#fff;padding:9px 15px;font-weight:700;cursor:pointer;font:inherit;font-size:13px}
.comment-submit:hover{background:#ff5277}
.comment-list{margin-top:24px}
.comments-empty{padding:20px 0;color:#8f8f9e;font-size:14px}
.comment-node{margin-top:13px;position:relative}
.comment-node[data-depth="1"]{margin-left:22px}.comment-node[data-depth="2"]{margin-left:44px}.comment-node[data-depth="3"]{margin-left:66px}.comment-node[data-depth="4"]{margin-left:88px}.comment-node[data-depth="5"]{margin-left:110px}
.comment-node:not([data-depth="0"]){padding-left:13px;border-left:1px solid #2b2b39}
.comment-card{padding:15px 16px;border:1px solid #292936;border-radius:16px;background:#111118}
.comment-head{display:flex;align-items:center;gap:10px}
.comment-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:#242430}
.comment-avatar-fallback{display:inline-flex;align-items:center;justify-content:center;color:#fff;background:#ff335f;font-size:11px}
.comment-head strong{display:block;color:#f2f2f6;font-size:14px;line-height:1.25}
.comment-time{margin-top:2px;color:#7f7f90;font-size:11px}
.comment-body{margin-top:11px;color:#ddddE6;font-size:14px;line-height:1.72;overflow-wrap:anywhere}
.comment-reply{margin-top:9px}
.comment-reply summary{display:inline-block;cursor:pointer;color:#b3a7e0;font-size:12px;font-weight:700;list-style:none}
.comment-reply summary::-webkit-details-marker{display:none}
.comment-reply[open] summary{color:#fff}
.comment-form.compact{margin:9px 0 0;padding:12px;border-radius:13px;background:#0c0c12;border:1px solid #242431}
.comment-form.compact textarea{min-height:74px;font-size:13px}
.comment-form.compact .comment-submit{margin-top:9px}
@media(max-width:680px){
  .comments-section{margin-top:34px;padding-top:24px}
  .comments-heading{align-items:flex-start;flex-direction:column}
  .commenter-mini{width:100%}
  .comment-form-foot{align-items:flex-start;flex-direction:column}
  .comment-node[data-depth="1"]{margin-left:10px}.comment-node[data-depth="2"]{margin-left:20px}.comment-node[data-depth="3"]{margin-left:30px}.comment-node[data-depth="4"]{margin-left:40px}.comment-node[data-depth="5"]{margin-left:50px}
  .comment-node:not([data-depth="0"]){padding-left:8px}
  .comment-card{padding:13px}
}

/* Center the complete article reading experience */
.article-shell{max-width:980px;margin-left:auto;margin-right:auto}
.article-header,.article-body,.tags,.share-bar,.share-bar-bottom,.comments-section{max-width:820px;margin-left:auto;margin-right:auto}
.article-header{text-align:center}
.article-meta{justify-content:center}
.article-cover{max-width:900px;margin-left:auto;margin-right:auto}
.article-body img,.article-body .youtube-embed{margin-left:auto;margin-right:auto}
.article-body{width:100%}
@media(max-width:680px){
  .article-header,.article-body,.tags,.share-bar,.share-bar-bottom,.comments-section{max-width:100%}
}

/* AI source-article inline media */
.article-inline-media{margin:30px auto 34px;max-width:100%;text-align:center}
.article-inline-media img{display:block;width:auto;max-width:100%;height:auto;max-height:820px;margin:0 auto;border-radius:18px;object-fit:contain;background:#111118}
.article-inline-media figcaption{max-width:760px;margin:9px auto 0;color:var(--muted);font-size:13px;line-height:1.55;text-align:center}
@media(max-width:680px){.article-inline-media{margin:22px auto 26px}.article-inline-media img{border-radius:12px;max-height:none}}

/* Compact gallery for batches of AI/source images inside article content */
.article-image-gallery{
  display:grid;
  gap:14px;
  width:100%;
  margin:30px auto 34px;
  align-items:stretch;
}
.article-image-gallery.gallery-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.article-image-gallery.gallery-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.article-image-gallery.gallery-medium{grid-template-columns:repeat(2,minmax(0,1fr))}
.article-image-gallery.gallery-large{grid-template-columns:repeat(3,minmax(0,1fr))}
.article-image-gallery .article-inline-media{
  margin:0;
  min-width:0;
  display:flex;
  flex-direction:column;
  height:100%;
  border-radius:16px;
  overflow:hidden;
  background:#111118;
  border:1px solid var(--line);
}
.article-image-gallery .article-inline-media img{
  width:100%;
  height:100%;
  min-height:210px;
  max-height:420px;
  object-fit:contain;
  border-radius:0;
  background:#0c0c11;
}
.article-image-gallery .article-inline-media figcaption{
  width:100%;
  margin:0;
  padding:9px 11px 10px;
  font-size:12px;
  line-height:1.45;
  text-align:left;
  background:#14141c;
}
@media(max-width:760px){
  .article-image-gallery,
  .article-image-gallery.gallery-2,
  .article-image-gallery.gallery-3,
  .article-image-gallery.gallery-medium,
  .article-image-gallery.gallery-large{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin:22px auto 26px;
  }
  .article-image-gallery .article-inline-media{border-radius:11px}
  .article-image-gallery .article-inline-media img{min-height:130px;max-height:300px}
  .article-image-gallery .article-inline-media figcaption{padding:7px 8px;font-size:11px}
}
@media(max-width:420px){
  .article-image-gallery{gap:7px}
  .article-image-gallery .article-inline-media img{min-height:105px;max-height:240px}
}
