/* 💬 ชุมชน (community.php) */
.cm { max-width: 1320px; }
.cm-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 28px 26px; margin-bottom: 18px; border: 1px solid rgba(66, 153, 245, .45); background: #081127; }
.cm-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; opacity: .55; }
.cm-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 17, 39, .96), rgba(8, 17, 39, .55)); }
.cm-hero h1 { margin: 0; font-size: 34px; background: linear-gradient(180deg, #c8e3ff, #4299f5 60%, #1c70c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cm-hero p { margin: 6px 0 12px; color: var(--soft); max-width: 640px; }
.cm-kpi { display: flex; gap: 10px; flex-wrap: wrap; }
.cm-kpi span { padding: 6px 14px; border-radius: 30px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line2); font-size: 14px; }
.cm-kpi b { color: #4299f5; font-family: var(--mono); font-size: 16px; }
.cm-join { display: inline-block; margin-top: 14px; padding: 11px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; color: #00142a; background: linear-gradient(180deg, #b0d6ff, #4299f5 55%, #1c70c9); box-shadow: 0 5px 0 #05366b; }
.cm-join.sm { margin: 0 0 10px; padding: 8px 14px; font-size: 14px; }
.cm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.cm-h { margin: 0 0 12px; font-size: 20px; } .cm-h small { font-size: 13px; color: var(--soft); font-weight: 400; margin-left: 6px; }
.cm-main { display: grid; gap: 14px; }
.cm .cm-card { display: block; } /* lab.css ตั้ง .cm-card เป็น flex — การ์ดชุมชนต้องเรียงบนลงล่าง */
.cm-card { background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 14px 16px; }
.cm-card.cm-hot { border-color: rgba(66, 153, 245, .55); box-shadow: 0 0 30px rgba(66, 153, 245, .08); }
.cm-card header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--soft); }
.cm-big { font-weight: 700; color: #00142a; background: #4299f5; border-radius: 20px; padding: 1px 10px; }
.cm-ko { margin-left: auto; font-family: var(--mono); color: #4299f5; font-weight: 700; }
.cm-q { margin: 12px 0 6px; font-weight: 700; font-size: 15px; }
.cm-vote { display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 8px; }
.cm-vote.two { grid-template-columns: 1fr 1fr; }
.cm-vote button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 8px; border-radius: 14px; cursor: pointer;
  background: var(--panel2); border: 2px solid var(--line2); color: var(--text); font: inherit; transition: border-color .15s, transform .15s; min-width: 0; }
.cm-vote button:hover { border-color: #4299f5; transform: translateY(-2px); }
.cm-vote button.on { border-color: #22c55e; background: rgba(34, 197, 94, .12); }
.cm-vote button.on::after { content: '✓ ของฉัน'; position: absolute; top: -9px; right: 8px; font-size: 11px; font-weight: 700; background: #22c55e; color: #001b59; padding: 0 7px; border-radius: 10px; }
.cm-vote button .bd { width: 40px; height: 40px; }
.cm-vote button b { font-size: 13.5px; font-weight: 600; line-height: 1.2; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cm-draw { font-size: 30px; line-height: 40px; }
.cm-pct { position: relative; width: 100%; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.cm-pct i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, #22c55e, #4299f5); transition: width .5s; }
.cm-pct em { position: relative; font-style: normal; font-size: 12px; font-weight: 700; font-family: var(--mono); }
.cm-sys { font-size: 11px; color: #9fd3ff; }
.cm-card footer { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; flex-wrap: wrap; }
.cm-card footer a { color: var(--soft); text-decoration: none; margin-left: auto; }
.cm-chat { padding: 6px 12px; border-radius: 20px; background: var(--panel2); border: 1px solid var(--line2); color: var(--text); cursor: pointer; font: inherit; font-size: 13.5px; }
.cm-chat b { color: #4299f5; }
.cm-thread { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cm-thread.open { margin: 0; padding: 0; border: 0; }
.cm-form { display: flex; gap: 8px; margin-bottom: 10px; }
.cm-form textarea { flex: 1; resize: vertical; min-height: 44px; padding: 8px 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line2); color: var(--text); font: inherit; font-size: 14px; }
.cm-form button { padding: 0 16px; border-radius: 12px; border: 0; background: #4299f5; color: #00142a; font-weight: 700; cursor: pointer; }
.cm-posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.cm-posts li { padding: 8px 10px; border-radius: 12px; background: var(--panel2); font-size: 14px; }
.cm-posts li b { color: #4299f5; } .cm-posts li small { color: var(--muted); }
.cm-posts li p { margin: 3px 0 0; white-space: pre-wrap; word-break: break-word; }
.cm-side { display: grid; gap: 14px; position: sticky; top: 80px; }
.cm-box { background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 14px 16px; }
.cm-lead { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cm-lead li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 12px; background: var(--panel2); font-size: 14px; }
.cm-lead .rk { font-size: 18px; text-align: center; } .cm-lead b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-lead span:not(.rk) { font-family: var(--mono); font-weight: 700; color: #22c55e; } .cm-lead small { color: var(--muted); }
.cm-rules p { margin: 0; font-size: 13.5px; color: var(--soft); }
@media (max-width: 1000px) { .cm-grid { grid-template-columns: minmax(0, 1fr); } .cm-side { position: static; } }
@media (max-width: 600px) { .cm-hero { padding: 20px 16px; } .cm-hero h1 { font-size: 27px; } .cm-vote button .bd { width: 32px; height: 32px; } }

/* ป้ายระดับ · รีแอกชัน · ปิดโหวต · แจ้งเตือน */
.cm-bdg { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 10px; margin: 0 4px; vertical-align: 1px; white-space: nowrap; }
.b-vip { background: linear-gradient(180deg, #b0d6ff, #4299f5); color: #00142a; } .b-pro { background: #22c55e; color: #001b59; }
.b-reg { background: #38bdf8; color: #001b59; } .b-new { background: var(--line2); color: var(--soft); }
.cm-ph { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; } .cm-ph small { margin-left: auto; color: var(--muted); }
.cm-rxs { display: flex; gap: 6px; margin-top: 6px; }
.cm-rx { padding: 2px 9px; border-radius: 14px; border: 1px solid var(--line2); background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: 13px; }
.cm-rx.on { border-color: #4299f5; background: rgba(66, 153, 245, .15); } .cm-rx b { font-family: var(--mono); font-size: 12px; }
.cm-card.locked .cm-vote button { cursor: default; opacity: .75; } .cm-card.locked .cm-vote button:hover { transform: none; border-color: var(--line2); }
.cm-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 80px); background: #0e1b3a; border: 1px solid #4299f5; color: #b0d6ff; padding: 10px 18px; border-radius: 14px; z-index: 9500; transition: transform .25s; font-weight: 600; }
.cm-toast.on { transform: translate(-50%, 0); }
/* กล่องชุมชนในหน้าแฟ้มสถิติ / หน้าแรก */
.cm-embed { margin: 18px 0; }
.cm-embed > h2 { margin: 0 0 10px; font-size: 20px; } .cm-embed > h2 small { font-size: 13px; color: var(--soft); font-weight: 400; margin-left: 6px; }
.cm-embed .cm-card { display: block; }
/* หน้าแรก: ชุมชนว่าไง */
.ch-strip { margin: 0 0 18px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(56, 189, 248, .08), rgba(66, 153, 245, .06)); border: 1px solid var(--line2); }
.ch-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ch-head h2 { margin: 0; font-size: 20px; } .ch-head span { font-size: 13px; color: var(--soft); } .ch-head b { color: #4299f5; }
.ch-go { margin-left: auto; padding: 8px 14px; border-radius: 12px; background: #4299f5; color: #00142a; font-weight: 700; text-decoration: none; font-size: 14px; }
.ch-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ch-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line2); color: var(--text); text-decoration: none; }
.ch-card:hover { border-color: #4299f5; }
.ch-t { display: flex; align-items: center; gap: 8px; min-width: 0; } .ch-t .bd { width: 24px; height: 24px; } .ch-t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--line); } .ch-bar .h { background: var(--home); } .ch-bar .d { background: var(--draw); } .ch-bar .a { background: var(--away); }
.ch-card small { font-size: 12px; color: var(--soft); } .ch-first { color: #4299f5 !important; }
.ch-feed { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.ch-feed b { color: #4299f5; } .ch-feed small { color: var(--muted); }
@media (max-width: 900px) { .ch-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; } .ch-go { margin-left: 0; } }

/* === ปิดเอฟเฟกต์ทั้งหมด (2026-11-15): ไม่มีวิ่ง/กระพริบ/เด้ง/ลอย — หน้าเว็บนิ่ง === */
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.lgo-star { stroke-dashoffset: 0 !important; }
.mx b:hover, .mc:hover, .pk:hover, .pk.gold.drg:hover .pk-art, .gc:hover, .gs:hover, .mc.pk-on:hover .pcard:last-child, .line-btn:hover, .tel-btn:hover, .vipbtn:hover,
.qd:hover, .soc-strip a:hover, .sb-card:hover, .sb-card:hover .sb-cta i, .gg-btn:hover, .dg-card:hover, .bg-it:hover, .cm-vote button:hover { transform: none !important; }
