:root {
  --black: #0a0a0a;
  --black2: #111;
  --gold: #ffffff;
  --gold2: #e0e0e0;
  --muted: #aaaaaa;
  --card: #151515;
  --line: #2a2a2a;
  --radius: 18px;
  --pad: clamp(14px, 2.5vw, 20px);
  --gap: clamp(10px, 2vw, 16px);
  --heroPad: clamp(24px, 4vw, 44px);
  --cardPad: clamp(16px, 3vw, 22px);
  --headerH: 86px;
  /* desktop/tablet */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Screen reader only — visible to crawlers & assistive tech */
.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;
}

body {
  font-family: "Kanit", sans-serif;
  background: url('../images/bgfootball.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--gold);
  min-height: 100vh;
  padding-top: calc(var(--headerH) + env(safe-area-inset-top));
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.78) 0%, rgba(8, 8, 8, 0.82) 100%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .03) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.wrap {
  max-width: 1100px;
  margin: auto;
  padding: var(--pad);
  position: relative;
}

/* ===== Sticky Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: var(--headerH);

  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;

  padding: 0 var(--pad);

  z-index: 60;
}

header::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--headerH) + env(safe-area-inset-top));
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, .08);
  z-index: -1;
}

.logo {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  font-family: "Kanit", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: .03em;
  flex-shrink: 0;
  line-height: 1;
}

.logo-football {
  background: linear-gradient(135deg, #cda434 0%, #f5e27a 40%, #c8981e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-th {
  background: linear-gradient(135deg, #cda434 0%, #f5e27a 40%, #c8981e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile-only elements — hidden on desktop */
.mob-burger { display: none; }
.mob-nav { display: none; }

.header-btns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
  min-width: 220px;
}

