/* ========================================
   SBOGAS789 — ดูบอลสด.online
   Theme: Navy / Royal Blue / White
   ======================================== */

:root {
  --navy: #0b3d6e;
  --navy-dark: #072a4d;
  --royal: #1565a8;
  --blue: #1e7fc4;
  --blue-mid: #3a9ad9;
  --blue-light: #d6ebf8;
  --blue-pale: #eef6fc;
  --blue-row: #e8f2fa;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --link: #0b5ea8;
  --border: #c5d8ea;
  --live: #c62828;
  --up: #1b8a3e;
  --down: #c62828;
  --container-w: 1100px;
  --font: "Sarabun", "Segoe UI", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  background-color: #c5d9ec;
  background-image: url("../assets/bg-pattern.svg");
  background-repeat: repeat;
  background-size: 280px 280px;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Layout shell ---- */
.site-wrap {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 24px rgba(7, 42, 77, 0.18);
  min-height: 100vh;
}

/* ---- Header / stadium cover ---- */
.site-header {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 24px 28px 22px;
  overflow: hidden;
  background-color: #0a243f;
  background-image:
    linear-gradient(
      180deg,
      rgba(2, 16, 31, 0.25) 0%,
      rgba(2, 16, 31, 0.15) 40%,
      rgba(2, 16, 31, 0.72) 100%
    ),
    url("../assets/banner-photo-today.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Per-page stadium covers */
.site-header.cover-today {
  background-image:
    linear-gradient(180deg, rgba(2, 16, 31, 0.28) 0%, rgba(2, 16, 31, 0.15) 45%, rgba(2, 16, 31, 0.78) 100%),
    url("../assets/banner-photo-today.png");
}

.site-header.cover-tomorrow {
  background-image:
    linear-gradient(180deg, rgba(2, 16, 31, 0.25) 0%, rgba(2, 16, 31, 0.12) 40%, rgba(2, 16, 31, 0.78) 100%),
    url("../assets/banner-photo-tomorrow.png");
}

.site-header.cover-live {
  background-image:
    linear-gradient(180deg, rgba(2, 16, 31, 0.3) 0%, rgba(2, 16, 31, 0.18) 40%, rgba(2, 16, 31, 0.8) 100%),
    url("../assets/banner-photo-live.png");
}

.site-header.cover-watch {
  background-image:
    linear-gradient(100deg, rgba(2, 16, 31, 0.55) 0%, rgba(2, 16, 31, 0.2) 45%, rgba(2, 16, 31, 0.72) 100%),
    url("../assets/banner-photo-watch.png");
}

.site-header.cover-standings {
  background-image:
    linear-gradient(180deg, rgba(2, 16, 31, 0.25) 0%, rgba(2, 16, 31, 0.15) 40%, rgba(2, 16, 31, 0.78) 100%),
    url("../assets/banner-photo-standings.png");
}

.site-header.cover-tips {
  background-image:
    linear-gradient(90deg, rgba(2, 16, 31, 0.58) 0%, rgba(2, 16, 31, 0.22) 50%, rgba(2, 16, 31, 0.7) 100%),
    url("../assets/banner-photo-tips.png");
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 12% 70%, rgba(30, 127, 196, 0.25), transparent 60%),
    linear-gradient(90deg, rgba(2, 16, 31, 0.45) 0%, transparent 42%);
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-mid), var(--royal), var(--navy));
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5eb3ef, var(--navy-dark));
  border: 3px solid rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.brand-text h1,
.brand-text .brand-name {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  color: inherit;
}

.brand-text .domain {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.95;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.cover-label {
  color: var(--white);
  text-align: right;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.cover-label .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 2px;
}

.cover-label .title {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: inherit;
  font-family: inherit;
}

/* ---- Navigation ---- */
.site-nav {
  background: var(--navy);
  border-bottom: 3px solid var(--blue-mid);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  display: block;
  padding: 11px 16px;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease;
}

.site-nav li:last-child a {
  border-right: none;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--royal);
  text-decoration: none;
}

.site-nav a.active {
  box-shadow: inset 0 -3px 0 var(--blue-mid);
}

/* ---- Intro / SEO strip ---- */
.intro-strip {
  margin: 14px 18px 8px;
  padding: 14px 16px 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--blue-pale) 0%, var(--white) 100%);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.intro-strip-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.intro-brand {
  color: var(--navy) !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.intro-domain {
  color: var(--royal);
  font-size: 12px;
  font-weight: 700;
}

.intro-strip-text {
  margin: 0 0 12px;
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.75;
}

.intro-strip-text > p {
  margin: 0;
}

.intro-strip-text > p + p {
  margin-top: 8px;
}

.intro-strip-text .intro-lead {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.intro-strip .quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.intro-strip .quick-links a {
  margin-right: 0;
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 5px 10px;
  text-decoration: none;
  line-height: 1.3;
}

.intro-strip .quick-links a:hover {
  background: var(--blue-light);
  border-color: var(--royal);
  color: var(--royal);
  text-decoration: none;
}

/* ---- Keyword highlight (SEO natural) ---- */
.kw {
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.kw-main {
  color: #9b1c1c;
}

.kw-sec {
  color: #0b5ea8;
}

a .kw-main,
a .kw-sec {
  text-decoration: inherit;
}

/* ---- Keyword chip cloud (compact tip-hub) ---- */
.tip-hub--chips {
  margin-top: 14px;
}

.tip-hub--chips .section-title {
  display: none;
}

.tip-hub--chips .date-bar {
  display: none;
}

.kw-chip-panel {
  border: 1px solid var(--border);
  background: var(--white);
}

.kw-chip-panel > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  user-select: none;
}

.kw-chip-panel > summary::-webkit-details-marker {
  display: none;
}

.kw-chip-panel > summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.9;
}

.kw-chip-panel[open] > summary::after {
  content: "–";
}

.kw-chip-panel > summary span {
  font-weight: 500;
  font-size: 12px;
  opacity: 0.8;
}

.kw-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #f7fbff 0%, var(--white) 100%);
}

a.kw-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #cfe0ef;
  background: var(--white);
  text-decoration: none;
  line-height: 1.35;
  transition: border-color 0.15s, background 0.15s;
}

