/* ===========================================================
   Kiaball — style.css  (redesign: "สนามกลางคืน")
   เขียวสนามเข้ม + ทองสปอตไลต์ + ดำ | Kanit หัวข้อ / Prompt เนื้อหา
   =========================================================== */

:root {
  /* แบรนด์ */
  --brand:        #17c168;   /* เขียวหลัก (สว่างขึ้นให้เด่นบนพื้นดำ) */
  --brand-strong: #2fe083;   /* เขียวสว่าง ใช้เป็นสีลิงก์/ข้อความเน้นบนพื้นมืด */
  --brand-050:    rgba(23,193,104,.14);  /* พื้นชิป/hover แบบโปร่งแสงบนพื้นมืด */
  --accent:       #f4c430;   /* ทองสปอตไลต์ (CTA) */
  --accent-strong:#ffd65c;
  --win:          #3ddc84;   /* เขียวสว่างอีกเฉด แยกจากแบรนด์ ใช้เฉพาะบ่งชี้ชนะ/โซนได้ไปต่อในตารางคะแนน */
  --live:         #ff4757;
  --purple:       #a78bda;   /* ม่วงสว่าง อ่านง่ายบนพื้นมืด ใช้แต่งป้ายหมวดข่าวให้มีสีสันหลากหลาย */
  --teal:         #4fd1c5;   /* ฟ้าอมเขียวสว่าง ใช้แต่งป้ายหมวดข่าวเช่นกัน */
  --pitch:        #061912;   /* เขียวสนามเข้มมาก (แถบ header/footer) */
  --pitch-ink:    #030b07;   /* เกือบดำสนิท */
  --on-dark:       #e8eeea;  /* ตัวอักษรบนแถบ header/footer ที่เข้มกว่าพื้นเว็บอีกชั้น */
  --on-dark-muted: #8fa79a;

  /* กลาง — ธีมดำทั้งเว็บ */
  --ink:      #eef1ef;   /* ตัวอักษรหลัก (สว่างบนพื้นดำ) */
  --ink-soft: #b7bfbb;   /* ตัวอักษรรอง */
  --muted:    #808a86;   /* ตัวอักษรจาง */
  --bg:       #0a0c0b;   /* พื้นเว็บ (เกือบดำสนิท) */
  --card:     #141816;   /* พื้นการ์ด/กล่อง */
  --card-2:   #1c211e;   /* พื้นกล่องซ้อน / hover เข้ม */
  --line:     rgba(255,255,255,.09);
  --line-2:   rgba(255,255,255,.16);
  --chip-dark:#242a27;   /* ชิปทึบเสมอ (สกอร์ / crest / แท็บ active) ไม่ขึ้นกับธีม */

  /* ฉากทึบ (lightbox / scrim บนภาพ) — ไม่ใช่สีพื้นเว็บ */
  --overlay: rgba(10,16,26,.92);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow:    0 6px 18px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
  --shadow-lg: 0 18px 46px rgba(0,0,0,.55);

  --font-display: "Kanit", "Prompt", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    "Prompt", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 90%; /* ความกว้าง container = 90% ของหน้าจอ */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
.muted { color: var(--muted); }

::selection { background: var(--accent); color: #1a1300; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { width: var(--wrap); margin: 0 auto; }
.no-sb::-webkit-scrollbar { display: none; }
.no-sb { scrollbar-width: none; }

/* ---------- ปุ่ม ---------- */
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 0; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn--accent { background: var(--accent); color: #1a1300; }
.btn--accent:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn--ghost { background: var(--card-2); color: var(--ink); }
.btn--ghost:hover { background: var(--line-2); }

/* ===========================================================
   Header (แถบมืด)
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(115deg, var(--pitch) 0%, #08211a 55%, var(--pitch-ink) 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__bar { display: flex; align-items: center; gap: 22px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); font-size: 19px; box-shadow: 0 4px 12px rgba(244,196,48,.35);
}
/* โลโก้ที่อัปโหลดเอง (admin/settings.php) — ไม่บังคับกรอบสี่เหลี่ยมสีพื้น ปล่อยให้รูปเป็นตัวกำหนดหน้าตา */
.brand__mark--img {
  /* ตั้งใจให้ใหญ่กว่าแถบเมนู (68px) แล้วล้นออกมาบน-ล่างได้เลย เมนู/หัวเว็บยังสูงเท่าเดิม
     .site-header__bar ใช้ height ตายตัว (ไม่ใช่ min-height) รูปเลยล้นได้โดยไม่ดันแถบให้สูงขึ้น */
  width: auto; height: 86px; max-width: 234px; border-radius: 0;
  background: none; box-shadow: none; object-fit: contain;
  position: relative; z-index: 1;
}
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  color: #fff; letter-spacing: -.02em;
}
.brand__name b { color: var(--accent); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px;
  color: var(--on-dark-muted); padding: 8px 13px; border-radius: 9px;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.is-active { color: #fff; background: rgba(255,255,255,.12); }
.main-nav .nav-cta {
  margin-left: auto; background: var(--accent); color: #1a1300; font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--accent-strong); }

.site-search {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 5px 6px 5px 15px;
}
.site-search input {
  border: 0; background: transparent; outline: none; font: inherit; font-size: 13.5px;
  width: 150px; color: #fff;
}
.site-search input::placeholder { color: var(--on-dark-muted); }
.site-search button {
  border: 0; background: var(--brand); color: #fff; width: 32px; height: 32px;
  border-radius: 999px; cursor: pointer; font-size: 13px;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Ad slots ---------- */
.ad-row { display: flex; justify-content: center; margin: 22px auto; }
.ad-row--footer { margin-top: 44px; }

/* ===========================================================
   แบนเนอร์โฆษณา — ดีไซน์ใหม่ใช้ร่วมกันทุกตำแหน่ง
   การ์ดมุมมน พื้นเข้ม เงานุ่ม ป้าย "โฆษณา" เล็กๆ ที่มุม / ชี้แล้วลอยขึ้น + มีแสงวาบผ่าน
   (เลิกเส้นประและการกระพริบเรืองแสงตลอดเวลา — สบายตากว่า ไม่รบกวนการอ่านข่าว)
   =========================================================== */
.ad-slot {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  color: var(--muted); font-size: 13px; text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
a.ad-slot:hover {
  transform: translateY(-3px); border-color: rgba(47,224,131,.55);
  box-shadow: 0 16px 36px rgba(0,0,0,.5), 0 0 0 3px rgba(23,193,104,.16);
}
a.ad-slot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.2) 50%, transparent 62%);
}
a.ad-slot:hover::after { transform: translateX(130%); transition: transform .9s ease; }

/* object-fit: cover — ค่าเริ่มต้น (ใช้กับแคโรเซลหลายแบนเนอร์ + กล่องว่าง ที่ต้องมีกรอบสูงตายตัว) */
.ad-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* แบนเนอร์เดี่ยวที่เป็นรูปจริง (ไม่ใช่สไลด์ในแคโรเซล) — โชว์เต็มภาพตามสัดส่วนจริง ไม่ครอปไม่มีขอบว่าง
   ความสูงกรอบยืดหดตามภาพที่อัปโหลดเป๊ะๆ แทนที่จะบังคับตามขนาดโซนที่ตั้งไว้ (ดู banner_markup() ที่ใส่ class นี้) */
.ad-slot--natural { display: block; }
.ad-slot--natural img { height: auto; object-fit: initial; }

.ad-slot__tag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(6,18,12,.72); color: #d6e8de; border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 10.5px; line-height: 1.5; padding: 1px 9px; border-radius: 999px; letter-spacing: .02em;
}

/* แบนเนอร์กลางบทความ: เว้นระยะจากข้อความรอบข้าง / sidebar สูง: ลอยตามตอนเลื่อน */
.ad-row--inline { margin: 26px auto; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.widget--sticky { position: sticky; top: 86px; }

/* พื้นที่โฆษณาว่าง — เชิญชวนลงโฆษณา กดไปหน้าลงโฆษณาได้ */
.ad-slot--empty {
  background: linear-gradient(135deg, rgba(23,193,104,.09), rgba(244,196,48,.07)), var(--card);
  box-shadow: none; color: var(--ink-soft);
}
.ad-slot__ph { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px; line-height: 1.5; }
.ad-slot__ph::before { content: "📢"; font-size: 22px; line-height: 1; margin-bottom: 4px; }
.ad-slot__ph small { color: var(--muted); font-size: 12px; }

/* หลายแบนเนอร์ในตำแหน่งเดียว — สลับเองด้วย JS ทุก 5 วิ (ดู main.js) */
.ad-carousel { position: relative; margin: 0 auto; }
.ad-carousel .ad-carousel__slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .7s ease;
}
.ad-carousel .ad-carousel__slide.is-active { opacity: 1; pointer-events: auto; }

/* ===========================================================
   Layout
   =========================================================== */
.site-main { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 36px; padding-block: 10px 24px; }
.col-main, .col-side { min-width: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 36px 0 16px; }
.section-head:first-child { margin-top: 22px; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-strong);
  display: flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--accent); }
.section-head h1,
.section-head h2 { font-size: 24px; font-weight: 700; margin: 6px 0 0; }
.section-head a { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--brand-strong); }
.section-head a:hover { color: var(--brand); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }

.news-card { display: flex; flex-direction: column; }
.news-card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--card-2), var(--line-2)); overflow: hidden; }
/* contain แทน cover — รูปปกข่าวมีสัดส่วนไม่แน่นอน (แนวตั้ง/แนวนอน) ไม่อยากตัดส่วนสำคัญของภาพทิ้ง
   ช่องว่างซ้าย-ขวา/บน-ล่างจะเห็นพื้นไล่เฉดของ .news-card__media แทน ดูตั้งใจ ไม่ใช่ภาพขาดตกบกพร่อง */
.news-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.card:hover .news-card__media img { transform: scale(1.045); }
.news-card__body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.news-card__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.38; transition: color .15s; }
.card:hover .news-card__title { color: var(--brand-strong); }
.news-card__excerpt { color: var(--ink-soft); font-size: 13.5px; margin: 0; }
.news-card__meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; margin-top: auto; }

.chip {
  align-self: flex-start;
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--brand-strong);
  background: var(--brand-050); padding: 4px 10px; border-radius: 6px;
}
.chip--accent { color: var(--accent-strong); background: rgba(244,196,48,.14); }