.btn {
  padding: clamp(9px, 2.2vw, 11px) clamp(12px, 3vw, 18px);
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(12px, 2.8vw, 15px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: .02em;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:active {
  opacity: 0.8;
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 20px rgba(255, 255, 255, .12);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000;
  box-shadow: 0 2px 12px rgba(255, 255, 255, .25);
}

.btn-gold:hover {
  box-shadow: 0 4px 20px rgba(255, 255, 255, .35);
}

.btn-embed {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .03em;
}

.btn-embed:hover {
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 20px rgba(255, 255, 255, .15);
  opacity: 1;
}

.btn-line-chat {
  background: linear-gradient(135deg, #00c900, #21ff00);
  color: #000;
  box-shadow: 0 2px 12px rgba(33, 255, 0, .2);
}

.hero {
  text-align: center;
  padding: clamp(36px, 6vw, 64px) var(--pad) clamp(28px, 5vw, 48px);
  background: linear-gradient(180deg, rgba(20, 20, 20, .6) 0%, rgba(21, 21, 21, .95) 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(205, 164, 52, .07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  margin-bottom: clamp(10px, 2vw, 20px);
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-size: clamp(36px, 7vw, 56px);
  justify-content: center;
  letter-spacing: .04em;
  filter: drop-shadow(0 2px 16px rgba(205, 164, 52, .3));
}

.hero h1 {
  font-size: clamp(18px, 3.8vw, 28px);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  color: #fff;
  -webkit-text-fill-color: unset;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(13px, 2.8vw, 16px);
  font-weight: 400;
  max-width: 50ch;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.hero-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(205, 164, 52, .5), transparent);
  margin: clamp(12px, 2vw, 20px) auto;
  position: relative;
  z-index: 1;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 18px;
  font-size: clamp(11px, 2.5vw, 13px);
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  letter-spacing: .02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: clamp(12px, 2vw, 18px);
  margin-top: 12px;
}

.grid-card {
  background: radial-gradient(120% 140% at 50% 0%,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* padding: clamp(16px, 2.6vw, 22px); */
  text-align: center;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, opacity 0.15s;
  min-height: 118px;
  display: grid;
  place-items: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .grid-card:hover {
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
  }
}

.grid-card:active {
  transform: translateY(0);
  opacity: 0.92;
}

.grid-card>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.grid-ico {
  width: clamp(44px, 5vw, 62px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.18));
  opacity: 0.95;
}

.grid-title {
  color: var(--gold);
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  :root {
    --headerH: 72px;
  }

  header {
    justify-content: center;
    position: fixed;
  }

  .header-btns {
    display: none;
  }

  .logo {
    font-size: 32px;
  }

  /* ===== Mobile Hamburger ===== */
  .mob-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 7px;
    background: none;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    cursor: pointer;
    position: absolute;
    right: var(--pad);
    top: 50%;
    transform: translateY(-50%);
    z-index: 62;
    transition: border-color .2s;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-burger:hover {
    border-color: rgba(255,255,255,.35);
  }

  .mob-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
    transform-origin: center;
  }

  .mob-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mob-burger.open span:nth-child(2) {
    opacity: 0;
  }
  .mob-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ===== Mobile Slide Nav ===== */
  .mob-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }

  .mob-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mob-nav__list {
    position: absolute;
    top: var(--headerH);
    right: 0;
    width: 220px;
    max-height: calc(100vh - var(--headerH));
    overflow-y: auto;
    background: rgba(14,14,14,.98);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 0 16px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.32,1,.23,1);
    box-shadow: -8px 0 30px rgba(0,0,0,.5);
  }

  .mob-nav.open .mob-nav__list {
    transform: translateX(0);
  }

  .mob-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: background .15s, color .15s;
  }

  .mob-nav__item:hover,
  .mob-nav__item:active {
    background: rgba(255,255,255,.06);
    color: #fff;
  }

  .mob-nav__item--hl {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-weight: 700;
  }

  .mob-nav__item--hl:hover {
    background: rgba(255,255,255,.1);
  }

  .mob-nav__ico {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 10px;
  }

  .grid-card {
    min-height: 108px;
    padding: 16px 14px;
  }

  .grid-ico {
    width: 44px;
  }

  .grid-title {
    font-size: 13px;
  }

  .logo-link {
    display: inline-flex;
  }

  .logo {
    display: block;
  }

  /* ===== Mobile Spacing — จัดระยะห่างให้สวยงาม ===== */

  /* Wrap padding เพิ่มซ้ายขวา */
  .wrap {
    padding: 16px;
  }

  /* Announce bar — เว้นบน-ล่าง */
  .announce-bar {
    margin-top: 6px;
    margin-bottom: 16px;
  }

  /* Hero — padding สบายตา */
  .hero {
    padding: 32px 18px 28px;
    margin-top: 8px;
    margin-bottom: 4px;
  }
  .hero-brand {
    font-size: clamp(32px, 8vw, 48px);
  }
  .hero h1 {
    font-size: clamp(16px, 4.2vw, 22px);
    margin-bottom: 8px;
  }
  .hero-sub {
    font-size: 13px;
    line-height: 1.65;
  }
  .hero-badges {
    gap: 8px;
    margin-top: 4px;
  }
  .hero-badge {
    padding: 6px 14px;
    font-size: 11px;
  }

  /* Livescore — ช่องว่างระหว่าง section */
  .livescore-section {
    margin-top: 8px;
  }
  .livescore-wrap {
    padding: 12px 0;
    margin-top: 8px;
  }
  .ls-collapsible {
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 14px;
  }
  .ls-league-section {
    margin-bottom: 10px;
  }

  /* Articles — เว้นจาก livescore */
  .articles {
    margin-top: 28px;
  }
  .articles-header {
    margin-bottom: 18px;
  }
  .article-list {
    gap: 12px;
  }
  .article-card {
    padding: 16px;
  }

  /* FAQ */
  .faq-section {
    padding: 28px 0 16px;
  }

  /* Footer — หายใจสบาย */
  .site-footer {
    margin-top: 32px;
    padding: 32px 16px 18px;
  }
  .footer-section {
    margin-bottom: 28px;
  }

  /* Promo slider */
  .promo-slider {
    margin-top: 16px;
  }
}