a.kw-chip:hover {
  border-color: var(--royal);
  background: #eef6ff;
  text-decoration: none;
}

a.kw-chip .kw {
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
}

.tip-hub--chips .tip-hub-foot {
  border-top: none;
  padding: 8px 14px 10px;
  font-size: 12px;
}

/* ---- Tip hub (ทรรศนะประจำวัน) ---- */
.tip-hub {
  margin-top: 18px;
}

.tip-hub .section-title {
  margin-top: 0;
}

.tip-hub-lead {
  border: 1px solid var(--border);
  border-top: none;
  background: var(--white);
  padding: 12px 14px 4px;
}

.tip-hub-lead p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.tip-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-top: none;
  background: var(--blue-pale);
}

.tip-hub-grid--compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 12px;
}

.tip-hub-grid--compact .tip-hub-card {
  padding: 8px 10px;
  justify-content: center;
  text-align: center;
}

.tip-hub-grid--compact .tip-hub-card .kw {
  font-size: 13px;
  line-height: 1.3;
}

.tip-hub-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 11px;
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  min-height: 96px;
  transition: border-color 0.15s, background 0.15s;
}

.tip-hub-card:hover {
  border-color: var(--royal);
  background: #f7fbff;
  text-decoration: none;
}

.tip-hub-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tip-hub-card .kw {
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}

.tip-faq-item .kw,
.intro-strip-text .kw,
.tip-hub-lead .kw,
.tip-hub-foot .kw,
.page-note .kw {
  white-space: normal;
}

.tip-hub-card > span:last-child {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.tip-hub-foot {
  margin: 0;
  padding: 10px 14px 12px;
  border: 1px solid var(--border);
  border-top: none;
  background: var(--white);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Tip FAQ ---- */
.tip-faq {
  margin-top: 18px;
}

.tip-faq .section-title {
  margin-top: 0;
}

.tip-faq-list {
  border: 1px solid var(--border);
  border-top: none;
  background: var(--white);
}

.tip-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.tip-faq-item:last-child {
  border-bottom: none;
}

.tip-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  background: var(--blue-pale);
}

.tip-faq-item summary::-webkit-details-marker {
  display: none;
}

.tip-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--royal);
  font-weight: 800;
}

.tip-faq-item[open] summary::after {
  content: "–";
}

.tip-faq-item[open] summary {
  background: linear-gradient(90deg, var(--blue-pale), var(--white));
  border-bottom: 1px solid var(--border);
}

.tip-faq-item p {
  margin: 0;
  padding: 12px 14px 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

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

  .tip-hub-grid--compact {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .tip-hub-grid {
    grid-template-columns: 1fr;
  }

  .tip-hub-grid--compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Breadcrumb ---- */
.site-breadcrumb {
  margin: 10px 18px 0;
  padding: 0;
  font-size: 12px;
}

.site-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--text-muted);
}

.site-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--border);
}

.site-breadcrumb a {
  color: var(--royal);
  font-weight: 600;
  text-decoration: none;
}

.site-breadcrumb a:hover {
  text-decoration: underline;
}

.site-breadcrumb [aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}

/* ---- SEO league index + intent panels ---- */
.seo-league-index {
  margin: 0 0 14px;
}

.seo-league-index-body {
  border: 1px solid var(--border);
  border-top: none;
  background: var(--white);
  padding: 12px 14px 14px;
}

.seo-league-index-body > p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.seo-league-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 14px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.seo-league-list a {
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.45;
}

.seo-league-list a:hover {
  color: var(--royal);
  text-decoration: underline;
}

.seo-featured {
  margin: 0 !important;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12.5px !important;
}

.intent-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 4px;
}

.intent-panel {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 12px 14px;
}

.intent-panel h3 {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 800;
}

.intent-panel p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.intent-panel p:last-child {
  margin-bottom: 0;
}

.intent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intent-links a {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--royal);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--blue-pale);
  padding: 4px 8px;
}

.intent-links a:hover {
  border-color: var(--royal);
  background: #f7fbff;
}

@media (max-width: 860px) {
  .seo-league-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intent-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .seo-league-list {
    grid-template-columns: 1fr;
  }
}

/* ---- Page body ---- */
.page-body {
  padding: 8px 18px 28px;
}