/* ---------- ป้ายหมวดข่าวหลายสี (อิงโทนโลโก้ SPORT SEED) — สุ่มคงที่ตามหมวด ดูภาพรวมเว็บมีสีสันขึ้น ---------- */
.chip--blue   { color: var(--brand-strong); background: var(--brand-050); }
.chip--gold   { color: var(--accent-strong); background: rgba(244,196,48,.14); }
.chip--green  { color: var(--win); background: rgba(61,220,132,.14); }
.chip--coral  { color: #ff8a7a; background: rgba(255,71,87,.14); }
.chip--purple { color: var(--purple); background: rgba(167,139,218,.16); }
.chip--teal   { color: var(--teal); background: rgba(79,209,197,.14); }

/* ---------- Hero ---------- */
/* align-items: start กันปัญหาที่พึ่งเจอ — ค่า default ของ grid คือ stretch ทำให้ .hero__main
   (การ์ดใหญ่) ถูกยืดสูงเท่า .hero__side (4 การ์ดเล็กรวมกัน ซึ่งสูงกว่ามาก) โดยไม่ได้ตั้งใจ
   พอรูปเป็น object-fit:cover เต็มกรอบที่สูงเกินจริงขนาดนั้น เลยโดน crop จนเหลือแค่แถบบางๆ ของภาพจริง */
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: start; }
.hero--single { grid-template-columns: 1fr; }
.hero--single .hero__main .news-card { min-height: 320px; }
.hero__side { display: grid; gap: 18px; align-content: start; }