/* Sticky CTA - disabled (button is in header) */
.sticky-cta {
  display: none;
}

footer {
  text-align: center;
  margin-top: clamp(24px, 4vw, 36px);
  color: #666;
  font-size: 13px;
}

/* ===== Articles ===== */
.articles {
  margin-top: clamp(24px, 3.5vw, 36px);
}

.articles-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.articles-header::before,
.articles-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25));
}

.articles-header::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .25), transparent);
}

.articles-title {
  font-size: clamp(16px, 4vw, 21px);
  white-space: nowrap;
  color: var(--gold);
}

.articles-title span {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85em;
}

.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vw, 18px);
  max-width: 100%;
}

@media (min-width: 700px) {
  .article-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
  }

  .article-card:first-child {
    grid-column: 1 / -1;
  }
}

.article-card {
  background: linear-gradient(160deg, rgba(22, 22, 22, .8) 0%, var(--card) 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 22px);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(4px);
}

@media (hover: hover) and (pointer: fine) {
  .article-card:hover {
    border-color: rgba(255, 255, 255, .4);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, .3);
    transform: translateY(-3px);
  }
}

.article-card:active {
  transform: translateY(0);
}

/* ===== Article Expand/Collapse ===== */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold2);
  letter-spacing: 0.3px;
}

.read-more .arrow {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 10px;
}

.article-card.open .arrow {
  transform: rotate(180deg);
}

.article-full {
  display: none;
  margin-top: 14px;
  font-size: clamp(12px, 3vw, 13px);
  color: var(--muted);
  line-height: 1.85;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.article-full p {
  margin-bottom: 8px;
}

.article-full h4 {
  color: var(--gold2);
  font-size: 13px;
  margin: 14px 0 6px;
  letter-spacing: 0.5px;
}

.article-full ul {
  padding-left: 0;
  margin: 6px 0;
  list-style: none;
}

.article-full ul li {
  margin-bottom: 5px;
  padding-left: 16px;
  position: relative;
}

.article-full ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.article-card.open>p,
.article-card.open .read-more {
  display: none !important;
}

.article-full a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.article-full a:hover {
  text-decoration: underline;
}


.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-link:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 4px;
}


.btn-livescore {
position: relative;
background: linear-gradient(135deg, #b91c1c 0%, #ef4444 45%, #b91c1c 100%);
background-size: 200% 100%;
color: #fff;
font-weight: 800;
font-size: clamp(14px, 3vw, 17px);
letter-spacing: 1.5px;
display: inline-flex;
align-items: center;
gap: 10px;
border: none;
border-radius: 6px;
padding: 14px 32px;
box-shadow: 0 0 0 1px rgba(239, 68, 68, .4),
0 4px 20px rgba(185, 28, 28, .55),
0 0 40px rgba(239, 68, 68, .18);
cursor: pointer;
transition: background-position .4s ease,
box-shadow .3s ease,
transform .15s;
overflow: hidden;
animation: ls-btn-pulse 2.4s ease-in-out infinite;
}

@keyframes ls-btn-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(239, 68, 68, .4), 0 4px 20px rgba(185, 28, 28, .55), 0 0 40px rgba(239, 68, 68, .18);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(239, 68, 68, .6), 0 6px 28px rgba(185, 28, 28, .7), 0 0 60px rgba(239, 68, 68, .35);
  }
}

.btn-livescore::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .12) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: ls-btn-shine 2.8s ease-in-out infinite;
}

@keyframes ls-btn-shine {
  0% {
    transform: translateX(-100%);
  }

  30% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.btn-livescore:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, .6),
    0 8px 32px rgba(185, 28, 28, .7),
    0 0 60px rgba(239, 68, 68, .3);
}