/* ---- Section title bar ---- */
.section-title {
  background: linear-gradient(90deg, var(--navy-dark), var(--royal));
  color: var(--white);
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.section-title .sub {
  font-weight: 400;
  font-size: 13px;
  opacity: 0.9;
}

.btn-update {
  background: var(--white);
  color: var(--navy);
  border: none;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.btn-update:hover {
  background: var(--blue-light);
}

.date-bar {
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-top: none;
  padding: 8px 14px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* ---- League block ---- */
.league-block {
  margin-top: 10px;
}

.league-head {
  background: linear-gradient(90deg, var(--royal), var(--blue));
  color: var(--white);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.league-head .flag {
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.league-icon {
  display: block;
  object-fit: contain;
  background: #0d0d0d;
  border-radius: 5px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.league-icon-lg {
  width: 34px;
  height: 34px;
  padding: 3px;
}

.league-icon-sm {
  width: 26px;
  height: 26px;
  margin: 0 auto;
  padding: 2px;
  background: #0d0d0d;
  border: 1px solid rgba(197, 216, 234, 0.55);
}

.league-title {
  line-height: 1.35;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  font-family: inherit;
}

.match-table .col-icon {
  width: 40px;
  text-align: center;
}

.match-table .col-icon .league-icon-sm {
  display: inline-block;
  vertical-align: middle;
}

/* ---- Match table ---- */
.match-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.match-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 6px 4px;
  font-size: 11px;
  text-align: center;
  border: 1px solid var(--navy-dark);
}

.match-table td {
  padding: 7px 5px;
  border: 1px solid #d5e4f0;
  text-align: center;
  vertical-align: middle;
}

.match-table tbody tr:nth-child(odd) {
  background: var(--white);
}

.match-table tbody tr:nth-child(even) {
  background: var(--blue-row);
}

.match-table tbody tr:hover {
  background: var(--blue-light);
}

.match-table .col-time {
  width: 52px;
  font-weight: 700;
  color: var(--navy);
}

.match-table .col-home,
.match-table .col-away {
  width: 18%;
  text-align: left;
  font-weight: 600;
}

.match-table .col-away {
  text-align: right;
}

.match-table .col-home a,
.match-table .col-away a {
  color: var(--link);
}

.match-table .col-odds {
  width: 100px;
  font-weight: 700;
}

.odds-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.25;
}

.odds-wait {
  color: var(--text-muted) !important;
  font-weight: 700;
  font-size: 12px;
}

.odds-val {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
}

.odds-up {
  color: var(--up);
}

.odds-down {
  color: var(--down);
}

.arrow {
  font-size: 9px;
  line-height: 1;
}

.team-fav {
  color: #b71c1c !important;
  font-weight: 800;
  text-decoration: underline;
}

.match-table .col-home a.team-fav,
.match-table .col-away a.team-fav {
  color: #b71c1c;
}

.match-table .col-ht,
.match-table .col-ft {
  width: 58px;
  font-weight: 700;
}

.match-table .col-ft.live-score {
  color: var(--live);
}

.match-table .col-tip {
  width: 16%;
  font-size: 12px;
  text-align: left;
  color: var(--royal);
}

.match-table .col-actions {
  width: 70px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  margin: 0 2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  vertical-align: middle;
}

.icon-btn:hover {
  background: var(--blue);
  text-decoration: none;
}

.icon-btn.plus {
  background: var(--royal);
}

.live-badge {
  display: inline-block;
  background: var(--live);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  margin-right: 3px;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.tv-icon {
  font-size: 14px;
}

/* ---- Watch page ---- */
.watch-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  margin-top: 14px;
}

.player-box {
  background: #0a1628;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  border: 2px solid var(--navy);
}

.player-box .play-hint {
  font-size: 48px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.player-box .match-label {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 0 16px;
}

.player-meta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.channel-list {
  border: 1px solid var(--border);
}

.channel-list h3 {
  background: var(--navy);
  color: var(--white);
  padding: 9px 12px;
  font-size: 14px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.channel-item:hover,
.channel-item.active {
  background: var(--blue-row);
}

.channel-item .ch-num {
  width: 28px;
  height: 28px;
  background: var(--royal);
  color: var(--white);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.channel-item .ch-info {
  flex: 1;
  min-width: 0;
}

.channel-item .ch-info strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
}

.channel-item .ch-info span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- Match Centre (ดูบอลสด) ---- */
.watch-grid--centre {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.match-centre {
  border: 1px solid var(--border);
  background: var(--white);
  min-height: 420px;
}

.mc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
}

.mc-league-logo {
  border-radius: 3px;
  background: #fff;
}

.mc-league {
  font-size: 13px;
  font-weight: 700;
}

.mc-kick {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

.mc-pitch {
  background: linear-gradient(180deg, #123a1f 0%, #0b2814 100%);
  padding: 16px 14px 12px;
}

.mc-pitch-field {
  position: relative;
  height: 150px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.25) 49.5%, rgba(255, 255, 255, 0.25) 50.5%, transparent 50.5%),
    repeating-linear-gradient(
      90deg,
      #1b6b38 0 12.5%,
      #185f32 12.5% 25%
    );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mc-pitch-field::before,
.mc-pitch-field::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translateY(-50%);
}

.mc-pitch-field::before { left: 8px; }
.mc-pitch-field::after { right: 8px; }

.mc-ball {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2);
  animation: mc-pulse 2s ease-in-out infinite;
}

@keyframes mc-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.mc-pitch-caption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px 12px;
  background: linear-gradient(180deg, #0f2744 0%, #0b1c33 100%);
  color: #fff;
}

.mc-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.mc-team img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  padding: 4px;
}

.mc-team strong {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

.mc-score-mid {
  text-align: center;
  min-width: 110px;
}

.mc-clock {
  font-size: 12px;
  margin-bottom: 4px;
  opacity: 0.95;
}

.mc-score {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.mc-ht {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.8;
}

.mc-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--blue-pale);
}

.mc-tab {
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.mc-tab.active {
  color: var(--navy);
  border-bottom-color: var(--royal);
  background: var(--white);
}

.mc-panel {
  padding: 12px 14px 16px;
  max-height: 420px;
  overflow: auto;
}

.mc-panel--stats {
  padding: 0;
  background: #f7f9fc;
  max-height: 520px;
}

.mc-empty {
  margin: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.mc-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mc-ev {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eef3f8;
  font-size: 13px;
}

.mc-ev-min {
  font-weight: 800;
  color: var(--navy);
}

.mc-ev-home .mc-ev-text { color: #0b5ea8; }
.mc-ev-away .mc-ev-text { color: #c45c00; }

/* AiScore-style detailed stats */
.as-stats {
  padding: 12px 12px 14px;
  background: #fff;
}

.as-teams {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.as-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 48%;
}

.as-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
}

.as-team strong {
  font-size: 13px;
  color: #222;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-team-away {
  flex-direction: row;
  justify-content: flex-end;
  text-align: right;
}

.as-scope {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 14px;
}

.as-scope-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border: none;
  border-radius: 999px;
  background: #e9eef5;
  color: #667788;
  cursor: pointer;
}

.as-scope-btn.active {
  background: #2f6fed;
  color: #fff;
}

.as-poss {
  margin-bottom: 14px;
}

.as-poss-label,
.as-shots-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
}

.as-poss-bar {
  display: flex;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  background: #eceff3;
}

.as-poss-bar i,
.as-poss-bar b {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.as-poss-bar i {
  justify-content: flex-start;
  background: #2f6fed;
  color: #fff;
}

.as-poss-bar b {
  justify-content: flex-end;
  background: #f0c419;
  color: #333;
}

.as-poss-bar em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  padding: 0 8px;
}

.as-poss-bar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8899aa;
  font-size: 12px;
}

.as-shots {
  margin-bottom: 12px;
}

.as-shots-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.as-shots-head .as-shots-title {
  margin: 0;
}

.as-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.as-box-home {
  background: #2f6fed;
  color: #fff;
}

.as-box-away {
  background: #f0c419;
  color: #333;
}

.as-shots-off {
  background: linear-gradient(90deg, #dce9ff 0%, #fff6cc 100%);
  border-radius: 6px;
  padding: 10px 8px;
}

.as-shots-off-row,
.as-shots-on {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
}

.as-shots-on {
  margin-top: 8px;
  background: #fff;
  border: 1px solid #d7e0ea;
  border-radius: 6px;
  padding: 8px 6px;
}

.as-shots-sub {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #666;
}

.as-shots--empty {
  text-align: center;
  padding: 8px 0 4px;
}

.as-rows {
  border-top: 1px solid #e6ebf1;
}

.as-row {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 8px;
  align-items: center;
  padding: 10px 2px;
  border-bottom: 1px solid #eef2f6;
}

.as-row-val {
  font-size: 14px;
  font-weight: 800;
  color: #222;
  text-align: center;
}

.as-row-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  line-height: 1.25;
}

.as-row-label small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #8a97a8;
}

.as-note,
.as-foot-note {
  margin: 8px 2px 0;
  font-size: 11px;
  color: #8899aa;
  line-height: 1.5;
  text-align: center;
}

.watch-picker .watch-filter {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.watch-filter button {
  flex: 1;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  border: none;
  background: var(--blue-pale);
  color: var(--text-muted);
  cursor: pointer;
}

.watch-filter button.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--royal);
}

.watch-team-search {
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f7fbff 0%, var(--white) 100%);
}

.watch-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.watch-team-search input[type="search"] {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--white);
  outline: none;
}