.hero__main { display: flex; }
.hero__main .news-card { position: relative; width: 100%; min-height: 430px; border: 0; }
.hero__main .news-card__media { position: absolute; inset: 0; aspect-ratio: auto; }
/* ฮีโร่ต้องเต็มกรอบจริงๆ เพราะมีฉากมืด+ตัวหนังสือทับอยู่ (ดูด้านล่าง) contain จะเหลือพื้นที่ว่างโล่งๆ ใต้ตัวหนังสือ */
.hero__main .news-card__media img { object-fit: cover; }
.hero__main .news-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,12,9,.94) 4%, rgba(6,12,9,.45) 42%, rgba(6,12,9,0) 72%);
}
.hero__main .news-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px; gap: 11px; }
.hero__main .news-card__title { color: #fff; font-size: 27px; font-weight: 700; line-height: 1.28; }
.hero__main .news-card__excerpt { color: rgba(255,255,255,.82); }
.hero__main .news-card__meta { color: rgba(255,255,255,.68); }
.hero__main .chip { background: var(--accent); color: #1a1300; }
/* บนรูปภาพ (hero มีฉากมืดทับ) ใช้พื้นทึบสีจัดแทน ให้อ่านง่ายกว่าพื้นจางๆ ของ .chip--* ปกติ */
.hero__main .chip--blue   { background: var(--brand);  color: #fff; }
.hero__main .chip--gold   { background: var(--accent); color: #1a1300; }
.hero__main .chip--green  { background: var(--win);    color: #fff; }
.hero__main .chip--coral  { background: var(--live);   color: #fff; }
.hero__main .chip--purple { background: var(--purple); color: #fff; }
.hero__main .chip--teal   { background: var(--teal);   color: #fff; }
.hero__main:hover .news-card { transform: none; }

.hero__side .news-card { flex-direction: row; }
.hero__side .news-card__media { width: 128px; flex-shrink: 0; aspect-ratio: 1/1; }
.hero__side .news-card__body { padding: 13px 15px; gap: 7px; }
.hero__side .news-card__title { font-size: 14px; }

/* ---------- News grid ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-grid .ad-slot { grid-column: 1 / -1; min-height: 118px; }

/* ---------- News log (หน้าแรก "อัปเดตวงการฟุตบอล") — จัดกลุ่มตามวัน + ธง/เวลา/หัวข้อ เรียงต่อกัน ---------- */
.news-log {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.news-log__date {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px; background: linear-gradient(115deg, var(--pitch) 0%, var(--pitch-ink) 100%);
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--on-dark);
}
.news-log__count { font-size: 12px; font-weight: 500; color: var(--on-dark-muted); }
.news-log__row {
  display: flex; align-items: center; gap: 12px; padding: 11px 18px;
  border-top: 1px solid var(--line); font-size: 14.5px; transition: background .12s, color .12s;
}
.news-log__row:nth-child(even) { background: var(--card-2); }
.news-log__row:hover { background: var(--brand-050); color: var(--brand-strong); }
.news-log__flag { font-size: 15px; flex-shrink: 0; }
.news-log__title { flex: 1; min-width: 0; font-weight: 500; line-height: 1.5; }
.news-log__ad { padding: 16px; display: flex; justify-content: center; background: var(--card); }

/* ---------- League tabs ---------- */
.league-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.league-tabs button,
.league-tabs a {
  font-family: var(--font-display); font-weight: 500; font-size: 13.5px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; padding: 7px 17px; cursor: pointer; transition: all .15s;
}
.league-tabs button:hover,
.league-tabs a:hover { border-color: var(--brand); color: var(--brand-strong); }
.league-tabs button.is-active,
.league-tabs a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pane { display: none; }
.pane.is-active { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ===========================================================
   Sidebar widgets
   =========================================================== */
.widget {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 24px; overflow: hidden;
}
.widget__head {
  padding: 14px 16px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px;
}
/* แบนเนอร์ไซด์บาร์ขวาหน้าแรก — ซ้อนบน-ล่าง ไม่ใส่กรอบการ์ดซ้ำ (แบนเนอร์มีกรอบของตัวเองอยู่แล้ว) */
.widget--side-banner {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  background: none; border: 0; box-shadow: none; overflow: visible;
}
/* ตารางคะแนนไซด์บาร์หน้าแรก — สไลด์อัตโนมัติวนทีละลีก เลื่อนจากขวาไปซ้าย (ดู main.js) */
.league-slider { overflow: hidden; }
.league-slider__track { display: flex; transition: transform .6s ease; }
.league-slider__slide { flex: 0 0 100%; min-width: 0; }
.league-slider__slide .widget__head { border-bottom: 1px solid var(--line); }

.widget__more {
  display: block; text-align: center; padding: 11px; font-family: var(--font-display);
  font-weight: 600; font-size: 13px; color: var(--brand-strong); border-top: 1px solid var(--line);
}
.widget__more:hover { background: var(--brand-050); }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(251,44,54,.5); animation: pulse 1.6s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(251,44,54,0); } 100% { box-shadow: 0 0 0 0 rgba(251,44,54,0); } }
.live-tick { margin-left: auto; font-family: var(--font-body); font-size: 11px; font-weight: 400; color: var(--muted); }

.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button {
  flex: 1; border: 0; background: none; padding: 11px 6px; font-family: var(--font-display);
  font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  transition: color .15s;
}
.tabs button:hover { color: var(--ink-soft); }
.tabs button.is-active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.match {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px;
  transition: background .12s;
}
.match:first-child { border-top: 0; }
.match:hover { background: var(--brand-050); }
.match__team { display: flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; }
.match__team--home { flex-direction: row-reverse; text-align: right; }
/* ชื่อทีมยาวเกิน 1 บรรทัด = ตัดเหลือบรรทัดเดียวแบบ ... แล้วโชว์ชื่อเต็มตอนเมาส์ชี้ (title = tooltip) */
.match__team-name {
  display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; flex: 1;
}
/* ตราสโมสร — มีโลโก้จริง (จาก API) โชว์บนพื้นขาวกลม, ไม่มี/โหลดพัง = fallback วงกลมเทาดำ + ตัวย่อชื่อ */
.crest {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 8.5px; display: inline-grid; place-items: center; letter-spacing: .02em;
  overflow: hidden; position: relative;
}
.crest--fallback,
.crest--logo.crest--broken {
  background: linear-gradient(160deg, #4d5651, #1b201d); color: #cfd6d2;
}
.crest--logo { background: #fff; padding: 2.5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.crest--logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.crest__fallback { display: none; }
.crest--logo.crest--broken img { display: none; }
.crest--logo.crest--broken .crest__fallback { display: inline; }
.match__score {
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .03em;
  background: var(--chip-dark); color: #fff; border-radius: 7px; padding: 3px 9px;
  min-width: 46px; text-align: center;
}
.match__score--live { background: var(--live); }
/* สกอร์เปลี่ยน (อัพเดทจาก ajax_ticker_scores.php) = กระพริบสีแดงชั่วคราวให้สังเกตเห็น */
.match__score--flash { animation: score-flash .5s ease-in-out 4; }
@keyframes score-flash {
  0%, 100% { background: var(--chip-dark); }
  50%      { background: var(--live); }
}
.match__time { font-size: 12px; color: var(--muted); text-align: center; min-width: 46px; }
.match__league { grid-column: 1 / -1; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.match__badge { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; }
.match__badge--live { background: var(--live); color: #fff; }
.match__badge--ft { background: var(--line); color: var(--muted); }

.standings { width: 100%; border-collapse: collapse; font-size: 13px; }
.standings th, .standings td { padding: 9px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.standings th { color: var(--muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.standings tbody tr { transition: background .12s; }
.standings tbody tr:hover { background: var(--brand-050); }
.standings tbody tr:last-child td { border-bottom: 0; }
.standings td:nth-child(2) { text-align: left; font-weight: 500; }
.standings td:first-child { position: relative; color: var(--muted); }
.standings tr.is-ucl td:first-child::before,
.standings tr.is-rel td:first-child::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px;
}
.standings tr.is-ucl td:first-child::before { background: var(--win); }
.standings tr.is-rel td:first-child::before { background: var(--live); }
.standings .pts { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.standings td a { color: inherit; }
.standings td a:hover { color: var(--brand-strong); text-decoration: underline; }
.standings__team { display: inline-flex; align-items: center; gap: 9px; }
.standings__team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ตารางคะแนนแบบย่อในวิดเจ็ตไซด์บาร์ (category.php) — คอลัมน์น้อยลง padding แคบลงให้พอดี 336px */
.standings--widget { font-size: 12.5px; }
.standings--widget th, .standings--widget td { padding: 7px 8px; }
.standings--widget td:nth-child(2) { max-width: 0; }
.standings--widget .standings__team span { max-width: 110px; }

/* ===========================================================
   Live Score Hub (index.php) — เมนูซ้ายตามประเทศ + dropdown ลีก + แท็บ
   =========================================================== */
.ls-layout { grid-column: 1 / -1; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.ls-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.ls-main { min-width: 0; }

.ls-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.ls-head h2 { margin: 0; font-size: 22px; }
.ls-picker select {
  font-family: var(--font-display); font-weight: 500; font-size: 13.5px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 30px 9px 12px;
  cursor: pointer;
}

.ls-tabs { display: flex; gap: 2px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ls-tabs a {
  font-family: var(--font-display); font-weight: 500; font-size: 13.5px; padding: 10px 16px;
  color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; flex: 0 0 auto;
}
.ls-tabs a:hover { color: var(--ink-soft); }
.ls-tabs a.is-active { color: var(--brand-strong); border-bottom-color: var(--brand); font-weight: 600; }

.scorer-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.scorer { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); }
.scorer:first-child { border-top: 0; }
.scorer:hover { background: var(--brand-050); }
.scorer__rank { font-family: var(--font-display); font-weight: 700; width: 22px; text-align: center; color: var(--muted); flex-shrink: 0; }
.scorer__rank--1 { color: var(--accent); }
.scorer__name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorer__name a { color: inherit; }
.scorer__name a:hover { color: var(--brand-strong); text-decoration: underline; }
.scorer__team { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.scorer__goals { font-family: var(--font-display); font-weight: 700; font-size: 17px; min-width: 34px; text-align: center; }
.scorer__assists { font-size: 11.5px; color: var(--muted); min-width: 64px; text-align: right; flex-shrink: 0; }

.preview-note {
  font-size: 12px; color: var(--muted); padding: 9px 18px 13px; border-top: 1px dashed var(--line);
  background: var(--card-2);
}
.ls-empty { padding: 30px; text-align: center; color: var(--muted); }

@media (max-width: 980px) {
  .ls-layout { grid-template-columns: minmax(0, 1fr); }
  .ls-side { position: static; min-width: 0; }
}

/* ===========================================================
   การ์ดโปรแกรมแข่งประจำวัน (อัปโหลดรูปเอง) — แถว/สไลด์บนหน้าแรก
   =========================================================== */
.mc-section { grid-column: 1 / -1; margin-bottom: 6px; }
.mc-wrap { position: relative; }
.mc-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  scroll-behavior: smooth; padding-bottom: 4px;
}
.mc-card {
  position: relative; flex: 0 0 auto; scroll-snap-align: start; width: 230px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; padding: 0;
  font: inherit; text-align: left; display: block; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.mc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* โปสเตอร์ที่แอดมินอัปโหลดมีทั้งจัตุรัสและแนวตั้ง (ไม่บังคับสัดส่วนตายตัวตอนอัปโหลด) — ใช้กรอบแนวตั้ง 3:4
   + object-fit:contain กันไม่ให้ crop ตัดข้อความ/โลโก้ทีมที่มักอยู่ขอบภาพทิ้ง ช่องว่างที่เหลือโชว์พื้น .mc-card แทน */
.mc-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; display: block; background: var(--card); }
.mc-card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  background: var(--accent); color: #1a1300; padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.mc-card__cap {
  display: block; padding: 10px 12px; font-size: 13px; font-weight: 500;
  color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-nav {
  display: none; position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
  align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 2;
}
.mc-nav:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.mc-nav--prev { left: -18px; }
.mc-nav--next { right: -18px; }
.mc-wrap.has-overflow .mc-nav { display: flex; }

/* ---------- ข่าวปักหมุด (หน้าหมวดข่าว) — สไลด์การ์ดใหญ่ ใช้ mc-wrap/mc-track/mc-nav ร่วมกับ .mc-section ---------- */
.hl-wrap { margin-bottom: 30px; }
.hl-slide { flex: 0 0 auto; scroll-snap-align: start; width: min(480px, 85%); }
.hl-slide.hero__main .news-card { min-height: 300px; }
.mc-track::-webkit-scrollbar { height: 6px; }
.mc-track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

/* ---------- สไลด์ข่าวเด่นหน้าแรก — ทีละ 1 ข่าวเต็มความกว้าง แบ่ง 2 คอลัมน์ (รูปซ้าย / หัวข้อ+เนื้อหาย่อขวา) ---------- */
/* พื้นรอง (บนพื้นข่าวด้านบน) — กรอบพื้นหลังห่อสไลด์ข่าวเด่นไว้เป็นก้อนเดียว อ่านง่ายขึ้น แยกจากพื้นหลังหน้าเว็บชัดเจน
   ใส่ padding ที่ .hero-panel (ตัวนอก) แทน .hero-wrap (ตัวใน) เพราะ JS ใช้ wrap.clientWidth คำนวณระยะเลื่อนสไลด์ 1 ใบพอดี
   ถ้าใส่ padding ที่ .hero-wrap เอง ตัวเลขจะเพี้ยนเพราะ clientWidth นับ padding รวมเข้าไปด้วย */
.hero-panel {
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; margin-bottom: 30px;
}
.hero-wrap { margin-bottom: 0; }
.hero-track { gap: 0; scroll-snap-type: x mandatory; }
.hero-slide {
  flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1fr 1fr; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
/* ล็อกภาพเป็นแนวนอน 16:9 ขนาดคงที่เสมอ ไม่ขึ้นกับความยาวข้อความฝั่งขวา ให้ทุกสไลด์ดูเป็นระเบียบเท่ากันหมด */
.hero-slide__media { position: relative; overflow: hidden; background: var(--card-2); aspect-ratio: 16 / 9; }
.hero-slide__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide__body { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; gap: 13px; min-width: 0; }
.hero-slide__title {
  font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.32; color: var(--ink);
  transition: color .15s;
}
.hero-slide:hover .hero-slide__title { color: var(--brand-strong); }
.hero-slide__excerpt { color: var(--ink-soft); font-size: 15px; line-height: 1.75; margin: 0; }
.hero-slide__meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; margin-top: auto; }

@media (max-width: 640px) {
  .hero-slide { grid-template-columns: 1fr; }
  .hero-slide__body { padding: 20px; }
  .hero-slide__title { font-size: 20px; }
}

/* ---------- ไฮไลท์ข่าวเด่นหน้าแรก ดีไซน์ใหม่ (เฉพาะหน้าแรก) — รูปเต็มความกว้างด้านบน หัวข้อด้านล่าง
   + แถวข่าวที่เกี่ยวข้องอีก 4 ชิ้นต่อท้ายในการ์ดเดียวกัน (เอามาจากข่าวเด่นที่เหลือของสไลด์เดียวกัน) ---------- */
.hero-feature { display: block; grid-template-columns: none; }
.hero-feature__media { display: block; aspect-ratio: 2 / 1; background: var(--card-2); overflow: hidden; }
.hero-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-feature__body { padding: 20px 24px 16px; }
.hero-feature__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.hero-feature__stats { font-size: 12px; color: var(--muted); }
.hero-feature__title {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px;
  line-height: 1.35; color: var(--ink); transition: color .15s;
}
.hero-feature:hover .hero-feature__title { color: var(--brand-strong); }
.hero-feature__related {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding: 16px 24px 20px; border-top: 1px solid var(--line);
}
.hero-feature__related-item { display: block; color: inherit; min-width: 0; }
.hero-feature__related-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm);
  display: block; background: var(--card-2);
}
.chip--sm { font-size: 9.5px; padding: 2px 7px; margin: 8px 0 4px; }
.hero-feature__related-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12.5px; line-height: 1.4; font-weight: 500; color: var(--ink-soft);
}
.hero-feature__related-item:hover .hero-feature__related-title { color: var(--brand-strong); }

@media (max-width: 640px) {
  .hero-feature__media { aspect-ratio: 16 / 10; }
  .hero-feature__body { padding: 16px 18px 12px; }
  .hero-feature__title { font-size: 19px; }
  .hero-feature__related { grid-template-columns: repeat(2, 1fr); padding: 14px 18px 18px; }
}

/* lightbox ดูรูปเต็ม — เป็นฉากทึบเฉพาะจุด ไม่ขึ้นกับธีมเว็บ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: var(--overlay);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 40px 20px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; } /* .lightbox{display:flex} เอาชนะ UA default เฉยๆ ต้องบังคับซ้ำ */
.lightbox__img { max-width: min(92vw, 640px); max-height: 78vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox__cap { color: #e8eeea; font-size: 14px; text-align: center; max-width: 640px; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff;
  font-size: 18px; cursor: pointer;
}

@media (max-width: 640px) {
  .mc-card { width: 168px; }
  .mc-nav { display: none !important; }
}

/* ===========================================================
   หน้าเนื้อหา (matches / article / list / standings)
   =========================================================== */
.page { grid-column: 1 / -1; width: 100%; }
.page--matches, .page--article { max-width: 760px; margin: 0 auto; }
.page--list { max-width: 980px; margin: 0 auto; }

/* breadcrumb */
.crumbs { font-size: 12.5px; color: var(--muted); margin: 6px 0 18px; }
.crumbs a { color: var(--brand-strong); }

/* บทความ */
.article__head { margin-bottom: 18px; }
.article__head h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.25; margin: 12px 0 10px; }
.article__meta { font-size: 12.5px; color: var(--muted); }
.article__cover { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16/9; object-fit: cover; margin-bottom: 20px; }
.mc-detail__img {
  aspect-ratio: 1 / 1; max-width: 480px; margin-inline: auto; cursor: zoom-in;
  box-shadow: var(--shadow);
}
.article__lead { font-size: 17px; font-weight: 500; color: var(--ink-soft); line-height: 1.7; margin: 0 0 20px; }
.article__body { font-size: 16px; line-height: 1.85; }
.article__body p { margin: 0 0 1.1em; }
.article__body h2, .article__body h3 { font-family: var(--font-display); margin: 1.4em 0 .5em; }
.article__body img { border-radius: var(--r); margin: 1em 0; }
.article__body a { color: var(--brand-strong); text-decoration: underline; }
.article__share { display: flex; align-items: center; gap: 10px; margin: 26px 0; font-size: 13px; color: var(--muted); }
.article__share a {
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-soft);
}
.article__share a:hover { border-color: var(--brand); color: var(--brand-strong); }
.related { margin-top: 30px; }

/* pager */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 30px 0 6px; }
.pager__i {
  font-family: var(--font-display); font-weight: 500; font-size: 13.5px;
  min-width: 38px; text-align: center; padding: 8px 12px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-soft);
}
a.pager__i:hover { border-color: var(--brand); color: var(--brand-strong); }
.pager__i.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager__gap { padding: 8px 4px; color: var(--muted); }

/* search */
.search-big { display: flex; gap: 10px; margin: 0 0 24px; }
.search-big input {
  flex: 1; font: inherit; font-size: 15px; padding: 12px 16px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink); outline: none;
}
.search-big input:focus { border-color: var(--brand); }

/* advertise */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0 4px; }
.promo-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-align: center; }
.promo-stat b { font-family: var(--font-display); font-size: 22px; display: block; color: var(--brand-strong); }
.promo-stat span { font-size: 12px; color: var(--muted); }
.tick { list-style: none; padding: 0; margin: 8px 0 20px; }
.tick li { padding: 7px 0 7px 26px; position: relative; }
.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--brand-050), var(--card)); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 24px; margin-top: 24px;
}
.page--article h3 { font-family: var(--font-display); font-size: 18px; margin: 26px 0 10px; }

/* ===========================================================
   หน้าทีม (team.php) — ฮีโร่สนาม + 3 คอลัมน์ (เกี่ยวกับสโมสร | นักเตะ/ผล/ตาราง/ข่าว | นัดถัดไป/ตารางย่อ)
   =========================================================== */
.page--team { max-width: none; }

/* ---- ฮีโร่ ---- */
.th {
  position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--pitch) 0%, var(--pitch-ink) 100%); margin-bottom: 0;
}
.th::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(23,193,104,.22), transparent 68%); pointer-events: none;
}
.th__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.th__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,11,7,.55) 0%, rgba(3,11,7,.78) 55%, rgba(10,12,11,.96) 100%);
}
.th--img .th__shade { background: linear-gradient(180deg, rgba(3,11,7,.35) 0%, rgba(3,11,7,.72) 60%, rgba(10,12,11,.96) 100%); }
.th__inner { position: relative; z-index: 1; padding: 20px 28px 26px; }
.th__crumbs { margin: 0 0 22px; color: rgba(255,255,255,.7); }
.th__main { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.th__crest .crest {
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 4px rgba(255,255,255,.12); border-radius: 50%;
}
.th__title { flex: 1; min-width: 240px; }
.th__league {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .05em;
  color: var(--accent-strong); background: rgba(244,196,48,.14); border: 1px solid rgba(244,196,48,.35);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.th__title h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.1;
  margin: 0; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.th__en { margin: 6px 0 0; color: rgba(255,255,255,.62); font-size: 14px; letter-spacing: .02em; }
.th__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.th__chip {
  font-size: 13px; color: rgba(255,255,255,.88); padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px);
}
.th__chip b { color: #fff; font-family: var(--font-display); }
.th__chip--rank { background: rgba(23,193,104,.22); border-color: rgba(47,224,131,.5); }
.th__form { text-align: center; }
.th__form-label { display: block; font-size: 11.5px; color: rgba(255,255,255,.65); margin-bottom: 7px; letter-spacing: .03em; }
.th__form-dots { display: inline-flex; gap: 6px; }
.th__form-dots .form-dot {
  width: 30px; height: 30px; border-radius: 50%; font-size: 12.5px; font-style: normal; color: #04140d; margin: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
}

/* ---- 3 คอลัมน์ ---- */
.th-grid {
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 24px; margin-top: 24px; align-items: start;
}
.th-col { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.tcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.tcard--flush { padding: 0; }
.tcard__title {
  margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.tcard__title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); }
.tcard__title--pad { margin: 0; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.tcard__text { margin: 0; color: var(--ink-soft); line-height: 1.85; font-size: 14.5px; }
.tcard__text--muted { color: var(--muted); }
.tcard__pad { padding: 16px 18px 18px; }
.tcard__note {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--card-2);
  font-size: 12.8px; color: var(--ink-soft); line-height: 1.7;
}
.tcard__more {
  display: block; width: 100%; padding: 12px; background: none; border: 0; border-top: 1px solid var(--line);
  color: var(--brand-strong); font-family: var(--font-display); font-weight: 600; font-size: 13px; cursor: pointer;
}
.tcard__more:hover { background: var(--brand-050); }

.tcard--stadium { padding: 0; }
.stadium__img { aspect-ratio: 16 / 10; background: var(--card-2); overflow: hidden; }
.stadium__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tcard--stadium:hover .stadium__img img { transform: scale(1.05); }
.stadium__body { padding: 16px 18px 18px; }
.stadium__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); font-family: var(--font-display); font-weight: 600; }
.stadium__body h3 { margin: 4px 0 8px; font-family: var(--font-display); font-size: 19px; line-height: 1.3; }
.stadium__body p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-soft); font-size: 13.5px; }