.btn-livescore:active {
  transform: translateY(0);
}

.ls-btn-icon {
  font-size: 18px;
  animation: ls-spin 4s linear infinite;
  display: inline-block;
}

@keyframes ls-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.ls-btn-text {
  position: relative;
  z-index: 1;
}

.btn-livescore .live-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

@media (max-width: 599px) {

  /* Mobile livescore — ตารางครบทุก column ไม่ scroll */
  .ls-table-wrapper {
    overflow-x: hidden !important;
  }

  .ls-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
    display: table !important;
  }

  .ls-table thead {
    display: table-header-group !important;
  }

  .ls-table tbody {
    display: table-row-group !important;
  }

  .ls-table tr {
    display: table-row !important;
  }

  .ls-table td,
  .ls-table th {
    display: table-cell !important;
  }

  /* column widths บนมือถือ */
  .ls-table th:nth-child(1),
  .ls-table td:nth-child(1) {
    width: 13% !important;
  }

  .ls-table th:nth-child(2),
  .ls-table td:nth-child(2) {
    width: 20% !important;
    text-align: center !important;
  }

  .ls-table th:nth-child(3),
  .ls-table td:nth-child(3) {
    width: 18% !important;
    text-align: center !important;
  }

  .ls-table th:nth-child(4),
  .ls-table td:nth-child(4) {
    width: 22% !important;
    text-align: center !important;
  }

  .ls-table th:nth-child(5),
  .ls-table td:nth-child(5) {
    width: 13% !important;
    text-align: center !important;
  }

  .ls-table th:nth-child(6),
  .ls-table td:nth-child(6) {
    width: 14% !important;
    text-align: center !important;
  }

  .ls-table th:nth-child(7),
  .ls-table td:nth-child(7) {
    display: none !important;
  }

  .ls-table thead th,
  .ls-table td {
    padding: 6px 3px !important;
    font-size: 10.5px !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
  }

  .ls-flag-img {
    height: 10px !important;
    margin: 0 1px !important;
  }

  .ls-team-img {
    display: none !important;
  }

  .ls-arrow-img {
    height: 6px !important;
  }

  .ls-live-badge {
    font-size: 9px !important;
  }

  .ls-score-cell {
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  .ls-league-header {
    font-size: 11px !important;
    padding: 7px 8px !important;
  }

  .ls-odd-item {
    font-size: 10px !important;
    gap: 1px !important;
  }

  .th-short {
    display: inline !important;
  }

  .th-full {
    display: none !important;
  }
}

/* Header short/full labels */
.th-short {
  display: none;
}

.th-full {
  display: inline;
}

.livescore-wrap {
  padding: clamp(14px, 2.5vw, 22px) 0;
  margin-top: clamp(12px, 2vw, 20px);
}

/* Collapsible day header */
.ls-collapsible {
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: var(--gold);
  font-family: "Kanit", sans-serif;
  font-size: clamp(14px, 3.2vw, 17px);
  font-weight: 700;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.ls-collapsible::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}

.ls-collapsible:hover {
  background: rgba(255, 255, 255, .18);
}

.ls-collapsible::after {
  content: "▾";
  font-size: 16px;
  transition: transform 0.25s;
}

.ls-collapsible.collapsed::after {
  transform: rotate(-90deg);
}

.ls-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.ls-content.collapsed {
  max-height: 0 !important;
}

/* League block */
.ls-league-section {
  background: linear-gradient(180deg, #161616 0%, #111 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
  transition: border-color .25s;
}

.ls-league-section:hover {
  border-color: rgba(255, 255, 255, .15);
}

.ls-league-header {
  background: linear-gradient(90deg, rgba(20, 20, 20, .6), #111);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: clamp(13px, 2.8vw, 15px);
}

.ls-league-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Table wrapper */
.ls-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .3) transparent;
}