.watch-team-search input[type="search"]:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 2px rgba(11, 94, 168, 0.12);
}

.watch-team-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.watch-search-clear {
  width: 32px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.watch-search-clear:hover {
  background: var(--blue-pale);
  border-color: var(--royal);
}

.watch-search-hint {
  margin: 7px 0 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.watch-pick .team-hit,
.channel-item .team-hit {
  background: #ffe082;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

.watch-match-list {
  max-height: 640px;
  overflow: auto;
}

button.channel-item.watch-pick {
  width: 100%;
  text-align: left;
  font-family: inherit;
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--border);
}

.watch-list-empty {
  margin: 0;
  padding: 16px 12px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .watch-grid--centre {
    grid-template-columns: 1fr;
  }

  .watch-match-list {
    max-height: 320px;
  }
}

/* ---- Standings ---- */
.standings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 10px;
}

.standings-tabs button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
}

.standings-tabs button:hover,
.standings-tabs button.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}

.standings-table th {
  background: var(--navy);
  color: var(--white);
  padding: 8px 6px;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--navy-dark);
}

.standings-table td {
  padding: 8px 6px;
  border: 1px solid #d5e4f0;
  text-align: center;
}

.standings-table th.th-team,
.standings-table td.team {
  text-align: left;
  padding-left: 10px;
}

.standings-table td.team {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.standings-team-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.standings-group-title {
  margin: 10px 0 6px;
  padding: 6px 10px;
  background: var(--blue-pale);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.standings-panel[hidden] {
  display: none !important;
}

.standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 8px 0 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.standings-legend .leg {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: middle;
}

.leg-champ { background: #1b8a3e; }
.leg-euro { background: #1565a8; }
.leg-releg { background: #c62828; }

.league-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  color: var(--white);
  line-height: 16px;
  text-align: center;
  margin: 0 1px;
}

.form-w {
  background: #1b8a3e;
}
.form-d {
  background: #888;
}
.form-l {
  background: #c62828;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  vertical-align: middle;
}

.legend .l-champ::before {
  background: #1b8a3e;
}
.legend .l-euro::before {
  background: #1565a8;
}
.legend .l-releg::before {
  background: #c62828;
}

/* ---- Tips page ---- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.tip-card {
  border: 1px solid var(--border);
  background: var(--white);
}

.tip-card-head {
  background: linear-gradient(90deg, var(--navy), var(--royal));
  color: var(--white);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
}

.tip-card-body {
  padding: 14px;
}

.tip-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--navy);
}

.tip-vs {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
}

.tip-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.tip-pick {
  display: inline-block;
  background: var(--blue-pale);
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 700;
  padding: 6px 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.tip-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.confidence {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--royal);
}

/* ---- Live scores highlight ---- */
.live-banner {
  background: linear-gradient(90deg, #8b1a1a, #c62828);
  color: var(--white);
  padding: 8px 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.live-updated {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.live-error {
  border-left-color: #c62828 !important;
  color: #8b1a1a;
}

.match-table tr.is-live {
  background: #fff5f5;
}

/* Live board row backgrounds (วิธีดูตาราง) */
.match-table tr.row-bg-live {
  background: #ff1a1a;
  color: #fff;
}

.match-table tr.row-bg-live td,
.match-table tr.row-bg-live a,
.match-table tr.row-bg-live .odds-val,
.match-table tr.row-bg-live .col-tip {
  color: #fff;
}

.match-table tr.row-bg-live .col-ft.live-score {
  color: #ffe082;
  font-weight: 800;
}

.match-table tr.row-bg-live .live-badge {
  background: #fff;
  color: #c62828;
  animation: none;
}

.match-table tr.row-bg-ht {
  background: #ff6666;
  color: #fff;
}

.match-table tr.row-bg-ht td,
.match-table tr.row-bg-ht a,
.match-table tr.row-bg-ht .odds-val,
.match-table tr.row-bg-ht .col-tip {
  color: #fff;
}

.match-table tr.row-bg-draw {
  background: #00e676;
  color: #0b1f14;
}

.match-table tr.row-bg-draw td,
.match-table tr.row-bg-draw a,
.match-table tr.row-bg-draw .col-tip {
  color: #0b1f14;
}

.match-table tr.row-bg-post {
  background: #00e5ff;
  color: #00343d;
}

.match-table tr.row-bg-post td,
.match-table tr.row-bg-post a,
.match-table tr.row-bg-post .col-tip {
  color: #00343d;
}

.match-table tr.row-bg-ft {
  background: #a9bcf5;
  color: #1a237e;
}

.match-table tr.row-bg-ft td,
.match-table tr.row-bg-ft a,
.match-table tr.row-bg-ft .col-tip {
  color: #1a237e;
}

.match-table tr.row-bg-live .icon-btn,
.match-table tr.row-bg-ht .icon-btn {
  background: rgba(0, 0, 0, 0.28);
}

.match-table tr.row-bg-live .icon-btn.plus,
.match-table tr.row-bg-ht .icon-btn.plus {
  background: rgba(255, 255, 255, 0.92);
  color: #c62828;
}

/* Live board + color legend paired with score table */
.live-board-panel {
  margin-top: 4px;
  border: 1px solid var(--border);
  background: var(--white);
}

.live-color-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.live-legend-title {
  font-weight: 800;
  color: #d35400;
  margin-right: 4px;
}

.live-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--navy);
}

.live-legend-swatch {
  display: inline-block;
  width: 16px;
  height: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  flex-shrink: 0;
}

.live-legend-swatch.swatch-live {
  background: #ff1a1a;
}

.live-legend-swatch.swatch-ht {
  background: #ff6666;
}

.live-legend-swatch.swatch-draw {
  background: #00e676;
}

.live-legend-swatch.swatch-post {
  background: #00e5ff;
}

.live-legend-swatch.swatch-ns {
  background: var(--white);
}

.live-legend-more {
  margin-left: auto;
  font-weight: 700;
  font-size: 12px;
  color: #d35400;
  text-decoration: none;
  white-space: nowrap;
}

.live-legend-more:hover {
  text-decoration: underline;
}

.live-board-panel #live-scores-root {
  padding: 0;
}

.live-board-panel .league-block:first-child {
  margin-top: 0;
}

.live-board-panel .page-note.live-board-note {
  margin: 0;
  border-left: none;
  border-top: 1px solid var(--border);
  background: var(--blue-pale);
}

.live-board-panel .table-scroll {
  border-left: none;
  border-right: none;
}

@media (max-width: 700px) {
  .live-legend-more {
    margin-left: 0;
    width: 100%;
  }
}

.row-status-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.35);
}

.match-table tr:not([class*="row-bg-"]) .row-status-tag {
  background: var(--blue-pale);
  color: var(--royal);
}

.match-table tr.row-bg-live .row-status-tag.tag-live,
.match-table tr.row-bg-ht .row-status-tag.tag-ht {
  background: rgba(255, 255, 255, 0.9);
  color: #c62828;
}

.match-table tr.row-bg-draw .row-status-tag.tag-draw {
  background: rgba(0, 0, 0, 0.12);
  color: #0b1f14;
}

.match-table tr.row-bg-post .row-status-tag.tag-post {
  background: rgba(0, 0, 0, 0.1);
  color: #00343d;
}

/* ---- Empty / note ---- */
.page-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--blue-pale);
  border-left: 4px solid var(--royal);
  font-size: 13px;
  color: var(--text-muted);
}