.tfacts { margin: 0; display: grid; gap: 0; }
.tfacts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.tfacts > div:last-child { border-bottom: 0; }
.tfacts dt { color: var(--muted); }
.tfacts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.tfacts a { color: var(--brand-strong); }

.fx-list--bare { border: 0; border-radius: 0; box-shadow: none; background: none; }
.th-banner { display: flex; justify-content: center; }

/* ---- แท็บกลาง ---- */
.th-tabs {
  display: flex; gap: 6px; padding: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px;
}
.th-tabs::-webkit-scrollbar { display: none; }
.th-tabs button {
  flex: 1 0 auto; padding: 11px 18px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
  transition: background .15s, color .15s, transform .12s; white-space: nowrap;
}
.th-tabs button:hover { background: var(--card-2); color: var(--ink); }
.th-tabs button { position: relative; z-index: 1; }
.th-tabs button.is-active { background: linear-gradient(180deg, var(--brand-strong), var(--brand)); color: #04140d; }
.team-page.is-js .th-tabs button.is-active { background: none; }
.th-tabs { position: relative; }
.th-tabs__ink {
  position: absolute; left: 0; top: 6px; bottom: 6px; width: 0; border-radius: 10px; z-index: 0;
  background: linear-gradient(180deg, var(--brand-strong), var(--brand));
  box-shadow: 0 6px 18px rgba(23,193,104,.35);
  transition: transform .35s cubic-bezier(.3,1.2,.4,1), width .35s cubic-bezier(.3,1.2,.4,1);
}
.th-tabs button span {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px;
  background: rgba(255,255,255,.12); font-size: 11.5px; line-height: 20px;
}
.th-tabs button.is-active span { background: rgba(4,20,13,.18); }
.th-panel { margin-bottom: 26px; }
.team-page.is-js .th-panel { display: none; margin-bottom: 0; }
.team-page.is-js .th-panel.is-active { display: block; animation: th-fade .25s ease; }
@keyframes th-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.th-panel__title { font-family: var(--font-display); font-size: 17px; margin: 22px 0 12px; }
.th-panel__title:first-child { margin-top: 0; }

/* ---- นักเตะ ---- */
.squad-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 6px; }
.squad-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.squad-filter button {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink-soft); font-family: var(--font-display); font-weight: 500; font-size: 13.5px; cursor: pointer;
  transition: all .15s;
}
.squad-filter button:hover { border-color: var(--brand); color: var(--ink); }
.squad-filter button.is-active { background: var(--brand); border-color: var(--brand); color: #04140d; font-weight: 600; }
.squad-filter button span { opacity: .65; margin-left: 3px; font-size: 12px; }
.squad-search {
  flex: 0 1 230px; min-width: 160px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font: inherit; font-size: 14px; outline: 0;
}
.squad-search:focus { border-color: var(--brand); }
.squad-group { margin-top: 22px; }
.squad-group[hidden], .pcard[hidden], .squad-empty[hidden] { display: none; }
.squad-group__title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--font-display); font-size: 16px;
}
.squad-group__title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--pc, var(--muted)); }
.squad-group__title span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.squad-empty { text-align: center; color: var(--muted); padding: 28px 0; }