.ls-table-wrapper::-webkit-scrollbar {
  height: 5px;
}

.ls-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.ls-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .3);
  border-radius: 20px;
}

.ls-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  table-layout: fixed;
  font-size: clamp(11px, 2.4vw, 13px);
}

.ls-table thead th {
  background: rgba(255, 255, 255, .07);
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .5px;
}

.ls-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: background 0.15s;
}

.ls-table tbody tr:hover {
  background: rgba(255, 255, 255, .05);
}

.ls-table td {
  padding: 9px 10px;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* Column widths */
.ls-table th:nth-child(1),
.ls-table td:nth-child(1) {
  width: 13%;
}

.ls-table th:nth-child(2),
.ls-table td:nth-child(2) {
  width: 20%;
  text-align: center;
}

.ls-table th:nth-child(3),
.ls-table td:nth-child(3) {
  width: 10%;
  text-align: center;
}

.ls-table th:nth-child(4),
.ls-table td:nth-child(4) {
  width: 20%;
  text-align: center;
}

.ls-table th:nth-child(5),
.ls-table td:nth-child(5) {
  width: 8%;
  text-align: center;
}

.ls-table th:nth-child(6),
.ls-table td:nth-child(6) {
  width: 8%;
  text-align: center;
}

.ls-table th:nth-child(7),
.ls-table td:nth-child(7) {
  width: 21%;
}

/* Specific cells */
.ls-live-badge {
  color: #e74c3c;
  font-weight: 800;
  font-size: 11px;
  animation: blink 1s infinite;
  background: rgba(231, 76, 60, .1);
  padding: 1px 6px;
  border-radius: 4px;
}

.ls-score-cell {
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
  position: relative;
  font-size: 14px;
  transition: all .2s;
}

.ls-score-cell:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(255, 255, 255, .4);
}

.ls-flag-img {
  height: 14px;
  vertical-align: middle;
  margin: 0 3px;
}

.ls-team-img {
  height: 15px;
  vertical-align: middle;
  margin: 0 3px;
}

.ls-arrow-img {
  height: 7px;
  vertical-align: middle;
  margin: 0 2px;
}

.ls-vs {
  color: #ccc;
  font-weight: 700;
}

.ls-odds-cell {
  text-align: center;
}

.ls-odd-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.4;
}

/* Score popup */
.ls-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

.ls-popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9001;
  background: linear-gradient(180deg, #1e1e1e, #111);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 30px rgba(255, 255, 255, .05);
  width: min(95vw, 460px);
  max-height: 80vh;
  overflow-y: auto;
  pointer-events: auto;
  animation: modalFade .2s ease;
}

.ls-popup-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  position: sticky;
  top: 0;
  background: #1c1c1c;
  z-index: 2;
}

.ls-popup-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 8px;
  transition: color .2s;
}

.ls-popup-close:hover {
  color: var(--gold);
}

.ls-popup-body {
  padding: 12px 14px;
}

.ls-popup table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: rgba(255, 255, 255, .82);
}

.ls-popup th {
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
  padding: 6px 8px;
  border: 1px solid var(--line);
  font-size: 11px;
}

.ls-popup td {
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, .06);
  text-align: center;
  word-break: break-word;
}

.ls-popup td:nth-child(2),
.ls-popup td:nth-child(4) {
  text-align: left;
}

.ls-popup img {
  height: 14px;
  vertical-align: middle;
}

.ls-empty {
  text-align: center;
  padding: 30px 14px;
  color: var(--muted);
  font-size: 13px;
}



/* ===== Scroll to Top Button ===== */
#scrollTop {
  position: fixed;
  right: clamp(14px, 4vw, 24px);
  bottom: calc(clamp(14px, 4vw, 24px) + env(safe-area-inset-bottom));
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(15, 15, 15, .88);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}

#scrollTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTop:hover {
  background: rgba(255, 255, 255, .15);
  border-color: var(--gold);
}