.page-note.seo-fallback p {
  margin: 0;
}

.page-note.seo-fallback p + p {
  margin-top: 8px;
}

.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;
}

/* ---- FAB: ติดต่อแอดมิน ---- */
.fab-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--font);
}

.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.fab-menu[hidden] {
  display: none !important;
}

.fab-root.is-open .fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-panel {
  width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(7, 42, 77, 0.22);
  overflow: hidden;
}

.fab-panel-head {
  background: linear-gradient(90deg, var(--navy-dark), var(--royal));
  color: var(--white);
  padding: 12px 14px;
}

.fab-panel-head strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.fab-panel-head span {
  display: block;
  font-size: 11px;
  opacity: 0.88;
  margin-top: 2px;
}

.fab-panel-body {
  padding: 8px;
}

.fab-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.fab-channel:hover {
  background: var(--blue-pale);
  border-color: var(--border);
  text-decoration: none;
}

.fab-channel-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.fab-channel.line .fab-channel-icon {
  background: #06c755;
}

.fab-channel.telegram .fab-channel-icon {
  background: #229ed9;
}

.fab-channel.facebook .fab-channel-icon {
  background: #1877f2;
}

.fab-channel-text {
  min-width: 0;
  flex: 1;
}

.fab-channel-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.fab-channel-text small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.fab-channel-arrow {
  color: var(--blue-mid);
  font-size: 14px;
  font-weight: 700;
}

.fab-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 8px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--royal) 100%);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(11, 61, 110, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.fab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(11, 61, 110, 0.48);
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

.fab-btn:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 3px;
}

.fab-btn-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.fab-btn-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.fab-btn-label {
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.fab-btn-chevron {
  width: 16px;
  height: 16px;
  margin-left: -4px;
  transition: transform 0.2s ease;
  opacity: 0.85;
}

.fab-root.is-open .fab-btn-chevron {
  transform: rotate(180deg);
}

.fab-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 42, 77, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.fab-root.is-open + .fab-backdrop,
.fab-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 640px) {
  .fab-root {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }

  .fab-panel {
    width: min(260px, calc(100vw - 28px));
  }

  .fab-btn {
    height: 48px;
    padding-right: 14px;
    font-size: 13px;
  }

  .fab-btn-icon {
    width: 32px;
    height: 32px;
  }
}

/* ---- Error & legal pages ---- */
.error-page {
  display: flex;
  justify-content: center;
  padding-top: 28px;
  padding-bottom: 40px;
}

.error-box {
  width: 100%;
  max-width: 640px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--blue-pale);
  padding: 36px 28px;
}

.error-code {
  font-size: 64px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.error-box h2 {
  font-size: 22px;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.error-box > p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--royal);
  text-decoration: none;
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--blue-light);
  text-decoration: none;
}

.error-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.legal-page .legal-content {
  border: 1px solid var(--border);
  padding: 22px 24px 28px;
  background: var(--white);
  line-height: 1.7;
}

.legal-content h2 {
  color: var(--navy);
  font-size: 17px;
  margin: 22px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal-content strong {
  color: var(--navy);
}

/* ---- Tips news feature ---- */
.news-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin-bottom: 14px;
}

.news-feature-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.news-feature-card:hover {
  background: var(--blue-pale);
  border-color: #9eb6cf;
  text-decoration: none;
}

.news-feature-card img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: #0a243f;
  display: block;
}

.news-feature-card--hero {
  grid-column: 1;
  grid-row: 1 / span 2;
  grid-template-columns: 1fr;
  grid-template-rows: 180px 1fr;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.news-feature-card--hero img {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 0;
}

.news-feature-card--hero .news-feature-body {
  padding: 12px 14px 14px;
}

.news-feature-body strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 4px;
}

.news-feature-card--hero .news-feature-body strong {
  font-size: 18px;
  line-height: 1.35;
}

