#top-bar {
  height: 56px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(16px);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.top-bar-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-status-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
}
:root {
    --left-sidebar-width: 190px;
}

/* =====================================================
   SIDEBAR
===================================================== */

#site-left-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--left-sidebar-width);
    height: 100vh !important;
    margin: 0;
    padding: 0;
    background: #0b0f14;
    border-right: 1px solid #202630;
    z-index: 999999;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
display: flex;
    flex-direction: column;
}

/* scrollbar */
#site-left-sidebar::-webkit-scrollbar {
    width: 4px;
}

#site-left-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#site-left-sidebar::-webkit-scrollbar-thumb {
    background: #28313d;
    border-radius: 10px;
}

/* =====================================================
   INNER
===================================================== */

.site-left-sidebar-inner {
    width: 100%;
    padding: 0 8px 20px;
    box-sizing: border-box;
}

/* =====================================================
   LOGO
===================================================== */

.site-left-logo {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid #202630;
    box-sizing: border-box;
flex-shrink: 0;
}

.site-left-logo a {
    display: flex;
    align-items: center;
}

.site-left-logo img {
    display: block;
    width: 150px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

/* =====================================================
   TITLE
===================================================== */

.site-left-title {
    padding: 18px 10px 8px;
    color: #56657a;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
}

/* =====================================================
   MENU
===================================================== */

#site-left-sidebar .site-left-menu {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
flex-shrink: 0;
}

/* =====================================================
   MENU ITEM
===================================================== */
#site-left-sidebar .site-left-menu > li {
    margin: 3px 0 !important;
    padding: 3px 7px;
    color: var(--text-2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   MENU LINK
===================================================== */
#site-left-sidebar .site-left-menu > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 36px;
    padding: 0 14px;
    margin: 0;
    color: #a7b1c1;
    background: transparent;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}
#site-left-sidebar .site-left-menu > li:hover > a{
  color: var(--text);
  background: var(--bg-hover);
  transform: translateX(3px);
}
#site-left-sidebar .site-left-menu > li.active > a{
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
#site-left-sidebar .site-left-menu > li > i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}
#site-left-sidebar .sidebar-menu-icon {
    display: inline-block !important;
    width: 18px !important;
    font-size: 15px;
    line-height: 1 ;
    text-align: center;
    color: #9aa6b8;
}
#site-left-sidebar li.active .sidebar-menu-icon,#site-left-sidebar li:hover .sidebar-menu-icon {
color: #fff;
}
.nav-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.nav-badge.hot {
  background: linear-gradient(135deg, #ff6b35, #ff1744);
  color: #fff;
}

.nav-badge.live {
  background: linear-gradient(135deg, #00e676, #00b248);
  color: #000;
}

#site-left-sidebar .site-left-html {
    width: 100%;
    padding: 15px 8px 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

#site-left-sidebar .site-left-html img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* =====================================================
   SPACER
   ĐẨY BUTTON XUỐNG ĐÁY
===================================================== */

#site-left-sidebar .site-left-spacer {
    flex: 1 1 auto;
    min-height: 20px;
}

/* =====================================================
   BUTTON GROUP
===================================================== */

#site-left-sidebar .site-left-buttons {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 8px 15px;
    box-sizing: border-box;
}

/* =====================================================
   BUTTON 1 + BUTTON 2
===================================================== */

#site-left-sidebar .site-left-buttons > * {
    width: 100%;
    margin: 0 !important;
}

/* Flatsome button */
.site-left-buttons .header-button .button {
    padding: 7px;
    border-radius: var(--r-md);
    font-size: 12px;
    font-weight: 600;
}
.site-left-buttons .header-button-1 .button{
    background: var(--bg-hover);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}
.site-left-buttons .header-button-1:hover .button{
  border-color: var(--gold);
  color: var(--gold);
}
.site-left-buttons .header-button-2 .button {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.site-left-buttons .header-button-2:hover .button {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
}
.site-left-buttons .header-button {
width:100%;
}

/* =====================================================
   ẨN MENU GỐC TRÊN HEADER
===================================================== */

body.has-left-sidebar #header .header-inner > .flex-col.hide-for-medium.flex-left.flex-grow > .header-nav-main {
    display: none !important;
}

/* =====================================================
   ĐẨY TOÀN BỘ WRAPPER SANG PHẢI
===================================================== */

body.has-left-sidebar #wrapper {
    margin-left: var(--left-sidebar-width) !important;
}