/* บนมือถือ */
@media (max-width: 599px) {
  #scrollTop {
    bottom: calc(14px + env(safe-area-inset-bottom));
    right: 14px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}
/* ===================================================
   Promo Slider — auto scroll right → left
   =================================================== */
.promo-slider {
  width: 100%;
  overflow: hidden;
  margin: 12px 0 0;
  border-radius: 0;
  position: relative;
}

/* Fade edges — ซ้าย+ขวา fade เบาๆ */
.promo-slider::before,
.promo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.promo-slider::before {
  left: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.75), transparent);
}

.promo-slider::after {
  right: 0;
  background: linear-gradient(to left, rgba(10,10,10,0.75), transparent);
}

/*
  ใช้ gap: 0 + width fixed บน .promo-item
  เพื่อให้ -50% loop seamless สมบูรณ์
  16 items × 144px = 2304px → -50% = -1152px (ตรงกลางพอดี)
*/
.promo-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: promo-scroll 30s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.promo-slider:hover .promo-track {
  animation-play-state: paused;
}

.promo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
  flex-shrink: 0;
  width: 110px;   /* ลดจาก 144px */
  height: 52px;   /* ลดจาก 72px */
  padding: 4px 6px;
  box-sizing: border-box;
}

.promo-track img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes promo-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 600px) {
  .promo-item {
    width: 84px;
    height: 40px;
    padding: 3px 5px;
  }
}

.promo-btn {
  background: transparent;
  border: 0;
  padding: 0;
}

.promo-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

/* ===================================================
   SITE FOOTER
   =================================================== */
.site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 20, .15) 100%);
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 40px;
  padding: 48px clamp(16px, 2vw, 32px) 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
}

/* Section spacing */
.footer-section {
  max-width: 100%;
  margin: 0 auto 36px;
}

/* Gold heading - matches rूप image style */
.footer-heading {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 6px auto 0;
  border-radius: 2px;
}

/* About text */
.footer-desc {
  font-size: clamp(.8rem, 1.6vw, .95rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, .72);
  text-align: center;
}

.footer-desc strong {
  color: var(--gold);
  font-weight: 700;
}

/* Payment section sub-text */
.footer-payment-sub {
  font-size: clamp(.8rem, 1.5vw, .9rem);
  color: rgba(255, 255, 255, .6);
  margin-bottom: 22px;
  line-height: 1.7;
}

/* Banks image */
.footer-banks {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-banks-img {
  max-width: 60%;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5));
  transition: filter .3s;
}

.footer-banks-img:hover {
  filter: drop-shadow(0 4px 18px rgba(255, 255, 255, .25));
}

/* Copyright bar */
.footer-copy {
  font-size: .78rem;
  color: rgba(255, 255, 255, .3);
  letter-spacing: .06em;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  margin-top: 8px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 0;
  margin: 0;
}

.footer-link-list a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}

.footer-link-list a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 36px 16px 20px;
  }

  .footer-heading {
    font-size: 1rem;
  }
}

/* ===================================================
   FAQ SECTION
   =================================================== */
.faq-section {
  padding: 40px 0 20px;
}

.faq-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: .03em;
}

.faq-title span {
  color: var(--gold2);
}

/* 2-col grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-items: start;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card */
.faq-item {
  background: #1e1e1e;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}

.faq-item.open,
.faq-item:hover {
  border-color: rgba(255, 255, 255, .35);
}

/* Question button */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 14px 18px;
  color: rgba(255, 255, 255, .88);
  font-family: "Kanit", sans-serif;
  font-size: clamp(.82rem, 1.5vw, .95rem);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}

.faq-q:hover,
.faq-item.open .faq-q {
  color: var(--gold);
}

/* Chevron icon */
.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  opacity: .7;
  transition: transform .25s, opacity .2s;
}

.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: right center;
}

.faq-chevron::before {
  transform: translate(-60%, -50%) rotate(-40deg);
}