.news-feature-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.news-feature-source {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b71c1c;
  margin-bottom: 4px;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.news-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.news-filter-chip:hover,
.news-filter-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  text-decoration: none;
}

.news-sources {
  margin-top: 22px;
}

.news-sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.news-sources-grid a {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: var(--blue-pale);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.news-sources-grid a:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 800px) {
  .news-feature {
    grid-template-columns: 1fr;
  }

  .news-feature-card--hero {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ---- Dual boards (tips + entertain) ---- */
.boards-wrap {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.boards-wrap--tips {
  margin-top: 0;
}

.board {
  border: 1px solid var(--border);
  background: var(--white);
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.board-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  min-height: 64px;
  border-bottom: 1px dotted #c5d4e4;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.board-item:nth-child(odd) {
  background: var(--blue-pale);
}

.board-item:nth-child(even) {
  background: var(--white);
}

.board-item:hover {
  background: var(--blue-light);
  text-decoration: none;
}

.board-thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  object-position: center top;
  border-radius: 3px;
  background: #0a243f;
  display: block;
  border: 1px solid var(--border);
}

.board-head {
  background: linear-gradient(90deg, var(--navy-dark), var(--royal));
  color: var(--white);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.board-head.board-head-hot {
  background: linear-gradient(90deg, #7a1220, #b71c1c);
}

.board-head .board-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  font-family: inherit;
  line-height: inherit;
}

.board-head .board-action {
  flex-shrink: 0;
  color: #ffe082;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 224, 130, 0.45);
  padding: 3px 8px;
}

.board-head .board-action:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #fff;
}

.board-body {
  min-width: 0;
}

.board-id {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.board-headline {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-meta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.board-meta .stat {
  color: var(--royal);
  font-weight: 700;
}

.badge-hot,
.badge-new {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.3px;
}

.badge-hot {
  background: #ff6d00;
  color: #fff;
}

.badge-new {
  background: #f9a825;
  color: #1a1a1a;
}

.board-author {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
  max-width: 78px;
}

.board-foot {
  padding: 8px 10px;
  font-size: 12px;
  background: var(--blue-pale);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  margin-top: auto;
}

.board-foot a {
  font-weight: 700;
  margin: 0 3px;
}

.ent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.ent-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  background: #0a1628;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(7, 42, 77, 0.2);
  text-decoration: none;
}

.ent-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.ent-card .ent-cap {
  padding: 7px 8px;
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.ent-card .ent-cap small {
  display: block;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .boards-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .board-item {
    grid-template-columns: 48px 1fr;
  }

  .board-author {
    display: none;
  }
}

/* ---- Table guide (วิธีดูตาราง) ---- */
.table-guide {
  margin-top: 22px;
}

.table-guide .section-title {
  margin-top: 0;
}

.table-guide--live .guide-table th {
  background: #e67e22;
  border-color: #d35400;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 9px 6px;
}

.table-guide--live .guide-table th:first-child {
  border-radius: 0;
}

.guide-swatch {
  display: inline-block;
  width: 72px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  vertical-align: middle;
}

.guide-swatch-live {
  background: #ff1a1a;
}

.guide-swatch-ht,
.guide-swatch-win-half {
  background: #ff6666;
}

.guide-swatch-lose-half {
  background: #a9bcf5;
}

.guide-swatch-lose-full {
  background: #5858fa;
}

.guide-swatch-draw {
  background: #00e676;
}

.guide-swatch-post {
  background: #00e5ff;
}

.guide-swatch-ft {
  background: #a9bcf5;
}

.guide-underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 22px;
  margin: 0 2px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 2px;
  vertical-align: middle;
}

.guide-card-red {
  background: #e65100;
  color: #fff;
}

.guide-card-yellow {
  background: #ffeb3b;
  color: #111;
  border: 1px solid #f9a825;
}

.guide-badge-vip {
  display: inline-block;
  padding: 3px 8px;
  background: #111;
  color: #ffd54f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  border-radius: 2px;
}

.guide-icon-clip {
  font-size: 18px;
  line-height: 1;
}

.table-guide-body {
  border: 1px solid var(--border);
  border-top: none;
  background: var(--white);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.guide-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 7px 6px;
  border: 1px solid var(--navy-dark);
}

.guide-table td {
  padding: 10px 8px;
  border: 1px solid #d5e4f0;
  vertical-align: middle;
}

.guide-table tbody tr:nth-child(odd) {
  background: var(--white);
}

.guide-table tbody tr:nth-child(even) {
  background: var(--blue-row);
}

.guide-table .guide-sym {
  width: 15%;
  text-align: center;
}

.guide-table .guide-is {
  width: 6%;
  text-align: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.guide-table .guide-desc {
  width: 29%;
  text-align: left;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 500;
}

.guide-table .icon-btn {
  pointer-events: none;
  margin: 0;
  vertical-align: middle;
}

.guide-tip-text {
  color: var(--royal);
  font-size: 12px;
  font-weight: 700;
}

.guide-odds-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.2;
}

.guide-mark {
  display: inline-block;
  font-weight: 800;
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.2px;
}

.guide-mark.navy {
  color: var(--navy-dark);
}

.guide-live-score {
  color: var(--live);
  font-weight: 800;
  font-size: 14px;
  margin-left: 4px;
  vertical-align: middle;
}

.table-guide-notes {
  padding: 11px 14px 13px;
  background: var(--blue-pale);
  border-top: 1px solid var(--border);
}

.table-guide-notes p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.table-guide-notes p + p {
  margin-top: 2px;
}

.table-guide-notes strong {
  color: var(--navy);
}

@media (max-width: 800px) {
  .guide-table,
  .guide-table thead,
  .guide-table tbody,
  .guide-table tr,
  .guide-table th,
  .guide-table td {
    display: block;
    width: 100%;
  }

  .guide-table thead {
    display: none;
  }

  .guide-table tr {
    border-bottom: 2px solid var(--border);
    padding: 4px 0;
  }

  .guide-table td.guide-sym,
  .guide-table td.guide-is,
  .guide-table td.guide-desc {
    display: inline-block;
    width: auto;
    border: none;
    padding: 4px 6px;
    vertical-align: middle;
  }

  .guide-table td.guide-sym {
    width: 28%;
    text-align: center;
  }

  .guide-table td.guide-is {
    width: 10%;
  }

  .guide-table td.guide-desc {
    width: 58%;
    text-align: left;
  }

  .guide-table td.guide-sym:nth-child(4),
  .guide-table td.guide-is:nth-child(5),
  .guide-table td.guide-desc:nth-child(6) {
    border-top: 1px dotted #c5d4e4;
    margin-top: 2px;
    padding-top: 8px;
  }
}

/* ---- New thread form ---- */
.thread-form-card {
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
}

.thread-form-banner {
  background: linear-gradient(90deg, var(--navy-dark), var(--royal));
  color: var(--white);
  padding: 14px 18px;
}

.thread-form-banner strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.thread-form-banner span {
  font-size: 12px;
  opacity: 0.9;
}

.thread-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  padding: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.field-label em {
  color: #c62828;
  font-style: normal;
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--blue-pale);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.field input[type="text"]:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--royal);
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.6;
}

.field input[type="file"] {
  font-family: inherit;
  font-size: 13px;
}

.field-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.field-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.field-check input {
  margin-top: 3px;
}

.thread-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

.thread-success-card {
  border: 1px solid var(--border);
  background: var(--blue-pale);
  padding: 28px 22px;
  text-align: center;
}

.thread-success-code {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.thread-success-card h2 {
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.thread-success-card > p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.thread-success-meta {
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.thread-success-meta strong {
  color: var(--navy);
}

@media (max-width: 640px) {
  .thread-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Match vote modal ---- */
body.vote-open {
  overflow: hidden;
}

.vote-modal[hidden] {
  display: none !important;
}

.vote-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.vote-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 42, 77, 0.55);
}

.vote-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(7, 42, 77, 0.28);
  overflow: hidden;
}

.vote-dialog-head {
  position: relative;
  background: linear-gradient(90deg, var(--navy-dark), var(--royal));
  color: var(--white);
  padding: 16px 52px 14px 18px;
}

.vote-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  pointer-events: auto;
}

.vote-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.vote-close-full {
  min-width: 160px;
  pointer-events: auto;
}

.vote-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

.vote-dialog-head h2 {
  font-size: 20px;
  margin: 0 0 4px;
}

.vote-sub {
  font-size: 12px;
  opacity: 0.9;
  margin: 0;
}

.vote-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 16px 18px 8px;
}