/* สีประจำตำแหน่ง */
[data-pos="Goalkeeper"] { --pc: var(--accent); }
[data-pos="Defender"]   { --pc: var(--teal); }
[data-pos="Midfielder"] { --pc: var(--brand-strong); }
[data-pos="Attacker"]   { --pc: #ff8a7a; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.pcard {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 26px 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  cursor: pointer; font: inherit; color: inherit; overflow: hidden;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .14s ease-out, border-color .18s, box-shadow .18s;
  will-change: transform;
}
.pcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: radial-gradient(190px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.16), transparent 62%);
}
.pcard:hover::after { opacity: 1; }
.pcard::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--pc, var(--line-2)); opacity: .9;
}
.pcard:hover, .pcard:focus-visible {
  --ty: -5px; border-color: var(--pc, var(--brand)); box-shadow: 0 14px 30px rgba(0,0,0,.45); outline: 0;
}
.pcard:active { --ty: -1px; }
.pcard__no {
  position: absolute; top: 10px; left: 10px; min-width: 28px; padding: 1px 6px; border-radius: 8px;
  background: var(--card-2); font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink-soft);
}
.pcard__photo .crest { box-shadow: 0 0 0 3px var(--pc, var(--line-2)); border-radius: 50%; }
.pcard__photo .crest--logo { background: var(--card-2); padding: 0; }
.pcard__photo .crest--logo img { object-fit: cover; object-position: top; }
.pcard__photo { margin-bottom: 6px; display: block; }
.pcard__name { font-weight: 600; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.pcard__meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pcard__pos { color: var(--pc, var(--muted)); font-weight: 600; }
.pcard__more {
  margin-top: 6px; font-size: 12px; color: var(--brand-strong); font-weight: 600;
  opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s;
}
.pcard:hover .pcard__more, .pcard:focus-visible .pcard__more { opacity: 1; transform: none; }
@media (hover: none) { .pcard__more { opacity: .85; transform: none; } }

/* ---- ป๊อปอัปนักเตะ ---- */
body.pm-open { overflow: hidden; }
.pm { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 18px; }
.pm[hidden] { display: none; }
.pm__backdrop { position: absolute; inset: 0; background: rgba(2,8,5,.78); backdrop-filter: blur(5px); animation: th-fade .2s ease; }
.pm__dialog {
  position: relative; width: min(720px, 100%); max-height: min(86vh, 760px); display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pm-pop .25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pm-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.pm__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; font-size: 15px; cursor: pointer; transition: background .15s;
}
.pm__close:hover { background: var(--live); }
.pm__head {
  position: relative; display: flex; align-items: center; gap: 20px; padding: 26px 28px 22px;
  background: linear-gradient(135deg, var(--pitch) 0%, #0c2a1c 100%); border-bottom: 1px solid var(--line);
}
.pm__photo { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--card-2);
  box-shadow: 0 0 0 4px rgba(255,255,255,.14); display: grid; place-items: center; }
.pm__img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pm__initials { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--ink-soft); text-transform: uppercase; }
.pm__id { min-width: 0; }
.pm__pos { display: inline-block; font-size: 12px; font-weight: 600; font-family: var(--font-display); color: var(--pc, var(--ink-soft)); background: rgba(255,255,255,.1); padding: 3px 11px; border-radius: 999px; }
.pm__id h2 { margin: 8px 0 0; font-family: var(--font-display); font-size: 26px; line-height: 1.2; color: #fff; }
.pm__en, .pm__team { margin: 3px 0 0; font-size: 13.5px; color: rgba(255,255,255,.68); }
.pm__no {
  margin-left: auto; margin-right: 42px; font-family: var(--font-display); font-weight: 700; font-size: 54px;
  line-height: 1; color: rgba(255,255,255,.14);
}
.pm__scroll { overflow-y: auto; padding: 4px 28px 26px; }
.pm__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 18px; margin: 20px 0 6px; }
.pm__facts dt { font-size: 11.5px; color: var(--muted); }
.pm__facts dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; }
.pm__tabs { display: flex; gap: 6px; margin: 22px 0 16px; border-bottom: 1px solid var(--line); }
.pm__tabs button {
  padding: 10px 16px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer;
}
.pm__tabs button:hover { color: var(--ink); }
.pm__tabs button.is-active { color: var(--brand-strong); border-bottom-color: var(--brand); }
.pm__panel { display: none; }
.pm__panel.is-active { display: block; animation: th-fade .2s ease; }
.pm__note { margin: 20px 0; text-align: center; color: var(--muted); font-size: 14px; }
.pm__note--loading::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: pm-spin .8s linear infinite;
}
.pm__note--err { color: #ff8a7a; }
@keyframes pm-spin { to { transform: rotate(360deg); } }

.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.timeline__item { position: relative; padding: 0 0 18px 30px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px var(--card); }
.timeline__box { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.timeline__date { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.timeline__move { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: 14.5px; }
.timeline__team { display: inline-flex; align-items: center; gap: 7px; }
.timeline__logo { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.timeline__arrow { color: var(--brand-strong); }
.timeline__type {
  display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(244,196,48,.14); color: var(--accent-strong);
}

.pm__seasons { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pm__seasons button {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2);
  color: var(--ink-soft); font-family: var(--font-display); font-size: 13px; cursor: pointer; transition: all .15s;
}
.pm__seasons button:hover { border-color: var(--brand); color: var(--ink); }
.pm__seasons button.is-active { background: var(--brand); border-color: var(--brand); color: #04140d; font-weight: 600; }
.pm__tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.pm__table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 540px; }
.pm__table th, .pm__table td { padding: 10px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.pm__table th { color: var(--muted); font-weight: 500; font-size: 12px; background: var(--card-2); }
.pm__table tbody tr:last-child td { border-bottom: 0; }
.pm__table td.ta-l, .pm__table th.ta-l { text-align: left; }
.pm__table td small { display: block; color: var(--muted); font-size: 11.5px; }
.pm__lglogo { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 7px; background: #fff; border-radius: 4px; padding: 1px; }

/* ---- Responsive ---- */
@media (max-width: 1240px) {
  .th-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .th-col--info { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
@media (max-width: 860px) {
  .th-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .th-col--main { order: 1; }
  .th-col--info { order: 2; grid-column: auto; }
  .th-col--side { order: 3; }
  .th__inner { padding: 16px 18px 22px; }
  .th__main { gap: 18px; }
  .th__form { text-align: left; width: 100%; }
  .pm { place-items: end center; padding: 0; }
  .pm__dialog { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .pm__head { padding: 22px 18px 18px; gap: 14px; }
  .pm__photo { width: 76px; height: 76px; }
  .pm__id h2 { font-size: 21px; }
  .pm__no { font-size: 38px; margin-right: 38px; }
  .pm__scroll { padding: 2px 18px 22px; }
}

.standings tr.is-me td { background: var(--brand-050); font-weight: 700; }
.standings tr.is-me .standings__team { color: var(--brand-strong); }

/* standings เต็ม */
.standings--full th, .standings--full td { padding: 9px 8px; }
.standings--full .ta-l { text-align: left; }
.form-cell { white-space: nowrap; }
.form-dot {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 4px;
  font-size: 9px; font-weight: 700; color: #fff; margin: 0 1px; font-family: var(--font-display);
}
.form-w { background: var(--win); }
.form-d { background: #9aa3ad; }
.form-l { background: var(--live); }
.lg-key { margin-right: 14px; }
.lg-key .k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.k--ucl { background: var(--win); }
.k--rel { background: var(--live); }
@media (max-width: 600px) { .hide-sm { display: none !important; } }

/* ===========================================================
   หน้า โปรแกรม & ผลบอล (matches.php)
   =========================================================== */

.view-switch { display: inline-flex; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 22px; }
.view-switch a {
  font-family: var(--font-display); font-weight: 500; font-size: 13px;
  padding: 7px 16px; border-radius: 999px; color: var(--muted); transition: all .15s;
}
.view-switch a:hover { color: var(--ink); }
.view-switch a.is-active { background: var(--brand); color: #fff; }

.notice {
  background: rgba(244,196,48,.1); border: 1px solid rgba(244,196,48,.35); color: var(--accent-strong);
  border-radius: var(--r); padding: 14px 16px; font-size: 13.5px; margin-bottom: 22px;
}
.notice code { background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; color: var(--ink); }

.fx-group { margin-bottom: 22px; }
.fx-group__head {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--brand-strong);
  margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--accent);
}
.fx-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

/* แถวผลบอล — เลย์เอาต์ซ้อนแนวตั้ง (responsive โดยไม่ต้องมี breakpoint) */
.fx { padding: 13px 18px; border-top: 1px solid var(--line); transition: background .12s; }
.fx:first-child { border-top: 0; }
.fx:hover { background: var(--brand-050); }
.fx__meta {
  font-size: 11.5px; color: var(--muted); margin-bottom: 8px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
}
.fx__meta i { font-style: normal; opacity: .5; }
.fx__side { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.fx__team { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; }
.fx__team > span:not(.crest) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx__team a { color: inherit; }
.fx__team a:hover { color: var(--brand-strong); text-decoration: underline; }
.fx__pt {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  min-width: 26px; text-align: center; color: var(--ink);
}
.fx--sch .fx__pt { color: var(--muted); font-weight: 500; }
.fx--live .fx__pt { color: var(--live); }
.fx__vs { color: var(--muted); font-weight: 500; }
.fx__badge--live {
  background: var(--live); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 10px; padding: 1px 6px; border-radius: 4px; letter-spacing: .03em;
}

.matches-foot { font-size: 12.5px; margin-top: 28px; text-align: center; }
.matches-foot a { color: var(--brand-strong); font-weight: 600; }

/* ตารางกว้าง -> เลื่อนแนวนอนในกรอบตัวเอง (ไม่ดันหน้าเว็บ) */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.table-wrap > table { margin: 0; }

/* ===========================================================
   Footer (ขาว/ฟ้าอ่อน เข้าชุดกับ header)
   =========================================================== */
.site-footer {
  background: linear-gradient(160deg, var(--pitch) 0%, var(--pitch-ink) 100%);
  color: var(--on-dark-muted); margin-top: 44px; padding: 48px 0 22px;
}
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; }
.site-footer h4 { color: #fff; font-size: 13px; margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase; }
.site-footer a { display: block; padding: 4px 0; color: var(--on-dark-muted); font-size: 14px; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-bottom: 12px; }
.site-footer__copy {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 20px;
  font-size: 12.5px; color: #6f857a;
}

/* ===========================================================
   ตัววิ่งผลบอลใต้เมนู (score_ticker_html) — เลื่อนแนวนอนวนลูป เอาเมาส์ชี้แล้วหยุด
   =========================================================== */
.mticker {
  display: flex; align-items: stretch; background: var(--pitch-ink);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.mticker__label {
  flex: 0 0 auto; display: flex; align-items: center; padding: 0 16px;
  background: var(--live); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 12px; letter-spacing: .04em; white-space: nowrap;
}
.mticker__viewport { flex: 1; min-width: 0; overflow: hidden; }
.mticker__track { display: flex; width: max-content; animation: mticker-scroll 60s linear infinite; }
.mticker:hover .mticker__track { animation-play-state: paused; }
@keyframes mticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mticker__item {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px;
  border-right: 1px solid var(--line); font-size: 13px; color: var(--on-dark); white-space: nowrap;
}
.mticker__item:hover { background: rgba(255,255,255,.06); }
.mticker__team { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.mticker__score {
  font-family: var(--font-display); font-weight: 700; padding: 2px 9px; border-radius: 6px;
  background: var(--chip-dark); color: #fff; min-width: 42px; text-align: center;
}
.mticker__item--live .mticker__score { background: var(--live); }
@media (prefers-reduced-motion: reduce) {
  .mticker__track { animation: none; }
  .mticker__viewport { overflow-x: auto; }
}

/* ===========================================================
   เมนูเลือกลีก (.league-menu) — ใช้ร่วมกันทุกหน้า (league_menu_html)
   ธงชาติ+ประเทศ กดแล้ว dropdown ลีกออกมา (พับไว้ก่อน) / ไม่มี JS = กางทั้งหมด
   =========================================================== */
.league-menu { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.league-menu__toggle { display: none; }
.league-menu__head {
  padding: 13px 16px; font-family: var(--font-display); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line);
}
.league-menu__group { border-bottom: 1px solid var(--line); }
.league-menu__group:last-child { border-bottom: 0; }
.league-menu__country {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px;
  background: none; border: 0; cursor: default; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink);
}
.league-menu__flag { font-size: 17px; line-height: 1; }
.league-menu__name { flex: 1; min-width: 0; }
.league-menu__chev { display: none; font-size: 12px; color: var(--muted); transition: transform .15s; }
.league-menu__link {
  display: block; padding: 9px 16px 9px 43px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  border-left: 3px solid transparent; transition: background .12s, color .12s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.league-menu__link:hover { background: var(--brand-050); color: var(--brand-strong); border-left-color: var(--brand); }
.league-menu__link.is-active { background: var(--brand-050); color: var(--brand-strong); font-weight: 600; border-left-color: var(--brand); }

/* เปิดใช้การพับ/กางเมื่อ JS พร้อม */
.league-menu.is-js .league-menu__country { cursor: pointer; }
.league-menu.is-js .league-menu__country:hover { background: var(--brand-050); }
.league-menu.is-js .league-menu__chev { display: inline; }
.league-menu.is-js .league-menu__list { display: none; padding-bottom: 6px; }
.league-menu.is-js .league-menu__group.is-open .league-menu__list { display: block; }
.league-menu.is-js .league-menu__group.is-open .league-menu__chev { transform: rotate(180deg); }
.league-menu.is-js .league-menu__group.is-open .league-menu__country { color: var(--brand-strong); }

/* หน้าแรก 3 คอลัมน์ — เมนูลีก (ซ้าย) | Highlight + ข่าว (กลาง) | แบนเนอร์ + ตารางคะแนน (ขวา) */
.site-main--home { grid-template-columns: 220px minmax(0, 1fr) 336px; }
.site-main--home .league-menu {
  align-self: start; position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow-y: auto;
}

/* จอ < 1280px: เมนูกลายเป็นปุ่ม "เลือกลีก" เต็มความกว้างเหนือเนื้อหา กดแล้วกางเมนูลงมา */
@media (max-width: 1279px) {
  .site-main--home { grid-template-columns: minmax(0, 1fr) 336px; }
  .site-main--home .league-menu { grid-column: 1 / -1; position: static; max-height: none; overflow: visible; }
  .site-main--home .league-menu.is-js .league-menu__toggle { display: flex; }
  .site-main--home .league-menu.is-js .league-menu__body { display: none; }
  .site-main--home .league-menu.is-js.is-open .league-menu__body { display: block; }
  .site-main--home .league-menu__head { display: none; }
}
@media (max-width: 1000px) {
  .site-main--home { grid-template-columns: minmax(0, 1fr); }
}
/* หน้าลีก (scores.php): เมนูอยู่คอลัมน์ซ้าย แล้วยุบเป็นปุ่มเดียวกันเมื่อจอ <= 980px */
@media (max-width: 980px) {
  .ls-side .league-menu.is-js .league-menu__toggle { display: flex; }
  .ls-side .league-menu.is-js .league-menu__body { display: none; }
  .ls-side .league-menu.is-js.is-open .league-menu__body { display: block; }
  .ls-side .league-menu__head { display: none; }
}
.league-menu__toggle {
  align-items: center; justify-content: space-between; width: 100%; padding: 13px 16px; background: none; border: 0;
  cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink);
}
.league-menu.is-open .league-menu__toggle { border-bottom: 1px solid var(--line); }

/* ===========================================================
   ชั้นแอนิเมชัน/อินเทอร์แอกทีฟกลางของทั้งเว็บ (ควบคุมจาก main.js — ปิดเมื่อผู้ใช้ตั้ง "ลดการเคลื่อนไหว")
   =========================================================== */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

/* เนื้อหาเลื่อนขึ้นตอนเข้าจอ: .rv ใส่ด้วย JS เท่านั้น */
.rv { opacity: 0; }
.rv.rv-in { opacity: 1; animation: rv-up .6s cubic-bezier(.2,.8,.2,1) var(--d, 0ms) backwards; }
@keyframes rv-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* แถบความคืบหน้าการเลื่อน + ปุ่มกลับขึ้นบน */
.ft-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 400; pointer-events: none; }
.ft-progress i {
  display: block; height: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--brand), var(--accent)); box-shadow: 0 0 10px rgba(47,224,131,.6);
}
.ft-top {
  position: fixed; right: 18px; bottom: 22px; z-index: 70; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--card); color: var(--brand-strong); font-size: 20px;
  box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(14px) scale(.9);
  pointer-events: none; transition: opacity .25s, transform .25s, background .15s, color .15s;
}
.ft-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.ft-top:hover { background: var(--brand); color: #04140d; }
@media (max-width: 880px) { .ft-top { bottom: 84px; right: 14px; } }

/* หัวเว็บ: เงา + หดเล็กน้อยเมื่อเลื่อนลง */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(0,0,0,.5); }
.site-header__bar { transition: height .25s ease; }
.site-header.is-scrolled .site-header__bar { height: 58px; }

/* ปุ่ม/ลิงก์: ตอบสนองตอนกด */
.btn, .nav-cta, .league-tabs a, .ls-tabs a, .chip, .pager__i { transition: transform .12s ease, background .15s, color .15s, box-shadow .15s; }
.btn:active, .nav-cta:active, .league-tabs a:active, .ls-tabs a:active, .pager__i:active { transform: scale(.96); }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }

/* หัวข้อส่วน: ขีดเน้นยืดออกตอนเข้าจอ */
.section-head .eyebrow::before { transform-origin: left; }
.section-head.rv-in .eyebrow::before { animation: eyebrow-grow .7s ease .15s backwards; }
@keyframes eyebrow-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- หน้าแรก ---------- */

/* ไฮไลต์: ภาพซูมช้าๆ เมื่อชี้ + รูปข่าวเกี่ยวข้องเด้งเบาๆ */
.hero-feature__media img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hero-feature:hover .hero-feature__media img { transform: scale(1.05); }
.hero-feature__related-item img { transition: transform .35s ease, box-shadow .35s ease; }
.hero-feature__related-item:hover img { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 24px rgba(0,0,0,.4); }

/* แถบสถิติสรุป */
.statstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 6px; }
.stat {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .18s ease, border-color .18s, box-shadow .18s;
}
.stat:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.stat__ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(23,193,104,.2), rgba(244,196,48,.14));
}
.stat--live .stat__ico { background: rgba(255,71,87,.16); }
.stat__body { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.stat__body b { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink); }
.stat__body small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) {
  .statstrip { gap: 8px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .stat__body b { font-size: 22px; }
}

/* การ์ดแมตช์สุ่ม (หน้าแรก ก่อนรายการข่าว) — 5 ใบเรียงแถวเดียว จอแคบเลื่อนแนวนอน */
.mcards {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(122px, 1fr); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin;
}
.mcard {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 8px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink);
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
}
.mcard:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.mcard--live { border-color: rgba(255,71,87,.45); }
.mcard__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; }
.mcard__league { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mcard__when { color: var(--ink-soft); white-space: nowrap; flex-shrink: 0; }
.mcard__top .match__badge { flex-shrink: 0; }
.mcard__body { display: flex; flex-direction: column; gap: 8px; }
.mcard__team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mcard__team > :first-child { flex-shrink: 0; }
.mcard__name { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard__score { font-family: var(--font-display); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.mcard__score--live { color: var(--live); }
.mcard__more {
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--brand-strong);
}
@media (max-width: 560px) { .mcards { grid-auto-columns: 140px; gap: 8px; } }

/* ตัวกรองรายการข่าว */
.nl-tools { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: -4px 0 14px; }
.nl-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.nl-filter button {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink-soft); font-family: var(--font-display); font-weight: 500; font-size: 13.5px; cursor: pointer;
  transition: all .15s;
}
.nl-filter button:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.nl-filter button.is-active { background: var(--brand); border-color: var(--brand); color: #04140d; font-weight: 600; }
.nl-filter button span { opacity: .65; margin-left: 3px; font-size: 12px; }
.nl-search {
  flex: 0 1 240px; min-width: 150px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font: inherit; font-size: 14px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.nl-search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,193,104,.2); }

/* หัววันที่พับ/กางได้ */
button.news-log__date { width: 100%; border: 0; cursor: pointer; text-align: left; transition: filter .15s; }
.news-log__date:hover { filter: brightness(1.25); }
.news-log__meta { display: inline-flex; align-items: center; gap: 10px; }
.news-log__chev { font-style: normal; font-size: 12px; transition: transform .25s ease; }
.news-log__date.is-collapsed .news-log__chev { transform: rotate(-90deg); }
.news-log__date[hidden], .news-log__row[hidden], .news-log__ad[hidden], .news-log__empty[hidden], .news-log__loader[hidden] { display: none; }
/* โหลดข่าวเพิ่มตอนเลื่อนลง (infinite scroll) */
.news-log__loader { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; color: var(--muted); font-size: 14px; }
.news-log__spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--brand); animation: nl-spin .7s linear infinite; }
@keyframes nl-spin { to { transform: rotate(360deg); } }
.news-log.is-loading { opacity: .5; transition: opacity .15s; }
.news-log__empty { padding: 28px; text-align: center; color: var(--muted); margin: 0; }