/* =====================================================
   MAIN
===================================================== */

body.has-left-sidebar #main {
    margin-left: 0 !important;
}

/* =====================================================
   HEADER
===================================================== */

body.has-left-sidebar #header {
    margin-left: 0 !important;
}

/* =====================================================
   FOOTER
===================================================== */

body.has-left-sidebar #footer {
    margin-left: 0 !important;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 849px) {
    /* Sidebar trái thành DRAWER mobile (trượt từ trái) — giữ icon + badge HOT/LIVE */
    #site-left-sidebar {
        display: flex !important;
        width: min(280px, 84vw);
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
        box-shadow: none;
    }
    #site-left-sidebar.open {
        transform: translateX(0);
        visibility: visible;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.6);
    }
    #site-left-sidebar .site-left-menu > li > a {
        min-height: 44px; /* vùng chạm chuẩn touch */
    }
    #sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 999998;
    }
    body.sidebar-open #sidebar-overlay {
        display: block;
    }
    body.sidebar-open {
        overflow: hidden;
    }
    .sidebar-close {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-2);
        font-size: 14px;
        cursor: pointer;
        border: 1px solid var(--border);
    }
    body.has-left-sidebar #wrapper {
        margin-left: 0 !important;
    }
}

#masthead {
    display: none;
}
:root {
    --bg: #060a10;
    --bg-card: #0d1117;
    --bg-card-2: #151b25;
    --bg-hover: #1a2233;
    --border: rgba(255, 255, 255, 0.06);
    --border-hi: rgba(59, 130, 246, 0.3);

    --green: #00e676;
    --red: #ff1744;
    --gold: #fbbf24;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --purple: #a855f7;

    --text: #f1f5f9;
    --text-2: #94a3b8;
    --text-3: #475569;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
}

body.light-mode {
    --bg: #f0f4f8;
    --bg-card: #ffffff;
    --bg-card-2: #f8fafc;
    --bg-hover: #e2e8f0;
    --border: #cbd5e1;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
}

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

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition:
        background 0.3s,
        color 0.3s;
}


.nav-banner-container {
  margin: auto 4px 8px 4px;
  padding: 2px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.4), rgba(255, 23, 68, 0.4), rgba(59, 130, 246, 0.4));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-banner-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 23, 68, 0.4);
}

.banner-hot-img-link {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: #000000;
}

.banner-hot-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.banner-hot-img-link:hover .banner-hot-img {
  transform: scale(1.05);
}

.banner-img-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 8.5px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff1744, #ff9100);
  color: #ffffff;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.nav-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.theme-btn-sidebar {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.theme-btn-sidebar:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-login-sidebar {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none;
  color: #fff;
  padding: 11px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.2s;
}

.btn-login-sidebar:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
}

