/* เซียนล้มโต๊ะบอล — ธีมสีขาว (เวอร์ชันทดลองในเครื่อง)
   ตัวอักษร: หัวข้อ Kanit / เนื้อหา IBM Plex Sans Thai / footer Mitr
   การจัดวางตั้งใจให้ต่างจากเว็บต้นแบบ: แถบบน + เปิดหน้าแบบแบ่งสองฝั่ง + ทางลัด + แถบข้างอยู่ซ้าย + แบนเนอร์กลางหน้า */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --line: #e3e8f1;
  --text: #13213a;
  --muted: #5d6c85;
  --navy: #0f1d36;
  --blue: #1662d8;
  --blue-dark: #0f3d91;
  --blue-soft: #e8f0fd;
  --red: #d61f3a;
  --gold: #e8a400;
  --green: #12a150;
  --shadow: 0 6px 22px rgba(19, 33, 58, .06);
  --font-head: 'Kanit', sans-serif;
  --font-body: 'IBM Plex Sans Thai', sans-serif;
  --font-foot: 'Mitr', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
a { color: var(--blue); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 18px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; margin: 0; }

/* ===== แถบบนสุด + หัวเว็บ ===== */
.topbar { background: var(--navy); color: #c5d0e3; font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.topbar span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar a { flex: none; white-space: nowrap; color: #fff; text-decoration: none; font-family: var(--font-head); padding: 2px 12px; border-radius: 999px; background: #06c755; }
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 3px solid var(--blue); box-shadow: 0 2px 12px rgba(19, 33, 58, .06); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { height: 46px; width: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-family: var(--font-head); font-size: 1.1rem; color: var(--blue-dark); }
.brand small { font-size: .72rem; color: var(--muted); }
.menu { display: flex; gap: 2px; margin: 0 auto; }
.menu a { padding: 8px 14px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-size: .95rem; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.head-cta { flex: none; padding: 8px 18px; border-radius: 10px; background: var(--red); color: #fff; text-decoration: none; font-family: var(--font-head); font-size: .92rem; }
.head-cta:hover { background: #b9142d; }

/* ===== กล่องเนื้อหาทั่วไป ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
.sec { margin-top: 24px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sec-head h2 { font-size: 1.3rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.sec-head h2::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--red); }
.sec-head a { font-size: .9rem; }
.state { padding: 18px; text-align: center; color: var(--muted); }
.btn { display: inline-block; padding: 10px 20px; border-radius: 10px; background: var(--blue); color: #fff; text-decoration: none; font-family: var(--font-head); border: 0; cursor: pointer; }
.btn:hover { background: var(--blue-dark); }
.btn.light { background: #fff; color: var(--blue); border: 1px solid #bcd0f2; }
.btn.light:hover { background: var(--blue-soft); }

/* ===== ส่วนเปิดหน้า (ทุกหน้า): หัวข้อชิดซ้าย + คำเกริ่นคีย์เวิร์ด ===== */
.lead { margin-top: 22px; padding: 26px 28px; border-radius: 18px; background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%); border: 1px solid #d8e4f7; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.lead::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(22, 98, 216, .12), transparent 70%); pointer-events: none; }
.eyebrow { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--font-head); font-size: .8rem; letter-spacing: .3px; }
.lead h1 { margin: 12px 0 10px; font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 600; color: var(--navy); }
.lead p { margin: 0 0 8px; color: #3c4b66; line-height: 1.85; }
.lead p strong { color: var(--blue-dark); font-weight: 600; }
.lead-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* หน้าแรก: เปิดหน้าแบ่งสองฝั่ง (คำเกริ่นซ้าย / คลิปทรรศนะขวา) */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: stretch; }
.split .lead { margin-top: 0; }
.clip-card { display: flex; flex-direction: column; gap: 12px; }
.clip-card .clip-meta small { color: var(--red); font-family: var(--font-head); font-size: .9rem; }
.clip-card .clip-meta h2 { font-size: 1.1rem; margin-top: 2px; }
.clip-card .clip-meta p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.75; }
.clip-card > .btn { margin-top: auto; align-self: flex-start; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.stat { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #d8e4f7; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.4rem; line-height: 1.2; color: var(--blue-dark); }
.stat small { color: var(--muted); font-size: .76rem; }
.stat.w b { color: var(--green); } .stat.l b { color: var(--red); } .stat.p b { color: #b07a00; }

/* ทางลัด 4 ช่อง */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.quick a:hover { transform: translateY(-2px); border-color: var(--blue); }
.quick i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 1.25rem; background: var(--blue-soft); }
.quick b { display: block; font-family: var(--font-head); font-weight: 500; }
.quick small { color: var(--muted); font-size: .78rem; }

/* โครงหลัก: แถบข้างอยู่ซ้าย เนื้อหาหลักอยู่ขวา */
.layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 24px; }
.layout > .main { grid-column: 2; grid-row: 1; }
.layout > .side { grid-column: 1; grid-row: 1; display: grid; gap: 22px; }
.line-card { text-align: center; background: linear-gradient(160deg, #06c755, #04a648); color: #fff; border: 0; }
.line-card h2 { font-size: 1.15rem; }
.line-card p { margin: 6px 0 12px; font-size: .88rem; opacity: .95; }
.line-card .btn { background: #fff; color: #04a648; }

/* แบนเนอร์ (ย้ายมากลางหน้า) */
.promo { position: relative; margin-top: 24px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1280 / 463; background: #dfe6f3; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.promo img.on { opacity: 1; }
.promo-dots { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 6px; }
.promo-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .7); cursor: pointer; transition: width .3s; }
.promo-dots button[aria-pressed="true"] { width: 26px; background: #fff; }

/* ไฮไลท์เต็มความกว้าง */
.hl-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.hl-wrap .list { max-height: 420px; }

/* เครื่องเล่น YouTube แบบโหลดเมื่อกด */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0d1626; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .cover { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video .cover span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: rgba(214, 31, 58, .92); color: #fff; font-size: 1.5rem; padding-left: 4px; }

/* แท็บวัน */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #eef2f8; }
.tabs button { font: inherit; font-family: var(--font-head); padding: 6px 16px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(19, 33, 58, .12); }

/* ===== ตารางบอล / ผลบอล ===== */
.lg { margin-top: 18px; border: 1px solid #cfd9ea; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(19, 33, 58, .05); }
.lg:first-child { margin-top: 0; }
.lg-name { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: linear-gradient(90deg, var(--blue-dark), var(--blue)); color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; }
.lg-name img { width: 24px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.lg-name span { flex: 1; min-width: 0; }
.lg-name small { flex: none; padding: 1px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-family: var(--font-body); font-size: .76rem; font-weight: 500; white-space: nowrap; }
.mt-head, .mt-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 84px minmax(0, 1fr) 84px; gap: 12px; align-items: center; }
.mt-head { padding: 7px 16px; background: #eef3fb; border-bottom: 1px solid #d9e2f0; color: #4a5b78; font-size: .76rem; font-weight: 600; text-align: center; }
.mt-head .h { text-align: right; } .mt-head .a { text-align: left; }
.mt { padding: 12px 16px 10px; border-top: 1px solid #e6ebf3; border-left: 4px solid transparent; }
.mt-head + .mt { border-top: 0; }
.mt:nth-child(odd) { background: #fafbfe; }
.mt:hover { background: #f0f6ff; }
.mt.r-win { border-left-color: var(--green); } .mt.r-half-win { border-left-color: #6cbf2a; } .mt.r-push { border-left-color: #a8b3c4; }
.mt.r-half-lose { border-left-color: #f0a030; } .mt.r-lose { border-left-color: var(--red); }
.mt-time { text-align: center; }
.mt-time span { display: inline-block; min-width: 54px; padding: 3px 0; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-family: var(--font-head); font-weight: 600; font-variant-numeric: tabular-nums; }
.mt-team { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 1rem; }
.mt-team.home { justify-content: flex-end; text-align: right; }
.mt-team b { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.mt-team.fav b { color: var(--red); }
.mt-team.win b { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rk { flex: none; font-size: .68rem; padding: 1px 6px; border-radius: 4px; background: #eef2f8; color: var(--muted); }
.mt-price { text-align: center; }
.mt-price span { display: inline-block; min-width: 62px; padding: 3px 8px; border-radius: 8px; background: #fff6dc; border: 1px solid #f1d58a; color: #8a5d00; font-weight: 700; font-variant-numeric: tabular-nums; }
.mt-score { text-align: center; font-family: var(--font-head); }
.mt-score .sc { display: inline-block; min-width: 62px; padding: 3px 8px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.mt-score .sc.live { background: var(--red); }
.mt-score .vs { display: inline-block; min-width: 62px; padding: 3px 8px; border-radius: 8px; border: 1px dashed #b9c6db; color: #7c8ba3; font-weight: 500; font-size: .85rem; }
.mt-score small { display: block; margin-top: 2px; font-family: var(--font-body); font-weight: 400; font-size: .72rem; color: var(--muted); }
.mt-score small.live { color: var(--red); font-weight: 600; }
.mt-tip { margin: 8px auto 0; max-width: 560px; padding: 4px 12px; border-radius: 8px; background: #f2f6fd; text-align: center; font-size: .84rem; color: #3e4f6b; }
.mt-tip span { color: var(--blue); font-weight: 600; }
.pill { display: block; width: max-content; margin: 4px auto 0; padding: 1px 10px; border-radius: 999px; font-family: var(--font-body); font-size: .74rem; font-weight: 700; color: #fff; }
.pill.win { background: var(--green); } .pill.half-win { background: #6cbf2a; } .pill.push { background: #8d99ad; } .pill.half-lose { background: #f0a030; } .pill.lose { background: var(--red); }
.summary { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; background: var(--blue-soft); font-family: var(--font-head); }
.summary b { font-size: 1.15rem; }
.summary .w b { color: var(--green); } .summary .d b { color: var(--muted); } .summary .l b { color: var(--red); } .summary .p b { color: #b07a00; }
.day-note { margin: -4px 0 14px; color: var(--muted); font-size: .9rem; }

/* ===== รายการคลิปและข่าว ===== */
.list { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.item:hover, .item.on { border-color: var(--blue); background: #f7faff; }
.item img { width: 104px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: #e7ecf4; }
.item strong { font-size: .86rem; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item small { display: block; color: var(--muted); font-size: .74rem; }

/* ===== หน้าข่าว ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.news-card:hover { border-color: var(--blue); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #e7ecf4; }
.news-card div { padding: 12px 14px 16px; }
.news-card strong { font-family: var(--font-head); font-weight: 500; line-height: 1.4; display: block; }
.news-card small { color: var(--muted); }
.article { max-width: 780px; margin: 0 auto; }
.article h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; margin: 6px 0; }
.article .meta { color: var(--muted); font-size: .9rem; }
.article img { width: 100%; border-radius: 14px; margin: 16px 0; }
.article p { font-size: 1.05rem; line-height: 1.85; }

/* ===== บทความ SEO ท้ายหน้า (สองคอลัมน์) ===== */
.intro h2 { font-size: 1.3rem; margin-bottom: 14px; }
.intro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.intro h3 { font-size: 1.02rem; color: var(--blue-dark); margin: 0 0 4px; }
.intro p { margin: 0; color: var(--muted); line-height: 1.8; }

/* ===== footer: ตัวอักษร Mitr ===== */
.site-foot { margin-top: 44px; background: var(--navy); color: #c5d0e3; font-family: var(--font-foot); font-weight: 300; }
.site-foot .wrap { padding-top: 34px; padding-bottom: 26px; }
.foot-kw { padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: .86rem; line-height: 1.9; }
.foot-kw h2 { font-family: var(--font-foot); font-weight: 500; font-size: 1.12rem; color: #fff; margin-bottom: 8px; }
.foot-kw h3 { font-family: var(--font-foot); font-weight: 500; font-size: .95rem; color: #fff; margin: 14px 0 4px; }
.foot-kw p { margin: 0 0 8px; }
.foot-kw-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags a { padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); color: #dbe4f3; font-size: .8rem; text-decoration: none; }
.tags a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.foot-cols { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 26px; padding-top: 24px; }
.foot-brand img { height: 52px; width: auto; }
.foot-brand p { margin: 10px 0 0; font-size: .88rem; line-height: 1.75; }
.foot-col h2 { font-family: var(--font-foot); font-weight: 500; font-size: 1rem; color: #fff; margin-bottom: 10px; }
.foot-col a { display: block; color: #c5d0e3; text-decoration: none; font-size: .9rem; padding: 3px 0; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-copy { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; color: #8d9bb4; text-align: center; }

/* ===== ตารางคะแนน ===== */
.std-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.std-chips button { font: inherit; font-family: var(--font-head); font-size: .84rem; padding: 4px 12px; border-radius: 999px; border: 1px solid #cfd9ea; background: #fff; color: var(--muted); cursor: pointer; }
.std-chips button:hover { border-color: var(--blue); color: var(--blue); }
.std-chips button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.std-wrap { border: 1px solid #cfd9ea; border-radius: 12px; overflow: hidden; }
.std { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.std thead tr { background: linear-gradient(90deg, var(--blue-dark), var(--blue)); }
.std th.team { width: 38%; }
.std.compact th.team { width: auto; }
.std th { padding: 9px 6px; color: #fff; font-family: var(--font-head); font-weight: 500; font-size: .82rem; text-align: center; }
.std td { padding: 8px 6px; border-top: 1px solid #e6ebf3; text-align: center; font-size: .9rem; }
.std tbody tr:nth-child(even) { background: #fafbfe; }
.std tbody tr:hover { background: #f0f6ff; }
.std .team { text-align: left; }
.std td.team .tn { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.std td.team .tn img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.std td.team .tn span { min-width: 0; }
.std td.pos { width: 40px; }
.std td.pos span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #eef2f8; font-weight: 600; font-size: .82rem; }
.std td.pos.z-up span { background: #1662d8; color: #fff; }
.std td.pos.z-eu span { background: #f08a24; color: #fff; }
.std td.pos.z-conf span { background: #12a150; color: #fff; }
.std td.pos.z-po span { background: #f5b7c0; color: #8a1023; }
.std td.pos.z-down span { background: var(--red); color: #fff; }
.std td.gd.pos { color: var(--green); } .std td.gd.neg { color: var(--red); }
.std td.pts { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--blue-dark); background: rgba(22, 98, 216, .05); }
.std.compact td { padding: 6px 4px; font-size: .84rem; }
.std.compact th { padding: 7px 4px; font-size: .76rem; }
.std.compact td.pos { width: 32px; }
.std.compact td.pos span { width: 22px; height: 22px; font-size: .74rem; }
.std.compact td.team .tn img { width: 18px; height: 18px; }
.side .std-board { max-height: 470px; overflow-y: auto; border-radius: 12px; }
.std-group { margin: 16px 0 8px; font-size: 1rem; color: var(--blue-dark); }
.std-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.std-legend span { display: inline-flex; align-items: center; gap: 6px; }
.std-legend i { width: 12px; height: 12px; border-radius: 3px; }
.std-legend i.z-up { background: #1662d8; } .std-legend i.z-eu { background: #f08a24; } .std-legend i.z-conf { background: #12a150; } .std-legend i.z-po { background: #f5b7c0; } .std-legend i.z-down { background: var(--red); }

/* ===== popup รับทีเด็ด VIP ===== */
.vip { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(9, 18, 36, .62); backdrop-filter: blur(3px); animation: vip-fade .25s ease; }
.vip[hidden] { display: none; }
.vip-box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: vip-pop .3s cubic-bezier(.2, .9, .3, 1.2); }
.vip-box > img { display: block; width: 100%; aspect-ratio: 1280 / 463; object-fit: cover; }
.vip-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.vip-x:hover { background: rgba(0, 0, 0, .8); }
.vip-body { padding: 18px 22px 20px; text-align: center; }
.vip-badge { display: inline-block; padding: 2px 14px; border-radius: 999px; background: linear-gradient(90deg, #f7c948, #e8a400); color: #4a3200; font-family: var(--font-head); font-weight: 600; letter-spacing: 1px; }
.vip-body h2 { margin: 8px 0 10px; font-size: 1.35rem; color: var(--navy); }
.vip-body ul { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; display: grid; gap: 6px; }
.vip-body li { position: relative; padding-left: 26px; font-size: .92rem; color: #3c4b66; }
.vip-body li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #e3f7ea; color: var(--green); font-size: .7rem; font-weight: 700; }
.vip-line { display: block; padding: 12px; border-radius: 12px; background: #06c755; color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 1.08rem; box-shadow: 0 6px 16px rgba(6, 199, 85, .35); }
.vip-line:hover { background: #04a648; }
.vip-later { margin-top: 8px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .86rem; cursor: pointer; text-decoration: underline; }
.vip-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--font-head); font-size: .95rem; cursor: pointer; box-shadow: 0 8px 22px rgba(214, 31, 58, .4); animation: vip-pulse 2.4s infinite; }
.vip-fab b { padding: 2px 9px; border-radius: 999px; background: linear-gradient(90deg, #f7c948, #e8a400); color: #4a3200; font-weight: 600; font-size: .8rem; }
.vip-fab:hover { background: #b9142d; }
@keyframes vip-fade { from { opacity: 0; } }
@keyframes vip-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes vip-pulse { 0%, 100% { box-shadow: 0 8px 22px rgba(214, 31, 58, .4), 0 0 0 0 rgba(214, 31, 58, .45); } 50% { box-shadow: 0 8px 22px rgba(214, 31, 58, .4), 0 0 0 10px rgba(214, 31, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .vip, .vip-box, .vip-fab { animation: none; } }

/* ===== จอเล็ก ===== */
@media (max-width: 1080px) {
  .menu a { padding: 8px 9px; font-size: .9rem; }
  .brand small { display: none; }
}
@media (max-width: 960px) {
  .split, .hl-wrap { grid-template-columns: minmax(0, 1fr); }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > .main, .layout > .side { grid-column: 1; grid-row: auto; position: static; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-kw-cols { grid-template-columns: minmax(0, 1fr); }
  .head-cta { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .topbar span { font-size: .74rem; }
  /* หัวเว็บมือถือ (จัดแบบเดียวกับเว็บต้นแบบ): โลโก้กลาง ชื่อเว็บใต้โลโก้ เมนูเป็นปุ่มแถวละ 3 ช่อง ไม่ต้องเลื่อน */
  html { scroll-padding-top: 12px; }
  .site-head { position: static; }
  .site-head .wrap { flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 0; padding-top: 10px; padding-bottom: 12px; }
  .brand { flex-direction: column; gap: 3px; }
  .brand img { height: 38px; }
  .brand span { align-items: center; }
  .brand b { font-size: .95rem; }
  .menu { margin: 0; width: 100%; flex-wrap: wrap; justify-content: center; gap: 5px; }
  .menu a { flex: 1 1 calc(25% - 5px); padding: 9px 2px; border: 1px solid var(--line); border-radius: 8px; background: #f3f6fc; text-align: center; font-size: .8rem; font-weight: 500; white-space: nowrap; } /* 2 แถว: 4 + 3 ปุ่ม */
  .menu a:hover, .menu a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }
  .lead { padding: 18px 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick { gap: 10px; }
  .quick a { padding: 10px; gap: 8px; }
  .quick i { width: 34px; height: 34px; font-size: 1rem; }
  .quick small { display: none; }
  .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 12px; }
  .lg-name { padding: 9px 10px; font-size: .92rem; }
  .mt { padding: 10px 6px 8px 4px; }
  .mt-head, .mt-row { grid-template-columns: 42px minmax(0, 1fr) 50px minmax(0, 1fr) 50px; gap: 5px; }
  .mt-head { padding: 6px 6px 6px 8px; font-size: .7rem; }
  .mt-team { font-size: .86rem; }
  .mt-team b { overflow-wrap: normal; word-break: normal; }
  .mt-time span { min-width: 0; width: 100%; font-size: .8rem; padding: 2px 0; }
  .mt-price span, .mt-score .sc, .mt-score .vs { min-width: 0; width: 100%; padding: 2px 2px; font-size: .8rem; }
  .mt-score .sc { font-size: .9rem; }
  .mt-tip { font-size: .78rem; padding: 3px 8px; }
  .pill { padding: 1px 5px; font-size: .66rem; }
  .mt-team.win b { text-decoration: none; }
  .rk { display: none; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs button { flex: 1 0 auto; padding: 6px 10px; white-space: nowrap; font-size: .88rem; }
  .std .hide-s { display: none; }
  .std td, .std th { padding-left: 3px; padding-right: 3px; }
  .std td { font-size: .82rem; }
  .std td.team .tn { gap: 5px; }
  .std td.team .tn img { width: 18px; height: 18px; }
  .std td.pos { width: 30px; }
  .std td.pos span { width: 22px; height: 22px; font-size: .74rem; }
  .vip-fab { right: 12px; bottom: 12px; padding: 8px 12px 8px 8px; font-size: .86rem; }
  .vip-body { padding: 14px 16px 16px; }
  .vip-body h2 { font-size: 1.18rem; }
}
@media (max-width: 380px) {
  .menu a { font-size: .74rem; padding: 8px 1px; } /* จอเล็ก (360px) ให้ยังเป็น 4 + 3 */
}

/* ===== แบนเนอร์โฆษณา (GIF) ใต้ส่วนเปิดหน้า ===== */
.ad-banner { display: block; margin-top: 22px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #0d1a3a; aspect-ratio: 4 / 1; }
.ad-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-banner:hover { box-shadow: 0 8px 26px rgba(19, 33, 58, .16); }
@media (max-width: 620px) { .ad-banner { margin-top: 16px; border-radius: 12px; } }