/* แถวข่าว: ลูกศรเลื่อนเข้าตอนชี้ */
.news-log__row { position: relative; transition: background .12s, color .12s, padding-left .2s ease; }
.news-log__row:hover { padding-left: 24px; }
.news-log__go { flex-shrink: 0; color: var(--brand-strong); opacity: 0; transform: translateX(-6px); transition: opacity .18s, transform .18s; font-size: 18px; line-height: 1; }
.news-log__row:hover .news-log__go { opacity: 1; transform: none; }

/* ตารางคะแนนไซด์บาร์: จุดนำทาง */
.league-dots { display: flex; justify-content: center; gap: 7px; padding: 10px 0 2px; }
.league-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer;
  transition: width .25s ease, background .2s;
}
.league-dots button:hover { background: var(--ink-soft); }
.league-dots button.is-active { width: 24px; background: var(--brand); }

/* ---------- หน้าทีม: ฮีโร่เข้าฉาก + แถบสถิติฤดูกาล ---------- */
.th__bg { animation: th-kb 30s ease-in-out infinite alternate; translate: 0 var(--py, 0px); will-change: transform; }
@keyframes th-kb { from { transform: scale(1.04); } to { transform: scale(1.14) translateX(-1.5%); } }
.th__crest { animation: th-pop .85s cubic-bezier(.2,1.3,.3,1) .1s backwards; }
@keyframes th-pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
.th__league, .th__title h1, .th__en, .th__chips, .th__form, .th__crumbs { animation: th-rise .7s cubic-bezier(.2,.8,.2,1) backwards; }
.th__league { animation-delay: .15s; } .th__title h1 { animation-delay: .25s; } .th__en { animation-delay: .32s; }
.th__chips { animation-delay: .4s; } .th__form { animation-delay: .5s; } .th__crumbs { animation-delay: 0s; }
@keyframes th-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.th__chip { transition: transform .18s ease, background .18s; }
.th__chip:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); }
.th__form-dots .form-dot { animation: th-pop .5s cubic-bezier(.2,1.4,.3,1) backwards; }
.th__form-dots .form-dot:nth-child(1) { animation-delay: .6s; } .th__form-dots .form-dot:nth-child(2) { animation-delay: .68s; }
.th__form-dots .form-dot:nth-child(3) { animation-delay: .76s; } .th__form-dots .form-dot:nth-child(4) { animation-delay: .84s; }
.th__form-dots .form-dot:nth-child(5) { animation-delay: .92s; }
.th__form-dots .form-dot { transition: transform .18s; } .th__form-dots .form-dot:hover { transform: scale(1.2) rotate(-6deg); }

.tcard { transition: transform .2s ease, border-color .2s, box-shadow .2s; }
.tcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }

/* แถบ ชนะ/เสมอ/แพ้ + ประตูได้/เสีย */
.sbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--card-2); gap: 2px; }
.sbar__seg { display: block; width: var(--w, 0%); height: 100%; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.sbar__seg--w { background: var(--win); } .sbar__seg--d { background: #9aa3ad; } .sbar__seg--l { background: var(--live); }
.rv:not(.rv-in) .sbar__seg, .rv:not(.rv-in) .gbar__fill { width: 0; }
.sbar-legend { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 18px; padding: 0; font-size: 13.5px; color: var(--ink-soft); }
.sbar-legend li { display: flex; align-items: center; gap: 6px; }
.sbar-legend b { color: var(--ink); font-family: var(--font-display); }
.sbar-legend__dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.gbar { display: grid; gap: 10px; }
.gbar__row { display: grid; grid-template-columns: 72px 1fr 28px; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.gbar__row b { text-align: right; color: var(--ink); font-family: var(--font-display); }
.gbar__track { height: 10px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.gbar__fill { display: block; height: 100%; width: var(--w, 0%); border-radius: 999px; transition: width 1.1s cubic-bezier(.2,.8,.2,1) .15s; }
.gbar__fill--for { background: linear-gradient(90deg, var(--brand), var(--brand-strong)); }
.gbar__fill--against { background: linear-gradient(90deg, #c0392b, var(--live)); }

/* แถวทีมนี้ในตาราง: กะพริบเบาๆ เรียกสายตา */
.standings tr.is-me td { animation: me-glow 2.6s ease-in-out 1s 2; }
@keyframes me-glow { 50% { background: rgba(23,193,104,.34); } }

/* ป๊อปอัปนักเตะ: ปุ่มเลื่อน + แอนิเมชันสลับคน + ทยอยโชว์รายการ */
.pm__navs {
  position: absolute; top: 12px; right: 58px; z-index: 2; display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.1); border-radius: 999px; padding: 2px;
}
.pm__nav {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; transition: background .15s, transform .12s;
}
.pm__nav:hover:not(:disabled) { background: var(--brand); color: #04140d; }
.pm__nav:active:not(:disabled) { transform: scale(.9); }
.pm__nav:disabled { opacity: .35; cursor: default; }
.pm__count { min-width: 52px; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.pm__head.is-swap { animation: pm-swap .35s cubic-bezier(.2,.8,.2,1); }
.pm__scroll.is-swap { animation: pm-swap .4s cubic-bezier(.2,.8,.2,1); }
@keyframes pm-swap { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.pm__photo { animation: th-pop .5s cubic-bezier(.2,1.3,.3,1) backwards; }
.pm__facts > div { animation: th-rise .45s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 60ms + 80ms) backwards; }
.timeline__item { animation: tl-in .5s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 90ms) backwards; }
@keyframes tl-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.pm__table tbody tr { animation: th-rise .4s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 55ms) backwards; }
@media (max-width: 860px) { .pm__navs { right: 54px; } .pm__count { min-width: 44px; } }

/* ผู้ใช้ตั้ง "ลดการเคลื่อนไหว" ในระบบ = ปิดแอนิเมชัน/ทรานซิชันทั้งเว็บ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; }
}

/* ===========================================================
   หน้าศูนย์รวมลีก (scores.php): รายชื่อทีมพร้อมโลโก้ + ข่าวแบบ listing ขนาดเล็ก + ข่าวแยกตามทีม
   =========================================================== */
.lteams { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.lteam {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 18px 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
}
.lteam:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 12px 26px rgba(0,0,0,.4); }
.lteam .crest { box-shadow: 0 6px 16px rgba(0,0,0,.35); transition: transform .25s cubic-bezier(.2,1.3,.3,1); }
.lteam:hover .crest { transform: scale(1.1) rotate(-4deg); }
.lteam__name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.lteam__meta { font-size: 12.5px; color: var(--muted); }
.lteam__news {
  font-size: 11.5px; color: var(--accent-strong); background: rgba(244,196,48,.12); padding: 2px 9px; border-radius: 999px;
}
.lteams--compact { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.lteam--compact { padding: 14px 8px 12px; gap: 8px; }
.lteam--compact .lteam__name { font-size: 12.5px; font-weight: 500; }

.lg-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 6px; }
.lg-cols > section { min-width: 0; }

/* การ์ดข่าวขนาดเล็กแบบ listing */
.nmini-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lg-cols .nmini-list, .nmini-list--one { grid-template-columns: minmax(0, 1fr); }
.nmini {
  display: flex; gap: 12px; align-items: center; padding: 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: transform .15s ease, border-color .15s, background .15s;
}
.nmini:hover { transform: translateX(3px); border-color: var(--brand); background: var(--card-2); }
.nmini__img { flex: 0 0 92px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--card-2); }
.nmini__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.nmini:hover .nmini__img img { transform: scale(1.08); }
.nmini__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nmini__title {
  font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nmini:hover .nmini__title { color: var(--brand-strong); }
.nmini__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.nmini__meta .chip { align-self: auto; }

/* ข่าวแยกตามทีม */
.lg-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: thin; margin-bottom: 4px; }
.lg-chips button {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink-soft);
  font-family: var(--font-display); font-size: 13.5px; cursor: pointer; transition: all .15s;
}
.lg-chips button:first-child { padding-left: 14px; }
.lg-chips button:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.lg-chips button.is-active { background: var(--brand); border-color: var(--brand); color: #04140d; font-weight: 600; }
.lg-chips button i { font-style: normal; font-size: 11.5px; opacity: .7; }
.lg-teamnews { display: grid; gap: 18px; }
.lg-teamnews--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg-team { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; min-width: 0; }
.lg-team[hidden], [data-all-only][hidden] { display: none; }
.lg-team__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.lg-team__who { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 16px; }
.lg-team__who:hover { color: var(--brand-strong); }
.lg-team__go, .lg-team__count { font-size: 12.5px; color: var(--brand-strong); }
.lg-team__count { color: var(--muted); }
.lg-team .nmini { background: var(--card); }
.lg-leaguenews { margin-bottom: 8px; }

@media (max-width: 860px) {
  .lg-cols, .lg-teamnews--grid, .nmini-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .nmini__img { flex-basis: 78px; height: 56px; }
  .lteams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1000px) {
  .site-main { grid-template-columns: minmax(0, 1fr); }
  .col-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
}
.nav-search-link { display: none; }
.mobile-tabbar { display: none; }

@media (max-width: 880px) {
  .main-nav, .site-search { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .main-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--pitch-ink); padding: 10px; gap: 2px;
    box-shadow: var(--shadow-lg); border-bottom: 1px solid rgba(255,255,255,.08);
    max-height: calc(100vh - 130px); overflow-y: auto;
  }
  .site-header.open .main-nav a { padding: 12px 14px; font-size: 15px; }
  .site-header.open .main-nav .nav-cta { margin: 6px 0 2px; justify-content: center; }
  .site-header.open .main-nav .nav-search-link { display: block; }
  .hero { grid-template-columns: 1fr; }
  /* ใช้ aspect-ratio แทน min-height ตายตัว — เดิมสูง 340px คงที่ไม่ว่าจอจะแคบแค่ไหน
     พอเจอมือถือจอแคบ (~375px) เลยกลายเป็นสัดส่วนเกือบสี่เหลี่ยมจัตุรัส crop ภาพซ้าย-ขวาทิ้งเยอะเกินไป
     เปลี่ยนเป็นสัดส่วนคงที่ ความสูงจะยืดหด "ตามความกว้างจอจริง" ให้ครอปสมเหตุสมผลทุกขนาดจอ */
  .hero__main .news-card { min-height: 0; aspect-ratio: 4 / 3; }
  .hero__side .news-card { flex-direction: row; }

  /* แถบปุ่ม Sticky ด้านล่างจอ — สรุปผลการแข่งขัน / เลือกลีกดูตารางคะแนน (มือถือเท่านั้น)
     ให้สีปุ่มทั้ง 2 ต่างกันชัดเจน (เขียว vs ทอง) และตัดกับพื้นเข้มของแถบ เพื่อให้เห็นเด่นสุด */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mobile-tabbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--pitch-ink); border-top: 2px solid var(--line-2);
    box-shadow: 0 -6px 20px rgba(0,0,0,.55);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-tabbar__btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
    border-radius: 11px; padding: 13px 8px; text-decoration: none; border: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,.3);
    transition: transform .12s ease;
  }
  .mobile-tabbar__btn:active { transform: scale(.96); }
  .mobile-tabbar__btn:first-child {
    background: linear-gradient(180deg, var(--brand-strong), var(--brand)); color: #04140d;
  }
  .mobile-tabbar__btn--select {
    background: linear-gradient(180deg, var(--accent-strong), var(--accent)); color: #1a1300; padding: 0;
  }
  .mobile-tabbar__btn--select select {
    appearance: none; -webkit-appearance: none; background: none; border: 0; color: inherit;
    font-family: inherit; font-weight: 700; font-size: 13.5px; width: 100%; height: 100%;
    padding: 13px 8px; text-align: center; text-align-last: center;
  }
  .mobile-tabbar__icon { font-size: 16px; line-height: 1; }
}
@media (max-width: 640px) {
  .news-grid, .pane.is-active { grid-template-columns: 1fr; }
  .col-side { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__main .news-card__title { font-size: 21px; }
  .hero__main .news-card__body { padding: 20px; }
  .section-head h1, .section-head h2 { font-size: 20px; }
  .article__head h1 { font-size: 24px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .search-big { flex-direction: column; }
  .search-big .btn { width: 100%; justify-content: center; }
}
@media (max-width: 460px) {
  .hero__side .news-card { flex-direction: column; }
  .hero__side .news-card__media { width: 100%; aspect-ratio: 16/9; }
  .brand__name { font-size: 18px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ซ่อนจากสายตาแต่ Google/โปรแกรมอ่านหน้าจอยังอ่านได้ (ใช้กับ h1 หน้าแรก) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===========================================================
   หน้าแมตช์ (match.php) — สกอร์สด / เหตุการณ์ / สถิติ / ไลน์อัพ / คะแนนนักเตะ
   =========================================================== */
.match-page { max-width: 980px; margin: 0 auto; }

.mv-head {
  position: relative; text-align: center; padding: 22px 18px 18px; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(23,193,104,.22), transparent 60%),
    linear-gradient(180deg, #0c2418, #08150e);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  overflow: hidden;
}
.mv-head::before { /* เส้นกลางสนามจาง ๆ */
  content: ''; position: absolute; left: 50%; top: -40%; bottom: -40%; width: 1px; background: rgba(255,255,255,.05);
}
.mv-head--live { border-color: rgba(255,71,87,.45); }
.mv-league { display: inline-block; font-size: 12.5px; color: var(--on-dark-muted); letter-spacing: .02em; margin-bottom: 14px; }
.mv-league:hover { color: var(--brand-strong); }
.mv-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; position: relative; }
.mv-team { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.mv-team b { font-family: var(--font-display); font-size: clamp(15px, 2.6vw, 20px); font-weight: 600; line-height: 1.25; }
.mv-team .crest { transition: transform .25s; }
.mv-team:hover .crest { transform: scale(1.06); }
.mv-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 120px; }
.mv-score { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 9vw, 68px); line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.mv-score__dash { margin: 0 .18em; color: var(--muted); font-weight: 400; }
.mv-score__vs { font-size: .5em; color: var(--muted); }
.mv-score.is-flash { animation: mv-goal 1.4s ease-out; }
@keyframes mv-goal { 0% { transform: scale(1.35); color: var(--accent); text-shadow: 0 0 28px rgba(244,196,48,.8); } 100% { transform: none; } }
.mv-state { font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: var(--chip-dark); color: var(--ink-soft); }
.mv-state--live { background: var(--live); color: #fff; animation: mv-pulse 1.8s infinite; }
.mv-state--fin  { background: rgba(255,255,255,.1); color: var(--ink); }
.mv-state--sch  { background: var(--brand-050); color: var(--brand-strong); }
.mv-state--off  { background: rgba(244,196,48,.16); color: var(--accent-strong); }
@keyframes mv-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,71,87,.55); } 50% { box-shadow: 0 0 0 7px rgba(255,71,87,0); } }
.mv-pen { font-size: 12.5px; color: var(--ink-soft); }
.mv-scorers { display: grid; grid-template-columns: 1fr 30px 1fr; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.mv-scorers__col--home { text-align: right; } .mv-scorers__col--away { text-align: left; }
.mv-scorers i { font-style: normal; color: var(--muted); }
.mv-scorers__ball { text-align: center; opacity: .7; }
.mv-meta { margin-top: 14px; font-size: 12.5px; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.mv-meta span { opacity: .5; }

.mv-live { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.mv-live[hidden] { display: none; }
.mv-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: mv-pulse 2s infinite; }
.mv-live.is-off .mv-live__dot { background: var(--muted); animation: none; }

.mv-tabs { display: flex; gap: 4px; margin: 18px 0 14px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; position: sticky; top: 8px; z-index: 5; overflow-x: auto; }
.mv-tabs button { flex: 1; white-space: nowrap; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.mv-tabs button:hover { color: var(--ink); }
.mv-tabs button.is-active { background: var(--chip-dark); color: var(--brand-strong); box-shadow: inset 0 0 0 1px var(--line-2); }
.match-page.is-js .mv-panel { display: none; }
.match-page.is-js .mv-panel.is-active { display: block; animation: th-fade .25s ease-out; }
.match-page:not(.is-js) .mv-panel { margin-bottom: 26px; }
.match-page:not(.is-js) .mv-tabs { display: none; }

.mv-empty { text-align: center; padding: 46px 16px; color: var(--muted); background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r); line-height: 1.8; }
.mv-empty small { font-size: 12.5px; }

/* เหตุการณ์ */
.mv-tl { list-style: none; margin: 0; padding: 6px 0; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.mv-tl::before { content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); transform: translateX(-1px); }
.mv-tl__row { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; padding: 8px 12px; position: relative; }
.mv-tl__row--home .mv-tl__cell { text-align: right; padding-right: 12px; }
.mv-tl__row--away .mv-tl__cell { text-align: left; padding-left: 12px; }
.mv-tl__cell { display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.mv-tl__row--home .mv-tl__cell { align-items: flex-end; } .mv-tl__row--away .mv-tl__cell { align-items: flex-start; }
.mv-tl__cell small { color: var(--muted); font-size: 12px; }
.mv-tl__in { color: var(--win); } .mv-tl__out { color: var(--muted); font-size: 13px; }
.mv-tl__min { display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 1; }
.mv-tl__min span { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--card); padding: 0 6px; }
.mv-tl__min i { font-style: normal; font-size: 18px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 50%; }
.mv-tl--goal .mv-tl__min i { background: rgba(23,193,104,.18); border-color: var(--brand); }
.mv-tl--goal .mv-tl__cell b { color: var(--brand-strong); }
.mv-tl--red .mv-tl__min i { border-color: var(--live); }
.mv-tl__row:first-child { animation: th-fade .5s ease-out; }

/* สถิติ */
.mv-stats { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 8px; }
.mv-stats__teams { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 600; margin-bottom: 14px; gap: 10px; }
.mv-stats__teams span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mv-stat { margin-bottom: 14px; }
.mv-stat__top { display: grid; grid-template-columns: 70px 1fr 70px; align-items: baseline; font-size: 13px; }
.mv-stat__top span { text-align: center; color: var(--ink-soft); }
.mv-stat__top b { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mv-stat__top b:last-child { text-align: right; }
.mv-stat__top b.is-lead { color: var(--ink); }
.mv-stat__bar { display: flex; gap: 4px; height: 7px; margin-top: 5px; }
.mv-stat__bar i { display: block; height: 100%; border-radius: 99px; background: var(--card-2); width: var(--w); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.mv-stat__bar i.h { transform-origin: right; } .mv-stat__bar i.a { transform-origin: left; }
.mv-stat__bar i.is-lead.h { background: var(--brand); }
.mv-stat__bar i.is-lead.a { background: var(--accent); }
.mv-stat__bar i:not(.is-lead) { background: #3a423e; }
.mv-stat__bar i.h:not(.is-lead):only-child, .mv-stat__bar i.a:not(.is-lead):only-child { background: #3a423e; }

/* ไลน์อัพ */
.mv-lu { display: grid; gap: 10px; }
.mv-lu__team { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.mv-lu__team b { font-family: var(--font-display); font-size: 16px; }
.mv-lu__team span { margin-left: auto; font-family: var(--font-display); font-weight: 700; color: var(--brand-strong); letter-spacing: .06em; }
.mv-lu__team small { flex-basis: 100%; color: var(--muted); font-size: 12px; margin-top: -4px; padding-left: 40px; }
.mv-pitch {
  position: relative; width: 100%; aspect-ratio: 68 / 100; max-height: 880px; border-radius: var(--r-lg); overflow: hidden;
  background: repeating-linear-gradient(180deg, #1c6a3d 0 9.09%, #1f7443 9.09% 18.18%);
  border: 2px solid rgba(255,255,255,.35); box-shadow: var(--shadow);
}
.mv-pitch__lines::before, .mv-pitch__lines::after { content: ''; position: absolute; pointer-events: none; border: 2px solid rgba(255,255,255,.4); }
.mv-pitch__lines::before { left: 0; right: 0; top: 50%; height: 0; border-width: 2px 0 0; }
.mv-pitch__lines::after { left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.mv-pitch::before, .mv-pitch::after { content: ''; position: absolute; left: 22%; right: 22%; height: 14%; border: 2px solid rgba(255,255,255,.4); pointer-events: none; }
.mv-pitch::before { top: -2px; border-top: 0; } .mv-pitch::after { bottom: -2px; border-bottom: 0; }
.mv-dot { position: absolute; transform: translate(-50%, -50%); width: 0; display: flex; flex-direction: column; align-items: center; transition: transform .2s; }
.mv-dot:hover { transform: translate(-50%, -50%) scale(1.12); z-index: 3; }
.mv-dot__no {
  width: clamp(26px, 5.4vw, 40px); height: clamp(26px, 5.4vw, 40px); display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(11px, 2.2vw, 15px); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.45);
}
.mv-dot--home .mv-dot__no { background: #0e3a24; color: #fff; }
.mv-dot--away .mv-dot__no { background: #f4c430; color: #1a1300; }
.mv-dot__nm { margin-top: 3px; font-size: clamp(9.5px, 1.9vw, 12px); font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.mv-dot__mk { position: absolute; top: -9px; right: -26px; font-size: 11px; white-space: nowrap; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.mv-dot__rt { position: absolute; top: -8px; left: -30px; }
.mv-dot__rt, .mv-pl__t .mv-dot__rt, .mv-subs .mv-dot__rt, .mv-mvp .mv-dot__rt {
  font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; color: #fff; background: #5b6570; font-variant-numeric: tabular-nums;
}
.mv-pl__t .mv-dot__rt, .mv-subs .mv-dot__rt, .mv-mvp .mv-dot__rt { position: static; }
.r-top { background: #1aa85a !important; box-shadow: 0 0 0 2px rgba(47,224,131,.35); }
.r-good { background: #2f8f5b !important; } .r-mid { background: #8b7a2b !important; } .r-low { background: #b34550 !important; }
.mv-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mv-subs__col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.mv-subs__col h4 { margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); }
.mv-subs__col ul { list-style: none; margin: 0; padding: 0; }
.mv-subs__col li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.mv-subs__col li:first-child { border-top: 0; }
.mv-subs__no { width: 24px; text-align: center; font-family: var(--font-display); color: var(--muted); }
.mv-subs__nm { flex: 1; min-width: 0; } .mv-subs__pos { color: var(--muted); font-size: 12px; }

/* คะแนนนักเตะ */
.mv-mvp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; border-radius: var(--r); background: linear-gradient(90deg, rgba(244,196,48,.16), rgba(244,196,48,.04)); border: 1px solid rgba(244,196,48,.35); }
.mv-mvp__tag { font-size: 12.5px; color: var(--accent-strong); font-weight: 600; flex-basis: 100%; }
.mv-mvp img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--card-2); }
.mv-mvp b { font-family: var(--font-display); font-size: 17px; } .mv-mvp small { color: var(--muted); }
.mv-pl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mv-pl__team { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 6px 6px; min-width: 0; }
.mv-pl__team h4 { display: flex; align-items: center; gap: 8px; margin: 0 8px 8px; font-size: 14px; }
.mv-pl__scroll { overflow-x: auto; }
.mv-pl__t { width: 100%; border-collapse: collapse; font-size: 13px; }
.mv-pl__t th { text-align: center; color: var(--muted); font-weight: 500; font-size: 11.5px; padding: 6px 4px; white-space: nowrap; }
.mv-pl__t th:first-child, .mv-pl__nm { text-align: left; }
.mv-pl__t td { text-align: center; padding: 6px 4px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mv-pl__nm { white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.mv-pl__no { display: inline-block; width: 22px; color: var(--muted); font-size: 12px; }
.mv-credit { margin-top: 22px; font-size: 12px; text-align: center; }

@media (max-width: 760px) {
  .mv-board { gap: 4px; } .mv-mid { min-width: 96px; }
  .mv-team .crest { width: 56px !important; height: 56px !important; }
  .mv-tl__row { grid-template-columns: 1fr 54px 1fr; padding: 8px 4px; }
  .mv-subs, .mv-pl { grid-template-columns: 1fr; }
  .mv-stat__top { grid-template-columns: 56px 1fr 56px; }
  .mv-dot__mk { right: -22px; } .mv-dot__rt { left: -24px; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-state--live, .mv-live__dot, .mv-score.is-flash, .match-page.is-js .mv-panel.is-active { animation: none; }
  .mv-stat__bar i { transition: none; }
}

/* ลิงก์ไปหน้าแมตช์จากแถวผลบอล/ตัววิ่ง */
.fx__more { margin-left: auto; font-size: 12px; color: var(--brand-strong); white-space: nowrap; }
.fx__more:hover { text-decoration: underline; }
.mv-stat__bar i { animation: mv-grow .8s cubic-bezier(.2,.8,.2,1); }
@keyframes mv-grow { from { width: 0; } }
a.match--link { color: inherit; text-decoration: none; }
a.match--link:hover { background: rgba(255,255,255,.05); }
@media (max-width: 480px) { .mv-tabs button { padding: 9px 11px; font-size: 13px; } }

/* แท็กท้ายข่าว / หน้า tag.php */
.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 6px; font-size: 13px; color: var(--muted); }
.tagchip { display: inline-block; padding: 4px 13px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-soft); font-size: 13px; transition: background .15s, color .15s, border-color .15s; }
.tagchip::before { content: '#'; color: var(--brand-strong); margin-right: 2px; }
.tagchip:hover { background: var(--brand-050); border-color: var(--brand); color: var(--brand-strong); }

/* แผนผังเว็บไซต์ (site-map.php) */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sitemap-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.sitemap-box h2 { font-size: 15px; margin: 0 0 10px; color: var(--brand-strong); }
.sitemap-box ul { list-style: none; margin: 0; padding: 0; }
.sitemap-box li { padding: 4px 0; font-size: 14px; border-top: 1px solid var(--line); }
.sitemap-box li:first-child { border-top: 0; }
.sitemap-box a { color: var(--ink-soft); } .sitemap-box a:hover { color: var(--brand-strong); }
.sitemap-box__sub { display: block; font-size: 12px; color: var(--muted); } .sitemap-box__sub a { color: var(--muted); }
.sitemap-box--wide { margin-top: 16px; }
.sitemap-news { columns: 2 320px; column-gap: 28px; } .sitemap-news li { break-inside: avoid; }