/* ═══ MAIN WRAPPER & TOP BAR ═══ */
.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-bar {
  height: 56px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(16px);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.top-bar-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-status-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══ MAIN GRID ═══ */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 250px;
  align-items: stretch;
  gap: 16px;
  padding: 16px 20px 12px 20px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ═══ FILTER BAR ═══ */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.btn-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-pill:hover {
  border-color: var(--blue);
  color: var(--text);
}

.btn-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn-pill.hot {
  color: var(--red);
}

.btn-pill.hot:hover {
  background: rgba(255, 23, 68, 0.1);
}

.btn-pill i {
  font-size: 11px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.4s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.table-header i {
  margin-right: 8px;
}

.auto-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 1.8s infinite;
}

.table-scroll {
  overflow-x: auto;
  width: 100%;
  padding: 0 2px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.odds-table {
  width: 100%;
  min-width: 680px; /* giữ ĐỦ 8 cột kèo trên mọi màn hình — cuộn ngang khi chật */
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.odds-table col.col-time { width: 55px; }
.odds-table col.col-team { width: auto; }
.odds-table col.col-score-c { width: 42px; }
.odds-table col.col-hdp-c { width: 92px; }
.odds-table col.col-ou-c { width: 92px; }
.odds-table col.col-corner-c { width: 80px; }
.odds-table col.col-1x2-c { width: 110px; }
.odds-table col.col-action-c { width: 85px; }

.odds-table th {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-3);
  padding: 6px 8px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.odds-table td {
  padding: 6px 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

/* ═══ MOBILE UX ═══ */
@media (max-width: 849px) {
  /* Tabs dán đỉnh màn hình khi cuộn — chuyển tab nhanh; th table không dán để khỏi đè */
  .odds-table th {
    position: static;
  }
  .filter-bar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--bg);
    padding: 8px 4px;
    margin: -8px -4px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }
  .btn-pill {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 12.5px;
  }
  /* Header mobile: nền TỐI khớp theme — không bao giờ lòi nền trắng Flatsome */
  #header,
  .header-wrapper,
  #masthead,
  .header-main,
  .header-bg-container {
    background: var(--bg-card) !important;
  }
  .header-wrapper {
    border-bottom: 1px solid var(--border);
  }
  /* Hamburger sáng trên nền tối */
  .header .nav-icon a,
  .header .nav-icon i {
    color: var(--text) !important;
  }
  /* Logo gọn, không lòi quá header */
  #masthead #logo {
    max-width: 132px;
  }
  #masthead #logo img,
  #masthead #logo .header-logo,
  #masthead #logo .header-logo-dark {
    max-height: 38px !important;
    height: auto !important;
    width: auto !important;
  }
  /* Header không sticky trên mobile — tabs dán mới có ý nghĩa */
  .header-wrapper.stuck {
    position: static !important;
  }
  /* Dòng kèo: vùng chạm rộng hơn */
  .asian-match-row td {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* ═══ TABLET (850–1024) ═══
   Sidebar trái vẫn hiện nhưng cột chính (dashboard large-9 + widget large-3)
   xếp CHỒNG — bảng kèo có đủ chiều ngang, widget xuống dưới thay vì chen
   25% chật chội. Dùng selector cấu trúc (không hardcode ID — ID UX Builder
   có thể đổi khi lưu lại page). */
@media (min-width: 850px) and (max-width: 1024px) {
  .row > .col.large-9,
  .row > .col.large-3.medium-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
  }
}

/* CHỈ 1 NAV DUY NHẤT: ≥850px sidebar trái là nav — header Flatsome (masthead)
   tuyệt đối ẩn để không bao giờ có 2 menu cùng lúc */
@media (min-width: 850px) {
  #masthead,
  #header,
  .header-wrapper {
    display: none !important;
  }
}

/* ═══ ASIAN HANDICAP ODDS TABLE UI/UX ENHANCEMENTS ═══ */

/* League Header Row */
.asian-league-header td {
  background: linear-gradient(90deg, #151d2a, #0f172a) !important;
  color: var(--gold) !important;
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 4px !important;
  border-top: 2px solid rgba(251, 191, 36, 0.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asian-league-header .col-lg-score { text-align: center; }
.asian-league-header .col-lg-hdp { text-align: left; padding-left: 6px !important; }
.asian-league-header .col-lg-ou { text-align: left; padding-left: 6px !important; }
.asian-league-header .col-lg-corner { text-align: left; padding-left: 6px !important; }
.asian-league-header .col-lg-1x2 { text-align: center; }
.asian-league-header .col-lg-action { text-align: center; }

.league-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--gold);
}

.league-title i {
  color: var(--gold);
  font-size: 13px;
}

/* Match Row Grouping & Separators */
.asian-match-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

/* Top row of match (Home team) */
.asian-match-row.top-row td {
  padding-top: 6px;
  padding-bottom: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* Clear separator above each match */
}

/* Bottom row of match (Away team) */
.asian-match-row.bot-row td {
  padding-top: 2px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.4); /* Strong separator below each match block */
}

/* Alternating match block background for logical UI/UX separation */
.asian-match-row:nth-of-type(4n+1) td,
.asian-match-row:nth-of-type(4n+2) td {
  background: rgba(255, 255, 255, 0.015);
}

/* Hovering over match highlights the row */
.asian-match-row:hover td,
.asian-match-row.match-hover td {
  background: rgba(59, 130, 246, 0.12) !important;
}

.asian-match-row.match-live td {
  background: rgba(0, 230, 118, 0.02);
}

.asian-match-row.match-live:hover td,
.asian-match-row.match-live.match-hover td {
  background: rgba(0, 230, 118, 0.12) !important;
}

/* Time & Status Column */
.col-time-badge {
  text-align: center;
  vertical-align: middle;
  padding: 6px 2px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  width: 55px !important;
}

/* Score Column */
.col-score, .col-lg-score {
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
  font-weight: 800;
  width: 42px !important;
  padding: 6px 2px !important;
}

/* Handicap, O/U & Corner Odds Formatting */
.col-hdp, .col-ou, .col-corner {
  vertical-align: middle;
  text-align: left;
  padding: 6px 6px !important;
  white-space: nowrap;
}

.col-hdp, .col-lg-hdp { width: 92px !important; }
.col-ou, .col-lg-ou { width: 92px !important; }
.col-corner, .col-lg-corner { width: 80px !important; }

.line-val {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 4px;
  margin-right: 5px;
}

.line-val.empty {
  visibility: hidden;
}

.line-val.sub {
  color: var(--red);
  background: rgba(255, 23, 68, 0.08);
  border-color: rgba(255, 23, 68, 0.18);
}

.odd-val {
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
  letter-spacing: 0.2px;
}

/* 1X2 (European Odds Box Grid) */
.col-1x2, .col-lg-1x2 {
  vertical-align: middle;
  text-align: center;
  padding: 4px 4px !important;
  width: 110px !important;
}

.eu-grid-box {
  display: inline-flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 3px 4px;
  width: 100%;
  max-width: 102px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.eu-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 8.5px;
  font-weight: 800;
  color: var(--text-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 2px;
  margin-bottom: 2px;
  text-align: center;
}

.eu-values {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  gap: 2px;
  text-align: center;
}

.eu-values span {
  padding: 1px 1px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
}

/* Detail Action Column */
.col-detail-action, .col-lg-action {
  vertical-align: middle;
  text-align: center;
  padding: 4px 6px !important;
  width: 85px !important;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 800;
  font-size: 9.5px;
  color: var(--green);
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 1px 4px;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.15);
}

.ht-tag {
  font-weight: 800;
  font-size: 9.5px;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  padding: 1px 4px;
  border-radius: 4px;
}

.ft-tag {
  font-weight: 700;
  font-size: 9.5px;
  color: var(--text-3);
}

.time-text {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(59, 130, 246, 0.1);
  padding: 1px 4px;
  border-radius: 5px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Team Name Column & Flex Cell Layout */
.col-team-name {
  text-align: left;
  vertical-align: middle;
  font-weight: 600;
  font-size: 12.5px;
  padding: 4px 6px !important;
}

.team-cell-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.team-icon-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #ffffff;
  margin-right: 2px;
  flex-shrink: 0;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.team-icon-badge.away {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.team-txt {
  font-weight: 600;
  color: var(--text);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  max-width: none !important;
}

.home-txt {
  font-weight: 700;
}

.team-cards-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

/* Score Column */
.col-score {
  text-align: center;
  vertical-align: middle;
  font-size: 12.5px;
  font-weight: 800;
  width: 32px;
  padding: 4px 1px !important;
}

.score-box {
  display: inline-block;
  min-width: 20px;
  padding: 1px 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-align: center;
}

.score-box.live {
  color: var(--green);
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.3);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.25);
}

/* Card badges (Yellow & Red Cards) */
.card-badge {
  min-width: 12px;
  height: 15px;
  padding: 0 3px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.card-badge.yellow {
  background: #eab308;
  color: #000000;
}

.card-badge.red {
  background: #ef4444;
  color: #ffffff;
}

/* Handicap, O/U & Corner Odds Formatting */
.col-hdp, .col-ou, .col-corner {
  vertical-align: middle;
  text-align: left;
  padding: 4px 2px !important;
  white-space: nowrap;
}

.col-hdp, .col-lg-hdp { width: 66px; }
.col-ou, .col-lg-ou { width: 66px; }
.col-corner, .col-lg-corner { width: 58px; }

.line-val {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 2px;
  border-radius: 3px;
  margin-right: 2px;
}

.line-val.empty {
  visibility: hidden;
}

.line-val.sub {
  color: var(--red);
  background: rgba(255, 23, 68, 0.08);
  border-color: rgba(255, 23, 68, 0.18);
}

.odd-val {
  font-weight: 700;
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 0;
}

/* 1X2 (European Odds Box Grid) */
.col-1x2, .col-lg-1x2 {
  vertical-align: middle;
  text-align: center;
  padding: 2px 1px !important;
  width: 84px;
}

.eu-grid-box {
  display: inline-flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 1px;
  width: 100%;
  max-width: 80px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.eu-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 8px;
  font-weight: 800;
  color: var(--text-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1px;
  margin-bottom: 1px;
  text-align: center;
}

.eu-values {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  gap: 1px;
  text-align: center;
}

.eu-values span {
  padding: 1px 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
}

/* Detail Action Column */
.col-detail-action, .col-lg-action {
  vertical-align: middle;
  text-align: center;
  padding: 2px 1px !important;
  width: 64px;
}

/* Flash animations */
.flash-up {
  animation: flashGreen 0.6s ease;
}

.flash-down {
  animation: flashRed 0.6s ease;
}

@keyframes flashGreen {
  0% {
    background: rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 12px var(--green);
  }

  100% {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
  }
}

@keyframes flashRed {
  0% {
    background: rgba(255, 23, 68, 0.3);
    box-shadow: 0 0 12px var(--red);
  }

  100% {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
  }
}

/* Corners */
.col-corners {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}

.corner-icon {
  color: var(--gold);
}

/* Detail button */
.col-detail-action {
  vertical-align: middle;
  text-align: center;
  padding: 4px 4px !important;
  width: 85px;
}

.btn-toggle-detail {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--blue);
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  letter-spacing: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.btn-toggle-detail:hover {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

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

.btn-toggle-detail.active {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.table-card-footer {
  padding: 6px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.btn-load-more-matches {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--blue);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-load-more-matches:hover {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.btn-load-more-matches:active {
  transform: translateY(0);
}

/* ═══ EXPANDED ROW ═══ */
.expanded-row {
  display: none;
  background: var(--bg-card-2);
}

.expanded-row.show {
  display: table-row;
}

.expanded-row>td {
  padding: 16px !important;
}

/* 2x2 Matrix Layout: Box 1 Box 2 / Box 3 Box 4 */
.detail-grid {
  display: grid !important;
  grid-template-columns: calc(34% - 7px) calc(66% - 7px) !important;
  gap: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.detail-card h6 {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

/* ═══ TECHNICAL MATCH STATS (THỐNG KÊ KỸ THUẬT) ═══ */
.tech-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: var(--r-md);
  margin-bottom: 10px;
}

.tech-team-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 11.5px;
}

.tech-team-title.home-txt {
  color: #ea580c;
}

.tech-team-title.away-txt {
  color: #0284c7;
}

.tech-vs-pill {
  font-weight: 900;
  font-size: 10px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.tech-stat-row {
  display: grid;
  grid-template-columns: 20px 1fr 82px 1fr 20px;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.tech-stat-num {
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.tech-stat-num.home {
  color: #ea580c;
}

.tech-stat-num.away {
  color: #0284c7;
}

.tech-stat-label {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 2px 2px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tech-bar-container {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  display: flex;
}

.tech-bar-container.home {
  justify-content: flex-end;
}

.tech-bar-container.away {
  justify-content: flex-start;
}

.tech-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.tech-bar-fill.home-fill {
  background: linear-gradient(270deg, #ea580c, #f97316);
}

.tech-bar-fill.away-fill {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.stat-val.away-val {
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
}

.stat-bar-wrap {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.stat-bar {
  height: 100%;
  transition: width 0.6s ease;
}

.home-bar {
  background: linear-gradient(90deg, #00c853, #00e676);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.away-bar {
  background: linear-gradient(90deg, #06b6d4, #38bdf8);
}

/* Chart */
.chart-wrap {
  height: 180px;
  position: relative;
}

/* ═══ ODDS FLUCTUATION (BIẾN ĐỘNG KÈO) — market tabs + empty state ═══ */
.fluc-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.fluc-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-3, #94a3b8);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fluc-tab:hover {
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

.fluc-tab.active {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #0f172a;
  border-color: transparent;
}

.fluc-tab.hidden {
  display: none;
}

.chart-empty {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute; /* đè đúng lên vùng canvas — trước đây static nên skeleton nằm dưới canvas, lệch xuống */
  inset: 0;
  height: 100%;
  min-height: 120px;
  color: var(--text-3, #94a3b8);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
}

/* ═══ FLUC LOADING SKELETON (biến động kèo đang tải — mô phỏng layout panel) ═══ */
.fluc-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 2px 0;
}

.fluc-sk-tabs {
  display: flex;
  gap: 6px;
}

.fluc-sk-chip {
  width: 42px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.05) 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s infinite;
}

.fluc-sk-chart {
  position: relative;
  flex: 1;
  min-height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 25%, 25% 100%;
}

.fluc-sk-line {
  position: absolute;
  left: 4%;
  top: var(--sk-y);
  width: var(--sk-w);
  height: 3px;
  border-radius: 999px;
  transform: rotate(var(--sk-rot));
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.55), rgba(6, 186, 212, 0.55), transparent);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s infinite;
}

.fluc-sk-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.fluc-loading-txt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  color: var(--text-3, #94a3b8);
  font-size: 11.5px;
  font-weight: 700;
}

/* ═══ LINEUP LOADING SKELETON (đội hình đang tải — cùng lúc với chart) ═══ */
.lineup-slot {
  position: relative;
}

.lineup-loading {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card, #0d1117);
  border-radius: var(--r-md);
  padding: 10px;
  z-index: 50; /* phải cao hơn .lineup-player (z-index:10/20) — nếu không cầu thủ thật đè lên skeleton */
}

.lu-sk-top {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
}

.lu-sk-pitch {
  position: relative;
  flex: 1; /* tự giãn lấp đầy slot — trước đây cố định 170px nên thừa/tràn theo độ cao lineup */
  min-height: 80px;
  border-radius: 8px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 25%, 25% 25%;
}

.lu-sk-player {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s infinite;
}

.fluc-loading-txt::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(251, 191, 36, 0.35);
  border-top-color: #fbbf24;
  animation: fluc-spin 0.8s linear infinite;
}

@keyframes fluc-spin {
  to { transform: rotate(360deg); }
}

/* ═══ TACTICAL LINEUP FIELD (ĐỘI HÌNH XUẤT PHÁT) ═══ */
.detail-lineup-card {
  /* Fits cleanly in Box 4 of 2x2 grid */
}

.lineup-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lineup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: var(--r-md);
}

.lineup-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
}

.lineup-team.home .team-title {
  color: var(--gold);
}

.lineup-team.away .team-title {
  color: var(--cyan);
}

.lineup-vs {
  font-weight: 900;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 1px;
}

.formation-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tactical-pitch {
  height: 240px;
  background: repeating-linear-gradient(
    90deg,
    #226b35,
    #226b35 40px,
    #1d5c2d 40px,
    #1d5c2d 80px
  );
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.pitch-marking.center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.65);
  transform: translateX(-50%);
}

.pitch-marking.center-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  transform: translate(-50%, -50%);
}

.pitch-marking.center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
}

.pitch-marking.penalty-box {
  position: absolute;
  top: 18%;
  height: 64%;
  width: 15%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.pitch-marking.penalty-box.left {
  left: 0;
  border-left: none;
}

.pitch-marking.penalty-box.right {
  right: 0;
  border-right: none;
}

.pitch-marking.goal-box {
  position: absolute;
  top: 32%;
  height: 36%;
  width: 6%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.pitch-marking.goal-box.left {
  left: 0;
  border-left: none;
}

.pitch-marking.goal-box.right {
  right: 0;
  border-right: none;
}

/* Tactical Player Nodes */
.lineup-player {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: transform 0.2s ease;
}

.lineup-player:hover {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 20;
}

.lineup-player .player-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  border: 1.5px solid #ffffff;
}

.lineup-player.home .player-num {
  border-color: #ea580c;
}

.lineup-player.away .player-num {
  border-color: #0284c7;
}

.lineup-player .player-name {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.lineup-player.home .player-name {
  background: #ea580c;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lineup-player.away .player-name {
  background: #0284c7;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.heat-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.heat-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(25px);
  animation: heat-pulse 3s ease-in-out infinite alternate;
}

.heat-blob.red {
  background: rgba(255, 23, 68, 0.45);
}

.heat-blob.yellow {
  background: rgba(251, 191, 36, 0.35);
}

.heat-blob.green {
  background: rgba(0, 230, 118, 0.35);
}

@keyframes heat-pulse {
  0% {
    opacity: 0.6;
    transform: scale(0.95);
  }

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

.heat-caption {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 8px;
  line-height: 1.5;
}

/* AI Prediction */
.detail-ai-card {}

.ai-prob-row {
  margin-bottom: 10px;
}

.ai-conf {
  font-size: 12px;
  color: var(--text-2);
}

.ai-conf strong {
  color: var(--green);
}

.ai-bar-wrap {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ai-bar {
  height: 100%;
  transition: width 0.5s;
}

.home-seg {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.draw-seg {
  background: #475569;
}

.away-seg {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.ai-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}

.lbl-home {
  color: #ef4444;
}

.lbl-draw {
  color: var(--text-3);
}

.lbl-away {
  color: #10b981;
}

.ai-recs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rec-pill {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  flex: 1 1 calc(50% - 6px);
  min-width: 120px;
}

.rec-pill.good {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.rec-pill.bad {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* ═══ SIDEBAR ═══ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  box-sizing: border-box;
}

.widget .col-inner{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
padding: 15px;
height: 100%;
}
.widget .col-inner .bookie-list .col-inner, .widget .col-inner .post-item .col-inner {
  background: none;
  border: none;
  border-radius: 0;
  overflow: hidden;
  display: block;
padding: 2px;
height: unset;
}
.widget:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.widget:last-child .news-list {
  flex: 1;
  max-height: none;
}

.widget-head {
  padding-bottom:10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
}

.widget-head a {
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
}

/* Bookies */
.bookie-list {
  height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
  cursor: grab;
}

.bookie-list::-webkit-scrollbar {
  width: 4px;
}

.bookie-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.bookie-row {
  gap: 3px;
  padding: 7px 5px 7px 7px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.bookie-row:hover {
  background: var(--bg-hover);
}

.bookie-row.top-1 {
  background: rgba(251, 191, 36, 0.06);
  border-left: 3px solid var(--gold);
}

.bookie-row.top-2 {
  background: rgba(148, 163, 184, 0.06);
  border-left: 3px solid #94a3b8;
}

.bookie-row.top-3 {
  background: rgba(194, 120, 80, 0.06);
  border-left: 3px solid #c27850;
}

.bookie-rank p{
  font-size: 12px;
  font-weight: 900;
  min-width: 16px;
  text-align: center;
  color: var(--text-3);
margin-bottom:0px;
}

.top-1 .bookie-rank p{
  color: var(--gold);
}

.top-2 .bookie-rank p{
  color: #c0c0c0;
}

.top-3 .bookie-rank p{
  color: #cd7f32;
}

.bookie-logo img,
.bookie-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 4px;
}

.bookie-meta {
  flex: 1;
  min-width: 0;
}
.bookie-meta p {
margin-bottom:0;
line-height:1;
}

.bookie-meta strong {
  font-size: 11.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookie-promo {
  font-size: 9px;
  color: var(--red);
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookie-stars {
  font-size: 9px;
  color: var(--gold);
}

.bookie-cta {
  font-size: 7px;
  color: #fff;
  background: var(--green);
  transition: all 0.2s;
}

.bookie-cta:hover {
  background: #00c853;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

/* ═══ TOPLIST [khc_toplist] — port brandview, dùng layout bookie-row ═══ */
.khc-toplist .bookie-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.khc-toplist .bookie-rank {
  flex-shrink: 0;
  width: 18px;
}

.khc-toplist .bookie-logo {
  flex-shrink: 0;
  width: 44px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.khc-toplist .bookie-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.khc-toplist .bookie-meta {
  flex: 1;
  min-width: 0;
}

.khc-toplist .bookie-stars {
  display: block;
}

.khc-toplist .bookie-cta {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  background: var(--green);
  transition: background 0.2s, box-shadow 0.2s;
}

.khc-toplist .bookie-cta:hover {
  background: #00c853;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
  color: #fff;
}

/* ═══ ALERTS ═══ */
#droppingAlertsList {
  height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

#droppingAlertsList::-webkit-scrollbar {
  width: 4px;
}

#droppingAlertsList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.alert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.alert-item:hover {
  background: var(--bg-hover);
}

.alert-item.new {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.alert-match {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-meta {
  font-size: 9.5px;
  color: var(--text-3);
}

.alerts-empty {
  padding: 24px 10px;
  text-align: center;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.6;
}

.alert-delta {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.alert-delta.up {
  color: var(--green);
  background: rgba(0, 230, 118, 0.1);
}

.alert-delta.down {
  color: var(--red);
  background: rgba(255, 23, 68, 0.1);
}

/* ═══ RELATED NEWS WIDGET ═══ */
.news-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.news-list::-webkit-scrollbar {
  width: 4px;
}

.news-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s ease;
}

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

.news-item:hover {
  background: var(--bg-hover);
}

.news-icon {
  color: var(--red);
  font-size: 7.5px;
  margin-top: 4px;
  flex-shrink: 0;
}

.news-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.news-badge {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.2px;
}

.news-time {
  font-size: 9.5px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.news-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.15s ease;
}

.news-item:hover .news-title {
  color: var(--gold);
}

/* ═══ FOOTER ═══ */
.app-footer {
  text-align: center;
  padding: 14px 20px;
  font-size: 12px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  margin-top: 0;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
}

/* ═══ RESPONSIVE POLISH & ICON SPACING ═══ */
.top-bar-title i,
.table-header i,
.widget-head i,
.league-title i,
.btn-pill i,
.nav-item i {
  margin-right: 6px;
}

@media (max-width: 600px) {
  .detail-grid {
    grid-template-columns: 1fr !important;
  }
  
  .tactical-pitch {
    height: 220px;
  }
  
  .lineup-player .player-name {
    font-size: 9px;
    padding: 1px 4px;
    max-width: 75px;
  }
  
  .lineup-player .player-num {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }
}

/* ═══ SEO ARTICLE SECTION (BLOG / WP TOC STYLE) ═══ */
.seo-content-section {
  padding: 12px 20px 24px 20px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.blog-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* TABLE OF CONTENTS (MỤC LỤC VIP UI) */
.toc-box {
  background: linear-gradient(145deg, #1e2336, #141824);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 480px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.toc-box:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toc-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-icon {
  color: var(--gold);
  font-size: 15px;
}

.toc-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
}

.toc-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toc-toggle-btn:hover {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

.toc-content {
  margin-top: 10px;
}

.toc-box.collapsed .toc-content {
  display: none;
}

.toc-list, .toc-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-sublist {
  margin-left: 16px;
  margin-top: 6px;
  border-left: 2px solid rgba(59, 130, 246, 0.25);
  padding-left: 10px;
}

.toc-item {
  margin-bottom: 6px;
}

.toc-item:last-child {
  margin-bottom: 0;
}

.toc-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.toc-item a:hover {
  color: var(--gold);
  background: rgba(251, 191, 36, 0.08);
  transform: translateX(3px);
}

.toc-num {
  font-size: 11px;
  font-weight: 800;
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  flex-shrink: 0;
}

.toc-item.toc-h3 .toc-num {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.25);
}

/* BLOG CONTENT BODY */
.blog-body {
  font-size: 14px;
  line-height: 1.7;
}

.blog-h2 {
  font-size: 22px;
  font-weight: 800;
  color: #facc15; /* Bright Gold/Yellow from user screenshot */
  margin: 20px 0 12px 0;
  line-height: 1.35;
}

.blog-h3 {
  font-size: 18px;
  font-weight: 700;
  color: #facc15; /* Bright Gold/Yellow from user screenshot */
  margin: 22px 0 8px 0;
  line-height: 1.35;
}

.blog-p {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.75;
  margin: 0 0 16px 0;
}

.blog-p strong {
  color: #ffffff;
  font-weight: 800;
}
.post-item .is-divider, .post-item .box-image {
display:none
}
/* CHỈ 1 NAV DUY NHẤT — masthead Flatsome ẨN Ở MỌI BĂNG TẦN:
   ≥850px: sidebar trái là nav. ≤849px: top-bar (hamburger + tiêu đề) là
   header duy nhất, hamburger mở drawer sidebar. Không bao giờ 2 menu cùng lúc. */
#masthead {
  display: none !important;
}
@media (max-width: 849px) {
  .top-bar .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 36px;      /* override Flatsome min-height 2.5em (42.5px) */
    padding: 0;
    margin: 0;             /* override Flatsome margin-right/bottom 1em (17px) */
    line-height: 1;        /* override line-height 2.4em (40.8px) */
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    border: none;
    background: none;
    border-radius: 6px;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
  }
  .top-bar-left br {
    display: none; /* markup thừa trong top-bar-left */
  }
  .top-bar {
    padding: 0 16px;
  }
  .top-bar-title {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ═══ LOADING SKELETON ═══ */
.skeleton-row td {
  padding: 14px 10px !important;
  border-bottom: 1px solid var(--border);
}
.sk-line {
  height: 14px;
  border-radius: 6px;
  margin: 6px 0;
  background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.13) 50%, rgba(255,255,255,.05) 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s infinite;
}
@keyframes sk-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══ LINEUP REAL DATA ═══ */
.no-lineup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.lineup-player .player-num {
  position: relative;
}
.cap-mark {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 8px;
  font-weight: 900;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* ═══ KICKOFF TIME — 2 DÒNG CHO TRẬN KHÔNG ĐÁ HÔM NAY (KÈO HOT) ═══ */
.time-text.stack {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
  padding: 2px 5px;
  white-space: nowrap;
}
.time-text.stack .t-date {
  font-size: 8px;
  font-weight: 800;
  opacity: 0.75;
  letter-spacing: 0.3px;
}
.time-text.stack .t-time {
  font-size: 9.5px;
  font-weight: 700;
}