.faq-chevron::after {
  transform: translate(-40%, -50%) rotate(40deg);
}

/* Rotate chevron when open */
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Answer */
.faq-a {
  padding: 0 18px 14px 48px;
  font-size: clamp(.8rem, 1.4vw, .88rem);
  color: rgba(255, 255, 255, .6);
  line-height: 1.75;
}

/* Responsive */
@media (max-width: 680px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Featured Article Card ===== */
.article-card--featured {
  background: linear-gradient(135deg, rgba(25, 25, 25, .9) 0%, rgba(21, 21, 21, .95) 60%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(255, 255, 255, .04);
}

.article-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 10%, var(--gold) 50%, transparent 90%);
}

.article-card--featured::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%);
  pointer-events: none;
}

.article-card--featured h3 {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.article-card--featured .article-tag {
  background: var(--gold);
  color: #000;
}

/* ===== Article Meta / Icon / Tag ===== */
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.article-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.article-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 2px 10px;
  text-transform: uppercase;
}

.article-card h3 {
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 700;
  color: var(--gold2);
  line-height: 1.45;
  margin-bottom: 8px;
}

.article-card>p {
  font-size: clamp(11px, 1.3vw, 13px);
  color: rgba(255, 255, 255, .55);
  line-height: 1.7;
  flex: 1; /* ดัน read-more ลงล่างสุดเสมอ */
}

/* ===== Articles Header Divider ===== */
.articles-divider {
  color: var(--line);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

/* ===== Article Tabs ===== */
.articles-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Kanit", sans-serif;
  font-size: clamp(16px, 4vw, 21px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  padding: 4px 0;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}

.articles-tab span {
  color: inherit;
  font-weight: 400;
  font-size: 0.85em;
}

.articles-tab::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 3px;
  transition: width 0.25s;
}

.articles-tab.active {
  color: var(--gold);
}

.articles-tab.active::after {
  width: 100%;
}

.articles-tab:hover {
  color: var(--gold2);
}

/* ===== Livescore Skeleton Loader ===== */
.ls-skeleton {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ls-skeleton-row {
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: ls-shimmer 1.2s infinite;
}

.ls-skeleton-row:nth-child(2) {
  animation-delay: .15s;
}

.ls-skeleton-row:nth-child(3) {
  animation-delay: .3s;
}

@keyframes ls-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===== Announcement Ticker ===== */
.announce-bar {
  display: flex;
  align-items: center;
  background: #0e0e0e;
  border-top: 1px solid rgba(255, 255, 255, .25);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  height: 36px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

/* fade mask ซ้าย-ขวา */
.announce-bar::before,
.announce-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.announce-bar::before {
  left: 0;
  background: linear-gradient(to right, #0e0e0e 30%, transparent);
}

.announce-bar::after {
  right: 0;
  background: linear-gradient(to left, #0e0e0e 30%, transparent);
}

.announce-label {
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffffff, #e0e0e0, #ffffff);
  color: #0b0b0b;
  font-family: 'Kanit', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 3;
}

.announce-divider {
  flex-shrink: 0;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, .35);
  z-index: 3;
}

.announce-track-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.announce-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 50s linear infinite;
}

.announce-bar:hover .announce-track {
  animation-play-state: paused;
}

.announce-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Kanit', sans-serif;
  font-size: .8rem;
  font-weight: 400;
  color: #bbbbbb;
  padding: 0 8px;
  letter-spacing: .02em;
}

.announce-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bbbbbb;
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}

.announce-sep {
  color: rgba(255, 255, 255, .3);
  font-size: .6rem;
  padding: 0 4px;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes dot-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.7);
  }
}

@media (max-width: 560px) {
  .announce-label {
    font-size: .65rem;
    padding: 0 10px;
  }

  .announce-item {
    font-size: .72rem;
  }

  .announce-track {
    animation-duration: 35s;
  }
}