.vote-team {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  line-height: 1.35;
}

.vote-vs {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.vote-meta {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 18px 12px;
}

.vote-choices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 18px 14px;
}

.vote-choice {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--blue-pale);
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  font-family: inherit;
}

.vote-choice:hover {
  border-color: var(--royal);
  transform: translateY(-1px);
}

.vote-choice.is-selected {
  border-color: var(--navy);
  background: linear-gradient(180deg, #e8f2fa, #d6ebf8);
  box-shadow: inset 0 0 0 1px var(--royal);
}

.vote-choice-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.vote-choice-team {
  display: block;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.3;
  min-height: 34px;
}

.vote-choice-pct {
  display: inline-block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--royal);
}

.vote-bars {
  padding: 0 18px 10px;
  display: grid;
  gap: 8px;
}

.vote-bar-row {
  display: grid;
  grid-template-columns: 64px 1fr 42px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.vote-bar {
  height: 10px;
  background: #d9e7f3;
  overflow: hidden;
}

.vote-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--navy), var(--blue-mid));
  transition: width 0.35s ease;
}

.vote-bar-row b {
  text-align: right;
  color: var(--navy);
  font-size: 12px;
}

.vote-note {
  padding: 0 18px 12px;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.vote-actions {
  padding: 0 18px 16px;
  display: flex;
  justify-content: center;
}

.icon-btn.plus {
  font-family: inherit;
}

@media (max-width: 560px) {
  .vote-choices {
    grid-template-columns: 1fr;
  }

  .vote-match {
    gap: 6px;
  }

  .vote-team {
    font-size: 13px;
  }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 20px 18px;
  text-align: center;
  font-size: 12px;
  margin-top: auto;
}

.site-footer .footer-brand {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.site-footer .footer-links {
  margin: 10px 0;
}

.site-footer .footer-links a {
  color: var(--blue-light);
  margin: 0 8px;
  font-weight: 600;
}

.site-footer .footer-links a:hover {
  color: var(--white);
}

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

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .match-table {
    font-size: 12px;
  }

  .match-table .col-tip {
    display: none;
  }

  .site-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    padding-top: env(safe-area-inset-top, 0);
  }

  .site-nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .site-nav ul::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    padding: 11px 14px;
    font-size: 13px;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
  }

  .standings-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .standings-tabs::-webkit-scrollbar {
    display: none;
  }

  .standings-tabs button {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  body {
    background-size: 180px 180px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .site-wrap {
    box-shadow: none;
  }

  .site-header {
    min-height: 120px;
    padding: 12px 14px 14px;
    align-items: flex-end;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cover-label {
    text-align: left;
  }

  .cover-label .eyebrow {
    font-size: 11px;
  }

  .cover-label .title {
    font-size: 15px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text h1,
  .brand-text .brand-name {
    font-size: 20px;
  }

  .brand-text .domain {
    font-size: 11px;
  }

  .site-breadcrumb {
    margin: 0 10px;
    padding: 8px 2px;
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .page-body,
  .intro-strip {
    margin-left: 10px;
    margin-right: 10px;
  }

  .intro-strip {
    padding: 12px;
    font-size: 13px;
  }

  .intro-strip-text,
  .intro-strip-text .intro-lead {
    max-width: none;
    font-size: 13px;
    line-height: 1.6;
  }

  .intro-strip .quick-links {
    gap: 6px;
  }

  .intro-strip .quick-links a {
    padding: 7px 10px;
    font-size: 12px;
  }

  .page-body {
    padding: 8px 10px calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
  }

  .section-title .btn-update,
  .btn-update {
    width: 100%;
    justify-content: center;
  }

  .date-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Match rows → cards (today / tomorrow / live) */
  .table-scroll {
    overflow: visible;
    -webkit-overflow-scrolling: auto;
  }

  .match-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
  }

  .match-table thead {
    display: none;
  }

  .match-table tbody {
    display: block;
  }

  .match-table tbody tr {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "time icon actions"
      "home home home"
      "odds odds odds"
      "away away away"
      "ht ft tip";
    gap: 6px 8px;
    align-items: center;
    margin: 0 0 10px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    background: var(--white) !important;
    border-radius: 0;
  }

  .match-table tbody tr:nth-child(even) {
    background: var(--blue-pale) !important;
  }

  .match-table tbody tr:hover {
    background: var(--blue-light) !important;
  }

  .match-table td {
    border: none;
    padding: 0;
    width: auto !important;
    text-align: left;
    vertical-align: middle;
  }

  .match-table .col-time {
    grid-area: time;
    font-size: 13px;
    min-width: 44px;
  }

  .match-table .col-icon {
    grid-area: icon;
  }

  .match-table .col-actions {
    grid-area: actions;
    justify-self: end;
    display: flex;
    gap: 4px;
    width: auto;
  }

  .match-table .col-home {
    grid-area: home;
    font-size: 15px;
    line-height: 1.35;
  }

  .match-table .col-odds {
    grid-area: odds;
  }

  .match-table .col-odds .odds-stack {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .match-table .col-away {
    grid-area: away;
    text-align: left !important;
    font-size: 15px;
    line-height: 1.35;
  }

  .match-table .col-ht {
    grid-area: ht;
    display: block !important;
    font-size: 12px;
    color: var(--text-muted);
  }

  .match-table .col-ht::before {
    content: "HT ";
    font-weight: 700;
    color: var(--navy);
  }

  .match-table .col-ft {
    grid-area: ft;
    font-size: 14px;
  }

  .match-table .col-ft::before {
    content: "FT ";
    font-weight: 700;
    color: var(--navy);
  }

  .match-table .col-tip {
    grid-area: tip;
    display: block !important;
    width: auto;
    font-size: 12px;
    line-height: 1.4;
  }

  .match-table .icon-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .match-table tr.row-bg-live,
  .match-table tr.row-bg-ht,
  .match-table tr.row-bg-draw,
  .match-table tr.row-bg-post,
  .match-table tr.row-bg-ft {
    border-left-width: 4px;
    border-left-style: solid;
  }

  .match-table tr.row-bg-live { border-left-color: #c62828; }
  .match-table tr.row-bg-ht { border-left-color: #ec407a; }
  .match-table tr.row-bg-draw { border-left-color: #2e7d32; }
  .match-table tr.row-bg-post { border-left-color: #00838f; }
  .match-table tr.row-bg-ft { border-left-color: var(--navy); }

  /* Standings: keep table, hide secondary cols, allow mild scroll */
  .standings-table {
    min-width: 0;
    font-size: 12px;
  }

  .standings-table th:nth-child(n+4):nth-child(-n+9),
  .standings-table td:nth-child(n+4):nth-child(-n+9) {
    display: none;
  }

  .standings-table th,
  .standings-table td {
    padding: 7px 5px;
  }

  .standings-table td.team {
    max-width: 42vw;
  }

  .standings-table td.team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .standings-legend {
    gap: 8px 12px;
    font-size: 11px;
  }

  /* Boards / news / tips */
  .boards-wrap,
  .boards-wrap--tips {
    gap: 10px;
  }

  .board-item {
    grid-template-columns: 48px 1fr;
    padding: 9px;
    min-height: 56px;
  }

  .board-author {
    display: none;
  }

  .news-feature-card {
    grid-template-columns: 72px 1fr;
    gap: 10px;
  }

  .news-feature-card img {
    width: 72px;
    height: 54px;
  }

  .news-feature-card--hero {
    grid-template-rows: 140px 1fr;
  }

  .news-feature-card--hero img {
    height: 140px;
  }

  .news-feature-card--hero .news-feature-body strong {
    font-size: 16px;
  }

  .news-filter {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .news-filter::-webkit-scrollbar {
    display: none;
  }

  .news-filter-chip {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 12px;
  }

  .intent-panel {
    padding: 12px;
  }

  .kw-chip-cloud {
    gap: 6px;
  }

  a.kw-chip {
    font-size: 12px;
    padding: 6px 9px;
  }

  .tip-hub-grid,
  .tip-hub-grid--compact {
    grid-template-columns: 1fr;
  }

  /* Watch centre */
  .watch-match-list {
    max-height: none;
  }

  .watch-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .watch-search-clear {
    width: 100%;
  }

  .centre-scoreboard {
    gap: 8px;
  }

  /* Footer */
  .site-footer {
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 4px;
  }

  .site-footer .footer-links a {
    margin: 0 6px;
  }

  /* FAB above home indicator; compact label */
  .fab-root {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .fab-btn {
    height: 46px;
    padding-right: 12px;
    font-size: 12px;
  }

  .fab-btn-label {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fab-panel {
    width: min(260px, calc(100vw - 28px));
  }

  .vote-modal {
    padding: 12px;
    align-items: end;
  }

  .vote-dialog {
    width: 100%;
    max-height: min(90vh, 640px);
    overflow: auto;
  }
}

.league-block, .intent-panel, .seo-league-index, #matches-tomorrow-root, #intent-odds, #tomorrow-faq-title, #table-guide-title, #live-hub-title, #live-faq-title, #live-scores-root, #live-intent-title, .table-guide--live, #watch-hub-title, #watch-faq-title, #watch-intent-title, #watch-match-detail, #standings-hub-title, #standings-faq-title, #standings-intent-title, #standings-root, #standings-tabs, #news-feature, #board-hot, #board-analysis, #tips-hub-title, #tips-faq-title, #tips-intent-title { scroll-margin-top: 56px; }

@media (max-width: 900px) {
  .league-block, .intent-panel, .seo-league-index, #matches-tomorrow-root, #intent-odds, #tomorrow-faq-title, #table-guide-title, #live-hub-title, #live-faq-title, #live-scores-root, #live-intent-title, .table-guide--live, #watch-hub-title, #watch-faq-title, #watch-intent-title, #watch-match-detail, #standings-hub-title, #standings-faq-title, #standings-intent-title, #standings-root, #standings-tabs, #news-feature, #board-hot, #board-analysis, #tips-hub-title, #tips-faq-title, #tips-intent-title {
    scroll-margin-top: 64px;
  }
}

